<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//en" >
<meta http-equiv=content-type content= "text/html; charset=gb2312 ">
<%
Set Rs=server.createobject ("Adodb.recordset")
sql = "Select Userid,company,truename,tel,regtime,dltime,zt,id from [usertable] ORDER by id DESC"
Rs.Open sql,conn,1,1
Rs.pagesize = 10
PS Tutorial ize = rs.pagesize
Pcount = Rs.pagecount
Rcount = Rs.recordcount
Action=request ("Action")
Key=request ("key")
PageNo = CInt (Request.QueryString ("PageNo"))
If PageNo < 1 Then
PageNo = 1
ElseIf pageno > Pcount Then
PageNo = Pcount
End If
thepage = (pageno-1) *psize
If not rs.eof then Rs.absolutepage = PageNo
%>
<script language= Web page Special effects >
<!--
function Mm_jumpmenu (targ,selobj,restore) {//v3.0
Eval (targ+ "location=" "+selobj.options[selobj.selectedindex].value+");
if (restore) selobj.selectedindex=0;
}
-->
</script>
<meta content= "Mshtml 6.00.3790.2993" name=generator>
<body>
<table cellspacing=0 cellpadding=0 width= "100%" border=0>
<tbody>
<tr>
<TD align=right valign=top><table cellspacing=0 cellpadding=0 width= "100%" border=0>
<tbody>
<tr>
<TD height=14></td>
</tr>
<tr>
<TD height=14></td>
</tr>
<tr>
<TD height= "valign=" "Top" >
<table width= "814" border=0 cellpadding=0 cellspacing=1 bgcolor= "#666666" >
<tbody>
<tr>
<TD width=57
height=24 align=middle background=images/stab-ub.gif><strong> Account </strong>Src= "Images/break-el.gif" width=1></td>
<TD width= "135" Align=middle
Background=images/stab-ub.gif><strong> company </strong>Src= "Images/break-el.gif" width=1></td>
<TD width=63 Align=middle
background=images/stab-ub.gif><strong> Contact Person </strong>Src= "Images/break-el.gif" width=1></td>
<TD width= "Align=middle"
background=images/stab-ub.gif><strong> Mobile phone </strong>Src= "Images/break-el.gif" width=1></td>
<TD width= "Align=middle"
Background=images/stab-ub.gif><strong> Registration Time </strong></td>
<TD width= "Align=middle"
Background=images/stab-ub.gif><strong> Landing Time </strong></td>
<TD width=60 Align=middle
Background=images/stab-ub.gif><strong></strong>Src= "Images/break-el.gif" width=1></td>
<TD width=41 Align=middle
background=images/stab-ub.gif><strong> State </strong>Src= "Images/break-el.gif" width=1></td>
<TD width=178 Align=middle
Background=images/stab-ub.gif><strong></strong>Src= "Images/break-el.gif" width=1></td>
</tr>
<%
For i = 1 to Psize
If Rs.eof then exit for
%>
<tr>
<TD height=20 align=middle bgcolor= "#ffffff ><a href=" edit.jsp tutorial? Id=<%=rs ("id")%> "><%=rs" (" UserID ")%></a></td>
<TD bgcolor= "#ffffff" > <%=rs ("Company")%></td>
<TD bgcolor= "#ffffff" > <%=rs ("Truename")%>Src= "Images/break-el.gif" width=1></td>
<TD bgcolor= "#ffffff" > <%=rs ("Tel2")%>Src= "Images/break-el.gif" width=1></td>
<TD bgcolor= "#ffffff" ><%=rs ("Regtime")%></td>
<TD bgcolor= "#ffffff" ><%=rs ("Dltime")%></td>
<TD align=middle bgcolor= "#ffffff" >Src= "Images/break-el.gif" width=1></td>
<TD align=middle bgcolor= "#ffffff" ><%if rs ("ZT") =0 Then
Response.Write "Normal"
Else
Response.Write "<font color=red> Forbidden </font>"
End If%></td>
<TD align=middle bgcolor= "#ffffff" ></td>
</tr>
<%
Rs.movenext
Next
%>
<tr>
<TD colspan=10><table width= "100%" border= "0" cellspacing= "0" cellpadding= "4" >
<tr>
<TD width= "41%" height= "bgcolor=" #ffffff "> Total <font color=" #ff0000 "><%= rcount-%></font> Strips <font color= "#ff0000" ><%= pcount%></font> Page | Current <font color= "#ff0000" ><%= pageno%></font> page </td>
<TD width= "13%" bgcolor= "#ffffff" ></td>
<TD width= "46%" align= "right" bgcolor= "#ffffff" >
<%
If PageNo > 1 Then
Response.Write "<a href=" "pageno=1&action=" &action& "&key=" &key& "" "> Home </a> "
Response.Write "<a href=" "pageno=" &pageno-1& "&action=" &action& "&key=" &key& "" "> Prev </a> "
Else
Response.Write "Home "
Response.Write "Prev "
End If
%>
<select name= "menu2" onchange= "Mm_jumpmenu" (' Self ', this,0) "style=" width:40px; >
<% for i = 1 to Pcount%>
<option value= "? pageno=<%= I%>&action=<%=action%>&key=<%=key%>" <% if i = PageNo Then Response.Write "Selected"%>><%=i%></option>
<% Next%>
</select>
<%
If PageNo < Pcount Then
Response.Write "<a href=" "pageno=" &pageno+1& "&action=" &action& "&key=" &key& "" "> Next page </a> "
Response.Write "<a href=" "pageno=" &pcount& "&action=" &action& "&key=" &key& "" > Last </a> "
Else
Response.Write "Next Page "
Response.Write "Last"
End If
%> </td>
</tr>
</table></td>
</tr></tbody>
</table></td>
</tr></tbody>
</table></td>
</tr></tbody></table>
</body>
<%
Rs.close
Set rs = Nothing
%>