forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd_guestboard.jsp
More file actions
59 lines (59 loc) · 2.47 KB
/
add_guestboard.jsp
File metadata and controls
59 lines (59 loc) · 2.47 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
56
57
58
59
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.model.Guestboard" %>
<%@ page import="com.core.*" %>
<%if (!Crazyadept.UserIsOK(session,FinalConstants.STATUS_ADMIN)) return;%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>add_guestboard</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 height="30" colspan="2" class="TableTitle1" >回复留言信息</td>
</tr>
<%
int gid=ParamUtils.getIntParameter(request,"gid");
BasetableFactory bf=BasetableFactory.getInstance();
Guestboard a=bf.SearchGuestboard("WHERE gid="+gid);
if(a.getGid()<=0){
%>
<tr align="center">
<td height="27" colspan="2" bgcolor="#FFFFFF">当前留言为空</td>
</tr>
<%}else{%>
<tr align="center">
<td width="36%" height="27" bgcolor="#FFFFFF">留言标题</td>
<td width="64%" align="left" bgcolor="#FFFFFF"><%=a.getTitle()%></td>
</tr>
<tr align="left">
<td height="13" align="center" bgcolor="#FFFFFF">留言时间</td>
<td height="0" align="left" bgcolor="#FFFFFF"><%=a.getGtime()%></td>
</tr>
<tr align="left">
<td height="14" align="center" bgcolor="#FFFFFF">留 言 人</td>
<td height="0" align="left" bgcolor="#FFFFFF"><%=a.getGuest()%></td>
</tr>
<tr align="left">
<td height="60" align="center" bgcolor="#FFFFFF">留言内容</td>
<td height="0" align="left" valign="top" bgcolor="#FFFFFF"> <%=a.getContent()%></td>
</tr>
<form name="form2" method="post" action="modify_guestboard.jsp">
<tr align="left">
<td height="50" align="center" bgcolor="#FFFFFF">回复内容</td>
<td height="0" align="left" valign="top" bgcolor="#FFFFFF"> <textarea name="recontent" cols="60" rows="6" class="textarea"></textarea> </td>
</tr>
<input type="hidden" name="action" value="add">
<input type="hidden" name="gid" value="<%=a.getGid()%>">
<tr align="left">
<td height="40" colspan="2" align="center" bgcolor="#FFFFFF"><input name="Submit" type="submit" class="btn_grey" onClick="return guestboard()" value="回复">
<input name="Submit2" type="button" class="btn_grey" onClick="javascirpt:history.back();" value="返回"></td>
</tr>
</form>
<%}%>
</table>
</body>
</html>