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

<head>
<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,3,3
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>
     
<%

rs_stu("igp")=request("igp")
rs_stu("igc")=request("igc")
rs_stu("igm")=request("igm")
rs_stu("igb")=request("igb")

rs_stu("alp")=request("alp")
rs_stu("alc")=request("alc")
rs_stu("alm")=request("alm")
rs_stu("alb")=request("alb")


rs_stu.update
rs_stu.close
%>  
 

 </td></tr>
 
 <tr><td><p align=center><br><br><br><br>成绩修改成功，<a href=cj_list.asp>请返回</a></p></td></tr>

 </table>  
 
<%
end if

set rs_stu=nothing
%>




















