⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nuser.asp

📁 shopxp网上购物系统v6.6已经调试,百分百可用
💻 ASP
字号:
<%@ codepage ="936" %>
<!--#include file="../nUser/config.asp"-->
<!--#include file="../nUser/conn.asp"-->
<!-- #include file="inc/Session.asp" -->
<link href="Css.css" rel="stylesheet">
<body topmargin="0" leftmargin="0" >
<table width="100%"  height="30" border="0" cellpadding="0" cellspacing="0" background="Images/main_bg.gif">
                <tr>
                  <td bgcolor="#006699" onMouseOver="javascript:this.bgColor='#0066cc'" onMouseOut="javascript:this.bgColor='#006699'">
                  <div align="center" class="style1">欢迎使用『秦直道』多用户博客管理系统V2.0版</div></td>
                </tr>
</table>
<table width="100%" height="22"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FF9900">
          <tr>
             <td><div align="center" class="style1">待审注册博客管理</div></td>
          </tr>
</table> 
<%
DIM totalPut
DIM CurrentPage
DIM TotalPages
DIM i,j
const MaxPerPage=8
if not isempty(request("page")) then
currentPage=cint(request("page"))
else
currentPage=1
end if
if not isempty(request("selAnnounce")) then
idlist=request("selAnnounce")
if instr(idlist,",")>0 then
dim idarr
idArr=split(idlist)
dim id
for i = 0 to ubound(idarr)
id=clng(idarr(i))
call deleteannounce(id)
next
else
call deleteannounce(clng(idlist))
end if
end if 
dim rs
dim sql
if not isempty(request("search")) then
search=request("search")
else
search="0"
end if
set rs=server.createobject("adodb.recordset") 
Select Case search
case "0"
sql="select user_id,user_email,user_money,user_power,user_last_time,Up_flag,user_enter_count from kheu_nUser where Email_verify_flag=false order by user_id desc"
case "1"
sql="select user_id,user_email,user_money,user_power,user_last_time,Up_flag,user_enter_count from kheu_nUser where user_id like '%"&request("txtitle")&"%' and Email_verify_flag=false order by user_id desc"
case "2"
sql="select user_id,user_email,user_money,user_power,user_last_time,Up_flag,user_enter_count from kheu_nUser where user_email like '%"&request("txtitle")&"%' and Email_verify_flag=false order by user_id desc"
end select
rs.open sql,conn,1,1 
if rs.eof or rs.bof then 
response.write "<p align='center'>对不起,没有您要查询的信息</p>" 
else 
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 
showContent totalput,MaxPerPage
showpage totalput,MaxPerPage,""
else 
if (currentPage-1)*MaxPerPage<totalPut then 
rs.move (currentPage-1)*MaxPerPage 
dim bookmark 
bookmark=rs.bookmark 
showContent totalput,MaxPerPage
showpage totalput,MaxPerPage,""
else 
currentPage=1 
showContent totalput,MaxPerPage
showpage totalput,MaxPerPage,""
end if 
end if 
rs.close 
end if 
set rs=nothing
sub showContent (totalput,MaxPerPage)
%>
 
<Form name="search" method="POST" action="nUser.asp">
<TABLE border=0 cellPadding=3 cellSpacing=1 width="100%">
<TBODY>

<TR> 
<TD height=30>
<font color="#ff0000">&nbsp;&nbsp; 点击注册邮箱进行相应操作</font>
</td>
<TD> 
<td> </td>
<td>&nbsp;搜索:<input type="text" name="txtitle" size="25" style="font-size: 9pt">&nbsp;&nbsp;
<select style="font-size: 9pt" name="search">
<option value="1">ID号</option>
<option value="2">邮箱</option>
</select>
<INPUT align=absMiddle border=0 src="images/nUser.gif" type=image>
</td> 
</TR>

</TBODY>
</TABLE>

<table width="96%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#999999">
<tr height=25 bgcolor="#EEEEEE">
<TD width="8%" align="center"><b>ID号</b></TD>
<TD  align="center"><b>注册邮箱</b></TD>
<TD width="10%" align="center"><b>最后登陆</b></TD>
<TD width="8%" align="center"><b>次数</b></TD>
<TD width="8%" align="center"><b>能力</b></TD>
<TD width="8%" align="center"><b>金钱</b></TD>
<TD width="8%" align="center"><b>上传</b></TD>
<TD width="8%" align="center"><b>审核</b></TD>
<TD width="8%" align="center"><input type='submit' value='删除'></TD>
</TR>
<%do while not rs.eof%>
<TR height=25 bgcolor="#ffffff"> 
<TD align="center"><font face="Arial"><b><%=rs("user_id")%></b></font> </td>
<TD align="center"><a href="nUser_edit.asp?id=<%=rs("user_id")%>&page=<%=currentpage%>"><%=rs("user_email")%></a></td>
<TD align="center"><%=year(rs("user_last_time"))%>/<%=month(rs("user_last_time"))%>/<%=day(rs("user_last_time"))%></td>
<TD align="center"><%=rs("user_enter_count")%></td>
<TD align="center"><%=rs("user_power")%></td>
<TD align="center"><%=rs("user_money")%></td>
<TD align="center">
<%if rs("Up_flag")=true then%>
<a href="nUser_modify.asp?id=<%=rs("user_id")%>&ntype=3"><font color=red>打开</font></a> 
<%else%>
<a href="nUser_modify.asp?id=<%=rs("user_id")%>&ntype=4">关闭</a> 
<%end if%>
</td>
<TD width="55" align="center">
<a href="nUser_modify.asp?id=<%=rs("user_id")%>&ntype=2">
<font color="#FF0000">未审</font></a></td>
<TD width="55" align="center"><input type='checkbox' name='selAnnounce' value='<%=cstr(rs("user_id"))%>'></td>
</TR>
<% i=i+1
if i>=MaxPerPage then exit do
rs.movenext
loop
%>
</TABLE>
</form>
<%
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 
if CurrentPage<2 then 
response.write "<table border=0 width=100% cellspacing=0 cellpadding=0 bgcolor=""#EEEEEE"">" 
response.write "<tr height=30>"
response.write "<td bgcolor=""#EEEEEE"">"
response.write "共<font color=#ff6600><b>"&n&"</b></font>页&nbsp;第<font color=#ff6600><b>"&CurrentPage&"</b></font>页&nbsp;共检索到<font color=#ff6600><b>"&totalnumber&"</b></font>条信息</td>" 
response.write "<td align=right>"
response.write "【最前页】【上一页】" 
else 
response.write "<table border=0 width=100% cellspacing=0 cellpadding=0 bgcolor=""#EEEEEE"">"
response.write "<tr height=30>"
response.write "<td bgcolor=""#EEEEEE"">"
response.write "共<font color=#ff6600><b>"&n&"</b></font>页&nbsp;第<font color=#ff6600><b>"&CurrentPage&"</b></font>页&nbsp;共检索到<font color=#ff6600><b>"&totalnumber&"</b></font>条信息</td>"
response.write "<td align=right>"
response.write "【<a href="&filename&"?page=1&search="&search&"&txtitle="&request("txtitle")&">最前页</a>】" 
response.write "【<a href="&filename&"?page="&CurrentPage-1&"&search="&search&"&txtitle="&request("txtitle")&">上一页</a>】" 
end if 
if n-currentpage<1 then 
response.write "【下一页】【最后页】" 
else 
response.write "【<a href="&filename&"?page="&(CurrentPage+1)&"&search="&search&"&txtitle="&request("txtitle")&">" 
response.write "下一页</a>】【<a href="&filename&"?page="&n&"&search="&search&"&txtitle="&request("txtitle")&">最后页</a>】" 
end if 
response.write "</td>"
response.write "</tr>"
response.write "</table>"
response.write "</form>"
end function
sub deleteannounce(id)
conn.execute("delete from [kheu_nUser] where id="&cstr(id)&"")    '最后,从用户库中删除
if err.Number<>0 then
err.clear
response.write "删 除 失 败 !<br>"
end if
End sub
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -