forum_m.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:6k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8" %>
  2. <%@ include file="../inc/inc.jsp" %>
  3. <%@ page import="cn.js.fan.web.*"%>
  4. <%@ page import="cn.js.fan.util.*"%>
  5. <%@ page import="com.redmoon.forum.*"%>
  6. <%@ page import="cn.js.fan.module.pvg.*" %>
  7. <%@ taglib uri="/WEB-INF/tlds/LabelTag.tld" prefix="lt" %>
  8. <jsp:useBean id="StrUtil" scope="page" class="cn.js.fan.util.StrUtil"/>
  9. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  10. <html><head>
  11. <meta http-equiv="pragma" content="no-cache">
  12. <meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
  13. <meta http-equiv="expires" content="wed, 26 Feb 1997 08:21:57 GMT">
  14. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  15. <title><lt:Label res="res.label.forum.admin.forum_m" key="filter_info"/></title>
  16. <link rel="stylesheet" href="../../common.css">
  17. <LINK href="default.css" type=text/css rel=stylesheet>
  18. <body bgcolor="#FFFFFF" topmargin='0' leftmargin='0'>
  19. <%
  20. ForumDb fd = new ForumDb();
  21. fd = fd.getForumDb();
  22. String op = ParamUtil.get(request, "op");
  23. if (op.equals("setNotice")) {
  24. String ids = ParamUtil.get(request, "notices");
  25. fd.setNotices(ids);
  26. if (fd.save())
  27. out.print(StrUtil.Alert(SkinUtil.LoadString(request, "info_op_success")));
  28. else
  29. out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request, "info_op_fail")));
  30. }
  31. if (op.equals("setFilterName")) {
  32. String filterName = ParamUtil.get(request, "filterName");
  33. fd.setFilterUserName(filterName);
  34. if (fd.save())
  35. out.print(StrUtil.Alert(SkinUtil.LoadString(request, "info_op_success")));
  36. else
  37. out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request, "info_op_fail")));
  38. }
  39. if (op.equals("setFilterMsg")) {
  40. String filterMsg = ParamUtil.get(request, "filterMsg");
  41. fd.setFilterMsg(filterMsg);
  42. if (fd.save())
  43. out.print(StrUtil.Alert(SkinUtil.LoadString(request, "info_op_success")));
  44. else
  45. out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request, "info_op_fail")));
  46. }
  47. fd = ForumDb.getInstance();
  48. %>
  49. <table width='100%' cellpadding='0' cellspacing='0' >
  50.   <tr>
  51.     <td class="head"><lt:Label res="res.label.forum.admin.forum_m" key="security_manage"/></td>
  52.   </tr>
  53. </table>
  54. <jsp:useBean id="privilege" scope="page" class="com.redmoon.forum.Privilege"/>
  55. <%
  56. if (!privilege.isMasterLogin(request))
  57. {
  58. out.print(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
  59. return;
  60. }%>
  61. <br>
  62. <TABLE class="frame_gray" cellSpacing=0 cellPadding=0 width="95%" align=center>
  63.   <TBODY>
  64.     <TR>
  65.       <TD valign="top" bgcolor="#FFFBFF" class="thead"><lt:Label res="res.label.forum.admin.forum_m" key="filter_info"/></TD>
  66.     </TR>
  67.     <TR>
  68.       <TD height=200 valign="top" bgcolor="#FFFBFF"><br>
  69.         <table width="60%" border='0' align="center" cellpadding='0' cellspacing='0' class="tableframe_gray">
  70.           
  71.           <tr>
  72.             <td valign="top"><table width="100%" border='0' cellspacing='0' cellpadding='0'>
  73.                 <tr >
  74.                   <td width="100%" class="stable">        
  75.                 <tr>
  76.                   <FORM METHOD=POST ACTION="?op=setFilterName" name="form2">
  77.                     <td height="23" colspan=3 align="center" class="stable"><table width="100%">
  78.                         <tr>
  79.                           <td height="22"><lt:Label res="res.label.forum.admin.forum_m" key="filter_user"/>                    </td>
  80.                         </tr>
  81.                         <tr>
  82.                           <td height="22"><textarea name="filterName" cols="50" rows="3" style='border:1pt solid #636563;font-size:9pt'><%=fd.getFilterUserName()%></textarea></td>
  83.                         </tr>
  84.                         <tr>
  85.                           <td height="22" align="center"><input name="submit4" type="submit" value="<lt:Label key="ok"/>"></td>
  86.                         </tr>
  87.                     </table></td>
  88.                   </FORM>
  89.                 </tr>
  90.             </TABLE></td>
  91.           </tr>
  92.         </table>
  93.         <table width="98%" border='0' align="center" cellpadding='0' cellspacing='0'>
  94.           <tr>
  95.             <td height=20 align="left">&nbsp;</td>
  96.           </tr>
  97.           <tr>
  98.             <td valign="top"><table width="60%" border='0' align="center" cellpadding='0' cellspacing='0' class="tableframe_gray">
  99.                 <tr >
  100.                   <td width="100%" class="stable">        
  101.                 <tr>
  102.                       <FORM METHOD=POST ACTION="?op=setFilterMsg" name="form3">
  103.                         <td height="23" colspan=3 align="center" class="stable"><table width="100%">
  104.                         <tr>
  105.                           <td width="18%" height="22"><lt:Label res="res.label.forum.admin.forum_m" key="filter_keywords"/> </td>
  106.                         </tr>
  107.                         <tr>
  108.                           <td height="22"><textarea name="filterMsg" cols="50" rows="3" id="filterMsg" style='border:1pt solid #636563;font-size:9pt'><%=fd.getFilterMsg()%></textarea></td>
  109.                         </tr>
  110.                         <tr>
  111.                           <td height="22" align="center"><input name="submit3" type="submit" value="<lt:Label key="ok"/>"></td>
  112.                         </tr>
  113.                     </table></td>
  114.                     </FORM>
  115.                 </tr>
  116.               </TABLE>
  117.             <br>
  118.             <br>
  119.             <br></td>
  120.           </tr>
  121.       </table></TD></TR>
  122.   </TBODY>
  123. </TABLE>
  124. <br>
  125. </td>
  126. </tr>
  127. </table>
  128. </td>
  129. </tr>
  130. </table>
  131. </body>  
  132. <script>
  133. function form5_onsubmit() {
  134. form5.reason.value = getHtml();
  135. if (form5.reason.value.length>3000) {
  136. alert("<lt:Label res="res.label.forum.admin.forum_m" key="too_long"/>" + 3000);
  137. return false;
  138. }
  139. }
  140. </script>                                      
  141. </html>                            
  142.