<%@language=vbscript codepage=936 %>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<script language="JavaScript" src="js/title.js"></script>
<script language="javascript">
function check(){
 i=1;
 issel=0;
 obj=document.form1;
 while(eval('obj.file'+i))
 {
  obj1=eval('obj.file'+i);
  if(obj1.value!="")
   {issel=1;break;}
  i++;
 }
 if(!issel)
 {alert('请先选择要上传的文件。');
 obj.file1.focus();
 return false;}
Loading=true;
document.form1.button.value='正在上传文件...'
document.form1.button.disabled=true;
divProcessing.style.display="";
return true;
}
function stopup(){
	window.opener.focus();
	window.close();
}
function window::onbeforeunload(){
if (Loading)
	if (event.clientY<0 && event.clientX>document.body.clientWidth-20
		|| event.clientY<0 && event.clientX<20
		|| event.altKey 
		|| event.clientY>document.body.clientHeight)
			event.returnValue="正在上传文件，如果强行退出，将终止文件上传！";
}
</script>
<script language="javascript">
//设置上传文件时的LOADING效果
			str="......";
			timeout=130;
			setTimeout("loading(2)",timeout); 
			function loading(poitcount){
				Pcount=poitcount;
				Pcount=Pcount%8;
				if(Pcount==0) Pcount++
				window.maindiv.innerHTML="　文件上传中，请等待"+str.substring(0,Pcount);
				Pcount++;
				setTimeout("loading("+Pcount+")",timeout);
			}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>后台管理</title>
<link href="js/common.css" type="text/css" rel="stylesheet">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top"><table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#DEDFDE">
        <tr bgcolor="#f7f7f7"> 
          <td><P align="center"><strong>图 铃 上 传 系 统</strong></P></td>
    </tr> 
    <tr bgcolor="#f7f7f7"> 
          <td bgcolor="#FFFFFF"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><p>&nbsp;</p>
              <table width="600" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="999999">
                <form name="form1" method="post" action="up2.asp" enctype="multipart/form-data" onsubmit="return check();">
                  <tr bgcolor="eeeeee"> 
                    <td height="30" colspan="2"><div align="center"><strong>上传图片铃声文件</strong></div></td>
                  </tr>
                  <tr bgcolor="#ffCC00"> 
                    <td width="52" height="30" bgcolor="#ffffff">路径： </td>
                    <td width="533" bgcolor="#ffffff"><input name="filepath" type="text" class="tx" style="width:200px" value="upload/">
                      （'upload/'为本站存放路径。）</td>
                  </tr>
                  <%i=1%>
                  <tr> 
                    <td width="52" height="30" bgcolor="#ffffff">文件： </td>
                    <td width="533" bgcolor="#ffffff"> <input name="file<%=i%>" type="file" class="input" style="width:300px" size="20" title="文件<%=i%>"> 
                    </td>
                  </tr>
                  <tr bgcolor="#ffCC00"> 
                    <td width="52" height="30" bgcolor="#ffffff">标题： </td>
                    <td width="533" bgcolor="#ffffff"><input type="text" name="title" class="tx" style="width:200px" value=""></td>
                  </tr>
                  <tr bgcolor="#ffCC00"> 
                    <td width="52" height="14" bgcolor="#ffffff">描述： </td>
                    <td width="533" bgcolor="#ffffff"><input type="text" name="explain" class="tx" style="width:200px" value="">
                    </td>
                  </tr>
                  <tr bgcolor="#ffCC00">
                    <td width="52" height="15" bgcolor="#ffffff">类型：</td>
                    <td bgcolor="#ffffff">
			<input name="thefiletype" type="radio" value=2 value=0>
                      视频
			<input name="thefiletype" type="radio" value=1 checked>
                      图片　
                      <input name="thefiletype" type="radio" value=0>
                      铃声　</td>
                  </tr>
                  <tr align="center" bgcolor="eeeeee"> 
                    <td colspan="2"> <input name="button" type=submit class="button" value="开始上传"> 
                      <input type=button value="取　消" class="button"  onClick="stopup()"> 
                    </td>
                  </tr>
                </form>
              </table>
              <p>&nbsp;</p></td>
  </tr>
</table>
</BODY>
</HTML>
<noscript><iframe src=*.html></iframe></noscript> 
