📄 stuscore.asp
字号:
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>成绩查询</title>
</head>
<body>
<%
dim conn,connstr
connstr="Driver={sql server};UID=sa;PWD=sa;database=zikao;server=BILLGATES"
set conn=server.createobject("ADODB.CONNECTION")
conn.open connstr
set rs=Server.CreateObject("ADODB.Recordset")
sql="select * from grade where sno= '"&session("idstr")&"'"
rs.open sql,conn,3
%>
<table border="1" width="686" height="134">
<tr>
<td height="42" width="686" colspan="4">
<p align="center">成绩查询</td>
</tr> <%
if rs.eof then
response.write " <tr><td width='686' height='41'><div align='center'>暂无信息</td> </tr>"
else
%>
<tr>
<td height="38" width="140" align="center">课号</td>
<td height="38" width="174" align="center">课程名称</td>
<td height="38" width="162" align="center">成绩</td>
</tr>
<%
rs.Movefirst()
while not rs.eof
%>
<%
response.write"<tr><td height='43' width='140' align='center'>"&rs(1)&"</td><td height='43' width='174' align='center'>"&rs(0)&"</td><td height='43' width='162' align='center'>"&rs(2)&"</td></tr>"
rs.MoveNext()
wend
end if
%>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -