Location: PHPKode > projects > phpBlogger > admin/banlist.php
<?php
###############################
#user.php         version 1.1.#
###############################
include ('header.php');
include ('../classes/class.GenericEasyPagination.php');
?>
<div id="headermenu">Manage users</div>
<?php
if(@$_GET["page"] != ""):
	$page = @$_GET["page"];
else:
	$page = 1;
endif;
	define('RECORDS_BY_PAGE',18);
	define('CURRENT_PAGE',$page);
	$strSQL = " SELECT * FROM banip ORDER BY banid DESC";
	$conn->SetFetchMode(ADODB_FETCH_ASSOC);
	$rs = $conn->PageExecute($strSQL,RECORDS_BY_PAGE,CURRENT_PAGE);
	if(!$rs->EOF) {
		$recordsFound = $rs->_maxRecordCount;
		echo "RecordsLits:<br><br>";
		while(!$rs->EOF) {
			?>
<?php echo $rs->fields['banipad'] ?> - <a href="removeban.php?id=<?php echo $rs->fields['banid'] ?>"><font color="#EE6300">Remove Ban</font></a></font><br />
<?php
		$rs->moveNext();
		}
		$GenericEasyPagination = new GenericEasyPagination(CURRENT_PAGE,RECORDS_BY_PAGE,"eng");
		$GenericEasyPagination->setTotalRecords($recordsFound);
		echo "<br>";
		echo "<strong>Records found: </strong>".$recordsFound;
		echo "<br>Records ";
		echo $GenericEasyPagination->getListCurrentRecords();
		echo "<br>";
		echo $GenericEasyPagination->getCurrentPages();
		echo "<br>";
	}else{
        echo"&nbsp;No Records Found";
        }
	$conn->Close();
    ?>
</div></div></div>
<?php include ('footer.php'); ?>
Return current item: phpBlogger