|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/abtechsci/mmc15/Membership/admin/ |
Upload File : |
<?php
/************* Membership V2.0 *******************/
/*
Released by AwesomePHP.com, under the GPL License, a
copy of it should be attached to the zip file, or
you can view it on http://AwesomePHP.com/gpl.txt
*/
/************* Membership V2.0 *******************/
if($is_admin == false){ die();}
?>
<table width="100%" border="0" align="center" cellpadding="5" cellspacing="0">
<tr>
<td><div align="center"><font size="2"><?php
$add = '?page='.$_GET['page'];
$do_not_list_array = array('start','page');
foreach($_GET as $is => $what){
if(!in_array($is,$do_not_list_array)){ $add .= "&$is=$what"; }
}
$add .= '&start=';
//To display the numbering anywhere under the page use this code//
if($items_count > $display_limit){
$current_page = ($start/$display_limit)+1;
$start_page = $current_page - 3;
if($start_page <=0 ){$start_page=1;}
$end_page = $start_page + 7;
if($end_page > $page_count){$end_page = $page_count;}
//Do we need to print <<
if($start > 1){
$first_start = $start - ($display_limit*8);
if($first_start <=0 ){$first_start=0;}
$this_add = "$add";
echo "<strong> <a href=\"".$this_add. '" title="Rewind"><<</a> </strong>';
}
//Do we need to print previous?
if($current_page != 1) {
$this_add = $add.($start-$display_limit);
echo "<strong> <a href=\"".$this_add. '" title="previous"><</a> </strong>';
}
//Print out the numbers
for ($i = $start_page; $i <= $end_page ; $i++) {
if($i != $current_page){
$this_add = $add.(($display_limit * ($i - 1)));
echo " [<a href=\"".$this_add. '" title="Page Num: '.$i.'">' . $i . '</a>] ';
$last_start = (($display_limit * ($i - 1)));
} else {
echo '<font color="gray"> [' . $i . '] </font>';
}
}
//Print out Next
if($current_page != $page_count){
$this_add = $add.($start+$display_limit);
echo "<strong> <a href=\"".$this_add.'" title="Next">></a> </strong>';
}
//Print out >>
if(($last_start+($display_limit*8)) > $page_count*$display_limit){$show_end = ($page_count*$display_limit)-$display_limit;}else{$show_end = ($last_start+($display_limit*8));}
if( ($start+$display_limit) < $items_count){
$this_add = "$add$show_end";
echo "<strong> <a href=\"".$this_add."\" title=\"Fast Forward\">>></a> </strong>";
}
}
?>
</font></div></td>
</tr>
</table>