<!--#include file="../checkLogin.asp"-->
<!--#include file="../SQLconn.asp"-->

<html>
<head><title></title><meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<link rel="stylesheet" type="text/css" href="../images/<%=request.cookies("imgdir")%>/css/style.css" media="all"/>
<script Language="JavaScript">
function right(mainStr,lngLen) {
// alert(mainStr.length)
if (mainStr.length-lngLen>=0 && mainStr.length>=0 && mainStr.length-lngLen<=mainStr.length) {
return mainStr.substring(mainStr.length-lngLen,mainStr.length)}
else{return null}
}


function form_check(){
if(right(document.form3.file1.value,3)=="exe"){window.alert("不能直接诶发送EXE文件，请压缩后在发送");document.form3.file1.focus();return (false);}
if(document.form3.bumen.value.length<1){window.alert("请选择部门");document.form3.bumen.focus();return (false);}
if(document.form3.ftype.value.length<1){window.alert("请选择类别");document.form3.ftype.focus();return (false);}
if(document.form3.file1.value.length<1){window.alert("请选择文件");document.form3.file1.focus();return (false);}

}

</script>

<style type="text/css">
<!--
.STYLE3 {color: #990033}
-->
</style>
<body>
<%
   years=request.cookies("nowxueqi")
   tname=request.cookies("tname")
   %> 
<table width="100%" height="495" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="27">
	<div class="header">
	<div class="nav">
        <ul>
            <li class="on">上传部门文件</li>
            <li><a href="manage.asp?years=<%=years%>" target="_self">部门文件管理</a></li>
        </ul>
    </div>	
	</td>
  </tr>
 
  <tr>
    <td height="470" valign="top"     class="NemuMainBox">
	<br>
	<%
	   
		bumen=Request.QueryString("bumen")
		ftype=Request.QueryString("ftype")
	
	Set MyOAASPObj = Server.CreateObject("YFSchoolOApro2.YFSchoolDll2")
call    MyOAASPObj.BuMenFileAddFile(tname,years,bumen,ftype)
	set MyOAASPObj=nothing
		%>	</td>
  </tr>
</table>
</body>
</html>
