<% @ Language=VBScript codepage=1255 %> <% Option Explicit %> <% '**************************************************************************************** '** Copyright Notice '** '** Web Wiz Guide - Web Wiz Forums '** '** Copyright 2001-2003 Bruce Corkhill All Rights Reserved. '** '** This program is free software; you can modify (at your own risk) any part of it '** under the terms of the License that accompanies this software and use it both '** privately and commercially. '** '** All copyright notices must remain in tacked in the scripts and the '** outputted HTML. '** '** You may use parts of this program in your own private work, but you may NOT '** redistribute, repackage, or sell the whole or any part of this program even '** if it is modified or reverse engineered in whole or in part without express '** permission from the author. '** '** You may not pass the whole or any part of this application off as your own work. '** '** All links to Web Wiz Guide and powered by logo's must remain unchanged and in place '** and must remain visible when the pages are viewed unless permission is first granted '** by the copyright holder. '** '** This program is distributed in the hope that it will be useful, '** but WITHOUT ANY WARRANTY; without even the implied warranty of '** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR ANY OTHER '** WARRANTIES WHETHER EXPRESSED OR IMPLIED. '** '** You should have received a copy of the License along with this program; '** if not, write to:- Web Wiz Guide, PO Box 4982, Bournemouth, BH8 8XP, United Kingdom. '** '** '** No official support is available for this program but you may post support questions at: - '** http://www.webwizguide.info/forum '** '** Support questions are NOT answered by e-mail ever! '** '** For correspondence or non support questions contact: - '** info@webwizguide.info '** '** or at: - '** '** Web Wiz Guide, PO Box 4982, Bournemouth, BH8 8XP, United Kingdom '** '**************************************************************************************** 'Set the response buffer to true as we maybe redirecting Response.Buffer = True 'Dimension variables Dim strPofileUsername 'Holds the users username Dim lngUserID 'Holds the new users ID number Dim lngNumOfPosts 'Holds the number of posts the user has made Dim strGroupName 'Holds the group name Dim dtmRegisteredDate 'Holds the date the usre registered Dim intTotalNumMembersPages 'Holds the total number of pages Dim intTotalNumMembers 'Holds the total number of forum members Dim intRecordPositionPageNum 'Holds the page number we are on Dim intRecordLoopCounter 'Recordset loop counter Dim dtmLastVisit 'Holds the date of the users las post Dim intLinkPageNum 'Holds the page number to link to Dim strSearchCriteria 'Holds the search critiria Dim strSortBy 'Holds the way the records are sorted Dim intSortSelectField 'Holds the sort selection to be shown in the sort list box 'Initalise variables strSearchCriteria = "%" 'If this is the first time the page is displayed then the members record position is set to page 1 If Request.QueryString("MemPN") = "" Then intRecordPositionPageNum = 1 'Else the page has been displayed before so the members page record postion is set to the Record Position number Else intRecordPositionPageNum = CInt(Request.QueryString("MemPN")) End If 'Get the search critiria for the members to display If NOT Request.QueryString("find") = "" Then strSearchCriteria = Request.QueryString("find") & "%" End If 'Get rid of milisous code strSearchCriteria = formatSQLInput(strSearchCriteria) 'Get the sort critiria Select Case Request.QueryString("Sort") Case "post" strSortBy = "No_of_posts DESC" intSortSelectField = 1 Case "latestUsers" strSortBy = "Join_date DESC" intSortSelectField = 2 Case "oldestUsers" strSortBy = "Join_date ASC" intSortSelectField = 3 Case "location" strSortBy = "Location ASC" intSortSelectField = 4 Case Else strSortBy = "Username ASC" intSortSelectField = 0 End Select %> ניהול משתמשים

ניהול משתמשים
חזרה לתפריט הניהול

בחרו את שמות המשתמשים שברצונכם לנהל את חשבונם,
הינכם יכולים לשנות את פרטיהם, שינוי קבוצות המשתמש שבהם הם חברים, איפוס סיסמא, השעיה, מחיקה, וכדומה.

חיפוש משתמש:
הכל <% ' gs - Start dim i response.write ("
") for i=65 to 90 response.write ("" & chr(i) & " ") next response.write ("
") for i=224 to 250 response.write ("" & chr(i) & " ") next response.write ("
") for i=33 to 64 response.write ("" & chr(i) & " ") next ' gs - End %>
<% 'Initalise the strSQL variable with an SQL statement to query the database strSQL = "SELECT " & strDbTable & "Author.*, " & strDbTable & "Group.Name " strSQL = strSQL & "FROM " & strDbTable & "Author, " & strDbTable & "Group " strSQL = strSQL & "WHERE " & strDbTable & "Author.Group_ID = " & strDbTable & "Group.Group_ID AND " & strDbTable & "Author.Username Like '" & strSearchCriteria & "' " strSQL = strSQL & "ORDER BY " & strDbTable & "Author." & strSortBy & ";" 'Set the cursor type property of the record set to dynamic so we can naviagate through the record set rsCommon.CursorType = 1 'Query the database rsCommon.Open strSQL, adoCon 'Set the number of records to display on each page rsCommon.PageSize = 33 'If there are no memebers to display then show an error message If rsCommon.EOF Then Response.Write "לא נמצאו משתמשים." 'If there is a recorset returned by the query then read in the details Else 'Set the page number to display records for rsCommon.AbsolutePage = intRecordPositionPageNum 'Count the number of members there are in the database by returning the number of records in the recordset intTotalNumMembers = rsCommon.RecordCount 'Count the number of pages there are in the database calculated by the PageSize attribute set above intTotalNumMembersPages = rsCommon.PageCount 'Display the HTML for the total number of pages and total number of records in the database for the users Response.Write vbCrLf & " " Response.Write vbCrLf & " " Response.Write vbCrLf & " " Response.Write vbCrLf & " " Response.Write vbCrLf & "
" 'If we are showing all the forum memebers then display how many members there are If Request.QueryString("find") = "" Then Response.Write vbCrLf & " Thre are " & intTotalNumMembers & " forum members on " & intTotalNumMembersPages & " pages and you are on page number " & intRecordPositionPageNum 'Else display how many results were fround from the search Else Response.Write vbCrLf & " Your search of the forum members found " & intTotalNumMembers & " matches" End If Response.Write vbCrLf & "
" Response.Write vbCrLf & "
" %>
מיון תוצאות
<% 'For....Next Loop to loop through the recorset to display the forum members For intRecordLoopCounter = 1 to 33 'If there are no member's records left to display then exit loop If rsCommon.EOF Then Exit For 'Initialise varibles dtmLastVisit = "" 'Read in the profile from the recordset lngUserID = CLng(rsCommon("Author_ID")) strPofileUsername = rsCommon("Username") lngNumOfPosts = CLng(rsCommon("No_of_posts")) dtmRegisteredDate = CDate(rsCommon("Join_date")) If NOT isNull(rsCommon("Last_visit")) Then dtmLastVisit = CDate(rsCommon("Last_visit")) strGroupName = rsCommon("Name") 'Write the HTML of the Topic descriptions as hyperlinks to the Topic details and message %> <% 'Move to the next record in the database rsCommon.MoveNext 'Loop back round Next End If %>
שם משתמש קבוצה הודעות ביקור אחרון תאריך רישום
<% = strPofileUsername %> <% = strGroupName %> <% = lngNumOfPosts %> <% If dtmLastVisit = "" Then Response.Write " " Else Response.Write FormatDateTime(dtmLastVisit, VbLongDate) End If %> <% = FormatDateTime(dtmRegisteredDate, VbLongDate) %>
<% 'If there is more than 1 page of members then dispaly drop down list to the other members If intTotalNumMembersPages > 1 Then 'Display an drop down list to the other members in list Response.Write vbCrLf & " " End If %>
Page" Response.Write vbCrLf & " of " & intTotalNumMembersPages & "
<% 'Reset Server Variables rsCommon.Close Set rsCommon = Nothing adoCon.Close Set adoCon = Nothing %>