forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate_affiche.jsp
More file actions
55 lines (55 loc) · 2.29 KB
/
update_affiche.jsp
File metadata and controls
55 lines (55 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.model.Affiche" %>
<%@ page import="com.core.*" %>
<%if (!Crazyadept.UserIsOK(session,FinalConstants.STATUS_ADMIN)) return;%>
<html>
<head>
<title>update_affiche</title>
</head>
<link href="../css/admin.css" rel="stylesheet" type="text/css">
<script src="../js/validate.js"></script>
<body>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" class="tableNew">
<tr align="center">
<td colspan="2" class="TableTitle1" >公告详细信息修改</td>
</tr>
<%
BasetableFactory bf=BasetableFactory.getInstance();
String aid=ParamUtils.getRequestString(request,"aid");
Affiche a=bf.SearchAffiche("WHERE aid='"+aid+"'");
if(a!=null&&a.getAid()>0){
%>
<form name="form2" method="post" action="modify_affiche.jsp">
<tr align="center">
<td width="40%" bgcolor="#FFFFFF">公告标题</td>
<td width="60%" align="left" bgcolor="#FFFFFF"><input type="text" name="title" value="<%=a.getTitle()%>"></td>
</tr>
<tr align="center">
<td height="100" bgcolor="#FFFFFF">公告内容</td>
<td align="left" valign="top" bgcolor="#FFFFFF"><textarea name="content" cols="50" rows="8" class="textarea"><%=a.getContent()%></textarea></td>
</tr>
<tr align="center">
<td height="7" bgcolor="#FFFFFF">发布人</td>
<td height="7" align="left" bgcolor="#FFFFFF"> <%=bf.SearchUser("WHERE uid='"+a.getUid()+"'").getName()%></td>
</tr>
<tr align="center">
<td height="3" bgcolor="#FFFFFF">发布时间</td>
<td height="3" align="left" bgcolor="#FFFFFF"> <%=a.getAtime()%></td>
</tr>
<tr align="center">
<td height="4" colspan="2" bgcolor="#FFFFFF"> <input type="hidden" name="action" value="modify">
<input type="hidden" name="aid" value="<%=a.getAid()%>">
<input name="Submit" type="submit" class="btn_grey" onClick="return affiche()" value="提交">
<input name="Submit2" type="reset" class="btn_grey" value="重置"></td>
</tr>
</form>
</table>
<%}%>
<table width="80%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="50" colspan="5" align="right"><a href="#" onClick="Jscript:history.back()">返回</a></td>
</tr>
</table>
</body>
</html>