<% if session("admid")="" or Session("class")<>"1" then response.redirect"login.asp"%>
<!--#include file="conn.asp"-->

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>学生成绩管理</title>
<link rel="stylesheet" type="text/css" href="style.css">
<%
function err(strin)                             'err("×　请填写...")
Response.Write("<script language=javascript>")
Response.Write("alert('")
Response.Write(strin)
Response.Write("');")
Response.Write("history.go(-1);")
Response.Write("</script>")
Response.End()
end function
%>
<!--显示-->

<style type="text/css">
<!--
body,td,th {
	font-size: 12px;
}
-->
</style>
</head>

　<table width="80%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#006d63" style="border-collapse: collapse">
<tr><td align="center" bgcolor="#006d63" style="border-bottom:1px solid #FFFFFF;">
	<font color="#FFFFFF"><b>学生成绩录入OR修改</b></font></td>
</tr>
<tr><td align="center" bgcolor="#FFFFFF">

<table width="100%" border="0" align="center" cellpadding="5" cellspacing="0" style="border-collapse: collapse">
  <tr>
    <td colspan="8"></td>
  </tr>
<%
sql_stu="select * from user where id="&request("id")
set rs_stu=server.createobject("adodb.recordset")
rs_stu.open sql_stu,conn,1,1
if rs_stu.eof And rs_stu.bof then 
response.write "学生资料错误，请返回"
else
%>
     <tr>
    <td>
	<p align="right">考生信息：   Candidate No：</td>    
    <td><%=rs_stu("c_no")%></td>
    <td>
	<p align="right">Candidate Name：</td>    
    <td><%=rs_stu("name")%></td>
    <td>
	<p align="right">Class：</td>
    <td><%=rs_stu("class")%></td>
    <td>
	<p align="right">Username：</td>
    <td><%=rs_stu("username")%></td>
  </tr>
     
  
  
   <tr>
            <td style="border-bottom-style: dotted; border-bottom-width: 1px; padding: 0" colspan="8"></td>
   </tr> 
 </table>
 
 <table width="559" border="0" align="center" cellpadding="5" cellspacing="0" style="border-collapse: collapse">
   <tr>
    <td align=center width="373">
	<p><b>Subjects</b></td>
    
    <td align=center width="372">
	<p align="left"><b>Score</b></td>
  </tr>
 <tr><td colspan="3" width="547">
 
 <form action="cj_save.asp?id=<%=rs_stu("id")%>" method="POST">
 <table width="528" border="1" cellspacing="1" bordercolorlight="#000000" bordercolordark="#FFFFFF" height="1">
  <col width="98" style="mso-width-source:userset;mso-width-alt:3136;width:74pt">
  <col width="291" style="mso-width-source:userset;mso-width-alt:9312;width:218pt">
  <tr height="20" style="height:15.0pt">
    <td class="xl40" width="230" style="border-bottom: .5pt solid black" bgcolor="#CCCCCC">IG 
      Physics</td>
    <td class="xl22" width="282" x:str="0625/1--- IGCSE Physics Multiple Choice " bgcolor="#CCCCCC"><input type="text" name="igp" size="20" value="<%=rs_stu("igp")%>"></td>
  </tr>
  <tr height="19" style="height:14.25pt">
    <td class="xl38" style="border-top-style: none; border-top-width: medium; border-bottom: .5pt solid black" width="230" bgcolor="#CCCCCC">IG    
      Chemistry</td>
    <td class="xl24" style="border-top-style: none; border-top-width: medium" width="282" bgcolor="#CCCCCC"><input type="text" name="igc" size="20" value="<%=rs_stu("igc")%>"></td>
  </tr>
  <tr height="19" style="height:14.25pt">
    <td class="xl38" style="border-top-style: none; border-top-width: medium; border-bottom: .5pt solid black" width="230" bgcolor="#CCCCCC">IG 
      Mathematics</td>
    <td class="xl23" style="border-top-style: none; border-top-width: medium" width="282" bgcolor="#CCCCCC"><input type="text" name="igm" size="20" value="<%=rs_stu("igm")%>"></td>
  </tr>
  <tr height="20" style="height:15.0pt">
    <td class="xl38" style="border-top-style: none; border-top-width: medium; border-bottom: 2.0pt double black" width="230" bgcolor="#CCCCCC">IG 
      Businstudies</td>
    <td class="xl26" style="border-top-style: none; border-top-width: medium" x:str="0450/1--- IGCSE Business Studies " width="282" bgcolor="#CCCCCC"><input type="text" name="igb" size="20" value="<%=rs_stu("igb")%>"></td>
  </tr>
  <tr height="20" style="height:15.0pt">
    <td class="xl42" style="border-top-style: none; border-top-width: medium; border-bottom: .5pt solid black" width="230">AL 
      Physics</td>
    <td class="xl29" x:str="9702/1--- AS Physics Multiple Choice " width="282"><input type="text" name="alp" size="20" value="<%=rs_stu("alp")%>"></td>
  </tr>
  <tr height="19" style="height:14.25pt">
    <td class="xl38" style="border-top-style: none; border-top-width: medium; border-bottom: .5pt solid black" width="230">AL 
      Chemistry</td>
    <td class="xl34" style="border-top-style: none; border-top-width: medium" width="282"><input type="text" name="alc" size="20" value="<%=rs_stu("alc")%>"></td>
  </tr>
  <tr height="19" style="height:14.25pt">
    <td class="xl38" style="border-top-style: none; border-top-width: medium; border-bottom: .5pt solid black" width="230">AL 
      Mathematics</td>
    <td class="xl30" style="border-top-style: none; border-top-width: medium" width="282"><input type="text" name="alm" size="20" value="<%=rs_stu("alm")%>"></td>
  </tr>
  <tr height="19" style="height:14.25pt">
    <td class="xl38" style="border-top-style: none; border-top-width: medium; border-bottom: 2.0pt double black" width="230">AL 
      Businstudies</td>
    <td class="xl35" style="border-top-style: none; border-top-width: medium" width="282"><input type="text" name="alb" size="20" value="<%=rs_stu("alb")%>"></td>
  </tr>
 </table>
 <p align="center">
 <input type="submit" value="提交" name="B1">&nbsp;&nbsp; <input type="reset" value="重写" name="B2">
 <table border="0" cellpadding="5" cellspacing="1" bgcolor="#006d63" style="border-collapse: collapse">
 
 
 
 
 </table>
 
 </form>
 </td></tr>
 </table>  
 
<%
end if

set rs_stu=nothing
%>

