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

📄 admin_uploadfile.asp

📁 电子书下载系统 后台管理:admin/index.asp 超级用户:admin 密码:admin 请在db/usre.asp,admin/usres更新数据库地址,防止他人下载。 建议把.
💻 ASP
字号:
<!--#include file="db/user.asp" -->
<!--#include file="admin/jl.asp" -->
<!--#include file="function.asp"-->
<link rel="stylesheet" href="admin/html.css">
<table border="1" width="755" cellspacing="0" cellpadding="1">
<tr>
<td valign=top>

<table border="1" width="100%" cellspacing="0" cellpadding="0" Class="TableLine">
<tr>
<td width="100%" height="20" colspan=2 align=center bgcolor="<%=MainTColor%>"><b>文 件 上 传</b></td>
</tr>
<tr align="left" valign="middle"> 			
<td height="92" align="center">
<%    If not IsObjInstalled(ServerObject(9)) Then
Response.Write "<br><br><b><center><font color=red>你的服务器不支持 FSO(Scripting.FileSystemObject)! 不能使用本功能</font></center></b><br><br><br>"
Else%>
<form name="form1" method="post" action="admin_uploadfilesave.asp" enctype="multipart/form-data" >
<input type="hidden" name="act" value="upload">			
<script language="javascript">
function setid()
{
str='<br>';
if(!window.form1.upcount.value)
window.form1.upcount.value=1;
for(i=1;i<=window.form1.upcount.value;i++)
str+='文件'+i+':<input type="file" name="file'+i+'" style="width:400" Class="tx1"><br><br>';
window.upid.innerHTML=str+'<br>';
}
</script>
<li> 个数
<input type="text" name="upcount" Class="tx" value="1" size="20">
<input type="button" name="Button" Class="bt" onclick="setid();" value="设定">
</li>
<br>
<br>
<li>上传目录:
<select name="filepath">
                <option selected>请选择要上传的目录</option>
                <option value="img/">软件图片目录:img</option>
                <option value="softfile/">软件目录:softfile</option>
              </select>
<font color="#FF0000"><b>你可以修改程序增加新目录。</b></font></li>
</td>
</tr>
<tr align="center" valign="middle">
<td align="center" id="upid" height="122"> 文件1:
<input type="file" name="file1" style="width:400" Class="tx1" value="" size="20">
</td>
</tr>
<tr align="center" valign="middle">
<td>
<input type="submit" name="Submit" value="提交" Class="bt">
<input type="reset" name="Submit2" value="重执" Class="bt">
</form>
<%end if%>				
</td>
</tr>
</table>

</table>
<%set rs=nothing%>
<script language="javascript">
setid();
</script>

⌨️ 快捷键说明

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