<!--#include file="CONN.ASP"-->
<!--#include file="../inchuayuwebrlzywzhyweb/cls_huayuweb()^191563631.asp"-->
<%
if oa.chkadmined=false and oa.chklogin=false then
oa.msgclose("您没有登陆或登陆超时!请不要非法操作!")
end if

Dim uppath,filelx,formName,EditName
uppath=Request("uppath")
formName=Request("FormName")
EditName=Request("EditName")

%>

<title>图片上传</title>

<script language="javascript">
<!--
// 是否有效的扩展名
function IsExt(url, opt){
	var sTemp;
	var b=false;
	var s=opt.toUpperCase().split("|");
	for (var i=0;i<s.length ;i++ ){
		sTemp=url.substr(url.length-s[i].length-1);
		sTemp=sTemp.toUpperCase();
		s[i]="."+s[i];
		if (s[i]==sTemp){
			b=true;
			break;
		}
	}
	return b;
}
var sAllowExt = "jpg|gif|jpeg|bmp|swf|doc|pdf|rar|xls|png|wmv|txt|pdf|flv";
// 检测上传表单
function CheckUploadForm() {
	if (!IsExt(document.form1.file1.value,sAllowExt)){
		alert("提示：\n\n请选择一个有效的文件，\n支持的格式有（"+sAllowExt+"）！");
		return false;
	}
	return true
}
-->
</script>
</head>

<body>
<link href="../inchuayuwebrlzywzhyweb/Style.Css" rel="stylesheet" type="text/css">
  <table  border="0" width="300" cellspacing="1" cellpadding="0" align="center" bgcolor="#6298E1">
    <form name="form1" method="post" onSubmit="return CheckUploadForm()" action="upload.asp?act=upload&filepath=<%=uppath%>&EditName=<%=EditName%>&FormName=<%=formName%>" enctype="multipart/form-data" >
    <tr> 
      <td height="22" align="center" bgcolor="#6298E1"  style="color:white;font-weight:bold">&nbsp;文件上传 
      
      </td>
    </tr>
    <tr align="center" valign="middle" height="80" bgcolor="#FFFFFF"> 
      <td align="center" id="upid">选择文件: 
        <input type="file" name="file1" style="width:200" value=""><br><br><input type="submit" name="Submit" value="上传 ">
      </td>
    </tr>
    </form>
</table>

</body>
</html>


