📄 this_upfile.asp
字号:
<!--#include file="CONST.ASP"-->
<!-- #include file="inc/chkuser.asp" -->
<!-- #include file="inc/char.asp" -->
<!-- #include file="inc/htmlhead.asp" -->
<!--#include FILE="inc/Syschar.asp"-->
<%helpID=1
'if not Founduser then
if SetPower(2,4)=false then
call EndProc("<br><li>没有基本上传权限,或你尚未登陆!",1,"login.asp")
end if
%>
<head>
<style type="text/css">
<!--2002/7/1~~15 LFGBOX DesignHoot -->
<!--
A:LINK {Text-Decoration: none; color:#cc0000;}
A:VISITED {Text-Decoration: none; color:#cc0000;}
A:Active {Text-Decoration: none; color:#cc0000;}
A:HOVER {Text-Decoration: underline overline; color:#ffff55;}
-->
</style>
<script language="javascript">
<!--
//控制上传文件域的js
var i=0;//全局计数变量
function Set1()
{var iCount,str;
iCount=window.form1.upcount.value
str='<td></td>';
if((!iCount)||(iCount==0))
{iCount=1;
window.form1.upcount.value=1;
}
if (iCount>100)
{
window.form1.upcount.value=i-1;
alert("每次最大允许上传100个文件");
}
else
{window.form1.upcount1.value=0
for(i=1;i<=iCount;i++)
{
str+='<div align="right"><font color=#858585>●</font> 文件'+i+':<input type="file" name="file'+i+'" style="width:370" class="tx"> </div>';
}
window.upid.innerHTML=str+'<td></td>';
}
return false;
}
function Set2()
{var iCount,iV;
iV=parseInt(window.form1.upcount1.value)
iCount=parseInt(window.form1.upcount.value)
if(iCount!=i-1)
{iCount=i-1;}
if (i>100)
{
window.form1.upcount.value=100;
alert("每次最大允许上传100个文件");
}
else
{
if(i==1){i=2}
if(iV==1){iCount=1;window.form1.upcount1.value=0;}
{
window.form1.upcount.value=iCount+1;
window.upid.insertAdjacentHTML('BeforeEnd','<div align="right"><font color=#858585>●</font> 文件'+i+':<input type="file" name="file'+i+'" style="width:370" class="tx"> <br></div>');
}
}
i++;
return false;
}
function Set3()
{var iCount,str;
iCount=window.form1.upcount.value
str='<td></td>';
str+='<div align="right"><font color=#858585>●</font> 文件1:<input type="file" name="file1" style="width:370" class="tx"> <br></div>';
window.upid.innerHTML=str+'<td></td>';
i=2;
window.form1.upcount.value=1;
}
//-->
</script>
</head>
<body bgcolor="#e8e8e8" text="#000000" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="20">
<!--#include file="TopNav.asp" -->
<center>
<table width="" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align=right valign="bottom"> <table width="576" border="1" cellpadding="3" cellspacing="0" bordercolor="#e8e8e8" bgcolor="#e8e8e8">
<form name="form1" method="post" action="SaveUpload_Adv.asp?action=1path=<%=GetPath%>" enctype="multipart/form-data" target="_blank">
<div align="center">
<input type="hidden" name="action" value="upload">
</div>
<tr>
<td height="139"><table width="461" height="139" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#666666" bordercolordark="#ffffff" bgcolor="#D4D0c8">
<tr align="center" valign="middle">
<td colspan="2" height="26" background="pic/GRAYBLUE.GIF" bgcolor="#C4C0B9">
<a href="help.asp?id=1" target="_blank"><font color="303000"><b> <img width=210 height=0 border=0> </b></font><img src="pic/wenhao.gif" align="texttop" valign="top" border="0" alt="点击察看详细帮助"></a>
</td>
</tr>
<tr bgcolor="">
<td height="28" colspan ="2"align="center" bgcolor="C4C0B9" ><font color=#858585> </font><font color=#666633><b><font color=#666633></font>>>>
请设定你要上传的任务:</b> </font>
<!-- <input name="button12" type=button class="btx" onClick="location.href='login.asp?action=exit';" value="退 出">
<input name="button22" type=button class="btx" onClick="window.close();" value="关 闭">
--> </td>
<tr>
<td width="377" height="28" align="center"> <font color=#858585>●</font>
<script language="VBScript">
<!--
document.write "上传到:<font color=#3366ee>"&document.location.protocol&"//"&document.location.hostname&"</font>"
-->
</script> <input type="text" name="filepath" style="width:150" class="tx" value="<%=GetPath%>">
</td>
<td width="78" align="center"><font color=#666633>
<input name="button32" type="button" class="btx" onClick="{window.location.href='This_upfile_adv.asp?path=<%=GetPath%>';}" value="高级模式">
</font></td>
</tr>
<tr>
<td colspan="2" height="28" align="center"> <font color=#858585>●
</font> 上传文件数:
<input type="text" name="upcount" style="width:142" value="3" class="tx">
<input type="button" name="Button0" class="btx" onClick="Set1();" value=" 设 定 ">
<input name="Button2" type=Button class="btx" onClick="return Set2();" value="增加文件">
<input type="reset" name="Submit222" class="btx" onClick="Set3();" value=" 重 置 "><input type="hidden" name="upcount1" value="1" >
</td>
</tr>
</table></td>
<td width="102" height="139"><table width="93" height="139" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#666666" bordercolorlight="#777777" bordercolordark="#ffffff" bgcolor="#CCCCCC">
<tr valign="bottom">
<td height="26" colspan="2" align="center" valign="middle" background="pic/GRAYBLUE.GIF" bgcolor="#E6E6E6"><font color="303000"><B>在
线 管 理</B></font></td>
</tr>
<tr>
<td width="93" height="97" align="center" valign="middle" bgcolor="C4C0B9">
<a href="Files_brower.asp" ><img src="pic/file.gif" onmouseover="this.src='pic/file_h.gif'" onmouseout="this.src='pic/file.gif'" width="91" height="20" border="0" name="file"></a>
<a href="This_upfile_adv.asp" ><img src="pic/upload.gif" onmouseover="this.src='pic/upload_h.gif'" onmouseout="this.src='pic/upload.gif'" width="90" height="19" border="0" name="upload"></a>
<a href="getfile.asp?path=<%=GetPath%>"><img src="pic/edit.gif" onMouseOver="this.src='pic/edit_h.gif'" onMouseOut="this.src='pic/edit.gif'" width="90" height="19" border="0" name="home"></a>
<a href="login.asp?action=exit"><img src="pic/login.gif" onmouseover="this.src='pic/login_h.gif'" onmouseout="this.src='pic/login.gif'" width="90" height="19" border="0" name="exit"></a>
</td>
</tr>
</table></td>
</tr>
<tr align="center" valign="top">
<td width="461" height="100%"> <table width="461" height="100%" border="1" align="center" cellpadding="0" cellspacing="0" bgcolor="#D4D0c8" bordercolorlight="#666666" bordercolordark="#ffffff">
<tr>
<td width="461" height="2" bgcolor="C4C0B9"><font color=C4C0B9 size=1px>文件1</font></td>
</tr>
<tr align="right" valign="middle">
<td height="" id="upid"><font color=#858585>●</font> 文件1:<input type="file" name="file1" style="width:370" class="tx" value=""> </td>
</tr>
<tr>
<td width="461" height="2" bgcolor="C4C0B9"><font color=C4C0B9 size=1px>文件1</font></td>
</tr>
<script language="javascript">
Set3();
form1.upcount.value='3'
</script>
<tr align="center" valign="middle">
<td width="100%" height="28" align="center" bgcolor="#D4D0c8"><font color=#666633>
</font> <input type="submit" name="Submit3" value=" 上 传 " class="btx">
<input name="button3" type="button" class="btx" onClick="location.href='#top';" value="顶 端">
</td>
</tr>
</table></td>
<td width="102" height="100%" valign="top"> <table width="95" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#666666" bordercolorlight="#000000" bordercolordark="#CCCCCC">
<tr valign="bottom">
<td height="8" colspan="2" align="center" valign="middle" background="pic/r0.gif"></td>
</tr>
<tr>
<td width="95" height="100%" align="center" valign="top" nowrap><img valign="top" height="100%" src="pic/r1.gif" width="95">
</td>
</tr>
</table></td>
</tr>
</form>
</table>
<tr>
<td width="742" align=right valign="top">
<table height="70" cellpadding="3" cellspacing="0">
<tr valign="top">
<td width="450" align="left"> <font style="FONT-SIZE: 9pt; LINE-HEIGHT: 150%; FONT-FAMILY: 宋体" color=#777777>注:如果你是高级用户模式,可以获得上传目录浏览功能<br>
并可以在站点建立自己的上传目录<br>
点击打开【<a href="This_upfile_adv.asp">高级模式</a>】</font></td>
<td width="110" height="100%" align="left" valign="top"> </td>
</tr>
</table></td>
</tr>
</table>
</center>
<%call Footer()%>
<!--#include FILE="inc/coo_footer.asp"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -