clubSafeFileEdit.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="csfc" scope="request" class="com.gamvan.club.file.ClubSafeFileCollection"/>
  5. <jsp:useBean id="csfe" scope="request" class="com.gamvan.club.file.ClubSafeFileEdit"/>
  6. <% 
  7. //权限判断共享代码
  8. int fileID = TypeChange.stringToInt(request.getParameter("fileID"));
  9. String fileNameAndPath = "";
  10. boolean fileIsOpen = true;
  11. String fileIDs[];
  12. String act = TypeChange.nullOfString(request.getParameter("act"));
  13. if(act.equals("")){
  14. act = "add";
  15. }
  16. if(request.getMethod().equals("POST")){
  17. //fileIDs = request.getParameterValues("fileID");
  18. csfe.setFileID(fileID);
  19. csfe.setFileNameAndPath(request.getParameter("fileNameAndPath"));
  20. csfe.setFileByUser(gvcmName);
  21. csfe.setFileByUserID(0);
  22. csfe.setFileFrom("社区后台");
  23. csfe.setFileByUserIp(request.getRemoteAddr());
  24. csfe.setFileIsOpen(TypeChange.stringToBoolean(request.getParameter("fileIsOpen")));
  25. csfe.safeFileDo(act);
  26. out.print(OutPrint.prtCenter(csfe.getMessage(),"./clubSafeFileEdit.jsp?fileID="+fileID+"&act="+act+"",1));
  27. out.close();
  28. if(true)return;
  29. }
  30. if(fileID>0){
  31. ClubSafeFileItem csfi = null;
  32. csfc.setFileID(fileID);
  33. csfi = (ClubSafeFileItem)csfc.safeFileInfo();
  34. if(csfi!=null){
  35. fileNameAndPath = csfi.getFileNameAndPath();
  36. fileIsOpen = csfi.getFileIsOpen();
  37. fileNameAndPath = com.gamvan.net.URL.urlDecoder(fileNameAndPath,"UTF-8");
  38. }
  39. }
  40. %>
  41. <html xmlns="http://www.w3.org/1999/xhtml">
  42. <head>
  43. <title>社区管理</title>
  44. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  45. <link href="css.css" rel="stylesheet" type="text/css">
  46. <style type="text/css">
  47. <!--
  48. .style2 {color: #CC0000}
  49. -->
  50. </style>
  51. </head>
  52. <body>
  53. <script type="text/javascript" src="../GVscript/GVshowMenu.js"></script>
  54. <script language="javascript" type="text/javascript" src="../GVscript/GVtopCode.js"></script>
  55. <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#b6b6b6">
  56. <tr>
  57.   <td align="center"><strong>社区文件防盗链管理</strong></td>
  58. </tr>
  59. <tr>
  60. <td bgcolor="#FFFFFF"> <a href="clubSafeFileList.jsp">点击这里返回文件列表&gt;&gt;&gt;</a></td>
  61. </tr>
  62. </table>
  63. <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#e6e6e6">
  64. <form name="Gforms" method="post" action="">
  65. <tr>
  66. <td width="212">请输入文件真实地址:</td>
  67. <td width="768">
  68. <input name="fileNameAndPath" type="text" id="fileNameAndPath" style="width:100%; height:20px" value="<%=fileNameAndPath%>">
  69. </td>
  70. </tr>
  71. <tr bgcolor="#f6f6f6">
  72. <td bgcolor="#f6f6f6">是否打开文件链接: </td>
  73. <td bgcolor="#f6f6f6" colspan="5" >
  74. <input name="fileIsOpen" type="radio" value="true" <%if(fileIsOpen){out.print("checked");}%>>打开
  75. &nbsp;&nbsp;&nbsp;&nbsp;
  76. <input type="radio" name="fileIsOpen" value="false" <%if(!fileIsOpen){out.print("checked");}%>>关闭</td>
  77. </tr>
  78. <tr bgcolor="#f6f6f6">
  79.   <td align="center" bgcolor="#f6f6f6">&nbsp;</td>
  80.   <td bgcolor="#f6f6f6" colspan="5" ><input name="gvSubmit" type="submit" id="gvSubmit2" value="确定提交">    </td>
  81. </tr>
  82. </form>
  83. </table>
  84. </body>
  85. </html>