📄 stuquery.asp
字号:
<!--#include file="conn.asp"-->
<%
if session("user")="" then
response.write "您无此权限"
response.end
end if
sName=trim(request("user_name"))
if sName="" then
response.Write("请输入学生姓名!")
response.end
end if
set rs=server.createobject("adodb.recordset")
sql="select * from st_info where user_name='"&sName&"'"
rs.open sql,conn,1,3
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>学生信息管理</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!--#include file="top.asp"-->
<div align="center">
<table border="1" width="700" bordercolorlight="#000000" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF">
<tr>
<td width="71" bgcolor="#EBE9FE" align="center">学号</td>
<td width="78" bgcolor="#EBE9FE" align="center">姓名</td>
<td width="65" bgcolor="#EBE9FE" align="center">性别</td>
<td width="78" bgcolor="#EBE9FE" align="center">班级</td>
<td width="110" bgcolor="#EBE9FE" align="center">毕业时间</td>
<td width="110" bgcolor="#EBE9FE" align="center">寝室电话</td>
</tr>
<%
if Not rs.eof then
do while not rs.eof
%>
<tr>
<td width="71" align="center"><%=rs("user_number")%></td>
<td width="78" align="center"><a href=xuefeiQuery.asp?id=<%=rs("id")%>&user_type=<%=request("user_type")%>><%=rs("user_name")%></a></td>
<td width="65" align="center"><%=rs("user_sex")%></td>
<td width="78" align="center"><%=rs("user_class")%></td>
<td width="110" align="center"><%=rs("out_time")%> </td>
<td width="110" align="center"><%=rs("user_bedroomphone")%></td>
</tr>
<%
rs.movenext
loop
else
response.write "<tr><td colspan=13><marquee scrolldelay=120 behavior=alternate>没有找到任何记录!!!</marquee></td></tr>"
end if
rs.close
set rs=nothing
%>
</table>
</div>
<!--#include file="down.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -