Location: PHPKode > projects > phpBlogger > admin/faqmanage.php
<?php
###############################
#user.php         version 1.1.#
###############################
include ('header.php');
include ('../classes/class.GenericEasyPagination.php');
?>
<script>
function goto(site) {
var msg = confirm("Are you sure you want to delete this entry? This action cannot be undone!")
if (msg) {window.location.href = site}
else (null)
}
</script>
<div id="headermenu">Manage FAQ</div>
<?php
if(@$_GET["page"] != ""):
	$page = @$_GET["page"];
else:
	$page = 1;
endif;
	define('RECORDS_BY_PAGE',8);
	define('CURRENT_PAGE',$page);
	$strSQL = " SELECT * FROM helptopics ORDER BY faqestion ASC";
	$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) {
	
			echo "<a href=\"javascript:goto('faqdelate.php?id=".$rs->fields["faqid"]."')\">".$rs->fields["faqestion"]."&nbsp;&nbsp;<font color='#880000'>Delete</font></a><br /><br />";
			$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>";
	}
	$conn->Close();
    ?>
</div></div></div>
<?php include ('footer.php'); ?>
Return current item: phpBlogger