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.info.*"%>
  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. <script language="JavaScript">
  21. <!--
  22. //-->
  23. </script>
  24. <body bgcolor="#FFFFFF" topmargin='0' leftmargin='0'>
  25. <jsp:useBean id="privilege" scope="page" class="com.redmoon.forum.Privilege"/>
  26. <%
  27. if (!privilege.isMasterLogin(request))
  28. {
  29. out.print(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
  30. return;
  31. }
  32. String boardCode = ParamUtil.get(request, "boardCode");
  33. if (boardCode.equals("")) {
  34. out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request, "want") + "boardCode"));
  35. return;
  36. }
  37. InfoBoardDb sb = new InfoBoardDb();
  38. sb = (InfoBoardDb)sb.getObjectDb(boardCode);
  39. Leaf leaf = new Leaf();
  40. leaf = leaf.getLeaf(boardCode);
  41. String code = "sweet";
  42. PluginMgr pm = new PluginMgr();
  43. PluginUnit pu = pm.getPluginUnit(code);
  44. String op = ParamUtil.get(request, "op");
  45. if (op.equals("modify")) {
  46. InfoSkin sv = new InfoSkin();
  47. String boardRule = ParamUtil.get(request, "boardRule");
  48. sb.setBoardRule(boardRule);
  49. if (sb.save())
  50. out.print(StrUtil.Alert(sv.LoadString(request, "modifySucceed")));
  51. else
  52. out.print(StrUtil.Alert(sv.LoadString(request, "modifyFail")));
  53. }
  54. %>
  55. <table width='100%' cellpadding='0' cellspacing='0' >
  56.   <tr>
  57.     <td class="head">管理插件-<a href=manager.jsp><%=InfoSkin.LoadString(request, "name")%></a>的规则</td>
  58.   </tr>
  59. </table>
  60. <br>
  61. <table width="98%" height="227" border='0' align="center" cellpadding='0' cellspacing='0' class="frame_gray">
  62.   <tr> 
  63.     <td height=20 align="left" class="thead">&nbsp;</td>
  64.   </tr>
  65.   <tr> 
  66.     <td valign="top"><br>
  67.       <table width="90%"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFBFF" class="tableframe_gray">
  68.   <form action="?op=modify" method="post">
  69.       <tr align="center">
  70.         <td width="25%" height="22">版面编码</td>
  71.       <td width="75%" height="22" align="left"><%=leaf.getCode()%><input type="hidden" name="boardCode" value="<%=boardCode%>"></td>
  72.         </tr>
  73.       <tr align="center">
  74.         <td height="22">版面名称</td>
  75.       <td height="22" align="left"><%=leaf.getName()%></td>
  76.         </tr>
  77.       <tr align="center">
  78.         <td height="22">版面规则</td>
  79.         <td height="22" align="left"><textarea name="boardRule" cols="78" rows="20"><%=sb.getBoardRule()%></textarea></td>
  80.         </tr>
  81.       <tr align="center">
  82.         <td height="22" colspan="2"><input type="submit" name="Submit" value="提交">
  83. &nbsp;&nbsp;
  84.           <input type="reset" name="Submit" value="重置"></td>
  85.         </tr></form>
  86.     </table>
  87.       <br>
  88.     </td>
  89.   </tr>
  90. </table>
  91. </td> </tr>             
  92.       </table>                                        
  93.        </td>                                        
  94.      </tr>                                        
  95.  </table>                                        
  96.                                
  97. </body>                                        
  98. </html>