⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 replys_mgmt.jsp

📁 论坛元程序
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312"%>
<%@ page import="yy.SubjectMgmt,yy.ReplyMgmt,java.io.*,java.sql.*,java.util.*"%>
<jsp:useBean id="subjectmgmt" class="yy.SubjectMgmt" scope="page"/>
<jsp:useBean id="replymgmt" class="yy.ReplyMgmt" scope="page"/>

<html>
<head>
<title>replys management</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body>
<center>
<%
   String id = request.getParameter("id");
   //Subject subject = subjectmgmt.getOneSubject(Integer.parseInt(id));
%>
<!--先将帖子的内容显示出来-->
<form action="replys_mgmt.jsp" method=get>
<h3>帖子</h3>
<TABLE  width="80%" align="center" border=1 brcolor=99ccff cellspacing="0"
    cellpadding="0" bordercolordark="#000000" bordercolorlight="#CCCC99">
<%
   yy.Subject subject = subjectmgmt.getOneSubject(Integer.parseInt(id));
%>
<tr>
<td bgcolor="#CCCC99"><font size=2>主题:</font></td>
<td colspan=3><%=subject.getSubjectTitle()%></td>
</tr>
<tr>
<td bgcolor="#CCCC99"><font size=2>作者:</font></td>
<td><%=subject.getAuthor()%></td>
<td bgcolor="#CCCC99"><font size=2>发帖时间:</font></td>
<td><%=subject.getPublishTime()%></td>
</tr>
<tr>
<td bgcolor="#CCCC99"><font size=2>内容:</font></td>
<td colspan=3><%=subject.getSubjectContent()%></td>
</tr>
</table>
<input type=submit value="删除此帖" name="action">
<br><hr><br>
</form>
<!--显示回复信息-->
<h3>回复</h3>
<%
  Collection replys = replymgmt.getReplyBySubjectId(Integer.parseInt(id));
  Iterator it = replys.iterator();
  while(it.hasNext()){
    yy.Reply temp = (yy.Reply)it.next();
%>
   <TABLE  width="80%" align="center" border=1 brcolor=99ccff cellspacing="0"
    cellpadding="0" bordercolordark="#000000" bordercolorlight="#CCCC99">
   <tr>
   <td bgcolor="#CCCC99"><font size=2>主题:</font></td>
   <td colspan=3><%
                  if(temp.getReplyTitle()!=null)
                    out.println(temp.getReplyTitle());
                 %>
   </td>
   </tr>
   <tr>
   <td bgcolor="#CCCC99"><font size=2>作者:</font></td>
   <td><%=temp.getReplyAuthor()%></td>
   <td bgcolor="#CCCC99"><font size=2>发帖时间:</font></td>
   <td><%=temp.getReplyTime()%></td>
   </tr>
   <tr>
   <td bgcolor="#CCCC99"><font size=2>内容:</font></td>
   <td colspan=3><%=temp.getReplyContent()%></td>
   </tr>
   <tr>
   <%
   out.println("<td colspan=4><a href='/forum1/replys_mgmt_do.jsp?replyId="+temp.getReplyId()+"&id="+id+"'>删除</a></td>");
   %>
   </tr>
   </table>
   <hr>
<%}%>
</center>
</body>
</html>











⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -