<!--#include file="../../conn/conn.asp" -->
<%if Request.Cookies("admin_name")="" then
Response.Write("非法操作!")
Response.end()
end if%>
<HTML>
<HEAD>
<style>
body{font-size:12px; bgcolor:menu;}
table{font-size:12px;}
</style>
<TITLE>文件上传</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<SCRIPT language=javascript>
function check() 
{
	var strFileName=document.form1.file1.value;
	if (strFileName=="")
	{
    	alert("请选择要上传的文件");
		document.form1.file1.focus();
    	return false;
  	}
	var FileType=strFileName.substr(strFileName.length-3);
	FileType=FileType.toLowerCase();
	if ("<%=UpfilesType%>".indexOf(FileType)<0)
	{
	alert("选择的文件类型不正确");
	document.form1.file1.focus();
	return false;
	}
}
</script>
</HEAD>
<body bgColor=menu topmargin="10" leftmargin="10">
<center>
<fieldset align="center">
<LEGEND align=left>文件上传</LEGEND>
<FORM METHOD="post" NAME="form1" ACTION="job_upok.asp" onSubmit="return check()" ENCTYPE="multipart/form-data">
请选择要上传的文件:
<input type='file' name='file1' value size='20'>
<br>
允许上传的文件类型：<%=UpfilesType%>
<input name="fromForm" type="hidden" id="fromForm" value="<%=Trim(Request("fromForm"))%>">
<input name="fromEdit" type="hidden" id="fromEdit" value="<%=Trim(Request("fromEdit"))%>">
<input name="saveTo" type="hidden" id="saveTo" value="<%=Trim(Request("saveTo"))%>">
<input name="showPath" type="hidden" id="showPath" value="<%=Trim(Request("showPath"))%>">
<br><br>
<INPUT TYPE="submit" NAME="Button01" VALUE="上 传">&nbsp;
<INPUT TYPE="reset" NAME="Button02"  VALUE="重 置">&nbsp;
<INPUT TYPE="button" NAME="Button03"  VALUE="关 闭" onClick="javascript:window.close();">
</FORM>
</fieldset>
</center>
</BODY>