⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 upb.asp

📁 学生信息化管理系统,目前最完美的学生信息化管理系统,界面美观,操作方面,个性化设置.一套软件管理多所学校.
💻 ASP
字号:
<!--#include FILE="UPC.asp"--> 
<html> 
<head> 
<title>文件上传</title> 
<style type="text/css">
<!--
.STYLE3 {
	color: #CC0033;
	font-size: 18px;
}
-->
</style>
<script language=javascript>
function winclose()  {
   window.opener.location.reload();
   window.close();
  }
</script>
</head>

<body onmouseover="self.status='红笛软件[http://weekaa.com/red]';return true" onUnload="winclose();">


  <% 
dim upload,file,formName,formPath,L,M,N,StuNo
StuNo=session("StuNo")
set upload=new upload_5xSoft ''建立上传对象 
formPath=upload.form("filepath") ''在目录后加(/) 
if right(formPath,1)<>"/" then formPath=formPath&"/" 
for each formName in upload.file ''列出所有上传了的文件 
set file=upload.file(formName) ''生成一个文件对象 
if file.filesize<100 then 
response.write "<font size=2>请先选择你要上传的文件 [ <a href=# onclick=history.go(-1)>重新上传</a> ]</font>" 
response.end 
end if 
'if file.filesize>500*1024 then '设置上传文件大小为1M 
'response.write "<font size=2>文件大小超过了限制 1M [ <a href=# onclick=history.go(-1)>重新上传</a> ]</font>" 
'response.end 
'end if 
StuNo=StuNo&".jpg"
file.FileName=StuNo
if file.FileSize>0 then ''如果 FileSize > 0 说明有文件数据 
file.SaveAs Server.mappath(file.FileName) ''保存文件 
end if 
set file=nothing 
next 
set upload=nothing 
response.write "<BR><BR><BR><p align='center'> <span class='STYLE3'>照片上传成功</span></p>" 

%>

<script language="javascript">
<!--
function clock(){i=i-1
document.title="本窗口自动关闭倒计时:"+i;
if(i>0)setTimeout("clock();",300);
else self.close();}
var i=3
clock();
//-->
    </script>
</body> 
</html> 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -