clubStringReplace.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:4k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
Java
- <%@ page language="java" contentType="text/html;charset=UTF-8" %>
- <%@ include file="../GVinc/gvInclude.jsp" %>
- <%@ include file="clubMasterPass.jsp" %>
- <jsp:useBean id="csr" scope="page" class="com.gamvan.club.manage.ClubStringReplace" />
- <%
- response.setHeader("Pragma","No-cache");//HTTP 1.1
- response.setHeader("Cache-Control","no-cache");//HTTP 1.0
- response.setHeader("Expires","0");//防止被proxy
- //权限判断共享代码
- boolean ispass = false;
- //ArrayEdit ae = new ArrayEdit();
- //out.print(gvcmgTxt);
- ispass = ae.txtsArray(gvcmgTxt,8,"|");
- if(!ispass){
- out.print(prtCenter("您无权进行此项操作!","",2));
- out.close();
- if(true)return;
- }
- //权限判断代码结束
- String replaceTopic="", replaceContent="", replaceMsgTopic="", replaceMsgContent="";
- String replaceUserName="", replaceUserPen="";
- ClubStringReplaceItem csri = null;
- csri = (ClubStringReplaceItem)csr.replaceSelect();
- replaceTopic = csri.getReplaceTopic();
- replaceContent = csri.getReplaceContent();
- replaceMsgTopic = csri.getReplaceMsgTopic();
- replaceMsgContent = csri.getReplaceMsgContent();
- replaceUserName = csri.getReplaceUserName();
- replaceUserPen = csri.getReplaceUserPen();
- if(request.getMethod().equals("POST")){
- csr.setReplaceTopic(request.getParameter("replaceTopic"));
- csr.setReplaceContent(request.getParameter("replaceContent"));
- csr.setReplaceMsgTopic(request.getParameter("replaceMsgTopic"));
- csr.setReplaceMsgContent(request.getParameter("replaceMsgContent"));
- csr.setReplaceUserName(request.getParameter("replaceUserName"));
- csr.setReplaceUserPen(request.getParameter("replaceUserPen"));
- csr.replaceUpdate();
- out.print(prtCenter2(csr.getMessage(),"./clubStringReplace.jsp",1));
- if(true)return;
- out.close();
- }
- %>
- <html>
- <head>
- <title>今晚在线-社区管理</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link href="css.css" rel="stylesheet" type="text/css">
- </head>
- <body>
- <script language="javascript">
- function gv_textarea(formsName, num_c, num_r){
- document.write("<span onclick="javascript:document.Gforms."+ formsName + ".rows+= " + num_r + ";" title="点击向下拉长" style="cursor:hand">");
- document.write("<img src="../GVimgs/down.gif" border="0"></span>");
- document.write(" <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">");
- document.write("<img src="../GVimgs/up.gif" border="0"></span>");
- }
- </script>
- <script language="javascript" src="../GVscript/GVtopCode.js"></script>
- <table width="99%" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#e6e6e6">
- <tr>
- <td align="center"><strong>配置社区字符替换</strong></td>
- </tr>
- </table>
- <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#e6e6e6">
- <form name="Gforms" method="post" action="">
- <tr bgcolor="#f6f6f6">
- <td height="22" valign="top" bgcolor="#f6f6f6"><strong>用户名注册过滤</strong></td>
- <td>
- <%out.println(textArea2("replaceUserName",70, 2, replaceUserName));%>
- </td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td width="150" height="22" valign="top" bgcolor="#f6f6f6"><strong>发帖主题替换</strong></td>
- <td>
- <%out.println(textArea2("replaceTopic",70, 5, replaceTopic));%>
- </td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="1" valign="top" bgcolor="#f6f6f6"><strong>发帖内容替换</strong></td>
- <td>
- <%out.println(textArea2("replaceContent",70, 5, replaceContent));%>
- </td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" valign="top" bgcolor="#f6f6f6"><strong>短消息主题替换</strong></td>
- <td>
- <%out.println(textArea2("replaceMsgTopic",70, 5, replaceMsgTopic));%>
- </td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" valign="top" bgcolor="#f6f6f6"><strong>短消息内容替换</strong></td>
- <td>
- <%out.println(textArea2("replaceMsgContent",70, 5, replaceMsgContent));%>
- </td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" valign="top" bgcolor="#f6f6f6"><strong>签名档内容替换</strong></td>
- <td>
- <%out.println(textArea2("replaceUserPen",70, 5, replaceUserPen));%>
- </td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" valign="top" bgcolor="#f6f6f6"> </td>
- <td><input name="gvSubmit" type="submit" id="gvSubmit" value="提交"></td>
- </tr>
- </form>
- </table>
- </body>
- </html>