www.gusucode.com > 掌柜网店购物系统 4.0码程序 > admin/upfile1.asp
<%if session("admin")="" then response.Write "<script language='javascript'>alert('网络超时或您还没有登陆!');window.location.href='login.asp';</script>" response.End else if session("flag")>1 then response.Write "<p align=center><font color=red>您没有此项目管理权限!</font></p>" response.End end if end if%> <html><head><title>上传</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <link href="../img/css.css" rel="stylesheet" type="text/css"> <style> BODY { SCROLLBAR-FACE-COLOR: #e7e7e7; SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; SCROLLBAR-SHADOW-COLOR: #d4d0c8; SCROLLBAR-3DLIGHT-COLOR: #FFFFFF; SCROLLBAR-ARROW-COLOR: #ffffff; SCROLLBAR-TRACK-COLOR: #f7f7f7; SCROLLBAR-DARKSHADOW-COLOR: #e7e7e7; } .style3 {color: #FF6600} </style> </head> <body> <form name="form1" method="post" action="upload1.asp" enctype="multipart/form-data" > <input type="hidden" name="act" value="upload"> <table class="tableBorder" width="96%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF"> <tr> <td colspan="4" align="center" bgcolor="#dfdfdf"><b>文件上传</font></b></td> </tr> <tr> <td height="100" bgcolor="#f2f2f2"> <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" value="1" size="10"> <input type="button" name="Button" onClick="setid();" value="设 定"> </li> <li>上传到: <input type="text" name="filepath" size="40" value="<%=Request.QueryString("Path")%>"> </li> </td> </tr> <tr> <td id="upid" bgcolor="#f2f2f2"> <li>文件1: <input type="file" name="file1" size="40" value=""> </li> </td> </tr> <tr align="center" valign="middle" > <td height="24" width="540" bgcolor="#f2f2f2"> <input type="submit" name="Submit" value="提 交" class="bt"> <input type="reset" name="Submit2" value="重 执" class="bt"> </td> </tr> </table> </form> <script language="javascript"> setid(); </script> </body> </html>