📄 look.asp
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>计科二班</title>
<style type="text/css">
<!--
body {
scrollbar-face-color: #FFC4B0;
scrollbar-highlight-color: #FFC4B0;
scrollbar-shadow-color: #FF7142;
scrollbar-3dlight-color: #FF7142;
scrollbar-arrow-color: #FF7142;
scrollbar-darkshadow-color:#FFC4B0;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(img/bg3.gif);
background-position:center;
margin-left: 0px;
}
body,td,th {
font-size: 12px;
color: #FF7142;
font-family: 宋体;
}
a {
font-family: 宋体;
font-size: 12px;
}
a:link {
text-decoration: none;
color: #FF7142;
}
a:visited {
text-decoration: none;
color: #FF7142;
}
a:hover {
text-decoration: none;
color: #FFB59D;
}
a:active {
text-decoration: none;
color: #FFB59D;
}
h1,h2,h3,h4,h5,h6 {
font-family: 宋体;
}
.style2 {color: #ff41b5}
-->
</style>
</head>
<body>
<table width="495" height="578" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="495" height="83" align="center" valign="top" background="img/top3.gif"> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td height="421" valign="top">
<table width="430" border="0" height="90%" align="center" cellpadding="0" cellspacing="0">
<tr><td width="478" height='421' valign='top' background="img/bg33.gif"><div align=center>
<p>
<p>计科二班期末考试成绩在线查询
</p>
</p>
<table width="200" border="0">
<tr>
<td><%
dim rs
dim sql
dim conn
dim xh
xh=request("xh")
set rs=server.createobject("adodb.recordset")
conn = "DBQ=" + server.mappath("cj.mdb") + ";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
if request("xh")<>"" then
sql="select * from bbs1 where xh like'" & xh & "'"
else
sql="select top 1 * from bbs1"
end if
rs.Open sql,conn,1,1
totalput=rs.RecordCount
if rs.EOF and rs.BOF then
Response.Write "当前没有这个学号的成绩~~~~~~~~~~"
else
%>
<tr bgcolor=#00CCCC>
<TD bgcolor="#FFFF00">姓名</TD>
<td bgcolor="#FFFF00">科目~~~成绩</td>
<td bgcolor="#FFFF00">学号</td>
</tr>
<%
do while not rs.eof
%>
<tr bgcolor=#FFFF99 background="img/bg33.gif">
<td background="img/bg33.gif"><%=rs("user")%></td>
<td background="img/bg33.gif"><%=rs("cj")%></td>
<td background="img/bg33.gif"><%=rs("xh")%></td>
</tr>
<%
rs.movenext
loop
end if
rs.Close
set rs=nothing
set conn=nothing
%></td>
</tr>
</table>
<p> </p>
<p>
<p> </p>
<p> </p>
<p>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="2"></td>
</tr>
<tr>
<td height="33" align="center"><img src="img/bott3.gif" width="495" height="33"></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -