PHP Classes

File: fwphp/glomodul/blog_akram/z_old_other/z_old_pagination.php

Recommend this page to a friend!
  Classes of Slavko Srakocic   B12 PHP FW   fwphp/glomodul/blog_akram/z_old_other/z_old_pagination.php   Download  
File: fwphp/glomodul/blog_akram/z_old_other/z_old_pagination.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change:
Date: 1 year ago
Size: 1,308 bytes
 

Contents

Class file image Download
<!-- Old pagination, was in index.php before $pgn_links['navbar'] -->
      <nav>

        <ul class="pagination pull-left pagination-lg">

          <!-- Creating backward Button -->
          <?php
         
//if(isset($pgordno_from_url))
          //{
           
if($pgordno_from_url>1){
             
?>
<li><a href="index.php?p=<?php echo ($pgordno_from_url - 1) ; ?>"> &laquo; </a></li>
              <?php
           
}
         
//}
           
           
         
for($i=1;$i<=$total_pages;$i++){
           
//if(isset($pgordno_from_url))
            //{
             
if($i==$pgordno_from_url){
             
?>
<li class="active"><a href="index.php?p=<?php echo $i; ?>"><?php echo $i; ?></a></li>
              <?php
             
}else{ ?>
<li><a href="index.php?p=<?php echo $i; ?>"><?php echo $i; ?></a></li>
              <?php
             
}
           
//}
         
} ?>

          <!-- Creating Forward Button -->
          <?php
         
//if(isset($pgordno_from_url))
          //{
           
if($pgordno_from_url+1<=$total_pages)
            {
?>
<li><a href="index.php?p=<?php echo $pgordno_from_url+1; ?>"> &raquo; </a></li>
              <?php
           
}
         
//} ?>
        </ul>
      </nav>