PHP Classes

File: examples/sandbox/templates/standard_pagination.tpl

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil   PHP Skeleton Framework   examples/sandbox/templates/standard_pagination.tpl   Download  
File: examples/sandbox/templates/standard_pagination.tpl
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Skeleton Framework
Extensive Web application development framework
Author: By
Last change:
Date: 8 years ago
Size: 1,094 bytes
 

Contents

Class file image Download
<?php if ($first): ?><a href="<?php echo $_SERVER['SCRIPT_NAME']; ?>?page=<?php echo $first; ?>"><< First</a>&nbsp;<?php endif; ?> <?php if ($previous): ?><a href="<?php echo $_SERVER['SCRIPT_NAME']; ?>?page=<?php echo $previous; ?>"><</a>&nbsp;<?php endif; ?> <!--<?php if ($first && $before->current() > $first + 1): ?>...<?php endif; ?>--> <?php foreach ($before as $item): ?> <?php if ($item): ?><a href="<?php echo $_SERVER['SCRIPT_NAME']; ?>?page=<?php echo $item; ?>"><?php echo $item; ?></a>&nbsp;<?php endif; ?> <?php endforeach; ?> <?php echo $page; ?>&nbsp;<?php foreach ($after as $item): ?> <?php if ($item): ?><a href="<?php echo $_SERVER['SCRIPT_NAME']; ?>?page=<?php echo $item; ?>"><?php echo $item; ?></a>&nbsp;<?php endif; ?> <?php endforeach; ?> <!--<?php if ($last && $after->current() < $last - 1): ?>...<?php endif; ?>--> <?php if ($next): ?><a href="<?php echo $_SERVER['SCRIPT_NAME']; ?>?page=<?php echo $next; ?>">></a>&nbsp;<?php endif; ?> <?php if ($last): ?><a href="<?php echo $_SERVER['SCRIPT_NAME']; ?>?page=<?php echo $last; ?>">Last >></a>&nbsp;<?php endif; ?>