<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../Images/CssAdmin.css">
<title>文件上传</title>
</head> 
<!--#include file="../CheckAdmin.asp"-->
<body>
<%
Result	= request.QueryString("Result")
%>
<table width="400" border="0" align="center" cellpadding="12" cellspacing="1" bgcolor="#628AE1">
  <form action="UpFileSave.asp?Result=<%=Result%>" method="post" enctype="multipart/form-data" name="formUpload">
  <tr>
    <td bgcolor="#EBF2F9">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="60" height="30" nowrap>选择文件：</td>
        <td><input name="FromFile" type="file" class="textfield" id="FromFile" size="41" onChange="chgpic(this.value)"></td>
      </tr>
      <tr>
        <td height="30">上传位置：</td>
        <td><select name="SaveToPath" class="textfield">
		  <option value="../../Upload/" selected >图片路径 /Upload</option>
        </select></td>
      </tr>
      <tr>
        <td colspan="2" align="center"><img src="" name="showpic" width="100" height="100" border="0" id="showpic" style="display:none;"></td>
      </tr>
      <tr>
        <td height="36" colspan="2" align="center" valign="bottom"><input name="reset" type="reset" class="button" value=" 重置 ">
          &nbsp;<input name="Submit" type="submit" class="button" value=" 上传 "></td>
        </tr>
    </table>
	</td>
  </tr>
  </form>
</table>
<script language="javascript">
function chgpic(str){
	document.formUpload.showpic.src=str;
	if(document.formUpload.showpic.style.display=='none')document.formUpload.showpic.style.display='';
}
</script>
</body>
</html>

