📄 revertmessage.jsp
字号:
<%@ page language="java" import="java.util.*,com.accpedu.LHcompany.dao.*,com.accpedu.LHcompany.entity.*" pageEncoding="gbk"%>
<html>
<head>
<style type="text/css">
<!--
#Layer2 {
position:absolute;
width:750px;
height:246px;
top:155px;
left:29px;
z-index:1;
}
.bk{ border-left-width:0px; border-bottom-width:0px; border-right-width:0px;}
body {
background-image: url(image/bookbg.gif);
}
.STYLE3 {font-family: "宋体"; font-size: 14px; }
.STYLE5 {font-size: 12px}
.STYLE7 {font-family: "宋体"; font-size: 12px; }
-->
</style>
<script>
function check()
{
var a=document.AddbbsForm.NewName.value;
var b=document.AddbbsForm.NewTitle.value;
var c=document.AddbbsForm.NewContent.value;
if(a=="")
{
alert("姓名不能为空!");
return false;
}else if(b=="")
{
alert("标题不能为空!");
return false;
}else if(c=="")
{
alert("内容不能为空!");
return false;
}else
{
return true;
}
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<body>
<%@ include file="bbsTop.jsp" %>
<div id="Layer2">
<table>
<tr>
<td>
<%
int id=Integer.parseInt(request.getParameter("id"));
messageDao md=new messageDao();
message m=md.selectID(id);
%>
<table width="315" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="12"><img src="image/titlemu_1.gif"></td>
<td width="210" align="center" background="image/titlemu_2.gif" class="STYLE5"><font face="宋体"> 主题:<%=m.getTitle() %></font></td>
<td width="93"><img src="image/titlemu_3.gif"></td>
</tr>
</table> </td>
</tr>
<tr><td>
<table width="750" height="21" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="140"><img src="image/T_left.gif"></td>
<td width="554" background="image/Tt_bg.gif"></td>
<td width="56"><img src="image/T_right.gif"></td>
</tr>
</table>
</td></tr>
<tr><td>
<table width="750" border="1" cellpadding="0" cellspacing="0" style="border:solid; border-style:double;" bordercolor="#CCFFFF">
<tr>
<td colspan="3" class="STYLE3"><%=m.getTitle() %></td>
</tr>
<tr height="100">
<td colspan="3" class="STYLE7"> <%=m.getContent() %></td>
</tr>
<tr>
<td colspan="3" class="STYLE7"> <%=m.getWriter() %>写于 <%=m.getWriterDate() %></td>
</tr>
<tr class="bk">
<td width="145" class="bk"><img src="image/T_bottomleft.gif"></td>
<td background="image/T_bottombg.gif" width="460" class="bk"></td>
<td width="145" class="bk"><img src="image/T_bottomright.gif"></td>
</tr>
</table>
<%
revertDao rd=new revertDao();
ArrayList<revert> al=rd.select(id);
for(int i=0;i<al.size();i++)
{
%>
<br><br>
<table width="750" height="21" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="140"><img src="image/T_left.gif"></td>
<td width="554" background="image/Tt_bg.gif"></td>
<td width="56"><img src="image/T_right.gif"></td>
</tr>
</table>
<table width="750" border="1" cellpadding="0" cellspacing="0" style="border:solid; border-style:double;" bordercolor="#CCFFFF">
<tr height="100">
<td colspan="3"><span class="STYLE7"> <%=al.get(i).getContent() %></span></td>
</tr>
<tr>
<td colspan="3" class="STYLE7"> <%=al.get(i).getWriter() %>写于 <%=al.get(i).getWriterDate() %></td>
</tr>
<tr class="bk">
<td width="145" class="bk"><img src="image/T_bottomleft.gif"></td>
<td background="image/T_bottombg.gif" width="460" class="bk"></td>
<td width="145" class="bk"><img src="image/T_bottomright.gif"></td>
</tr>
</table>
<%} %>
</td></tr>
<tr><td>
<table width="750">
<tr><td>
<table width="90" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="12"><img src="image/titlemu_1.gif"></td>
<td align="center" width="63" background="image/titlemu_2.gif"><font size="2" face="宋体"> </font><font face="宋体"><span class="STYLE5">留言</span></font></td>
<td width="15"><img src="image/titlemu_3.gif"></td>
</tr>
</table>
</td></tr>
<tr><td>
<form method="post" action="doRevert.jsp" name="AddbbsForm" onSubmit="return check()">
<table width="750" border="1" cellpadding="0" cellspacing="0">
<tr>
<td height="32" colspan="2" align="center" style="background-image:url(image/title.gif);"><span style="font-family: "宋体""><b style="font-family:'新宋体'; font-size:16px;" >回复留言</b></span></td>
</tr>
<tr>
<td width="165" height="30" align="right"><span class="STYLE3">姓名:</span></td>
<td width="579"> <input type="hidden" value="<%=id %>" name="ids"><input type="text" name="NewName" style="width:200px;"><div style="color:red; display:inline"> *</div></td>
</tr>
<tr height="300">
<td height="213" align="right"><span class="STYLE3">内容:</span></td>
<td height="213"> <textarea name="NewContent" style="width:550px; height:185px;"></textarea></td>
</tr>
<tr>
<td> </td>
<td> <input type="submit" value="发 表"></td>
</tr>
</table>
</form>
</td></tr>
</table>
</td></tr>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -