clubSafeFileList.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="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. String fileIDs[];
  9. if(request.getMethod().equals("POST")){
  10. fileIDs = request.getParameterValues("fileID");
  11. csfe.safeFilesDel(fileIDs);
  12. out.print(OutPrint.prtCenter(csfe.getMessage(),"./clubSafeFileList.jsp",1));
  13. out.close();
  14. if(true)return;
  15. }
  16. %>
  17. <html xmlns="http://www.w3.org/1999/xhtml">
  18. <head>
  19. <title>社区管理</title>
  20. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  21. <link href="css.css" rel="stylesheet" type="text/css">
  22. <style type="text/css">
  23. <!--
  24. .style2 {color: #CC0000}
  25. -->
  26. </style>
  27. </head>
  28. <body>
  29. <script type="text/javascript" src="../GVscript/GVshowMenu.js"></script>
  30. <script language="javascript" type="text/javascript" src="../GVscript/GVtopCode.js"></script>
  31. <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#b6b6b6">
  32. <tr>
  33.   <td align="center"><strong>社区文件防盗链管理</strong></td>
  34. </tr>
  35. <tr>
  36. <td bgcolor="#FFFFFF"> <a href="clubSafeFileEdit.jsp?act=add"><span class="style2">手工添加防盗链文件点击这里&gt;&gt;&gt;</span></a></td>
  37. </tr>
  38. </table>
  39. <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#e6e6e6">
  40.   <form name="Gforms" method="post" action="">
  41.     <tr>
  42.       <td width="30" align="center"><strong>操作</strong></td>
  43.       <td width="*" align="center"><strong>文件防盗地址</strong></td>
  44.       <td width="110" align="center"><strong>添加时间</strong></td>
  45.       <td width="80" align="center"><strong>添加用户</strong></td>
  46.       <td width="100" align="center"><strong>用户IP</strong></td>
  47.       <td width="100" align="center"><strong>所属位置</strong></td>
  48.   <td width="30" align="center"><strong>打开</strong></td>
  49.       <td width="30" align="center"><strong>编辑</strong></td>
  50.  </tr>
  51. <% 
  52. int totalPage = 0;
  53. int iPage =  TypeChange.stringToInt(request.getParameter("iPage"));
  54. if(iPage<1){
  55. iPage = 1;
  56. }
  57. totalPage = csfc.safeFileCount();
  58. List list = csfc.safeFileList();
  59. %>
  60. <c:forEach var="f" items="<%=list%>">
  61. <tr align="center" bgcolor="#f6f6f6">
  62. <td bgcolor="#f6f6f6">
  63. <input name="fileID" type="checkbox" id="fileID" value="<club:files type="fileID" value="${f.fileID}"/>">
  64. </td>
  65. <td>
  66. <input name="fileNameAndPath" type="text" id="fileNameAndPath" style="width:100%; height:20px" 
  67. value="<club:files type="fileSafeUrl" value="${f.fileNameAndPath}" idIs="${f.fileID}" property="<%=com.gamvan.net.URL.getServerUrl(request)%>"/>">
  68. </td>
  69. <td>
  70. <club:files type="dateTime" value="${f.fileDateTime}"/>
  71. </td><td>
  72. <club:users type="userName" value="${f.fileByUser}" idIs="${f.fileByUserID}"/>
  73. </td><td>
  74. <club:users type="userIp" value="${f.fileByUserIp}"/>
  75. </td> <td>
  76. <club:files type="from" value="${f.fileFrom}"/>
  77. </td>
  78. <td>
  79. <club:files type="isOpen" value="${f.fileIsOpen}"/>
  80. </td>
  81. <td>
  82. <a href="clubSafeFileEdit.jsp?fileID=<club:files type="fileID" value="${f.fileID}"/>&act=edit">编辑</a>
  83. </td>
  84. </tr>
  85. </c:forEach>
  86. <tr bgcolor="#f6f6f6">
  87. <td align="center" bgcolor="#f6f6f6">
  88. <input name="chkall" type="checkbox" id="chkall" value="on" onclick="checkAll(this.form)"/> </td>
  89. <td height="36" bgcolor="#f6f6f6" colspan="10" ><input name="gvSubmit" type="submit" id="gvSubmit" value="删除记录"></td>
  90. </tr>
  91. </form>
  92. <tr bgcolor="#f6f6f6">
  93. <td height="30" colspan="8" bgcolor="#f6f6f6">
  94. <%=OutPrint.pageJump(totalPage,30, iPage, "clubUpFiles.jsp?")%></td>
  95. </tr>  </table>
  96. </body>
  97. </html>