📄 viewuser2.asp
字号:
<!--#include file="conn.asp"-->
<%
dim id
id=trim(request("id"))
set rs=server.createobject("adodb.recordset")
sql="select * from st_info where id="& id
rs.open sql,conn,1,1
%>
<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="topuser.asp"-->
<SCRIPT language=javascript>
function fucCheckNUM(NUM)
{
var i,j,strTemp;
strTemp="0123456789.";
if ( NUM.length== 0)
return 0
for (i=0;i<NUM.length;i++)
{
j=strTemp.indexOf(NUM.charAt(i));
if (j==-1)
{
//说明有字符不是数字
return 0;
}
}
//说明是数字
return 1;
}
function checknum(theform)
{
if ((fucCheckNUM(theform.value)==0) )
{
theform.value="";
//theform.newprice.focus();
return false;
}
}
</SCRIPT>
<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="& id
rs8.open sql8,conn,3,3
%>
<%if not rs8.eof then%>
<img border="0" src="upload/<%=rs8("filepath")%>" width="85" height="113">
<%else%>
暂无该生图片
<%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_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>
<tr>
<td width="100%" align="right" valign="top" colspan="3">
<p align="center"></td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</div>
<!--#include file="down.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -