📄 stu_name.asp
字号:
<!--#include file="chkadmin.asp"-->
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css.css" rel="stylesheet" type="text/css">
<title>学生成绩管理系统</title>
</head>
<body>
<%
Dim xid
If Trim(Request("xid"))="" Then
Response.Write "学号还没有填写,不能继续查找!"
Response.end
End If
If Not IsNumeric(Trim(Request("xid"))) Then
Response.Write "填写的学号不正确!无法继续查找!"
Response.end
End If
xid=Trim(Request("xid"))
%>
<div align="center">
<center>
<form method="post" action="stu_name_ok.asp?id=<%=xid%>">
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#ffffff" width="100%" height="125">
<tr>
<td width="100%" background="../Images/admin_table_bg.gif" height="25" colspan="2">
<p align="center"><font color="#FFFFFF"><b>查询结果/修改学生资料</b></font></td>
</tr>
<%
set bs=server.createobject("adodb.recordset")
bs.open "select * from [stu] where xid="&xid,conn,1,3
If bs.eof or bs.bof Then
Response.Redirect "Stu_name_no.asp"
Response.End
Else
%>
<tr>
<td width="8%" height="19" bgcolor="#D9E6FF" align="center">学 号:</td>
<td width="92%" height="19" bgcolor="#D9E6FF">
<input type="text" name="xid" size="20" tabindex="1" value="<%=bs("xid")%>"></td>
</tr>
<tr>
<td width="8%" height="19" bgcolor="#D9E6FF" align="center">姓 名:</td>
<td width="92%" height="19" bgcolor="#D9E6FF">
<input type="text" name="name" size="20" tabindex="2" value="<%=bs("name")%>"></td>
</tr>
<tr>
<td width="8%" height="19" bgcolor="#D9E6FF" align="center">性 别:</td>
<td width="92%" height="19" bgcolor="#D9E6FF">
<select size="1" name="sex" tabindex="3">
<%
If bs("sex")="男" Then
%>
<option selected value="男">男</option>
<option value="女">女</option>
<option value="未指定">未指定</option>
<%
ElseIf bs("sex")="女" Then
%>
<option value="男">男</option>
<option selected value="女">女</option>
<option value="未指定">未指定</option>
<%
Else
%>
<option value="男">男</option>
<option value="女">女</option>
<option selected value="未指定">未指定</option>
<%End If%>
</select> </td>
</tr>
<tr>
<td width="8%" height="18" bgcolor="#D9E6FF" align="center">班 级:</td>
<td width="0%" height="18" bgcolor="#D9E6FF">
<select size="1" name="classid" tabindex="4">
<%
set fs=server.createobject("adodb.recordset")
fs.open "select * from [class]",conn,1,1
set rs=server.createobject("adodb.recordset")
Do while Not fs.EOF
rs.open "select * from [pro] where id="&fs("proid"),conn,1,1
If fs("id")=bs("classid") Then
Response.Write "<option Selected Value="& fs("id") & ">" &rs("xi")&rs("pro")&fs("num")&"班</option>"
Else
Response.Write "<option Value="& fs("id") & ">" &rs("xi")&rs("pro")&fs("num")&"班</option>"
End If
rs.Close
fs.MoveNext
Loop
Set rs=nothing
fs.Close
Set fs=nothing
%>
</select></td>
<td width="92%" height="18" bgcolor="#D9E6FF">
</td>
</tr>
<tr>
<td width="7%" bgcolor="#D9E6FF" height="21">
<p align="center"> </td>
<td width="93%" bgcolor="#D9E6FF" height="21">
<input type="submit" value="修 改" name="B1" tabindex="5"> <a href="stu_search.asp">[返回到上一页]</a>
|
<a href="cj_show_all.asp?id=<%=bs("xid")%>">[查看该同学成绩信息]</a> | <a href="stu_del.asp?id=<%=bs("xid")%>">[删除该同学信息]</a></td>
</tr>
</table>
<%
End If
bs.Close
Set bs=Nothing
%>
</form>
</center>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -