?? studentlist.asp
字號:
<!--#include file="conn.asp"-->
<%
class1=request.form("class1")
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from class where classname='"&class1&"'"
rs.Open sql,conn,1,1
teacher=rs("classadmin")
rs.close
sql="select * from admin1 where class='"&class1&"' ORDER by number"
rs.Open sql,conn,1,1
if not rs.eof then
%>
<!--#include file="top.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css.css">
<title>理學院成績查詢系統-學生列表</title>
<style type="text/css">
<!--
.style1 {color: #0000FF}
-->
</style>
</head>
<body leftmargin="0" Topmargin="0" marginwidth="0" marginheight="0" background="images/greystrip.gIf">
<table width="760" border="0" cellspacing="0" cellpadding="0">
<tr><td><div align="right"><a href="manage.asp"><font color="red">返回管理首頁</font></a> </div></td></tr>
</table>
<table width="760" border="0" cellspacing="0" cellpadding="0" bgcolor="#316395" vspace="0" hspace="0" bordercolor="#316395" bordercolordark="#FFFFFF" bordercolorlight="#316395" background="images/titbg.gIf" height="26" align="center">
<tr>
<td height="25"><div align="center"><a align="center"><%=rs("class")%>班學生列表 </a></div></td> <td>班主任:<%Response.Write teacher%></td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="5" cellspacing="0">
<tr>
<td width="142"><div align="center" class="style1">學 號</div></td>
<td width="142"><div align="center" class="style1">姓 名</div></td>
<td width="142"><div align="center" class="style1">性 別</div></td>
<td width="142"><div align="center" class="style1">電 話</div></td>
<td width="142"><div align="center" class="style1">宿 舍</div></td>
</tr>
</table>
<% do while not rs.eof %>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="760"><div align="center">------------------------------------------------------------------------------------------------------------</div></td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="5" cellspacing="0">
<tr>
<td width="142"><div align="center"><%=rs("number")%></div></td>
<td width="142"><div align="center"><%=rs("studentname")%></div></td>
<td width="142"><div align="center"><%=rs("sex")%></div></td>
<td width="142"><div align="center"><%=rs("phone")%></div></td>
<td width="142"><div align="center"><%=rs("home")%></div></td>
</tr>
</table>
<% i=i+0
rs.movenext
if i>=rs.PageSize then exit do
loop
rs.close
set rs=nothing
conn.close
set conn=nothing %>
</body>
</html><!--#include file="bottom.asp"-->
<%
else
response.write "對不起,沒有找到!"
end if%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -