blob: ba84c94ea61e5784b05cd509845a0345580043b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{strip}
<div class="paginator">
{if $pgnPage gt 1}
{if $ajaxId}
<a href="javascript:void(0);" onclick="BitAjax.ajaxUpdater( '{$ajaxId}', '{$smarty.const.LIBERTY_PKG_URL}ajax_attachment_browser.php', '{$pgnName}={$pgnPage-1}{$pgnVars}' );">«</a>
{else}
<a href="{$smarty.server.SCRIPT_URL}?{$pgnName}={$pgnPage-1}{$pgnVars}">«</a>
{/if}
{else}
{/if}
{tr}Page {$pgnPage} of {$numPages}{/tr}
{if $pgnPage lt $numPages}
{if $ajaxId}
<a href="javascript:void(0);" onclick="BitAjax.ajaxUpdater( '{$ajaxId}', '{$smarty.const.LIBERTY_PKG_URL}ajax_attachment_browser.php', '{$pgnName}={$pgnPage+1}{$pgnVars}' );">»</a>
{else}
<a href="{$smarty.server.SCRIPT_URL}?{$pgnName}={$pgnPage+1}{$pgnVars}">»</a>
{/if}
{else}
{/if}
{* MSIE dies when we use a form in the pagination when doing ajax stuff *}
{counter start=1 print=0 name=pgcount assign=pgcount}
{if $gBitSystem->isFeatureActive( 'site_direct_pagination' ) || $ajaxId}
{foreach from=$pgnPages item=link}
{counter print=0 name=pgcount}
{$link} {if $pgcount > 20}{counter start=1 print=0 name=pgcount assign=pgcount}<br/>{/if}
{/foreach}
{else}
{form id="fPageSelect"}
<input type="hidden" name="find" value="{$find}" />
<input type="hidden" name="sort_mode" value="{$sort_mode}" />
{foreach from=$pgnHidden key=name item=value}
<input type="hidden" name="{$name}" value="{$value}" />
{/foreach}
{tr}Go to page{/tr} <input class="gotopage" type="text" size="3" maxlength="6" name="{$pgnName}" />
{/form}
{/if}
</div><!-- end .pagination -->
{/strip}
|