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

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8" %>
  2. <%@ include file="../../../inc/inc.jsp" %>
  3. <%@ page import="java.util.*"%>
  4. <%@ page import="cn.js.fan.web.SkinUtil"%>
  5. <%@ page import="cn.js.fan.web.Global"%>
  6. <%@ page import="cn.js.fan.db.Conn"%>
  7. <%@ page import="cn.js.fan.util.*"%>
  8. <%@ page import="com.redmoon.forum.plugin.activity.*"%>
  9. <%@ page import="com.redmoon.forum.plugin.*"%>
  10. <%@ page import="com.redmoon.forum.*"%>
  11. <%@ page import="com.redmoon.forum.Leaf"%>
  12. <jsp:useBean id="StrUtil" scope="page" class="cn.js.fan.util.StrUtil"/>
  13. <html><head>
  14. <meta http-equiv="pragma" content="no-cache">
  15. <link rel="stylesheet" href="../../../common.css">
  16. <LINK href="../../../admin/default.css" type=text/css rel=stylesheet>
  17. <meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
  18. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  19. <title>版块规则管理</title>
  20. <body bgcolor="#FFFFFF" topmargin='0' leftmargin='0'>
  21. <jsp:useBean id="privilege" scope="page" class="com.redmoon.forum.Privilege"/>
  22. <%
  23. if (!privilege.isMasterLogin(request))
  24. {
  25. out.print(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
  26. return;
  27. }
  28. String boardCode = ParamUtil.get(request, "boardCode");
  29. if (boardCode.equals("")) {
  30. out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request, "want") + "boardCode"));
  31. return;
  32. }
  33. String code = ParamUtil.get(request, "code");
  34. BoardDb sb = new BoardDb();
  35. sb = sb.getBoardDb(code, boardCode);
  36. Leaf leaf = new Leaf();
  37. leaf = leaf.getLeaf(boardCode);
  38. PluginMgr pm = new PluginMgr();
  39. PluginUnit pu = pm.getPluginUnit(code);
  40. String op = ParamUtil.get(request, "op");
  41. if (op.equals("modify")) {
  42. String boardRule = ParamUtil.get(request, "boardRule");
  43. sb.setBoardRule(boardRule);
  44. if (sb.save())
  45. out.print(StrUtil.Alert(ActivitySkin.LoadString(request, "modifySucceed")));
  46. else
  47. out.print(StrUtil.Alert(ActivitySkin.LoadString(request, "modifyFail")));
  48. }
  49. %>
  50. <table width='100%' cellpadding='0' cellspacing='0' >
  51.   <tr>
  52.     <td class="head">管理插件-<a href=manager.jsp><%=ActivitySkin.LoadString(request, "name")%></a>的规则</td>
  53.   </tr>
  54. </table>
  55. <br>
  56. <table width="98%" height="227" border='0' align="center" cellpadding='0' cellspacing='0' class="frame_gray">
  57.   <tr> 
  58.     <td height=20 align="left" class="thead">&nbsp;</td>
  59.   </tr>
  60.   <tr> 
  61.     <td valign="top"><br>
  62.       <table width="90%"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFBFF" class="tableframe_gray">
  63.   <form action="?op=modify" method="post">
  64.       <tr align="center">
  65.         <td width="25%" height="22">版面编码</td>
  66.       <td width="75%" height="22" align="left"><%=leaf.getCode()%>
  67.   <input type="hidden" name="boardCode" value="<%=boardCode%>">
  68.   <input type="hidden" name="code" value="<%=code%>">
  69.   </td>
  70.         </tr>
  71.       <tr align="center">
  72.         <td height="22">版面名称</td>
  73.       <td height="22" align="left"><%=leaf.getName()%></td>
  74.         </tr>
  75.       <tr align="center">
  76.         <td height="22">版面规则</td>
  77.         <td height="22" align="left"><textarea name="boardRule" cols="78" rows="20"><%=sb.getBoardRule()%></textarea></td>
  78.         </tr>
  79.       <tr align="center">
  80.         <td height="22" colspan="2"><input type="submit" name="Submit" value="提交">
  81. &nbsp;&nbsp;
  82.           <input type="reset" name="Submit" value="重置"></td>
  83.         </tr></form>
  84.     </table>
  85.       <br>
  86.     </td>
  87.   </tr>
  88. </table>
  89. </td> </tr>             
  90.       </table>                                        
  91.        </td>                                        
  92.      </tr>                                        
  93.  </table>                                        
  94.                                
  95. </body>                                        
  96. </html>