summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-01-29 16:15:52 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-01-29 16:15:52 +0000
commit19f7d9d2680b0c4299255c6eb3f4ad64f26e4100 (patch)
tree1afe92369b3de19f0d940c74794663eee75020ec /templates
parent74d8fc34da698d225cd8e497fba6848463f68cb0 (diff)
downloadkernel-19f7d9d2680b0c4299255c6eb3f4ad64f26e4100.tar.gz
kernel-19f7d9d2680b0c4299255c6eb3f4ad64f26e4100.tar.bz2
kernel-19f7d9d2680b0c4299255c6eb3f4ad64f26e4100.zip
array found in $listInfo.parameters is automatically added to pagination url:
key = parameter value = value e.g.: $ListInfo['parameters']['dogs'] = 3; --> &dogs=3
Diffstat (limited to 'templates')
-rw-r--r--templates/pagination.tpl7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/pagination.tpl b/templates/pagination.tpl
index fa724e5..c0d6847 100644
--- a/templates/pagination.tpl
+++ b/templates/pagination.tpl
@@ -31,7 +31,12 @@
</div> <!-- end .pagination -->
{elseif $listInfo && $listInfo.total_pages > 1}
<div class="pagination">
- {assign var=pageUrl value="`$smarty.server.PHP_SELF`?sort_mode=`$listInfo.sort_mode`&amp;find=`$listInfo.find`"}
+ {capture name=string}
+ {foreach from=$listInfo.parameters key=param item=value}
+ &amp;{$param}={$value}
+ {/foreach}
+ {/capture}
+ {assign var=pageUrl value="`$smarty.server.PHP_SELF`?sort_mode=`$listInfo.sort_mode`&amp;find=`$listInfo.find``$smarty.capture.string`"}
{math equation="offset + 1 * max" offset=$listInfo.offset max=$listInfo.max_records assign=to}
{if $listInfo.current_page > 1}
&nbsp;<a href="{$pageUrl}&amp;list_page={$listInfo.current_page-1}">&laquo;</a>&nbsp;