<!--#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="../css/style.css" />
<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="99%" height="499" border="0" cellpadding="0" cellspacing="0">
  <tr>
   <td height="33"><table width="100%" height="33" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="100" class="Nemuselect"><div align="center"><a href="addfile.asp" target="_self">上传部门文件</a></div></td>
       <td width="100" class="NemuNot"><div align="center"><a href="manage.asp?years=<%=years%>" target="_self">部门文件列表</a></div></td>
       <td class="NemuLine">&nbsp;</td>
      </tr>
    </table></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>
