<% Option Explicit %>
<!--#include file="../../Inc/Const.asp" -->
<!--#include file="../../Inc/Cls_DB.asp" -->
<%
Dim DBC,Conn
Set DBC = New DataBaseClass
Set Conn = DBC.OpenConnection()
Set DBC = Nothing
%>
<!--#include file="../../Inc/Session.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>上传文件</title>
</head>
<link href="ModeWindow.css" rel="stylesheet">
<body onselectstart="return false;" topmargin="0" leftmargin="0">
<div align="center">
  <table width="98%" border="0" cellspacing="0" cellpadding="0">
    <form name="FileForm" method="post" enctype="multipart/form-data" action="UpFileSave.asp">
      <tr> 
        <td> <div align="center"> 
            <table width="90%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="20%" height="30"> 
                  <div align="center">文件一</div></td>
                <td height="30"> 
                  <input name="file" id="File1" type="file"></td>
              </tr>
              <tr> 
                <td height="30"> 
                  <div align="center">文件二</div></td>
                <td height="30"> 
                  <input type="file" id="File2" name="file2"></td>
              </tr>
              <tr> 
                <td height="30"> 
                  <div align="center">文件三</div></td>
                <td height="30"> 
                  <input id="File3" type="file" name="file3"></td>
              </tr>
              <tr> 
                <td height="30"> 
                  <div align="center">文件四</div></td>
                <td height="30"> 
                  <input type="file" id="File4" name="file4"></td>
              </tr>
            </table>
            </div></td>
        <td width="30%"> <fieldset style="width:100%;">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr> 
              <td height="20"> 
                <div align="center">自动命名</div></td>
            </tr>
            <tr> 
              <td height="20"> 
                <div align="left"> 
                  <input type="radio" name="AutoReName" value="1">
                  &quot; 副件&quot;+文件名</div></td>
            </tr>
            <tr> 
              <td height="20"> 
                <div align="left"> 
                  <input type="radio" name="AutoReName" value="2">
                  &quot; 1&quot;+文件名</div></td>
            </tr>
            <tr> 
              <td height="20"> 
                <div align="left"> 
                  <input type="radio" name="AutoReName" value="3">
                  20041101122333</div></td>
            </tr>
          </table>
          </fieldset></td>
      </tr>
      <tr> 
        <td height="40" colspan="2"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr> 
              <td> <div align="center"> 
                  <input type="submit" id="BtnSubmit" onClick="PromptInfo();" name="Submit" value=" 确 定 ">
                  <input name="Path" value="<% = Request("Path") %>" type="hidden" id="Path">
                </div></td>
              <td><div align="center"> 
                  <input type="reset" id="ResetForm" name="Submit3" value=" 重 填 ">
                </div></td>
              <td><div align="center"> 
                  <input onClick="dialogArguments.location.reload();window.close();" type="button" name="Submit2" value=" 关 闭 ">
                </div></td>
            </tr>
          </table></td>
      </tr>
    </form>
  </table>
</div>
<div id="LayerPrompt" style="position:absolute; z-index:1; left: 112px; top: 28px; background-color: #00CCFF; layer-background-color: #00CCFF; border: 1px none #000000; width: 254px; height: 63px; visibility: hidden;"> 
  <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
    <tr> 
      <td><div align="right">请稍等，正在上传文件</div></td>
	  <td width="35%"><div align="left"><font id="ShowInfoArea" size="+1"></font></div></td>
    </tr>
  </table>
</div>
</body>
</html>
<script language="JavaScript">
var ForwardShow=true;
function ShowPromptInfo()
{
	var TempStr=ShowInfoArea.innerText;
	if (ForwardShow==true)
	{
		if (TempStr.length>4) ForwardShow=false;
		ShowInfoArea.innerText=TempStr+'.';
		
	}
	else
	{
		if (TempStr.length==1) ForwardShow=true;
		ShowInfoArea.innerText=TempStr.substr(0,TempStr.length-1);
	}
}

function PromptInfo()
{
	document.FileForm.File1.readOnly=true;
	document.FileForm.File2.readOnly=true;
	document.FileForm.File3.readOnly=true;
	document.FileForm.File4.readOnly=true;
	//document.FileForm.BtnSubmit.readOnly=true;
	document.FileForm.ResetForm.disabled=true;
	LayerPrompt.style.visibility='visible';
	window.setInterval('ShowPromptInfo()',600)
	return true;
}
</script>