📄 xgsoft.asp
字号:
<style type="text/css">
<!--
td{font-size:12px}
a{color:#000000;text-decoration: none}
a:hover{text-decoration: underline}
.tx{height:16px;width:30px;border-color:black black #000000;border-top-width:0px;border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px; font-size: 12px; background-color: #eeeeee; color: #0000FF}
.button{font-size:12px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width: 0px; height: 16px; width: 80px; background-color: #eeeeee; cursor: hand}
.tx1{height:20px;font-size:12px;border:1px solid;border-color:black black #000000;color: #0000FF}
.BtBg {
border: 1px solid #FFCC00;
background-color: #FFFF66;
}
.shanchuang {
border: 1px solid #66CCFF;
}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<%
ID=request("ID")
%>
<table width="440" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><form name="form1" method="post" action="upsoft.asp?ID=<%=ID%>" enctype="multipart/form-data" >
<table width="440" height="180" border="0" cellpadding="0" cellspacing="0" bordercolorlight="#FFCC00" bordercolordark="#FFCC00" class="shanchuang">
<tr bgcolor="#FFCC00">
<td width="444" height="22" align="center" valign="middle" bgcolor="#E9EEFE"><strong>
<input type="hidden" name="act" value="upload">
<input type="hidden" name="upcount" value="1">
文件上传 </strong></td>
</tr>
<tr align="center" valign="middle">
<td width="444" height="27" align="left" bgcolor="#E9EEFE" id="upid"><div align="center">选择位置:
<br>
</div></td>
</tr>
<tr align="center" valign="middle">
<td height="28" align="left" bgcolor="#E9EEFE" id="upid"><div align="center">
<input type="file" name="file1" style="width:400" class="tx1" value="" size="20">
</div></td>
</tr>
<tr align="center" valign="middle" bgcolor="#eeeeee">
<td width="444" height="55" valign="top" bgcolor="#E9EEFE"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%"><div align="right">
<input name="B1" type="submit" onClick="check()" value="提交">
</div></td>
<td width="50%"><input type="button" name="Submit" value="关闭" onclick="window.close();"></td>
</tr>
</table></td>
</tr>
</table>
</form></td>
</tr>
</table>
<script language="vbscript">
sub check()
dim str,path,fileclass,flag
path=trim(document.all.file1.value)
if len(path)<8 then
alert("请输入有效的上传路径!")
window.event.returnvalue=false
document.all.file1.focus()
exit sub
end if
str=lcase(right(path,3))
if (str="asp") or (str="exe") then
alert("上传文件类型不正确!")
window.event.returnvalue=false
document.all.file1.focus()
exit sub
end if
end sub
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -