📄 this_upfile_adv.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=2
'if not isMaster or SetPower(2,4)=false then
if SetPower(2,4)=false then
call EndProc("<br><li>没有进入上传文件管理面板权限,或你尚未登陆!",1,"")
'Response.redirect "login.asp"
end if
if right(GetPath,1)<>"/" then GetPath=GetPath&"/"
SetTemp=CheckFolder(GetPath,1)
if SetTemp<>"True" then
EndProc SetTemp,1,""
end if
Select CASE GetAction
CASE "DelFile" call DelFileS()
CASE "MkFolder" call MakeFolder()
CASE "previewSwith" call previewSwith()
End Select
if Preview=0 then
GetPreview="关闭预览"
else
GetPreview="打开预览"
end if
set GetFolder=Fso.GetFolder(Server.mappath(GetPath))
%>
<!--#include file="inc/Javacript.asp" -->
<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>
<style type="text/css">
<!--
.bmt{
border-color: #FFFFFF #666666 #666666 #FFFFFF;
border-style:solid;
width:14px;
height:15px;
border: 1px solid;
border-color: black;
background-color:e8e8e8}
-->
</style>
</head>
<body bgcolor="#e8e8e8" text="#000000" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="20">
<!--#include file="TopNav.asp" -->
<center>
<table width="742" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="162" align=left valign="bottom"><a href="javascript:aboutme();"><img src="pic/lfgboxlogo.gif" width="75" height="43" border="0" onmouseover="this.src='pic/lfgboxlogo_h.gif'" onmouseout="this.src='pic/lfgboxlogo.gif'"></a>
<td width="580" align=right valign="bottom">
<form name="form1" method="post" action="SaveUpload_adv.asp?path=<%=GetPath%>&Option=1" enctype="multipart/form-data" target="_blank" style="margin:0px;">
<table width="576" border="1" cellpadding="3" cellspacing="0" bordercolor="#e8e8e8" bgcolor="#e8e8e8">
<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">
<font color="303000"><b> <img width=210 height=0 border=0> </b></font>
</td>
</tr>
<tr bgcolor="">
<td height="28" colspan ="2" align="left" bgcolor="C4C0B9" > <font color=#666633><b>
<font color=#858585>●</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>
上传到:<font color=#3366ee>http://<%= Request.ServerVariables("SERVER_NAME")%></font>
<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.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?path=<%=GetPath%>"><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="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="ADO_recordset.asp"><img src="pic/data.gif" onMouseOver="this.src='pic/data_h.gif'" onMouseOut="this.src='pic/data.gif'" width="90" height="19" border="0"></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>
</table>
</form>
<tr>
<td colspan="2" align=right valign="top" width="100%"> <table height="163" cellpadding="3" cellspacing="0">
<tr valign="top">
<td height="100%" align="right">
<form name="boxobj" method="post" action="<%=GetBaseUrl%>&Option=2" style="margin:0px;">
<table border="0" cellpadding="0" cellspacing="0" bordercolorlight="#777777" bordercolordark="#FFFFFF">
<tr>
<td height="36" align="center" valign="top">
<table width="742" height="35" align="center" cellpadding="0" cellspacing="0" bgcolor="#e8e8e8">
<tr align="center" valign="bottom">
<td width="631" height="36" valign="top"> <table width="100%" height="32" border="1" cellpadding="0" cellspacing="0" bgcolor="#D4D0c8">
<tr bordercolor="#D4D0c8">
<td width=25 height="30" align="center"><img src="pic/folderA.gif" width="18" height="17"></td>
<td width="81" align="center">
<!--
<script language="VBScript">
document.write "<font color=#3366ee>"&document.location.protocol&"//"&document.location.hostname&"</font>"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -