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

📄 search_ach_6.asp

📁 网上学生管理信息系统,能够方便高校老师管理学生的信息,同时也便于学生网上查询
💻 ASP
字号:
<!--#include file="conn.asp"-->
<%
dim user_number,id
user_number=trim(request("user_number"))

if user_number="" then
	response.write "学号输入不能为空"
	response.end
end if

set rs=server.createobject("adodb.recordset")
sql="select * from st_info where user_number='"&user_number&"'"
rs.open sql,conn,1,1
%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>查看学生详细信息</title>
<link rel="stylesheet" href="style.css">
</head>

<body>
<p></p>
<%if not rs.eof then%>
<div align="center">
  <center>
  <table border="0" width="500" cellspacing="0" cellpadding="0">
    <tr>
      <td width="100%">
          <table border="1" width="100%" bordercolorlight="#000000" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF">
            <tr>
              <td width="100%" colspan="3">
                <p align="center">查看学生详细信息</td>
            </tr>
            <tr>
              <td width="37%" align="right">学号:</td>
              <td width="38%" align="left"><%=rs("user_number")%></td>
              <td width="25%" align="left" rowspan="5">
                <p align="center"><%
                set rs8=server.createobject("adodb.recordset")
        sql8="select * from INFO where user_id="&rs("id")
        rs8.open sql8,conn,3,3

                %>
                <%if not rs8.eof then%>
				<img border="0" src="upload/<%=rs8("filepath")%>" width="85" height="113">
                <%else%>
                <img border="0" src="images/not_pic.gif" width="85" height="113">
                <%end if%>
                <%rs8.close%>
                <%set rs8=nothing%>
                </td>
            </tr>
            <tr>
              <td width="37%" align="right">姓名:</td>
              <td width="38%" align="left"><%=rs("user_name")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">准考证号:</td>
              <td width="38%" align="left"><%=rs("user_testnumber")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">身份证号:</td>
              <td width="38%" align="left"><%=rs("user_idnumber")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">性别:</td>
              <td width="38%" align="left"><%=rs("user_sex")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">出生年月:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_time")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">省市:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_city")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">地县:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_area")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">地址:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_address")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">邮编:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_postcode")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">家庭电话:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_homephone")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">寝室电话:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_bedroomphone")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">移动电话:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_mobilephoe")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">电子邮件:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_email")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">专业:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_major")%></td>
            </tr>
            <tr>
              <td width="37%" align="right">班级:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_class")%></td>
            </tr>
            <tr>
              <td width="37%" align="right" valign="top">高考成绩:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_collogetestach")%></td>
            </tr>
            <tr>
              <td width="37%" align="right" valign="top">奖惩情况:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_rp")%></td>
            </tr>
            <tr>
              <td width="37%" align="right" valign="top">备注信息:</td>
              <td width="63%" align="left" colspan="2"><%=rs("user_info")%></td>
            </tr>
           </table>
      </td>
    </tr>
  </table>
  </center>
</div>
<%else
response.write "<script>alert('没有该学号的学生信息,点击确定返回');document.location.href='default.asp';</script>"
	response.end
end if
%>

<p></p>
<!--#include file="down.asp"-->
</body>
</html>

⌨️ 快捷键说明

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