📄 huiyuan.asp
字号:
<!--#include file="config.asp"-->
<%
Response.Buffer=true
xian=session("xian")
ljl_xian=mid(xian,3,1)
if ljl_xian<>1 then%>
<script language=vbscript>
MsgBox "错误:您无权使用本功能模块,如果确实需要操作本模块的权限,请与管理员联系!"
location.href = "txt.asp"
</script>
<%end if%>
<%
username=session("hxf_u_nickname")
grade=session("hxf_u_grade")
mykind=session("mykind")
mypai=session("mypai")
if username="" then Response.Redirect "../error.asp?id=440"
Set conn=Server.CreateObject("ADODB.CONNECTION")
Set rs=Server.CreateObject("ADODB.RecordSet")
connstr=Application("hg_connstr")
conn.open connstr
'sql="Select * from 用户 where 状态='无' order by id"
'set rs=conn.Execute(sql)
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>会员管理系统</title>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<style type=text/css>
<!--
-->
</style>
<link rel="stylesheet" href="setup.css">
</head>
<%
const MaxPerPage=20
dim totalPut
dim CurrentPage
dim TotalPages
dim i,j
dim typename
dim keyword
keyword=request("guestname")
typename="信息管理系统"
if not isempty(request("page")) then
currentPage=cint(request("page"))
else
currentPage=1
end if
%>
<body topmargin="0">
<div align="center">
<center>
<table border="0" width="72%" cellspacing="0" cellpadding="15" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td width="100%" align="center"><font color="#FF0000"><b>帐号待审核列表</b></font></td>
</tr>
</table>
</center>
</div>
<div align="center">
<table border="0" width="74%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%">
<!------查询start-------------------->
<%
sql="Select * from 用户 where 状态='无' and 姓名 like '%"&keyword&"%' order by id"
'sql="select * from book where guestname like '%"&keyword&"%' order by id desc"
'Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "<p align='center'>目前还没有人提交审核!</p>"
else
totalPut=rs.recordcount
totalPut=rs.recordcount
if currentpage<1 then
currentpage=1
end if
if (currentpage-1)*MaxPerPage>totalput then
if (totalPut mod MaxPerPage)=0 then
currentpage= totalPut \ MaxPerPage
else
currentpage= totalPut \ MaxPerPage + 1
end if
end if
if currentPage=1 then
showpage totalput,MaxPerPage,"huiyuan.asp"
showContent
showpage totalput,MaxPerPage,"huiyuan.asp"
else
if (currentPage-1)*MaxPerPage<totalPut then
rs.move (currentPage-1)*MaxPerPage
dim bookmark
bookmark=rs.bookmark
showpage totalput,MaxPerPage,"huiyuan.asp"
showContent
showpage totalput,MaxPerPage,"huiyuan.asp"
else
currentPage=1
showpage totalput,MaxPerPage,"huiyuan.asp"
showContent
showpage totalput,MaxPerPage,"huiyuan.asp"
end if
end if
rs.close
end if
set rs=nothing
sub showContent
dim i
i=0
%>
<div align="center">
<table border="1" cellspacing="0" width="557" bordercolorlight="#000000" bordercolordark="#FFFFFF" cellpadding="0">
<tr>
<td width="118" align="center" bgcolor="#FFCC00" height="20">
<font color="#000080">姓 名</font></td>
<td width="119" align="center" bgcolor="#FFCC00"><font color="#000080">
所在部门</font></td>
<td width="135" align="center" bgcolor="#FFCC00"><font color="#000080">
申请日期</font></td>
<td width="45" align="center" bgcolor="#FFCC00" colspan="2">
<font color="#000080">审 核</font></td>
</tr>
<%do while not rs.eof%>
<form method="post" action="huiyuanok.asp?lname=<%=rs("姓名")%>">
<tr>
<td height="23" width="118" bgcolor="#FFF0B2"><p align="left"> <%=rs("姓名")%></td>
<td width="119" bgcolor="#FFF0B2"><p align="left"> <%=rs("门派")%></td>
<td width="135" bgcolor="#FFF0B2"><p align="left"><font color="red"> <%=rs("lasttime")%></font></td>
<td width="30" bgcolor="#FFF0B2">
<input type="submit" name="Submit" value="通过"></td>
<td width="32" bgcolor="#FFF0B2"><font color="#FF0000"><a href="huiyuanok.asp?lname=<%=rs("姓名")%>&caozuo=1"><font color="#FF0000">拒绝</font></a></font></td>
</tr>
</form>
<% i=i+1
if i>=MaxPerPage then exit do
rs.movenext
loop
%>
</table>
</div>
<%
end sub
function showpage(totalnumber,maxperpage,filename)
dim n
if totalnumber mod maxperpage=0 then
n= totalnumber \ maxperpage
else
n= totalnumber \ maxperpage+1
end if
response.write "<form method=Post action="&filename&"?guestname="&keyword&">"
' response.write "<p align='center'><font color='red'>"&typename&"</font> "
if CurrentPage<2 then
response.write "<font color='#000080'>首页 上一页</font> "
else
response.write "<a href="&filename&"?page=1&guestname="&keyword&">首页</a> "
response.write "<a href="&filename&"?page="&CurrentPage-1&"&guestname="&keyword&">上一页</a> "
end if
if n-currentpage<1 then
response.write "<font color='#000080'>下一页 尾页</font>"
else
response.write "<a href="&filename&"?page="&(CurrentPage+1)&"&guestname="&keyword&">"
response.write "下一页</a> <a href="&filename&"?page="&n&"&guestname="&keyword&">尾页</a>"
end if
response.write "<font color='#000080'> 页次:</font><strong><font color=red>"&CurrentPage&"</font><font color='#000080'>/"&n&"</strong>页</font> "
response.write "<font color='#000080'> 共<b>"&totalnumber&"</b>条记录 <b>"&maxperpage&"</b>条记录/页</font> "
response.write " <font color='#000080'>转到:</font><input type='text' name='page' size=4 maxlength=10 class=smallInput type='text' name='txtitle' value="¤tpage&">"
response.write "<input class=buttonface type='submit' value=' Goto ' name='cndok'></span></p></form>"
end function
%>
<form name="searchtitle" method="POST" action="huiyuan.asp">
<p align=center>姓名:<input class=smallInput type="text" name="guestname" size="13" style="border-style: solid; border-width: 1">
<input class=buttonface type="submit" value="查 询" name="title"> </p>
</form>
<!---查询-------end-----------------> </td>
</tr>
</table>
</div>
</body>
</html>
<%set conn=nothing
set rs=nothing%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -