📄 look.asp
字号:
<!-- #include file="top.asp"-->
<!-- #include file="stumenu.asp"-->
<table width="752" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<%
if xh="" then
xh=session("user")
else
xh=request("xh")
end if
set rs=server.createobject("adodb.recordset")
conn = "DBQ=" + server.mappath("class_cj.mdb") + ";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
if request("xh")<>"" then
sql="select * from bbs1 where xh like'" & xh & "' order by cj"
else
sql="select * from bbs1 where xh like'" & xh & "' order by cj"
end if
rs.Open sql,conn,1,1
totalput=rs.RecordCount
if rs.EOF and rs.BOF then
Response.Write("<TD height='25'>当前没有这个学号的成绩~~~~~~~~~~</td>")
else
Response.Write("<TD height='25' bgcolor='#EEEEEE' colspan='3'> 班级:"&rs("bj")&"</TD>")
%>
</tr>
</table>
<table width="768" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#F0F0F0" id=TabDocMain>
<tr>
<TD width="87" height="25"><div align=center>学号</div></TD>
<td width="83" height="25" align=center>姓名</td>
<td width="83" height="25" align=center>课程</td>
<td width="79" height="25" align=center>成绩</td>
<td width="90" height="25" align=center>学期</td>
<td width="72" height="25" align=center>类型</td>
</tr>
<%
do while not rs.eof
%>
<tr>
<td width="87" height="25" align=center><%=rs("xh")%></td>
<td width="83" height="25" align=center><%=rs("user")%></td>
<td width="83" height="25" align=center><%=rs("kc")%></td>
<td width="79" height="25" align=center><%=rs("cj")%></td>
<td width="90" height="25" align=center><%=rs("xq")%></td>
<td width="72" height="25" align=center><%=rs("lx")%></td>
</tr>
<%
rs.movenext
loop
end if
rs.Close
set rs=nothing
set conn=nothing
%>
</table>
<!-- #include file="copyr.asp" -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -