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

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="ci" scope="page" class="com.gamvan.club.ClubInfo" />
  5. <jsp:useBean id="fo" scope="page" class="com.gamvan.tools.FileOperate" />
  6. <% 
  7. //response.setHeader("Pragma","No-cache");//HTTP 1.1
  8. //response.setHeader("Cache-Control","no-cache");//HTTP 1.0
  9. //response.setHeader("Expires","0");//防止被proxy
  10. //权限判断共享代码
  11. boolean ispass = false;
  12. ispass = ae.txtsArray(gvcmgTxt,1,"|");
  13. if(!ispass){
  14. out.print(prtCenter("您无权进行此项操作!","",2));
  15. out.close();
  16. }
  17. //权限判断代码结束
  18. String clubRegAgree="";
  19. hm = null;
  20. hm = ci.clubInfoHashMap();
  21. clubRegAgree = ci.getClubInfo(hm,"clubRegAgree");
  22. hm = null;
  23. if(request.getMethod().equals("POST")){
  24. %>
  25. <jsp:useBean id="ce" scope="page" class="com.gamvan.club.ClubInfoEdit"/>
  26. <%
  27. clubRegAgree = request.getParameter("clubRegAgree");
  28. ce.setClubRegAgree(clubRegAgree);
  29. ce.updateRegAgree();
  30. //out.print(ce.getMessage());
  31. //==============生成文件===================
  32. String filePathAndName=request.getRealPath("") + "\club\GVfilesInc\gvRegAgree.jsp";  //绝对路径
  33. String fileContent=new String("");
  34. StringBuffer fileContent1=new StringBuffer("");
  35. fileContent1.append("<");
  36. fileContent1.append("%@ page language="java" contentType="text/html;charset=UTF-8" errorPage="err.jsp"");
  37. fileContent1.append("%");
  38. fileContent1.append(">");//
  39. fileContent = clubRegAgree;
  40. //fileContent = es.htmlEncoder(fileContent);
  41. fo.createFile(filePathAndName,fileContent1+fileContent,"UTF-8");
  42. //==============生成文件结束================
  43. out.print(prtCenter2(ce.getMessage(),"./clubRegAgree.jsp",1));
  44. out.close();
  45. }
  46. %>
  47. <html>
  48. <head>
  49. <title>今晚在线-社区管理</title>
  50. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  51. <link href="css.css" rel="stylesheet" type="text/css">
  52. <style type="text/css">
  53. <!--
  54. .style1 {color: #999999}
  55. -->
  56. </style>
  57. </head>
  58. <body>
  59. <script language="javascript" src="../GVscript/GVtopCode.js"></script>
  60. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#e6e6e6">
  61.   <tr>
  62.     <td align="center"><strong>配置社区基本信息</strong></td>
  63.   </tr>
  64. </table>
  65. <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#e6e6e6">
  66.   <form name="Gforms" method="post" action="">  
  67.   <tr bgcolor="#f6f6f6">
  68.     <td width="100" height="22" bgcolor="#f6f6f6"><strong>注册协议</strong><br>
  69.       <br>
  70.       支持html编辑</td>
  71.     <td>
  72. <%out.println(textArea2("clubRegAgree",70, 20, clubRegAgree));%>
  73. </td>
  74.   </tr>
  75.    <tr bgcolor="#f6f6f6">
  76.     <td height="22" bgcolor="#f6f6f6">&nbsp;</td>
  77.     <td><input name="gvSubmit" type="submit" id="gvSubmit" value="确定更新"></td>
  78.   </tr>
  79.   </form>
  80. </table>
  81. </body>
  82. </html>