clubStringReplace.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:4k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

Java

  1. <%@ page language="java" contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="../GVinc/gvInclude.jsp" %>
  3. <%@ include file="clubMasterPass.jsp" %>
  4. <jsp:useBean id="csr" scope="page" class="com.gamvan.club.manage.ClubStringReplace" />
  5. <% 
  6. response.setHeader("Pragma","No-cache");//HTTP 1.1
  7. response.setHeader("Cache-Control","no-cache");//HTTP 1.0
  8. response.setHeader("Expires","0");//防止被proxy
  9. //权限判断共享代码
  10. boolean ispass = false;
  11. //ArrayEdit ae = new ArrayEdit();
  12. //out.print(gvcmgTxt);
  13. ispass = ae.txtsArray(gvcmgTxt,8,"|");
  14. if(!ispass){
  15. out.print(prtCenter("您无权进行此项操作!","",2));
  16. out.close();
  17. if(true)return;
  18. }
  19. //权限判断代码结束
  20. String replaceTopic="", replaceContent="", replaceMsgTopic="", replaceMsgContent="";
  21. String replaceUserName="", replaceUserPen="";
  22. ClubStringReplaceItem  csri = null;
  23. csri = (ClubStringReplaceItem)csr.replaceSelect();
  24. replaceTopic = csri.getReplaceTopic();
  25. replaceContent = csri.getReplaceContent();
  26. replaceMsgTopic = csri.getReplaceMsgTopic();
  27. replaceMsgContent = csri.getReplaceMsgContent();
  28. replaceUserName = csri.getReplaceUserName();
  29. replaceUserPen = csri.getReplaceUserPen();
  30. if(request.getMethod().equals("POST")){
  31. csr.setReplaceTopic(request.getParameter("replaceTopic"));
  32. csr.setReplaceContent(request.getParameter("replaceContent"));
  33. csr.setReplaceMsgTopic(request.getParameter("replaceMsgTopic"));
  34. csr.setReplaceMsgContent(request.getParameter("replaceMsgContent"));
  35. csr.setReplaceUserName(request.getParameter("replaceUserName"));
  36. csr.setReplaceUserPen(request.getParameter("replaceUserPen"));
  37. csr.replaceUpdate();
  38. out.print(prtCenter2(csr.getMessage(),"./clubStringReplace.jsp",1));
  39. if(true)return;
  40. out.close();
  41. }
  42. %>
  43. <html>
  44. <head>
  45. <title>今晚在线-社区管理</title>
  46. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  47. <link href="css.css" rel="stylesheet" type="text/css">
  48. </head>
  49. <body>
  50. <script language="javascript">
  51. function gv_textarea(formsName, num_c, num_r){ 
  52. document.write("<span onclick="javascript:document.Gforms."+ formsName + ".rows+= " + num_r + ";" title="点击向下拉长" style="cursor:hand">");
  53. document.write("<img src="../GVimgs/down.gif" border="0"></span>");
  54. document.write("&nbsp;&nbsp;<span onclick="javascript:if(document.Gforms."+ formsName + ".rows != "+ num_r + "){document.Gforms."+ formsName + ".rows-="+ num_r +";}else{document.Gforms."+ formsName + ".rows="+ num_r +";}" title="点击向上回缩" style="cursor:hand">");
  55. document.write("<img src="../GVimgs/up.gif" border="0"></span>");
  56. }
  57. </script>
  58. <script language="javascript" src="../GVscript/GVtopCode.js"></script>
  59. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#e6e6e6">
  60.   <tr>
  61.     <td align="center"><strong>配置社区字符替换</strong></td>
  62.   </tr>
  63. </table>
  64. <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#e6e6e6">
  65.   <form name="Gforms" method="post" action="">
  66. <tr bgcolor="#f6f6f6">
  67.     <td height="22" valign="top" bgcolor="#f6f6f6"><strong>用户名注册过滤</strong></td>
  68.     <td>
  69. <%out.println(textArea2("replaceUserName",70, 2, replaceUserName));%>
  70. </td>
  71.   </tr>
  72.   <tr bgcolor="#f6f6f6">
  73.     <td width="150" height="22" valign="top" bgcolor="#f6f6f6"><strong>发帖主题替换</strong></td>
  74.     <td>
  75. <%out.println(textArea2("replaceTopic",70, 5, replaceTopic));%>
  76. </td>
  77.   </tr>
  78.   <tr bgcolor="#f6f6f6">
  79.     <td height="1" valign="top" bgcolor="#f6f6f6"><strong>发帖内容替换</strong></td>
  80.     <td>
  81. <%out.println(textArea2("replaceContent",70, 5, replaceContent));%>
  82. </td>
  83.   </tr>
  84.   <tr bgcolor="#f6f6f6">
  85.     <td height="22" valign="top" bgcolor="#f6f6f6"><strong>短消息主题替换</strong></td>
  86.     <td>
  87. <%out.println(textArea2("replaceMsgTopic",70, 5, replaceMsgTopic));%>
  88. </td>
  89.   </tr>
  90.   <tr bgcolor="#f6f6f6">
  91.     <td height="22" valign="top" bgcolor="#f6f6f6"><strong>短消息内容替换</strong></td>
  92.     <td>
  93. <%out.println(textArea2("replaceMsgContent",70, 5, replaceMsgContent));%>
  94. </td>
  95.   </tr>
  96.   <tr bgcolor="#f6f6f6">
  97.     <td height="22" valign="top" bgcolor="#f6f6f6"><strong>签名档内容替换</strong></td>
  98.     <td>
  99. <%out.println(textArea2("replaceUserPen",70, 5, replaceUserPen));%>
  100. </td>
  101.   </tr>
  102.    <tr bgcolor="#f6f6f6">
  103.     <td height="22" valign="top" bgcolor="#f6f6f6">&nbsp;</td>
  104.     <td><input name="gvSubmit" type="submit" id="gvSubmit" value="提交"></td>
  105.   </tr>
  106.   </form>
  107. </table>
  108. </body>
  109. </html>