<html>

<head>
<title>新建</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<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>

<link rel="stylesheet" type="text/css" href="../css/style.css" />

</head>

<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")
%>
<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>
<table width="700"   border="1" align="center" cellpadding="5" cellspacing="0">
  <tr>
    <td width="348"  valign="top" class="STYLEmian"><p class="STYLE1">操行评定:班级自治项目，班内加扣分!</p>
      <p class="STYLE1">是仅仅用了记录学生的操行情况!</p>
    <p class="STYLE1">作为班任和科任记录学生平时操行情况。其扣分仅仅是班内使用。不作为学校的对比。</p>    </td>
    <td width="326" valign="top" class="STYLEmian"><p class="STYLE1">学生常规:学校管理项目，班级间加扣分!</p>
      <p class="STYLE1">是记录班级情况，或风纪值日或学校领导日常检查的！</p>
    <p class="STYLE1">是学校层面的记录。其扣分列入学校班与班之间的评比， 例如文明班等等。</p></td>
  </tr>
</table>
<p>&nbsp;</p>
</body>
</html>