<!--#include virtual="/show/userhead.asp"-->
<!--#include virtual="/inc/chkuser.asp"-->
<!--#include virtual="/user/subleft.asp"-->
<!--#include FILE="upload.inc"--> 


<script>document.getElementById('o_7').setAttribute("class", "ed"); document.getElementById("t_7").style.display="";document.getElementById('s_7_4').setAttribute("class", "ed4");</script>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />  

<title><%=webname%>-上传文档</title>
<%
response.End()
%>

<%
sid=SafeRequest("sid")
%>

<script language=javascript>
function check_add()
{
   //if(form1.shangid.value=="0")
   //{alert("请选择商品");return false}
   
$(".butbaocun").attr("disabled",true);
$(".butbaocun").addClass('butbaocun2');
   //document.form1.tijiao.disabled="disabled";
     
}
</script>
<br>
<DIV id=main2> 
<%call webleft()%>
<DIV id=main_right>
<DIV id=main_right_content>

<H2><SPAN>上传文档</SPAN></H2>
<DIV class=main3>
<script language="javascript">
	  function setid()
	  {
	  var upsum=document.getElementById("upsum").value;
	  	if (parseInt(upsum)<4)
	    {
	  	var lastsum=parseInt(upsum)+1
	  	document.getElementById("upsum").value=lastsum;
		var str='<input type="file" name="file'+lastsum+'" style="width:400" id="file1"><br>';
		document.getElementById("upid"+lastsum).style.display = "";
	    document.getElementById("upid"+lastsum).innerHTML=str;
		//document.getElementById("cupid"+lastsum).style.display = "";
	  	}
	  }
	  </script>
	  <script language="javascript">
	  function nshow(nstr){
	  var upsum=document.getElementById("upsum").value;
	  if (parseInt(upsum)>0){
		var lastsum=parseInt(upsum)-1
	  	document.getElementById("upsum").value=lastsum;
	    document.getElementById("upid"+upsum).innerHTML="";
	  //document.getElementById("cupid"+nstr).style.display = "none";
	  }	  }
	  </script>

<form name="form1" method="post" action="downupfile" onSubmit="return check_add()" enctype="multipart/form-data">
  <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_style_a1">
    <tr>
      <td width="100" align="center">文件数量</td>
      <td><input type="button" name="Button" class="bt" onClick="setid();" value=" 增加 ">
        <input type="button" name="Button2" class="bt" onClick="nshow();" value=" 减少 "></td>
    </tr>
	
	
    <tr>
      <td align="center">选择文件</td>
      <td>
	    <input name="file5" type="file" style="width:400" id="file1">
		<input name="upsum" type="hidden" id="upsum" value="0">
		<input name="url" type="hidden" id="url" value="<%=Request.ServerVariables("SERVER_NAME")%>" />
		<br>
		<span id="upid1"></span>
		<span id="upid2"></span>
		<span id="upid3"></span>
		<span id="upid4"></span></td>
    </tr>
    <tr>
	
	
      <td align="center">下载密码</td>
      <td><input name="downpass" type="password" id="downpass" maxlength="20">
        最多20字符 不填写为下载不需要密码 </td>
    </tr>
    <tr>
      <td align="center">是否可见</td>
      <td><input name="kejian" type="checkbox" id="kejian" value="0" checked>
        可见</td>
    </tr>
    <tr>
      <td align="center">注意事项</td>
      <td>上传文档大小不得超过100K 上传文档类型为rar txt 
</td>
    </tr>
    <tr>
      <td align="center">我的下载链接：</td>
      <td><a href="<%=weburl%>down?u=<%=request.Cookies("aymd5")%>" target="_blank" style="font-family:宋体;"><%=weburl%>down?u=<%=request.Cookies("aymd5")%></a></td>
    </tr>
    <tr>
      <td colspan="2" align="center"><input class="butbaocun" type="submit" name="Submit" id="tijiao" value=" 上 传 文 档 " onSubmit="return check_add()"></td>
      </tr>
  </table>      
</form>
</DIV>

</DIV></DIV>
<DIV class=clear></DIV></DIV>
</DIV>

<br>

	<!--#include virtual="/show/foot.asp"-->


