|
|
|
|
<%@ page language="java" import="java.util.*" contentType="text/html;charset=gb2312"%>
|
|
|
|
|
<jsp:useBean id="sys" scope="page" class="com.bean.SystemBean"></jsp:useBean>
|
|
|
|
|
<jsp:useBean id="guestbean" scope="page" class="com.bean.GuestBookBean"></jsp:useBean>
|
|
|
|
|
<%
|
|
|
|
|
String path = request.getContextPath();
|
|
|
|
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
|
|
|
|
String dir=sys.getDir();
|
|
|
|
|
%>
|
|
|
|
|
<HTML><HEAD>
|
|
|
|
|
<LINK href="<%=basePath %><%=dir %>/images/Admin_Style.css" type=text/css rel=stylesheet>
|
|
|
|
|
<LINK href="<%=basePath %><%=dir %>/images/style.css" type=text/css rel=stylesheet>
|
|
|
|
|
<SCRIPT language=JavaScript src="<%=basePath %><%=dir %>/images/Common.js"></SCRIPT>
|
|
|
|
|
<STYLE type=text/css>
|
|
|
|
|
BODY {
|
|
|
|
|
MARGIN-LEFT: 0px; BACKGROUND-COLOR: #ffffff
|
|
|
|
|
}
|
|
|
|
|
.STYLE1 {color: #ECE9D8}
|
|
|
|
|
</STYLE>
|
|
|
|
|
</HEAD>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
function check()
|
|
|
|
|
{
|
|
|
|
|
if(document.form1.replay.value.replace(/\s+$|^\s+/g,"").length<=0)
|
|
|
|
|
{
|
|
|
|
|
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ظ<EFBFBD><D8B8><EFBFBD><EFBFBD>ݣ<EFBFBD>");
|
|
|
|
|
document.form1.replay.focus();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if(document.form1.replay.value.replace(/\s+$|^\s+/g,"").length>200)
|
|
|
|
|
{
|
|
|
|
|
alert("<22>ظ<EFBFBD><D8B8><EFBFBD><EFBFBD>ݲ<EFBFBD><DDB2>ܳ<EFBFBD><DCB3><EFBFBD>200<30><30><EFBFBD>֣<EFBFBD>");
|
|
|
|
|
document.form1.replay.focus();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<%
|
|
|
|
|
String message = (String)request.getAttribute("message");
|
|
|
|
|
if(message == null){
|
|
|
|
|
message = "";
|
|
|
|
|
}
|
|
|
|
|
if (!message.trim().equals("")){
|
|
|
|
|
out.println("<script language='javascript'>");
|
|
|
|
|
out.println("alert('"+message+"');");
|
|
|
|
|
out.println("</script>");
|
|
|
|
|
}
|
|
|
|
|
request.removeAttribute("message");
|
|
|
|
|
%>
|
|
|
|
|
<%
|
|
|
|
|
String username=(String)session.getAttribute("user");
|
|
|
|
|
if(username==null){
|
|
|
|
|
response.sendRedirect(basePath+"/error.jsp");
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
String id=request.getParameter("id").trim();
|
|
|
|
|
String content=guestbean.getGuestBook(Integer.parseInt(id));
|
|
|
|
|
String replay=guestbean.getReplay(Integer.parseInt(id));
|
|
|
|
|
String method="upreplay";
|
|
|
|
|
if(replay==null){
|
|
|
|
|
replay="";
|
|
|
|
|
method="replay";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
%>
|
|
|
|
|
<BODY oncontextmenu="return false;" onselectstart="return false;" leftMargin=0
|
|
|
|
|
background=<%=basePath %><%=dir %>/images/MainBg.gif topMargin=0 scroll=no
|
|
|
|
|
marginheight="0" marginwidth="0">
|
|
|
|
|
<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
|
|
|
|
|
<TBODY>
|
|
|
|
|
<TR>
|
|
|
|
|
<TD align="left" vAlign=top >
|
|
|
|
|
<form action="<%=basePath %>GuestBook.do" method="post" name="form1" onSubmit="return check()">
|
|
|
|
|
<TABLE width="100%" border=0 align="center" cellPadding=3 cellSpacing=1 class=tablewidth>
|
|
|
|
|
<TBODY>
|
|
|
|
|
<TR align="center" class=head>
|
|
|
|
|
<TD colspan="2" height=23><3E>ظ<EFBFBD><D8B8><EFBFBD><EFBFBD><EFBFBD></TD>
|
|
|
|
|
</TR>
|
|
|
|
|
<TR align="center" bgColor=#ffffff><input type="hidden" name="id" value="<%=id %>" ><input type="hidden" name="method" value="<%=method %>" >
|
|
|
|
|
<TD width="30%" align="right" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD></TD><TD width="70%" align="left" id=map><textarea name="reasons" cols="50" rows="5" readonly><%=content %></textarea></TD>
|
|
|
|
|
</TR>
|
|
|
|
|
<TR align="center" bgColor=#ffffff>
|
|
|
|
|
<TD width="30%" align="right" ><3E><> <3B><><EFBFBD><EFBFBD></TD><TD width="70%" align="left" id=map><textarea name="replay" cols="50" rows="5" ><%=replay %></textarea></TD>
|
|
|
|
|
</TR>
|
|
|
|
|
<TR align="center" bgColor=#ffffff>
|
|
|
|
|
<TD colspan="2" align="center" ><input type="submit" value="<22>ύ"> <input type="reset" value="<22><><EFBFBD><EFBFBD>"></TD>
|
|
|
|
|
</TR>
|
|
|
|
|
</TBODY>
|
|
|
|
|
</TABLE>
|
|
|
|
|
</form>
|
|
|
|
|
</TD>
|
|
|
|
|
</TR>
|
|
|
|
|
</TBODY>
|
|
|
|
|
</TABLE>
|
|
|
|
|
</BODY>
|
|
|
|
|
<%} %>
|
|
|
|
|
</HTML>
|