X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fplview.multipage.tpl;h=5c8af746b7b7d1366c2387a23f2651b73f10dfee;hb=fa7ffd661d77b24cdb385aca7bdb04c938214061;hp=edd3313a40fa9d3d6b53357d53d4590c54fbda64;hpb=7cb40d85a05eb9d16218b9504ee484741e2e92e3;p=platal.git
diff --git a/templates/plview.multipage.tpl b/templates/plview.multipage.tpl
index edd3313..5c8af74 100644
--- a/templates/plview.multipage.tpl
+++ b/templates/plview.multipage.tpl
@@ -1,6 +1,6 @@
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2008 Polytechnique.org *}
+{* Copyright (C) 2003-2011 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
@@ -25,21 +25,21 @@
{if $show_bounds}
{if $plview->page neq 1}
-
{icon name=resultset_first title="Première page"}{*
- *}
{icon name=resultset_previous title="Page précédente"}
+
{icon name=resultset_first title="Première page"}{*
+ *}
{icon name=resultset_previous title="Page précédente"}
{else}
{icon name=null title=""}{icon name=null title=""}
{/if}
{section name=page loop=$plview->pages+1 start=1}
{if $smarty.section.page.index eq $plview->page}
-
{$plview->page}
+
{$plview->page}
{else}
-
{$smarty.section.page.index}
+
{$smarty.section.page.index}
{/if}
{/section}
{if $plview->page neq $plview->pages}
-
{icon name=resultset_next title="Page suivante"}{*
- *}
{icon name=resultset_last title="Dernière page"}
+
{icon name=resultset_next title="Page suivante"}{*
+ *}
{icon name=resultset_last title="Dernière page"}
{else}
{icon name=null title=""}{icon name=null title=""}
{/if}
@@ -55,12 +55,12 @@
[
{if $name eq $order}
![tri ascendant](images/dn.png)
-
{$sort.desc}
+
{$sort->displaytext}
{elseif $order eq "-$name"}
![tri ascendant](images/up.png)
-
{$sort.desc}
+
{$sort->displaytext}
{else}
-
{$sort.desc}
+
{$sort->displaytext}
{/if}
]
{/foreach}
@@ -68,9 +68,31 @@
{/if}
{/capture}
+{capture name=groups}
+{if $plset_has_groups}
+
+ Restreindre à : [
+ {foreach from=$plset_groups key=group item=amount name=groups}
+ {if $amount > 0}
+ {if $group eq $restrict}
+
{$group}
+ {else}
+
{$group}
+ {/if}
+ {if !$smarty.foreach.groups.last}
+
+ {/if}
+ {/if}
+ {/foreach}
+ ]
+
+{/if}
+{/capture}
{$smarty.capture.order|smarty:nodefaults}
+{$smarty.capture.groups|smarty:nodefaults}
+
{$smarty.capture.pages|smarty:nodefaults}
@@ -81,4 +103,4 @@
{$smarty.capture.order|smarty:nodefaults}
-{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}
+{* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}