<!--#include file="../checkLogin.asp"-->
<!--#include file="../SQLconn.asp"-->
<!doctype html>
<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 src="../laydate/laydate.js"></script>
<body>

	<%
  fenlei = TRIM( Request( "fenlei" ) )
  if fenlei="操行评定"  then
        powertype="添加操行评定记录"
    else
        powertype="添加学生常规记录"
  end if 

'检查权限
       tname=request.cookies("tname") 
       Set MyOAASPObj= Server.CreateObject("YFSchoolOApro.YFSchoolDll")
           if MyOAASPObj.QuanXian(tname,powertype)=0 then 
		    response.redirect  "../NoPower.asp"
           end if 
		   set MyOAASPObj=nothing

'检查权限结束




  
  strYears = request.cookies("nowxueqi")

  strGrade = TRIM( Request( "strGrade" ) )
  strClass = TRIM( Request( "strClass" ) )
  strrizhitype = TRIM( Request( "strrizhitype" ))
  rizhidate=Request("rizhidate")
  begindate=Request("begindate")
  enddate=Request("enddate")
    if begindate="" then 
		begindate=date()-15
	end if 	
			 
	if enddate="" then 
		  enddate=date()
	end if     
  
  
  
%>

<FORM ACTION="AddRiZhiList.asp?fenlei=<%=fenlei%>&strGrade=<%=strGrade%>&strClass=<%=strClass%>&rizhidate=<%=rizhidate%>&strrizhitype=<%=strrizhitype%>" METHOD="post" name="form1">
 
   
<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><a href="AddRiZhi.asp?fenlei=<%=fenlei%>&strGrade=<%=strGrade%>&strClass=<%=strClass%>&rizhidate=<%=rizhidate%>&strrizhitype=<%=strrizhitype%>">上报录入</a></li>
            <li class="on">上报记录</li>
            
           
        </ul>
    </div>	
	</td>
  </tr>
  <tr>
   <td height="400" valign="top"   class="NemuMainBox">
	 
	<br>
	 
 <%      
	   Set MyOAASPObj = Server.CreateObject("YFSchoolOApro2.YFSchoolDll2")
       call  MyOAASPObj.AddRiZhiList(fenlei,strGrade,strClass,begindate,enddate,strrizhitype,tname)
       set MyOAASPObj=nothing  
	%>

  <div align="center">
  <p align="center" class="STYLE3"><b>
    <input name="button" type="button" class="topanniu" onClick="location='ClassList.asp?fenlei=<%=fenlei%>&strGrade=<%=strGrade%>&rizhidate=<%=rizhidate%>';"  value="返回" />

	
    </td>
  </tr>
</table>
</FORM>

</body>
</html>
