Fixes vim mode line.
[platal.git] / templates / plview.multipage.tpl
CommitLineData
7cb40d85
FB
1{**************************************************************************}
2{* *}
e92ecb8c 3{* Copyright (C) 2003-2011 Polytechnique.org *}
7cb40d85
FB
4{* http://opensource.polytechnique.org/ *}
5{* *}
6{* This program is free software; you can redistribute it and/or modify *}
7{* it under the terms of the GNU General Public License as published by *}
8{* the Free Software Foundation; either version 2 of the License, or *}
9{* (at your option) any later version. *}
10{* *}
11{* This program is distributed in the hope that it will be useful, *}
12{* but WITHOUT ANY WARRANTY; without even the implied warranty of *}
13{* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}
14{* GNU General Public License for more details. *}
15{* *}
16{* You should have received a copy of the GNU General Public License *}
17{* along with this program; if not, write to the Free Software *}
18{* Foundation, Inc., *}
19{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
20{* *}
21{**************************************************************************}
22
23{capture name=pages}
24{if $plview->pages > 1}
25 {if $show_bounds}<div style="float: right"><small><strong>[{$first} - {$last}]&nbsp;</strong></small></div>{/if}
26<div class="center pages" style="float: left">
27 {if $plview->page neq 1}
852e6400
RB
28 <a href="{$platal->pl_self()}{$plset_args}order={$order}&amp;restrict={$restrict}&amp;page=1#pl_set_top">{icon name=resultset_first title="Première page"}</a>{*
29 *}<a href="{$platal->pl_self()}{$plset_args}order={$order}&amp;restrict={$restrict}&amp;page={$plview->page-1}#pl_set_top">{icon name=resultset_previous title="Page précédente"}</a>
7cb40d85
FB
30 {else}
31 {icon name=null title=""}{icon name=null title=""}
32 {/if}
33 {section name=page loop=$plview->pages+1 start=1}
34 {if $smarty.section.page.index eq $plview->page}
ef138fdc 35 <span style="color: red">{$plview->page}</span>
7cb40d85 36 {else}
852e6400 37 <a href="{$platal->pl_self()}{$plset_args}order={$order}&amp;restrict={$restrict}&amp;page={$smarty.section.page.index}#pl_set_top">{$smarty.section.page.index}</a>
7cb40d85
FB
38 {/if}
39 {/section}
40 {if $plview->page neq $plview->pages}
852e6400
RB
41 <a href="{$platal->pl_self()}{$plset_args}order={$order}&amp;restrict={$restrict}&amp;page={$plview->page+1}#pl_set_top">{icon name=resultset_next title="Page suivante"}</a>{*
42 *}<a href="{$platal->pl_self()}{$plset_args}order={$order}&amp;restrict={$restrict}&amp;page={$plview->pages}#pl_set_top">{icon name=resultset_last title="Dernière page"}</a>
7cb40d85
FB
43 {else}
44 {icon name=null title=""}{icon name=null title=""}
45 {/if}
46</div>
47{/if}
48{/capture}
49
50{capture name=order}
51{if $plset_count > 1}
52<div style="clear: both">
53 Trier par&nbsp;:
54 {foreach from=$orders key=name item=sort}
55 [
56 {if $name eq $order}
57 <img src='images/dn.png' alt='tri ascendant' />
e8e034fd 58 <a href="{$platal->pl_self()}{$plset_args}order=-{$name}#pl_set_top">{$sort->displaytext}</a>
7cb40d85
FB
59 {elseif $order eq "-$name"}
60 <img src='images/up.png' alt='tri ascendant' />
e8e034fd 61 <a href="{$platal->pl_self()}{$plset_args}order={$name}#pl_set_top">{$sort->displaytext}</a>
7cb40d85 62 {else}
e8e034fd 63 <a href="{$platal->pl_self()}{$plset_args}order={$name}#pl_set_top">{$sort->displaytext}</a>
7cb40d85
FB
64 {/if}
65 ]&nbsp;
66 {/foreach}
67</div>
68{/if}
69{/capture}
70
852e6400
RB
71{capture name=groups}
72{if $plset_has_groups}
73<div style="clear: both">
74 Restreindre à&nbsp;: [
75 {foreach from=$plset_groups key=group item=amount name=groups}
76 {if $amount > 0}
77 {if $group eq $restrict}
78 <em title="{$amount} résultats">{$group}</em>
79 {else}
80 <a href="{$platal->pl_self()}{$plset_args}order={$order}&restrict={$group}#pl_set_top" title="{$amount} résultats">{$group}</a>
81 {/if}
82 {if !$smarty.foreach.groups.last}
83 &nbsp;
84 {/if}
85 {/if}
86 {/foreach}
87 ]
88</div>
89{/if}
90{/capture}
91
7cb40d85
FB
92{$smarty.capture.order|smarty:nodefaults}
93
852e6400
RB
94{$smarty.capture.groups|smarty:nodefaults}
95
7cb40d85
FB
96{$smarty.capture.pages|smarty:nodefaults}
97
98<div id="multipage_content" style="padding: 0.5em 0; clear: both">
99 {include file=$plview->templateName()}
100</div>
101
102{$smarty.capture.pages|smarty:nodefaults}<br />
103
104{$smarty.capture.order|smarty:nodefaults}
105
fa7ffd66 106{* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}