📄 info_manager.asp
字号:
<!--#include file="conn.asp"-->
<%
if session("user")="" then
response.write "您无此权限"
response.end
end if
'------------------------------------------------------------------------------------
'该程序是由信息中心改制!现使用的只是部分功能,将来会提供更多的服务!
'信息中心简单介绍:
'目前成员:陈峰(主任),俞娟(副主任),徐立挺(副主任),方科亚(辅导员)
'中心属性:社区分团委
'
'------------------------------------------------------------------------------------
%>
<%
set rst=server.createobject("adodb.recordset")
sql="select * from st_info order by id desc"
rst.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" background="../img/beijing1.gif" style="background-attachment: fixed">
<div align="center">
<center>
<table width="640" height="35" cellspacing="0" cellpadding="0">
<td background="images/top_1.jpg" width="510"> <a href="info_manager.asp">内务信息列表</a>
| <a target="_blank" href="add_info.asp">录入内务信息</a> | <A
onclick="window.showModelessDialog('search_st.asp',0,'dialogHeight:500px;dialogWidth:450px;center:yes;help:no;resizable:no;status:no')"
href="###">查询内务信息</A>
| <a target="_blank" href="IpLock.Asp">访问IP限制</a><td background="images/top_1.jpg">
<p align="left"><a href="admin.asp">添加管理 <font color="#000000">|</font> </a><a href="logout.asp">退出管理</a></table>
</center>
</div>
<div align="center">
<center>
<table border="0" width="700" cellspacing="0" cellpadding="0">
<%
if Not(rst.bof and rst.eof) then'判别数据表中是否为空记录
NumRecord=rst.recordcount
rst.pagesize=10
NumPage=rst.Pagecount
if request("page")=empty then
NoncePage=1
else
if Cint(request("page"))<1 then
NoncePage=1
else
NoncePage=request("page")
end if
if Cint(Trim(request("page")))>Cint(NumPage) then NoncePage=NumPage
end if
else
NumRecord=0
NumPage=0
NoncePage=0
end if
%>
<table border="1" width="629" bordercolorlight="#000000" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF">
<tr>
<td width="76" bgcolor="#EBE9FE" align="center">日期</td>
<td width="48" bgcolor="#EBE9FE" align="center">姓名</td>
<td width="65" bgcolor="#EBE9FE" align="center">学院</td>
<td width="70" bgcolor="#EBE9FE" align="center">班级</td>
<td width="132" bgcolor="#EBE9FE" align="center">宿舍</td>
<td width="39" bgcolor="#EBE9FE" align="center">周次</td>
<td width="37" bgcolor="#EBE9FE" align="center">类型</td>
<td width="30" bgcolor="#EBE9FE" align="center">修改</td>
<td width="25" bgcolor="#EBE9FE" align="center">删除</td>
</tr>
<%if Not(rst.bof and rst.eof) then
rst.move (Cint(NoncePage)-1)*10,1
for i=1 to rst.pagesize
%>
<tr>
<td width="76" align="center"><%=(year(rst("user_number")))%>-<%=(month(rst("user_number")))%>-<%=(day(rst("user_number")))%></td>
<td width="48" align="center"><A
onclick="window.showModelessDialog('viewuser.asp?id=<%=rst("id")%>',0,'dialogHeight:300px;dialogWidth:550px;center:yes;help:no;resizable:no;status:no')"
href="###"><%=rst("user_name")%></A></td>
<td width="65" align="center"><%=rst("user_city")%></td>
<td width="70" align="center"><%=rst("user_class")%></td>
<td width="132" align="center"><%=rst("user_homephone")%>的<%=rst("user_bedroomphone")%>室</td>
<td width="39" align="center"><%=rst("user_testnumber")%></td>
<td width="37" align="center"><%=rst("user_sex")%></td>
<td width="30" align="center"><a target="_blank" href="mod_info.asp?id=<%=rst("id")%>">修改</a></td>
<td width="25" align="center"><a href=delete_info.asp?id=<%=rst("id")%>>删除</a></td>
</tr>
<% rst.movenext
if rst.eof then exit for
next
else
response.write "<tr><td colspan=13><marquee scrolldelay=120 behavior=alternate>没有找到任何记录!!!</marquee></td></tr>"
end if
rst.close
set rst=nothing
%>
</table>
</table>
</div>
<table width="640" border="0" align="center">
<tr>
<td height="17">
<div align="right">
<input type="hidden" name="page" value="<%=NoncePage%>">
<%
if NoncePage>1 then
response.write "|<a href=info_manager.asp?page=1>首 页</a>| |<a href=info_manager.asp?page="&NoncePage-1&">上一页</a>| "
else
response.write "|首 页| |上一页| "
end if
if Cint(Trim(NoncePage))<Cint(Trim(NumPage)) then
response.write "|<a href=info_manager.asp?page="&NoncePage+1&">下一页</a>| |<a href=info_manager.asp?page="&NumPage&">尾 页</a>|"
else
response.write "|下一页| |尾 页|"
end if
%>
页次:<font color="#0033CC"><%=NoncePage%></font>/<font color="#0033CC"><%=NumPage%></font>
共<font color="#0033CC"><%=NumRecord%></font>条记录 </div>
</td>
</table>
</center>
<p align="center">程序设计制作:<a href="#院分团委信息中心">社区</a><a href="#院分团委信息中心"
title='
主 任: 陈峰
副主任:俞娟、徐立挺
辅导员:方科亚'>分团委信息中心</a></p>
<p align="center">程序版本:Version 2.2</p>
<p align="center"> </p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -