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

📄 userinfo.asp

📁 OA最新破解2008版 全新 破解 希望大家用着舒服
💻 ASP
字号:
<%@ Language=VBScript codepage ="936" %>
<%
if instr(session("flag"),"22")=0 then
response.redirect "../login.asp"
response.end
end if
%>
<!--#include file="../config.asp"-->
<!--#include file="../../conn/dbconn2.asp" -->
<link rel="stylesheet" type="text/css" href="../style.css">
<title>查看会员资料</title>
<body bgcolor="#FFFFFF" marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
<%
DIM totalPut
DIM CurrentPage
DIM TotalPages
DIM i,j
if not isempty(request("page")) then
currentPage=cint(request("page"))
else
currentPage=1
end if
dim rs
dim sql
search=request("search")
set rs=server.createobject("adodb.recordset") 
Select Case search
case ""
sql="select * from corporation order by ID desc"
case "1"
sql="select * from corporation where user like '%"&request("txtitle")&"%' order by ID desc"
case "2"
sql="select * from corporation where pass like '%"&request("txtitle")&"%' order by ID desc"
case "3"
sql="select * from corporation where qymc like '%"&request("txtitle")&"%' order by ID desc"
end select
rs.open sql,conn,1,1 
if rs.eof and 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,"userinfo.asp"
else 
if (currentPage-1)*MaxPerPage<totalPut then 
rs.move (currentPage-1)*MaxPerPage 
dim bookmark 
bookmark=rs.bookmark 
showContent totalput,MaxPerPage
showpage totalput,MaxPerPage,"userinfo.asp"
else 
currentPage=1 
showContent totalput,MaxPerPage
showpage totalput,MaxPerPage,"userinfo.asp"
end if 
end if 
rs.close 
end if 
set rs=nothing
sub showContent (totalput,MaxPerPage)
%>
<CENTER>
<TABLE border=0 cellPadding=3 cellSpacing=1 width="450" bgcolor="#cccccc">
<TBODY>
<TR bgcolor="#ffffcc"> 
<TD align=left bgcolor="#EFEFEF"> 
<Form name="search" method="POST" action="userinfo.asp">
<img src="../images/search.gif">&nbsp;搜索关键字:<input type="text" name="txtitle" size="25" style="font-size: 9pt">&nbsp;&nbsp;
<select style="font-size: 9pt" name="search">
<option value="" selected>--所有记录--</option>
<option value="1">登陆名</option>
<option value="2">密码</option>
<option value="3">公司名</option>
</select><input type="submit" name="B1" value="搜索"></FORM></td></TR>
</TBODY>
</TABLE>
<TABLE border=0 cellPadding=3 cellSpacing=1 width="450">
<TBODY>
<TR height=20>
<%IF request("txtitle")="" then%>
<td></td>
<%else%>
<td align=right>查询关键字:<%=request("txtitle")%></td>
<%end if%>
</TR>
</TBODY>
<TABLE>

<Form name="searchuser" method="POST" action="userinfo.asp">
<TABLE border="1" cellspacing="0" width="450" cellpadding="4" bgcolor="efefef" bordercolorlight="#D7EBFF" bordercolordark="#D7EBFF" style="border-collapse: collapse" bordercolor="#111111">
<TBODY>
<TR height=25 bgcolor="#cccccc"> 
<TD width="45" align="left" bgcolor="#D7EBFF"><font color="#Ff6600"><b>ID号</b></font></TD>
<TD width="120" align="center" bgcolor="#D7EBFF"><font color="#Ff6600"><b>登陆名</b></font></TD>
<TD width="120" align="center" bgcolor="#D7EBFF"><font color="#Ff6600"><b>密码</b></font></TD>
<TD width="335" align="center" bgcolor="#D7EBFF"><font color="#Ff6600"><b>公司名称</b></font></TD>
</TR>
<%do while not rs.eof%>
<TR height="20" bgcolor="#ffffff"> 
<TD width="45" align="left"><font face="Arial"><b><%=rs("id")%></b></font> </td>
<TD width="130"><a href="mailto:<%=rs("email")%>"><%=rs("user")%></a> </td>
<TD width="130"><%=rs("pass")%> </td>
<TD width="335"><%=rs("qymc")%> </td>
</TR>
<% i=i+1
if i>=MaxPerPage then exit do
rs.movenext
loop
%>
</TABLE>

<%
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=450 cellspacing=0 cellpadding=0>" 
response.write "<tr height=30>"
response.write "<td align=left>"
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><td align=right>" 
response.write "【最前页】【上一页】" 
else 
response.write "<table border=0 width=450 cellspacing=0 cellpadding=0>"
response.write "<tr height=30>"
response.write "<td align=left>"
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><td align=right>" 
response.write "【<a href="&filename&"?page=1&search="&tyeid&"&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
%>

⌨️ 快捷键说明

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