📄 show.asp
字号:
<!--#include file="conn.asp"-->
<HEAD><TITLE>个人详细信息</TITLE>
<META http-equiv=Content-Language content=zh-cn>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="images/style.css" type=text/css rel=stylesheet>
</HEAD>
<BODY bgColor=#2f66bf >
<DIV align=center>
<TABLE id=table15 height=131 cellSpacing=0 cellPadding=0 width=568 border=0>
<TR> <TD width=146 background=images/bjbg_1.jpg height=35>
<TABLE id=table16 height=20 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR><TD align=middle><FONT style="FONT-SIZE: 12px" color=#ff0000>学生详细信息</FONT></TD></TR>
</TBODY>
</TABLE>
</TD>
<TD width=422 height=35><IMG height=35 src="images/bjbg_2.jpg" width=422 border=0></TD></TR>
<TR><TD align=middle width=568 background=images/bjbg_3.jpg colSpan=2>
<%
if request("UserId")<>"" then
UserId = request("UserId")
else
Response.Write("<script>")
Response.Write("alert('没有选定学生信息');")
Response.Write("history.back();")
Response.Write("</script>")
end if
set rs=conn.execute("select * from [user] where UserId='"&UserId&"'")
if rs.eof and rs.bof then
response.write "<script language='javascript'>"
response.write "alert('出错了,没有此学生。');"
response.write "location.href='javascript:history.go(-1)';"
response.write "</script>"
response.end
end if
%>
<table width="85%" border="1" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="30%">登陆学号</td>
<td><%=rs("userid")%></td>
</tr>
<tr>
<td>学生姓名</td>
<td><%=rs("UserName")%></td>
</tr>
<tr>
<% if rs("Sex")="1" then Sex="男" %>
<% if rs("Sex")="0" then Sex="女" %>
<td>性 别</td>
<td><%=Sex%></td>
</tr>
<tr>
<td>出生年月</td>
<td><%=rs("Birthday")%></td>
</tr>
<tr>
<td>所在班级</td>
<td><%=rs("Banji")%></td>
</tr>
<tr>
<td>所学专业</td>
<td><%=rs("Zhuanye")%></td>
</tr>
<tr>
<td>学生职位</td>
<% usertype=rs("usertype")
if usertype="2" then
usertype="管理员"
elseif usertype="3" then
usertype="班长"
elseif usertype="4" then
usertype="副班长"
elseif usertype="5" then
usertype="团支书"
elseif usertype="6" then
usertype="委员级别"
else
usertype="普通学生"
end if
%>
<td><%=UserType%></td>
</tr>
<tr>
<td>联系电话</td>
<td><%=rs("HomePhone")%></td>
</tr>
<tr>
<td>家庭住址</td>
<td>
<%if rs("Address")="" then
response.Write("未登记家庭住址")
else response.Write(rs("Address"))
end if
%>
</td>
</tr>
<tr>
<td>邮政编码</td>
<td>
<%if rs("Zipcode")="" then
response.Write("邮政编码未登记")
else response.Write(rs("Zipcode"))
end if
%>
</td>
</tr>
<tr>
<td>腾讯QQ</td>
<td><%if rs("UserQQ")="" then
response.Write("QQ未登记")
else response.Write(rs("UserQQ"))
end if%>
</td>
</tr>
<tr>
<td>电子邮箱</td>
<td><%=rs("UserMail")%></td>
</tr>
<tr>
<td>个人说明</td>
<td><%if len(rs("Memo"))<>0 then
Response.Write(replace(rs("Memo"),chr(13),"<BR>"))
else
Response.Write("无个人说明")
end if
%>
</td>
</tr>
<tr>
<td>注册时间</td>
<td><%=rs("SignDate")%></td>
</tr>
</table>
<table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th scope="col"><input type="button" name="close" onClick="javascript:window.close()"value="[关闭窗口]"></th>
</tr>
</table>
<% rs.close
set rs=nothing
conn.close
set conn=nothing
%>
</TD>
</TR>
<TR><TD width=568 colSpan=2 height=16><IMG height=16 src="images/bjbg_6.jpg" width=568 border=0></TD>
</TR>
</TABLE>
</DIV>
</BODY>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -