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

<style type="text/css">
<!--
.STYLE5 {color: #FF0000}
-->
</style>
<script Language=JavaScript>


function form_check(){
   if(document.form1.xueniandu.value.length<1){window.alert("请输入学年度");document.form1.xueniandu.focus();return (false);}
    if(document.form1.kemu.value.length<1){window.alert("请输入任教科目");document.form1.kemu.focus();return (false);}
    if(document.form1.nianji.value.length<1){window.alert("请输入任教年级");document.form1.nianji.focus();return (false);}
	 if(document.form1.banshu.value.length<1){window.alert("请输入任教班数");document.form1.banshu.focus();return (false);}
	  if(document.form1.keshi.value.length<1){window.alert("请输入周课时数");document.form1.keshi.focus();return (false);}
	   if(document.form1.banzhuren.value.length<1){window.alert("请输入班主任科级组长");document.form1.banzhuren.focus();return (false);}
	    if(document.form1.hegelv.value.length<1){window.alert("请输入合格率");document.form1.hegelv.focus();return (false);}
		 if(document.form1.youxiulv.value.length<1){window.alert("请输入优秀率");document.form1.youxiulv.focus();return (false);}
		  if(document.form1.kaohejieguo.value.length<1){window.alert("请输入年度考核结果");document.form1.kaohejieguo.focus();return (false);}
	  
} 
</script> 

<body>  
<% 
 '检查权限

   
       username=request.cookies("tname")
	  
	    Power=1
       Set MyOAASPObj= Server.CreateObject("YFSchoolOApro.YFSchoolDll")
           if MyOAASPObj.QuanXian(username,"自己维护档案")=0   and  MyOAASPObj.QuanXian(username,"员工档案")=0   then 
		      Power=0
           end if 
		   set MyOAASPObj=nothing
'检查权限结束
   id=request("id")            
   tname=request("tname") 
   xueniandu=request("xueniandu")
   kemu=request("kemu")
   nianji=request("nianji")
   banshu=request("banshu")
   keshi=request("keshi")
   banzhuren=request("banzhuren")
   hegelv=request("hegelv")
   youxiulv=request("youxiulv")
   kaohejieguo=request("kaohejieguo")
   
 
    
   Set RsJiLu=Server.CreateObject("Adodb.Recordset")
           sqlJiLu="select * from EmployeeJiaoYu  where id ='"&id&"'"
           RsJiLu.open sqlJiLu,conn,1,1
  
%>

<table width="99%" height="500" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="33"><table width="100%" height="33" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="120" class="NemuNot" ><div align="center"><a href="ViewDangAn.asp?tname=<%=tname%>" target="_self"><%=tname%>的基本资料</a></div></td>
        <td width="70" class="NemuNot" ><div align="center"><a href="zhuanyejishu.asp?tname=<%=tname%>" target="_self">专业技术</a></div></td>
        <td width="70" class="NemuNot" ><div align="center"><a href="Jixujiaoyu.asp?tname=<%=tname%>" target="_self">继续教育</a></div></td>
         <td width="70" class="NemuNot" ><div align="center"><a href="huojiang.asp?tname=<%=tname%>" target="_self">获奖情况</a></div></td>
        <td width="70" class="NemuNot" ><div align="center"><a href="xuexi.asp?tname=<%=tname%>" target="_self">学习经历</a></div></td>
        <td width="70" class="NemuNot" ><div align="center"><a href="gongzuo.asp?tname=<%=tname%>" target="_self">工作经历</a></div></td>
        <td width="70" class="Nemuselect" ><div align="center"><a href="jiaoyu.asp?tname=<%=tname%>" target="_self">教育教学</a></div></td>
        <td width="70" class="NemuNot" ><div align="center"><a href="jiating.asp?tname=<%=tname%>" target="_self">家庭情况</a></div></td>
        	<%   
   Set Rslist=Server.CreateObject("Adodb.Recordset")
   sqllist="select * from Employee where 姓名 ='"&tname&"'"
   Rslist.open sqllist,conn,1,1   
    %>
		<td width="70" class="NemuNot" ><div align="center"><a href="dangan.asp?lizhi=<%=Rslist("是否离职")%>" target="_self">返回列表</a></div></td>
       <td    class="NemuLine">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="470" valign="top"   class="NemuMainBox"><br>
    
	
	
	
	

<%if Power=1 then%>
<div align="center">
<br>
 <table width="341" height="264" border="0" align="center" cellpadding="3"   cellspacing="0"  >   
  <form action="Savejiaoyu.asp?id=<%=id%>"  method="post" name="form1" onSubmit="return form_check();">
    
    <tr>
      <td width="7%" height="24" nowrap class="STYLE1"><div align="right">学年度:</div></td>
      <td width="13%" nowrap class="STYLE1">
	    
          <div align="left">
            <input name="xueniandu" type="text" class="text"  id="xueniandu" style="WIDTH: 200px"  size="30" maxlength="30" onFocus='this.style.backgroundColor="#FFFADF"' onBlur='this.style.backgroundColor="#FFFFFF"'  value=<%=RsJiLu("学年度")%> >
            <input type="hidden" name="tname" value=<%=tname%>>
          </div></td>
      </tr>
    <tr>
      <td height="24" nowrap class="STYLE1"><div align="right">任教科目:</div></td>
      <td nowrap class="STYLE1"><div align="left">
        <input name="kemu" type="text" class="text" id="kemu" style="WIDTH: 200px" 
      onFocus='this.style.backgroundColor="#FFFADF"' onBlur='this.style.backgroundColor="#FFFFFF"'   size="30" maxlength="30" value=<%=RsJiLu("任教科目")%>>
      </div></td>
      </tr>
    <tr>
      <td height="24" nowrap class="STYLE1"><div align="right">任教年级:</div></td>
      <td nowrap class="STYLE1"><div align="left">
        <input name="nianji" type="text" class="text" id="nianji" size="30" maxlength="30" onBlur='this.style.backgroundColor="#FFFFFF"' style="WIDTH: 200px"   onFocus='this.style.backgroundColor="#FFFADF"'  value=<%=RsJiLu("任教年级")%>>
  &nbsp; </div></td>
      </tr>
    
    <tr>
      <td height="24" nowrap class="STYLE1"><div align="right">任教班数:</div></td>
      <td nowrap class="STYLE1"><div align="left">
          <input name="banshu" type="text" class="text" id="banshu" size="30" maxlength="30" onBlur='this.style.backgroundColor="#FFFFFF"' style="WIDTH: 200px"   onFocus='this.style.backgroundColor="#FFFADF"'  value=<%=RsJiLu("任教班数")%>>
        &nbsp; </div></td>
    </tr>
    <tr>
      <td height="24" nowrap class="STYLE1"><div align="right">周课时数:</div></td>
      <td nowrap class="STYLE1"><div align="left">
          <input name="keshi" type="text" class="text" id="keshi" size="30" maxlength="30" onBlur='this.style.backgroundColor="#FFFFFF"' style="WIDTH: 200px"   onFocus='this.style.backgroundColor="#FFFADF"'  value=<%=RsJiLu("周课时数")%>>
        &nbsp; </div></td>
    </tr>
    <tr>
      <td height="24" nowrap class="STYLE1"><div align="right">班主任科级组长:</div></td>
      <td nowrap class="STYLE1"><div align="left">
          <input name="banzhuren" type="text" class="text" id="banzhuren" size="30" maxlength="30" onBlur='this.style.backgroundColor="#FFFFFF"' style="WIDTH: 200px"   onFocus='this.style.backgroundColor="#FFFADF"'  value=<%=RsJiLu("班主任科级组长")%>>
        &nbsp; </div></td>
    </tr>
    <tr>
      <td height="24" nowrap class="STYLE1"><div align="right">合格率(%):</div></td>
      <td nowrap class="STYLE1"><div align="left">
          <input name="hegelv" type="text" class="text" id="hegelv" size="30" maxlength="30" onBlur='this.style.backgroundColor="#FFFFFF"' style="WIDTH: 200px"   onFocus='this.style.backgroundColor="#FFFADF"'  value=<%=RsJiLu("合格率")%>>
        &nbsp; </div></td>
    </tr>
    <tr>
      <td height="24" nowrap class="STYLE1"><div align="right">优秀率(%):</div></td>
      <td nowrap class="STYLE1"><div align="left">
          <input name="youxiulv" type="text" class="text" id="youxiulv" size="30" maxlength="30" onBlur='this.style.backgroundColor="#FFFFFF"' style="WIDTH: 200px"   onFocus='this.style.backgroundColor="#FFFADF"'  value=<%=RsJiLu("优秀率")%>>
        &nbsp; </div></td>
    </tr>
    <tr>
      <td height="24" nowrap class="STYLE1"><div align="right">年度考核结果:</div></td>
      <td nowrap class="STYLE1"><div align="left">
          <input name="kaohejieguo" type="text" class="text" id="kaohejieguo" size="30" maxlength="30" onBlur='this.style.backgroundColor="#FFFFFF"' style="WIDTH: 200px"   onFocus='this.style.backgroundColor="#FFFADF"'  value=<%=RsJiLu("年度考核结果")%>>
        &nbsp; </div></td>
    </tr>
    <tr>
      <td height="24" nowrap class="STYLE1">&nbsp;</td>
      <td nowrap class="STYLE1">&nbsp;</td>
    </tr>
    
    <tr>
      <td height="24" colspan="2" nowrap class="STYLE1"><div align="center"><span class="mtdtl">
        <%if id="" then%>
        <input name="submit" type="submit" class="topanniu" value="新增保存">
        <%else%>
        <input name="submit" type="submit" class="topanniu" value="保存修改">
        <%end if%>
        
       
      </span></div></td>
      </tr>
  </form>
</table>
<%end if%>

</div>
<p><br>
   <%   Set RsJiLu=Server.CreateObject("Adodb.Recordset")
           sqlJiLu="select * from EmployeeJiaoYu  where tname ='"&tname&"'  order by id desc"
           RsJiLu.open sqlJiLu,conn,1,1
           if RsJiLu.eof and  RsJiLu.bof then %>
</p>
<div align="center" title="提示信息框">
           <span style="BACKGROUND:#EEEEFF;COLOR:#FF6633;margin: 10px;border:1px dotted #FF6633;
	    	 font-weight:bold;padding:8px;width=140">无当前记录</span>
</div>
           <%else %>
          <table width="92%" align="center" border="1" cellpadding="3"   cellspacing="0"  bordercolor="#6D8DD8"  class="mtable">
            <tr  class="TableHeader" style="background-color:#D6E4FF"  >
              <td height="30" align="center" nowrap class="STYLE1">学年度</td>
              <td align="center" nowrap class="STYLE1">任教科目</td>
              <td align="center" nowrap class="STYLE1">任教年级</td>
              <td align="center" nowrap class="STYLE1">任教班数</td>
              <td align="center" nowrap class="STYLE1">周课时数</td>
              <td align="center" nowrap class="STYLE1">班主任科级组长</td>
              <td align="center" nowrap class="STYLE1">合格率(%)</td>
              <td align="center" nowrap class="STYLE1">优秀率(%)</td>
              <td align="center" nowrap class="STYLE1">年度考核结果</td>
              <%if Power=1 then%>	 
              <td align="center" nowrap class="STYLE1">操作</td>
			  <%end if%>	
            </tr>
            <tr class="TableData">
              <%         			 
            while not RsJiLu.eof and not RsJiLu.bof
           %>
              <td width="95" height="30" class="STYLE1"><div align="center"><%=RsJiLu("学年度")%></div></td>
			  <td width="108" class="STYLE1"><div align="center"><%=RsJiLu("任教科目")%></div></td>
		      <td width="108" class="STYLE1"><div align="center"><%=RsJiLu("任教年级")%></div></td>
		      <td width="108" class="STYLE1"><div align="center"><%=RsJiLu("任教班数")%></div></td>
		      <td width="108" class="STYLE1"><div align="center"><%=RsJiLu("周课时数")%></div></td>
		      <td width="136" class="STYLE1"><div align="center"><%=RsJiLu("班主任科级组长")%></div></td>
		      <td width="69" class="STYLE1"><div align="center"><%=RsJiLu("合格率")%></div></td>
		      <td width="83" class="STYLE1"><div align="center"><%=RsJiLu("优秀率")%></div></td>
		      <td width="89" class="STYLE1"><div align="center"><%=RsJiLu("年度考核结果")%></div></td>
		      <%if Power=1 then%>	 
              <td width="147" class="STYLE1"><div align="center"><a href="jiaoyu.asp?id=<%=RsJiLu("id")%>&tname=<%=tname%>">修改</a>&nbsp;&nbsp;&nbsp;
			   
              <a   href= "# "   onclick= "javascript:if(confirm( '您真的要删除记录吗？ '))href= 'deljiaoyu.asp?id=<%=RsJiLu("id")%>&tname=<%=tname%>'; "> 删除 </a>           </td> 
		   
		  <%end if%>	  
		   </tr>
            <%
					  RsJiLu.movenext
					  wend
					  RsJiLu.close
					  Set RsJiLu = Nothing
					  conn.close
					  set conn=nothing

					  %>
          </table>
          <%end if  %>
	
	
	
	</td>   
  </tr>
</table>
</body>
</html>
