Location: PHPKode > scripts > New DB Class > new-db-class/show_paging.tpl
{*
 * @author Jiri Kocman - hide@address.com
 * $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}
{/section}
&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>
Return current item: New DB Class