%@ LANGUAGE="VBSCRIPT" %> <% response.expires = 0 response.expiresabsolute = Now() - 1 response.addHeader "pragma","no-cache" response.addHeader "cache-control","private" Response.CacheControl = "no-cache" %> <% '*********************************************************************** ' System : ASPBanner Unlimited ' Author : Christopher Williams of CJWSoft www.CJWSoft.com ' ' COPYRIGHT NOTICE ' ' See attached Software License Agreement ' ' (c) Copyright 2000 - 2003 by CJWSoft. All rights reserved '*********************************************************************** %> <% CHECKFOR = "Admin" %> <% ' This setting from check_user_inc.asp purposely overridden ' To make record cycling features work ok on this page THISPAGE = Request.ServerVariables("script_name") Keyword = CStr(Replace(Request("Keyword"),"'","''")) RowCount = 0 MYSQL = Request("MYSQL") SORTBY = Request("SORTBY") If SORTBY = "" Then SORTBY = "Username" End If If MYSQL = "" And Keyword = "" Then MYSQL="SELECT Banner_Users.* FROM Banner_Users ORDER BY " & SORTBY ElseIf Keyword <> "" Then MYSQL="SELECT Banner_Users.* FROM Banner_Users WHERE ((First_Name LIKE '%" & Keyword & "%') Or (Last_Name LIKE '%" & Keyword & "%') Or (Company_Name LIKE '%" & Keyword & "%') Or (Username LIKE '%" & Keyword & "%')) ORDER BY " & SORTBY End IF WhichPage = Request("WhichPage") If WhichPage = "" then WhichPage = 1 end if MyPageSize = Request("MyPageSize") If MyPageSize = "" then ' Change this value to increase the default amount of users shown on one page MyPageSize = 25 end if %>
<% End If %> <% If Not CmdListUsers.EOF Then CmdListUsers.movefirst CmdListUsers.pagesize = MyPageSize MaxPages = CInt(CmdListUsers.pagecount) MaxRecords = CInt(CmdListUsers.pagesize) CmdListUsers.absolutepage = WhichPage HowManyRecords = 0 HowManyFields = CmdListUsers.fields.count -1 TotalRecords = CmdListUsers.recordcount Span = (MyPageSize * WhichPage) %>
(<% = TotalRecords %> Total User<% If TotalRecords > 1 Then %>s<% End If%> Found)
<% If CInt(MaxPages) <> 1 Then %>
(Showing <% = ((Span - MyPageSize) + 1) %> - <% If CInt(MaxPages) = CInt(WhichPage) Then %><% =TotalRecords %><% Else %><% =Span %><% End If %>)
(Page <% =WhichPage %> of <% =MaxPages%>)
<% End If %>
![]() |
First Name | Last Name | Company | Username | Admin | <% If Application("CDONTS_Installed") = true or Application("SASMTPMAIL_Installed") = true or Application("JMAIL_Installed") = true or Application("AspEmail_Installed") = true Then %><% End If %> | |||
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
![]() ![]() |
<% If Application("CDONTS_Installed") = true or Application("SASMTPMAIL_Installed") = true or Application("JMAIL_Installed") = true or Application("AspEmail_Installed") = true Then %>
<% End If %> | ||||
![]() |
|||||||||
No Users Found |
|||||||||
<% =ShowDigits %> ">![]() |
<%= CmdListUsers("First_Name") %> | <%= CmdListUsers("Last_Name") %> | <%= CmdListUsers("Company_Name") %> | <%= CmdListUsers("Username") %> | bgcolor="#D6D6D6"<% CellTextColor = "White" %><% Else %>bgcolor="<% = Cellbgcolor %>"<% CellTextColor = "Black" %><% End If %>"><% If CmdListUsers("ADMIN") = True Then %>Yes<% Else %>No<% End If %> | <% If Application("CDONTS_Installed") = true or Application("SASMTPMAIL_Installed") = true or Application("JMAIL_Installed") = true or Application("AspEmail_Installed") = true Then %>">![]() |
<% End If %>
">![]() |
<% If CmdListUsers("ADMIN") <> True Then %>"> <% End If %> |
|
<%
For MyCounter = 1 to MaxPages
TempSpan = (MyPageSize * MyCounter)
%>
(<% = ((TempSpan - MyPageSize) + 1) %> - <% If CInt(MaxPages) = CInt(MyCounter) Then %><% =TotalRecords %><% Else %><% =TempSpan %><% End If %>)
<% If MyCounter Mod 10 = 0 then %>
<% End If %>
<% Next %>
<% If CInt(WhichPage) <> 1 Then %> (Previous <% = MyPageSize %>) <% End If %> <% If CInt(WhichPage) <> CInt(MaxPages) And TotalRecords <> 0 Then %> (Next <% If CInt(WhichPage) = CInt(MaxPages) - 1 Then %><% = (CInt(TotalRecords) - CInt(TempSpan2) + 1) %><% Else %><% =MyPageSize %><% End If %>) <% End If %>
<% If TotalRecords > 20 Then %>NUMBER OF USERS DISPLAYED PER PAGE
5
10
20
30
40
50
60
70
80
90
100
150
250
500