clubRegAgree.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:3k
- <%@ page language="java" contentType="text/html;charset=UTF-8" %>
- <%@ include file="../GVinc/gvInclude.jsp" %>
- <%@ include file="clubMasterPass.jsp" %>
- <jsp:useBean id="ci" scope="page" class="com.gamvan.club.ClubInfo" />
- <jsp:useBean id="fo" scope="page" class="com.gamvan.tools.FileOperate" />
- <%
- //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;
- ispass = ae.txtsArray(gvcmgTxt,1,"|");
- if(!ispass){
- out.print(prtCenter("您无权进行此项操作!","",2));
- out.close();
- }
- //权限判断代码结束
- String clubRegAgree="";
- hm = null;
- hm = ci.clubInfoHashMap();
- clubRegAgree = ci.getClubInfo(hm,"clubRegAgree");
- hm = null;
- if(request.getMethod().equals("POST")){
- %>
- <jsp:useBean id="ce" scope="page" class="com.gamvan.club.ClubInfoEdit"/>
- <%
- clubRegAgree = request.getParameter("clubRegAgree");
- ce.setClubRegAgree(clubRegAgree);
- ce.updateRegAgree();
- //out.print(ce.getMessage());
- //==============生成文件===================
- String filePathAndName=request.getRealPath("") + "\club\GVfilesInc\gvRegAgree.jsp"; //绝对路径
- String fileContent=new String("");
- StringBuffer fileContent1=new StringBuffer("");
- fileContent1.append("<");
- fileContent1.append("%@ page language="java" contentType="text/html;charset=UTF-8" errorPage="err.jsp"");
- fileContent1.append("%");
- fileContent1.append(">");//
- fileContent = clubRegAgree;
- //fileContent = es.htmlEncoder(fileContent);
- fo.createFile(filePathAndName,fileContent1+fileContent,"UTF-8");
- //==============生成文件结束================
- out.print(prtCenter2(ce.getMessage(),"./clubRegAgree.jsp",1));
- 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">
- <style type="text/css">
- <!--
- .style1 {color: #999999}
- -->
- </style>
- </head>
- <body>
- <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 width="100" height="22" bgcolor="#f6f6f6"><strong>注册协议</strong><br>
- <br>
- 支持html编辑</td>
- <td>
- <%out.println(textArea2("clubRegAgree",70, 20, clubRegAgree));%>
- </td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" bgcolor="#f6f6f6"> </td>
- <td><input name="gvSubmit" type="submit" id="gvSubmit" value="确定更新"></td>
- </tr>
- </form>
- </table>
- </body>
- </html>