📄 upload.asp
字号:
<!--#include file="../config.asp"-->
<!--#include file="../inc/check_login.asp"-->
<!--#include file="../inc/functions.asp"-->
<%
Application_ID = 4000300 '本功能编号,含义请查看编码表
if not CheckAuth(Session("Employee_ID"),Application_ID) then '验证权限
Server.Transfer "../err/un_authorized.htm"
response.end
end if
%>
<!--**************身份验证部分****************-->
<%
Document_ID = request("Document_ID")
if not IsNot(Document_ID,"n") then
response.write "客户文档编号丢失"
response.end
end if
'保存文档编号
response.Cookies("Document_ID") = Document_ID
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>附件上传</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK rel="stylesheet" type="text/css" href="../style.css">
</head>
<body>
<div id="msg" style="visibility :hidden;position:absolute;left:150;top:20;background:#CCCCCC;width:350;height:50;color:#000000" align="left">
</div>
<form action="upload_exe.asp" method="post" enctype="multipart/form-data" onSubmit="return ShowProgress();">
文件上传
<hr size=1>
请选择您要上传的文件:(请注意上传文件名不要包含“.”号)<br>
<input type="file" name="Attch" size="35">
<input type="submit" name="Submit" value="上传">
<hr size=1>
上传后文件名为:attch_<%= Document_ID %>.原扩展名
</form>
</body>
</html>
<script language="JavaScript" type="text/javascript">
var timeid = null;
var strprogress = '';
var str = '';
function chdprogress(){
strprogress += '>';
if(strprogress.length > 228){strprogress = '>';}
msg.innerHTML = str + strprogress + '<br><br>';
timeid = setTimeout("chdprogress()",50);
}
function ShowProgress(){
str = '<br> 正在上传递,请稍侯......<br> ';
strprogress = '';
msg.style.visibility = 'visible';
chdprogress();
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -