PHP Classes

File: show_paging.tpl

Recommend this page to a friend!
  Classes of Jiri Kocman  >  New DB Class  >  show_paging.tpl  >  Download  
File: show_paging.tpl
Role: Auxiliary data
Content type: text/plain
Description: paging.tpl
Class: New DB Class
Class for access MySQL and Sybase ASE database ser
Author: By
Last change:
Date: 19 years ago
Size: 1,101 bytes


Class file image Download
 * @author Jiri Kocman -
 * $Id: show_paging.tpl,v 1.5 2003/02/04 00:04:41 jirka Exp $
 * assignovani promennych pro smartyho
 * $s->assign('paging', $db->PAGING);
 * $s->assign('pagingurl', $_SERVER['REQUEST_URI']);
<div align="center">Celkem {if $paging.0.3 ne 0}{$paging.0.3}{else}0{/if} záznam{$paging.0.4}. Zobrazeny položky {if $paging.0.6 ne 0}{$paging.0.5}{else}0{/if} - {if $paging.0.6 ne 0}{$paging.0.6}{else}0{/if}.<br>
{if $paging.1.1 eq ''}&lt;&lt;{else}<a href="{$pagingurl}{$paging.1.1}">&lt;&lt;</a>{/if}&nbsp;
{if $paging.2.1 eq ''}&lt;{else}<a href="{$pagingurl}{$paging.2.1}">&lt;</a>{/if}&nbsp;
{section name=paging loop=$paging start=5}
	{if $paging[paging].1 eq ''}<B>{$paging[paging].0}</B>{else}<a href="{$pagingurl}{$paging[paging].1}">{$paging[paging].0}</a>{/if}
	{if $smarty.section.paging.last eq false}&nbsp;-&nbsp;{/if}
&nbsp;{if $paging.3.1 eq ''}&gt;{else}<a href="{$pagingurl}{$paging.3.1}">&gt;</a>{/if}
&nbsp;{if $paging.4.1 eq ''}&gt;&gt;{else}<a href="{$pagingurl}{$paging.4.1}">&gt;&gt;</a>{/if}</div>
For more information send a message to info at phpclasses dot org.