⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 studentlist.asp

📁 查询,基于ASP的开发环境!数据库是ACCESS [成绩查询.rar] - 网上成绩查询系统 把学生姓名成绩输入数据库...[
💻 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>&nbsp;&nbsp;&nbsp;</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 + -