📄 kan.asp
字号:
<!--#include file="conn.asp"-->
<%
if session("user")="" then
response.write "您无此权限"
response.end
end if
%>
<%
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 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>查看学生详细信息</title>
<link rel="stylesheet" href="style.css">
</head>
<body topmargin="0">
<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 width="500">
<form method="POST" action="add_ach.asp">
</table>
</form>
</table>
<a href="info_manager.asp">返 回</a><br></center>
</div>
<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"><%=(year(rs("user_number")))%>-<%=(month(rs("user_number")))%>-<%=(day(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%>
<a href="upload/index.asp?user_id=<%=id%>">暂无该生图片,点击这里添加</a>
<%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_city")%></td>
</tr>
<tr>
<td width="37%" align="right">班 级 :</td>
<td width="38%" align="left"><%=rs("user_class")%></td>
</tr>
<tr>
<td width="37%" align="right">宿 舍 :</td>
<td width="38%" align="left"><%=rs("user_homephone")%>的<%=rs("user_bedroomphone")%>室</td>
</tr>
<tr>
<td width="37%" align="right">周 次 :</td>
<td width="63%" align="left" colspan="2"><%=rs("user_testnumber")%></td>
</tr>
<tr>
<td width="37%" align="right">学 年 :</td>
<td width="63%" align="left" colspan="2"><%=rs("user_idnumber")%></td>
</tr>
<tr>
<td width="37%" align="right">类 型 :</td>
<td width="63%" align="left" colspan="2"><%=rs("user_sex")%></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"><a href="mod_info.asp?id=<%=rs("id")%>">编辑该学生信息</a></td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</div>
<!--#include file="down.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -