<!--#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"/>

<body>
<script>
function CheckForm()
{

  if(document.form1.studentname.value=="")
   { alert("学生姓名不能空！");
     return (false);
   }
   
   if(document.form1.memo.value=="")
   { alert("情况说明不能空！");
     return (false);
   }
   if (isNaN(document.form1.fenshu.value)) 

 {
   alert("分数请填写数字")
  return false;
 }
   return (true);
}
function inputstudent(strname)
{
if (document.form1.studentname.value=='' )
{  
document.form1.studentname.value=document.form1.studentname.value+strname;}
else  
{ document.form1.studentname.value=document.form1.studentname.value+'|'+strname;
}
}


function inputname(strname,fenshu)
{
	  document.form1.memo.value=strname;
	  document.form1.fenshu.value=fenshu;
}

</script>

<%
  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")
%>
<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="AddRiZhiList.asp?fenlei=<%=fenlei%>&strGrade=<%=strGrade%>&strClass=<%=strClass%>&rizhidate=<%=rizhidate%>&strrizhitype=<%=strrizhitype%>">上报记录</a></li>
           
        </ul>
    </div>	
	</td>
  </tr>
  <tr>
   <td height="400" valign="top"   class="NemuMainBox">
	 
	<br>
	
<form name="form1" method="post" action="Saverizhi.asp?fenlei=<%=fenlei%>&strGrade=<%=strGrade%>&strClass=<%=strClass%>&rizhidate=<%=rizhidate%>&strrizhitype=<%=strrizhitype%>"  onSubmit="return CheckForm();">
    <%      
	   Set MyOAASPObj = Server.CreateObject("YFSchoolOApro2.YFSchoolDll2")
       call  MyOAASPObj.AddRiZhi(fenlei,strYears,strGrade,strClass,strrizhitype,rizhidate,tname)
       set MyOAASPObj=nothing  
	%>
  
</form>   
  
</p>
<div align="center">
  <p class="STYLE3"><b>
    <input name="button" type="button" class="topanniu" onClick="location='ClassList.asp?fenlei=<%=fenlei%>&strGrade=<%=strGrade%>&rizhidate=<%=rizhidate%>';"  value="返回" />
    </b></p>
</div>
	
	
    <p>&nbsp;&nbsp; 操行评定:班级自治项目，是仅仅记录学生的操行情况!作为学生平时操行情况。不作为学校班与班之间的对比。<br>
      <br>
      &nbsp;&nbsp;&nbsp;学生常规:学校管理项目，班级间加扣分!是学校班级层面的记录。其扣分列入学校班与班之间的评比<br>
    </p></td>
  </tr>
</table>
</body>
</html>
