upLoad.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:3k
- <%@ page language="java" contentType="text/html;charset=UTF-8"
- session="true" errorPage="err.jsp" %>
- <%@ include file="../GVinc/gvInclude.jsp" %>
- <%@ include file="../GVinc/gvUserLogin.jsp" %>
- <%
- ccID = TypeChange.stringToInt(request.getParameter("ccID"));
- ccName = ParamUtils.getStringParameter(request,"ccName");
- /*
- * 整合至apache 发现如果不进行一次转码无法正确查询中文
- * 可能和apache默认编码有关,但是我在httpd.conf关闭了apache的默认编码依然不行
- * 所以只好手工作一次ISO8859-1到UTF8的编码了
- * 如果是直接用TOMCAT运行此程序则需要注销下面这句 keys=com.gamvan.tools.Gb.toUTF8(keys);
- */
- ccName=com.gamvan.tools.Gb.toUTF8(ccName);
- %>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title><%=clubTitle%></title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link href="../GVimgs/favicon.ico" rel="Bookmark">
- <link rel="icon" href="/GVimgs/favicon.ico" type="image/x-icon" />
- <link rel="shortcut icon" href="../GVimgs/favicon.ico" type="image/x-icon" />
- <link href="../GVinc/main.css" rel="stylesheet" type="text/css" />
- <script language="javascript" type="text/javascript" src="../GVscript/GVtopCode.js"></script>
- <script language="javascript" type="text/javascript" src="../GVscript/GVpost.js"></script>
- <style type="text/css">
- <!--
- body {
- margin-left: 0px;
- margin-top: 0px;
- margin-right: 0px;
- margin-bottom: 0px;
- }
- -->
- </style>
- <script language="JavaScript">
- <!--
- function checkExpert()
- {
- document.Gforms.action="<%=clubUrl%>/club/upLoad/fileUpLoaded.jsp?ccID=<%=ccID%>&ccName=<%=ccName%>";
- if (document.Gforms.expert.checked ==true)
- {
- //document.Gforms.action="http://<%=request.getServerName()%>:8088/upLoad/expertUpLoaded.jsp?ccID=<%=ccID%>&ccName=<%=ccName%>";
- openPop2("<%=clubUrl%>/club/upLoad/expertUpLoaded.jsp", 360, 80, 300, 300);
- document.Gforms.gvSubmit.value="正在提交...";
- document.Gforms.gvSubmit.disabled=true;
- document.Gforms.gvBack.disabled=true;
- document.Gforms.submit();
-
- }
- // else
- //{
- //document.Gforms.action="./fileUpLoaded.jsp?ccID=<%=ccID%>&ccName=<%=ccName%>";
-
- //document.Gforms.action="<%=clubUrl%>/club/upLoad/fileUpLoaded.jsp?ccID=<%=ccID%>&ccName=<%=ccName%>";
- //document.Gforms.submit();
- //}
- return false;
- }
- // -->
- </script>
- <body class="bg2" onLoad="javascript:checkExpert();">
- <FORM name="Gforms" onSubmit="postMsg();" METHOD="POST" ACTION="" ENCTYPE="multipart/form-data">
- <INPUT NAME="FILE1" TYPE="FILE" class="file" SIZE="20">
- <INPUT name="gvSubmit" type=submit class="btn" value="上载">
- <INPUT type="hidden" value="" name="gvBack">
- <input name="expert" type="checkbox" id="expert" value="on" onclick="checkExpert(this.form)"/>显示上传进度
- <select name="select">
- <option selected="selected">允许上传的附件类型</option>
- <%
- StringTokenizer st = new StringTokenizer(clubUpfileExt,"|");
- //String[] passext = new String[st.countTokens()];
- for(int i=0; st.hasMoreTokens(); i++){
- out.print("<option> "+ st.nextToken().trim() +"</option>");
- }
- %>
- </select>
- <input name="fileSavePath" id="fileSavePath" type="hidden" value="\upFiles\club\">
- <input name="fileTempPath" id="fileTempPath" type="hidden" value="\upFiles\temp\">
- <br />您的个人空间:<strong><%=(gvUserUpfile)%></strong> Kb
- 剩余:<span style="color:#bb0000"><%=(gvUserUpfile-gvUserUpfileSize)%></span> Kb
- </form>
- </body>
- </html>