clubSafeFileEdit.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:3k
源码类别:
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="csfc" scope="request" class="com.gamvan.club.file.ClubSafeFileCollection"/>
- <jsp:useBean id="csfe" scope="request" class="com.gamvan.club.file.ClubSafeFileEdit"/>
- <%
- //权限判断共享代码
- int fileID = TypeChange.stringToInt(request.getParameter("fileID"));
- String fileNameAndPath = "";
- boolean fileIsOpen = true;
- String fileIDs[];
- String act = TypeChange.nullOfString(request.getParameter("act"));
- if(act.equals("")){
- act = "add";
- }
- if(request.getMethod().equals("POST")){
- //fileIDs = request.getParameterValues("fileID");
- csfe.setFileID(fileID);
- csfe.setFileNameAndPath(request.getParameter("fileNameAndPath"));
- csfe.setFileByUser(gvcmName);
- csfe.setFileByUserID(0);
- csfe.setFileFrom("社区后台");
- csfe.setFileByUserIp(request.getRemoteAddr());
- csfe.setFileIsOpen(TypeChange.stringToBoolean(request.getParameter("fileIsOpen")));
- csfe.safeFileDo(act);
- out.print(OutPrint.prtCenter(csfe.getMessage(),"./clubSafeFileEdit.jsp?fileID="+fileID+"&act="+act+"",1));
- out.close();
- if(true)return;
- }
- if(fileID>0){
- ClubSafeFileItem csfi = null;
- csfc.setFileID(fileID);
- csfi = (ClubSafeFileItem)csfc.safeFileInfo();
- if(csfi!=null){
- fileNameAndPath = csfi.getFileNameAndPath();
- fileIsOpen = csfi.getFileIsOpen();
- fileNameAndPath = com.gamvan.net.URL.urlDecoder(fileNameAndPath,"UTF-8");
- }
- }
- %>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <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">
- <!--
- .style2 {color: #CC0000}
- -->
- </style>
- </head>
- <body>
- <script type="text/javascript" src="../GVscript/GVshowMenu.js"></script>
- <script language="javascript" type="text/javascript" src="../GVscript/GVtopCode.js"></script>
- <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#b6b6b6">
- <tr>
- <td align="center"><strong>社区文件防盗链管理</strong></td>
- </tr>
- <tr>
- <td bgcolor="#FFFFFF"> <a href="clubSafeFileList.jsp">点击这里返回文件列表>>></a></td>
- </tr>
- </table>
- <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#e6e6e6">
- <form name="Gforms" method="post" action="">
- <tr>
- <td width="212">请输入文件真实地址:</td>
- <td width="768">
- <input name="fileNameAndPath" type="text" id="fileNameAndPath" style="width:100%; height:20px" value="<%=fileNameAndPath%>">
- </td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td bgcolor="#f6f6f6">是否打开文件链接: </td>
- <td bgcolor="#f6f6f6" colspan="5" >
- <input name="fileIsOpen" type="radio" value="true" <%if(fileIsOpen){out.print("checked");}%>>打开
-
- <input type="radio" name="fileIsOpen" value="false" <%if(!fileIsOpen){out.print("checked");}%>>关闭</td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td align="center" bgcolor="#f6f6f6"> </td>
- <td bgcolor="#f6f6f6" colspan="5" ><input name="gvSubmit" type="submit" id="gvSubmit2" value="确定提交"> </td>
- </tr>
- </form>
- </table>
- </body>
- </html>