<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file ="../connadmin.asp"-->
<!--#include file = "tuzh_pri.asp"-->
<% 
id=request("id")
sql="select * from Results where id="&id 
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,3
xuehao=request.form("xuehao")
UserName=request.form("UserName")
Classo=request.form("Classo")
yuwen=cint(request.form("yuwen"))
shuxue=request.form("shuxue")
yingyu=request.form("yingyu")
wuli=request.form("wuli")
huaxue=request.form("huaxue")
zhenzhi=request.form("zhenzhi")
if xuehao=""  then 
response.Write("<script language=javascript>alert('学号不能为空！');history.go(-1)</script>") 
response.end 
end if
if UserName="" then 
response.Write("<script language=javascript>alert('姓名不能为空！');history.go(-1)</script>") 
response.end 
end if
rs("xuehao")=xuehao
rs("UserName")=UserName
rs("Classo")=Classo
rs("yuwen")=yuwen
rs("shuxue")=shuxue
rs("yingyu")=yingyu
rs("wuli")=wuli
rs("huaxue")=huaxue
rs("zhenzhi")=zhenzhi
rs.update 
rs.close 
response.Write("<script language=""javascript"">alert(""修改成功！"");window.location.href='Results_Manage.asp';</script>")
%>