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

📄 search_st.asp

📁 --- --- --- --- --- --- --- --- --- --- --- --- --- --- 该程序由2001计算机信息管理系应田丰开发 本程序学历文凭考试相关流程编写
💻 ASP
字号:
<!--#include file="conn.asp"-->
<%
if session("user")="" then
	response.write "您无此权限"
	response.end
end if

'------------------------------------------------------------------------------------
'该程序由杭州新世纪经贸专修学院2001计算机信息管理系应田丰开发
'本程序按浙江省学历文凭考试相关流程编写,无任何抄袭代码和盗版之嫌,大家可下载随意修改
'苦儿声明:
'本程序是老苦自己辛苦写成的,希望大家能给个面子保留著作权信息,:)
'这个是第一个版本,有些地方没有考虑到,请大家在试用后给些意见,我好继续编写改进版
'苦儿QQ:3431788 7551860
'MSN:kuer_cn@msn.com
'Email:simonying@163.com
'电话:0571-63413694 
'移动电话:13083973989
'------------------------------------------------------------------------------------
%>

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>按姓名查询</title>
<link rel="stylesheet" href="style.css">
</head>

<body topmargin="0">
<!--#include file="top.asp"-->
<div align="center">
  <table border="0" width="400" cellspacing="0" cellpadding="0">
    <tr>
      <td width="100%">
        <form method="POST" action="search_user.asp">
          <table border="1" width="100%" bordercolorlight="#000000" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF">
            <tr>
              <td width="33%">
                <p align="right">按姓名查询:</td>
  <center>
  <td width="33%"><input type="text" name="user_name" size="20"></td>
  <td width="34%"><input type="submit" value="提交" name="B1"></td>
              </tr>
            </table>
          </form>
        </center>
        </td>
    </tr>
    <tr>
      <td width="100%">
        <form method="POST" action="search_number.asp">
          <table border="1" width="100%" bordercolorlight="#000000" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF">
            <tr>
              <td width="33%">
                <p align="right">按学号查询:</td>
              <td width="33%"><input type="text" name="user_number" size="20"></td>
              <td width="34%"><input type="submit" value="提交" name="B1"></td>
            </tr>
          </table>
        </form>
      </td>
    </tr>
    <tr>
      <td width="100%">
      </td>
    </tr>
    <tr>
      <td width="100%">注意:搜索系统支持<font color="#FF0000">模糊查询</font>,即输入“应”,更可找到所有姓名为“应”的学生<br>
        找到记录后,单击学生姓名即可跳至学生资料页面,按提示加入成绩</td>
    </tr>
  </table>
</div>

<div align="center">
  <center>
  <table border="0" width="400" cellspacing="0" cellpadding="0">
    <tr>
      <td width="100%">最新登记学生列表(20条)</td>
      <%set rs=server.createobject("adodb.recordset")%>
      <%sql="select top 20 * from st_info order by id desc"%>
      <%rs.open sql,conn,1,1%>
    </tr>
    <tr>
      <td width="100%">
        <table border="1" width="100%" cellspacing="0" cellpadding="5" bordercolorlight="#000000" bordercolordark="#FFFFFF">
          <tr>
            <td width="18%" align="center">ID</td>
            <td width="22%" align="center">学号</td>
            <td width="20%" align="center">姓名</td>
            <td width="20%" align="center">性别</td>
            <td width="20%" align="center">班级</td>
          </tr>
          <%
          do while not rs.eof 
          %>
          <tr>
            <td width="18%" align="center"><%=rs("id")%></td>
            <td width="22%" align="center"><%=rs("user_number")%></td>
            <td width="20%" align="center"><a href=viewuser.asp?id=<%=rs("id")%>><%=rs("user_name")%></a></td>
            <td width="20%" align="center"><%=rs("user_sex")%></td>
            <td width="20%" align="center"><%=rs("user_class")%></td>
          </tr>
          <%rs.movenext%>
          <%loop%>
          <%rs.close%>
        </table>
      </td>
    </tr>
  </table>
  </center>
</div>
<!--#include file="down.asp"-->
</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -