<!--#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>
<script>
function inputFenShu(fenshu)
{
window.form1.score1.value=fenshu;
window.form1.score2.value=fenshu;
window.form1.score3.value=fenshu;
window.form1.score4.value=fenshu;
window.form1.score5.value=fenshu;
window.form1.score6.value=fenshu;
window.form1.score7.value=fenshu;
window.form1.score8.value=fenshu;
window.form1.score9.value=fenshu;
window.form1.score10.value=fenshu;
window.form1.score11.value=fenshu;
window.form1.score12.value=fenshu;
window.form1.score13.value=fenshu;
window.form1.score14.value=fenshu;
window.form1.score15.value=fenshu;
window.form1.score16.value=fenshu;
window.form1.score17.value=fenshu;
window.form1.score18.value=fenshu;
window.form1.score19.value=fenshu;
window.form1.score20.value=fenshu;

}


</script>


<script>
function CheckForm()
{
 if(document.form1.xiangmu.value.length<1){window.alert("请选择项目");document.form1.xiangmu.focus();return (false);}
 if(document.form1.pingbiDate.value.length<1){window.alert("请输入日期");document.form1.pingbiDate.focus();return (false);}  
 
 
}
 
</script>
<style type="text/css">
<!--
.STYLE2 {color: #FF0000}
-->
</style>
<body>
<%    
        strYears = request.cookies("nowxueqi")		 
	    strGrade=Request("strGrade")		
		%>	  
		
		

 
<table width="100%" height="495" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="27">
	<div class="header">
	<div class="nav">
        <ul>
           
			
	   <% set RsName=server.createobject("adodb.recordset")
		sqlRsName="select vname from  varset where name='grade' order by vid"
		RsName.open sqlRsName,conn,1
		if strGrade="" then strGrade=RsName("vname") 
		 
		while not RsName.eof and not RsName.bof
		%>
		   <%    if strGrade=RsName("vname")  then   %>
		    <li class="on"><%=RsName("vname")%>评比</li>
		   
		   <%    else   %>
	     
		  <li><a href="BWPBInput.asp?strGrade=<%=RsName("vname")%>" target="_self"><%=RsName("vname")%>评比</a></li>
			 
		<%end if
		RsName.movenext
		wend
		RsName.close
		Set RsName = Nothing
		
		%>	    
			
        </ul>
    </div>	
	</td>
  </tr>
  
   
  <tr>
    <td height="470" colspan="3" valign="top"   style="border-left:1px solid #6D8DD8;border-right:1px solid #6D8DD8;border-bottom:1px solid #6D8DD8;">
	<br>
	<%
'检查权限
       tname=request.cookies("tname") 
       Set MyOAASPObj= Server.CreateObject("YFSchoolOApro.YFSchoolDll")
           if MyOAASPObj.QuanXian(tname,"管理班务评比记录")=0 then 
		    response.redirect  "../NoPower.asp"
           end if 
		   set MyOAASPObj=nothing

'检查权限结束



  
			
%>
			<script language="javascript" for="document" event="onkeydown">
			<!--
			  if(event.keyCode==13)
				 event.keyCode=9;
				 
			  if(window.event.keyCode=='116'){ 
  
               window.event.keyCode=0; 
               window.event.returnValue=false; } 
		
			-->
			</script>


<body>
<form name="form1" method="post" action="BWPBsave.asp"     onSubmit="return CheckForm();">
 
       <div align="center" class="STYLE1">
	    <table width="709" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="559" height="30"><table width="439" border="1" align="center" cellpadding="3"   cellspacing="0"  bordercolor="#6D8DD8"  class="mtablehui">
              <tr style="background-color:#D6E4FF"  class="TableHeader">
                <td width="429" height="30" colspan="3"  align="center" valign="middle" nowrap class="NemuNot"><a href="BWPBJiLu.asp" target="_blank">评比项目</a>：
                  <select name="xiangmu" id="xiangmu" style= "width:130px ">
                      <option selected></option>
                      <% Set RSsel = Conn.Execute("select vname from  varset where name='班务评比' order by vid")
              While NOT RSsel.EOF %>
                      <option value=<%=RSsel( "Vname" )%>><%=RSsel( "vname" )%></option>
                      <% RSsel.MoveNext
           Wend
           RSsel.Close%>
                    </select>
                  评比日期：
                <input name=pingbiDate  placeholder="请输入日期"  style="width:90px"  value=<%=date%> class="laydate-icon" onClick="laydate()">
				  
				  
	                </td>
              </tr>
            </table>
            </td>
            <td width="150">&nbsp;</td>
          </tr>
        </table>
	    </div>
       <table width="729" border="0" align="center" cellpadding="0" cellspacing="0">
         <tr>
           <td width="570" height="319"><table width="528" align="center" border="1" cellpadding="3"   cellspacing="0"  bordercolor="#6D8DD8"  class="mtable">
             <tr style="background-color:#D6E4FF"  class="TableHeader">
               <td width=92 height="30" align=middle class="STYLE1"><div align="center"><font color="#000000" size="2">级别</font> </div></td>
               <td width=116 align=middle class="STYLE1"><div align="center"><font color="#000000" size="2">班别</font> </div></td>
               <td width=106 align=middle class="STYLE1"><div align="center"><%=strSubject%>分数</div></td>
               <td width=373 align=middle class="STYLE1"><div align="center"><%=strSubject%>备注说明</div></td>
             </tr> 
			  <%
	  dim iNumber
      dim isex
	  dim zhusu '   onKeyPress="if((event.keyCode<48 || event.keyCode>57) && event.keyCode!=46 || /\.\d\d$/.test(value))event.returnValue=false"  分数录入
	  dim ijifen
      Set RS = Conn.Execute("select grade,class from students where  Years='"&stryears& "'  And grade='"&strgrade& "' group by grade, class order by  class") %>
             <%iNumber=1
	 While NOT RS.EOF %>
             <tr>
               <td width=92 height="25" align=middle class="STYLE1"><div align="center"><font size="2"><%=RS( "grade" )%>
                         <input type="hidden" name=<%response.write "grade"&iNumber%> value=<%=RS( "grade" )%>>
               </font></div></td>
               <td width=116  align=middle class="STYLE1"><div align="center"><font size="2"><%=RS( "class" )%></font>
                       <input type="hidden" name=<%response.write "class"&iNumber%> value=<%=RS( "class" )%>>
               </div></td>
               <td width=106 align=middle class="STYLE1"><div align="center">
                   <input   name=<%response.write "score"&iNumber%> type="text" size="10" maxlength="10">
               </div></td>
               <td width=373  align=middle class="STYLE1"><div align="center">
                   <input name=<%response.write "shuoming"&iNumber%> type="text" size="30" maxlength="30" >
               </div></td>
             </tr>
             <%   
 
    iNumber=iNumber+1
    RS.MoveNext
    Wend
 %>
           </table>
             <div align="center"></div></td>
           <td width="159"><table width="132" align="center" border="1" cellpadding="3"   cellspacing="0"  bordercolor="#6D8DD8"  class="mtable">
             <tr>
               <td height="20" colspan="3" class="STYLE1"><div align="center">自动填充数字</div></td>
               </tr>
             <tr>
               <td width="36" height="20"><div align="center" class="STYLE5"> <a href="#" class="STYLE5" onClick="javascript:inputFenShu('10');return false;"> 10</a> </div></td>
               <td width="33"><div align="center"><a href="#" class="STYLE5" onClick="javascript:inputFenShu('100');return false;">100</a></div></td>
               <td width="37"><div align="center"><a href="#" class="STYLE5" onClick="javascript:inputFenShu('-10');return false;">-10</a></div></td>
             </tr>
			 <tr>
               <td height="20"><div align="center" class="STYLE5"> <a href="#" class="STYLE5" onClick="javascript:inputFenShu('9');return false;"> 9</a> </div></td>
               <td><div align="center"><a href="#" class="STYLE5" onClick="javascript:inputFenShu('95');return false;">95</a></div></td>
			   <td><div align="center"><a href="#" class="STYLE5" onClick="javascript:inputFenShu('-9');return false;">-9</a></div></td>
			 </tr>
			 <tr>
               <td height="20"><div align="center" class="STYLE5"> <a href="#" class="STYLE5" onClick="javascript:inputFenShu('8');return false;"> 8</a> </div></td>
               <td><div align="center"><a href="#" class="STYLE5" onClick="javascript:inputFenShu('90');return false;">90</a></div></td>
			   <td><div align="center"><a href="#" class="STYLE5" onClick="javascript:inputFenShu('-8');return false;">-8</a></div></td>
			 </tr>
			 <tr>
               <td height="20"><div align="center" class="STYLE5"> <a href="#" class="STYLE5" onClick="javascript:inputFenShu('7');return false;"> 7</a> </div></td>
               <td><div align="center"><a href="#" class="STYLE5" onClick="javascript:inputFenShu('85');return false;">85</a></div></td>
			   <td><div align="center"><a href="#" class="STYLE5" onClick="javascript:inputFenShu('-7');return false;">-7</a></div></td>
			 </tr>
			 <tr>
               <td height="20"><div align="center" class="STYLE5"> <a href="#" class="STYLE5" onClick="javascript:inputFenShu('6');return false;"> 6</a> </div></td>
               <td><div align="center"><a href="#" class="STYLE5" onClick="javascript:inputFenShu('80');return false;">80</a></div></td>
			   <td><div align="center"><a href="#" class="STYLE5" onClick="javascript:inputFenShu('-6');return false;">-6</a></div></td>
			 </tr>
			 <tr>
               <td height="20"><div align="center" class="STYLE5"> <a href="#" class="STYLE5" onClick="javascript:inputFenShu('5');return false;"> 5</a> </div></td>
               <td><div align="center"><a href="#" class="STYLE5" onClick="javascript:inputFenShu('75');return false;">75</a></div></td>
			   <td><div align="center"><a href="#" class="STYLE5" onClick="javascript:inputFenShu('-5');return false;">-5</a></div></td>
			 </tr>
			 <tr>
               <td height="20"><div align="center" class="STYLE5"> <a href="#" class="STYLE5" onClick="javascript:inputFenShu('4');return false;"> 4</a> </div></td>
               <td><div align="center"><a href="#" class="STYLE5" onClick="javascript:inputFenShu('70');return false;">70</a></div></td>
			   <td><div align="center"><a href="#" class="STYLE5" onClick="javascript:inputFenShu('-4');return false;">-4</a></div></td>
			 </tr>
			 <tr>
               <td height="20"><div align="center" class="STYLE5"> <a href="#" class="STYLE5" onClick="javascript:inputFenShu('3');return false;"> 3</a> </div></td>
               <td><div align="center"><a href="#" class="STYLE5" onClick="javascript:inputFenShu('65');return false;">65</a></div></td>
			   <td><div align="center"><a href="#" class="STYLE5" onClick="javascript:inputFenShu('-3');return false;">-3</a></div></td>
			 </tr>
			 <tr>
               <td height="20"><div align="center" class="STYLE5"> <a href="#" class="STYLE5" onClick="javascript:inputFenShu('2');return false;"> 2</a> </div></td>
               <td><div align="center"><a href="#" class="STYLE5" onClick="javascript:inputFenShu('60');return false;">60</a></div></td>
			   <td><div align="center"><a href="#" class="STYLE5" onClick="javascript:inputFenShu('-2');return false;">-2</a></div></td>
			 </tr>
			 <tr>
               <td height="20"><div align="center" class="STYLE5"> <a href="#" class="STYLE5" onClick="javascript:inputFenShu('1');return false;"> 1</a> </div></td>
               <td><div align="center"><a href="#" class="STYLE5" onClick="javascript:inputFenShu('55');return false;">55</a></div></td>
			   <td><div align="center"><a href="#" class="STYLE5" onClick="javascript:inputFenShu('-1');return false;">-1</a></div></td>
			 </tr>
			 <tr>
               <td height="20"><div align="center" class="STYLE5"> <a href="#" class="STYLE5" onClick="javascript:inputFenShu('0');return false;"> 0</a> </div></td>
               <td><div align="center"><a href="#" class="STYLE5" onClick="javascript:inputFenShu('50');return false;">50</a></div></td>
			   <td><div align="center"><a href="#" class="STYLE5" onClick="javascript:inputFenShu('0');return false;">0</a></div></td>
			 </tr>
           </table>
           <br>
             <div align="center">
               <input name="iNumber" type="hidden" id="iNumber" value=<%=iNumber%>>
               <% RS.Close
  %>
               <font size="2">
                <input name="submit" type="submit" class="topanniu" value="保存">
            </font></div></td>
         </tr>
         <tr>
           <td height="72" colspan="2">
		   
		  
      <%   Set MyOAASPObj = Server.CreateObject("YFSchoolOApro2.YFSchoolDll2")
       call  MyOAASPObj.BWPB_ADDList(strYears,strGrade)
       set MyOAASPObj=nothing%>	  
		   
		   
		   </td>
          </tr>
       </table>
       <p>
         <label></label>
         <br> 
       </p>
       <p align="center">&nbsp;</p>
	  
	  
	
 

</FORM>





  </td>
  </tr>
</table>
</body>
</html>
