admin_postings.jsp
上传用户:toby834
上传日期:2013-10-21
资源大小:2613k
文件大小:6k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html;charset=GBK"%>
  2. <%@ include file="INC/const.jsp"%>
  3. <%@ page import = "java.util.Vector,
  4. net.acai.forum.admin.*"%>
  5. <%
  6. stats=forumName+"论坛帖子管理";
  7. forumID=ParamUtil.getInt(request,"forumID",0);
  8. String errMsg=""; 
  9. %>
  10. <%@ include file="INC/theme.jsp"%>
  11. <%
  12. out.println(headLine(1,forumName,forumLogo,"",1,stats));
  13. %>
  14. <%
  15. if(foundUser){
  16. try{
  17. ForumMSGAdmin forumMSGAdmin=new ForumMSGAdmin(request,response);
  18. int rootID=ParamUtil.getInt(request,"rootID");
  19. int announceID=ParamUtil.getInt(request,"announceID");
  20. String action=ParamUtil.getString(request,"action");
  21. String tempString=ParamUtil.getString(request,"checked");
  22. if(action.equals("move")&&tempString==null)
  23. {
  24. %>
  25. <table cellpadding=0 cellspacing=0 border=0 width="<%=tableWidth%>" bgcolor=<%=tableBackColor%> align=center>
  26.                 <tr>
  27.                     <td>
  28.                     <table cellpadding=6 cellspacing=1 border=0 width=100%>
  29.                         <tr>
  30.                         <td bgcolor=<%=tableTitleColor%> valign=middle align=center colspan=2>
  31.                         <form action="admin_postings.jsp" method="post">
  32.                         <input type=hidden name="action" value="move">
  33.                         <input type=hidden name="checked" value="yes">
  34.                         <input type=hidden name="forumID" value="<%=forumID%>">
  35.                         <input type=hidden name="rootID" value="<%=rootID%>">
  36.                         <input type=hidden name="announceID" value="<%=announceID%>">
  37.                         <b>移动主题</b></td></tr>
  38.                                     <tr>
  39.                                     <td bgcolor=<%=tableBodyColor%> valign=middle>
  40.                                     <b>移动选项</td>
  41.                                     <td bgcolor=<%=tableBodyColor%> valign=middle>
  42.                                     <!--<input name="leavemessage" type="radio" value="yes"> 移动并保留一个已经锁定的主题在原论坛<br>--><input name="leavemessage" type="radio" value="no" checked> 移动并将此主题从原论坛中删除
  43.                                     </td>
  44.                                     </tr>
  45.                             <tr>
  46.                         <td bgcolor=<%=tableBodyColor%> valign=top><b>移动到:</b></td>
  47.                         <td bgcolor=<%=tableBodyColor%> valign=top>
  48. <select name="newForumID" size="1">
  49. <option value="">选择一个论坛</option>
  50. <%@include file="INC/forumList.jsp"%>
  51.           </select>
  52. </td>
  53.                         </tr>
  54.                     <tr>
  55.                 <td bgcolor=<%=tableTitleColor%> valign=middle colspan=2 align=center><input type=submit name="submit" value="提 交"></td></tr></form></table></td></tr></table>
  56.             </table>
  57.             </td></tr>
  58.             </table>
  59. <%
  60. }
  61. else if(action.equals("copy")&&tempString==null){
  62. %>
  63.             <table cellpadding=0 cellspacing=0 border=0 width="<%=tableWidth%>" bgcolor=<%=tableBackColor%> align=center>
  64.                 <tr>
  65.                     <td>
  66.                     <table cellpadding=6 cellspacing=1 border=0 width=100%>
  67.                         <tr>
  68.                         <td bgcolor=<%=tableTitleColor%> valign=middle align=center colspan=2>
  69.                         <form action="admin_postings.jsp" method="post">
  70.                         <input type=hidden name="action" value="copy">
  71.                         <input type=hidden name="checked" value="yes">
  72.                         <input type=hidden name="forumID" value="<%=forumID%>">
  73.                         <input type=hidden name="rootID" value="<%=rootID%>">
  74.                         <input type=hidden name="announceID" value="<%=announceID%>">
  75.                         <b>复制帖子</b></td></tr>
  76.                                     <tr>
  77.                                     <td bgcolor=<%=tableBodyColor%> valign=middle>
  78.                                     <b>操作说明</td>
  79.                                     <td bgcolor=<%=tableBodyColor%> valign=middle>
  80. 帖子将复制到别的论坛,成为新的帖子,并保留在原来论坛
  81.                                     </td>
  82.                                     </tr>
  83.                             <tr>
  84.                         <td bgcolor=<%=tableBodyColor%> valign=top><b>移动到:</b></td>
  85.                         <td bgcolor=<%=tableBodyColor%> valign=top>
  86. <select name="newForumID" size="1">
  87. <option value="">选择一个论坛</option>
  88. <%@include file="INC/forumList.jsp"%>      
  89.           </select>
  90. </td>
  91.                         </tr>
  92.                     <tr>
  93.                 <td bgcolor=<%=tableTitleColor%> valign=middle colspan=2 align=center><input type=submit name="submit" value="提 交"></td></tr></form></table></td></tr></table>
  94.             </table>
  95.             </td></tr>
  96.             </table>
  97. <%
  98. }
  99. else{
  100. %>
  101.     <table cellpadding=0 cellspacing=0 border=0 width=<%=tableWidth%> bgcolor=<%=tableBackColor%> align=center>
  102.         <tr>
  103.             <td>
  104.                 <table cellpadding=3 cellspacing=1 border=0 width=100%>
  105.     <tr align="center"> 
  106.       <td width="100%" bgcolor=<%=tableTitleColor%>>成功:帖子操作</td>
  107.     </tr>
  108.     <tr> 
  109.       <td width="100%" bgcolor=<%=tableBodyColor%>><li>帖子操作成功。<li>您的操作信息已经记录在案。<br>
  110.       </td>
  111.     </tr>
  112.     <tr align="center"> 
  113.       <td width="100%" bgcolor=<%=tableTitleColor%>>
  114. <a href="list.jsp?forumID=<%=forumID%>"> << 返回论坛</a>
  115.       </td>
  116.     </tr>  
  117.     </table>   </td></tr></table>
  118. <%
  119. }
  120. }
  121. catch(Exception e){
  122. e.printStackTrace();
  123.  errMsg=e.getMessage();
  124. %>
  125. <%@include file="INC/error.jsp"%>
  126. <%
  127. }
  128. }
  129. else{
  130.  errMsg="请您登陆!";
  131. %>
  132. <%@include file="INC/error.jsp"%>
  133. <%}%>
  134. <%@include file="foot.jsp"%>