71b478c07d8090780ec061143b721638df23a54f
[platal.git] / templates / search.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2004 Polytechnique.org                             *}
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
24 {if $formulaire==0 and !$xorg_error->errs|count}
25   {if !$advanced}
26   {include file='search.quick.form.tpl' show_js=1}
27   {else}
28   {include file=search.adv.links.tpl do_title=1 with_soundex=$with_soundex}
29   {/if}
30
31   <h1 class='right'>
32     {if $search_results_nb==0}Aucune{else}{$search_results_nb}{/if} réponse{if $search_results_nb>1}s{/if}.
33   </h1>
34
35   {if $search_results_nb > 1}
36   <div>
37     Trier par :
38     {foreach from=$search_order_link item=tri}
39     [<a href='{$tri.url}'>
40     {if $tri.asc or $tri.desc}<strong>{/if}
41     {$tri.text}
42     {if $tri.desc}<img src='{rel}/images/up.png' alt='tri ascendant' />{/if}
43     {if  $tri.asc}<img src='{rel}/images/dn.png' alt='tri descendant' />{/if}
44     {if $tri.asc or $tri.desc}</strong>{/if}
45     </a>]
46     {/foreach}
47   </div>
48
49   <div class="contact-list" style="clear:both">
50     {capture name=list}
51     {iterate item=res from=$search_results}
52       {if $res.contact || $res.watch}
53         {include file=include/minifiche.tpl c=$res show_action="retirer"}
54       {else}
55         {include file=include/minifiche.tpl c=$res show_action="ajouter"}
56       {/if}
57     {/iterate}
58     {/capture}
59     {$smarty.capture.list|smarty:nodefaults}
60   </div>
61
62   {if $search_pages_nb > 1}
63   <p>
64     {foreach from=$search_pages_link item=l}
65     {if $l.i eq $search_page}
66     <span class="erreur">{$l.text}</span>
67     {else}
68     <a href="{$l.u}">{$l.text}</a>
69     {/if}
70     {/foreach}
71   </p>
72   {/if}
73   {/if}
74
75   {min_auth level='cookie'}
76   <br />
77   {if $smarty.capture.list|smarty:nodefaults|display_lines > 20}
78   {if $advanced}
79   {include file=search.adv.links.tpl do_title=1}
80   {else}
81   {include file='search.quick.form.tpl'}
82   {/if}
83   {/if}
84   
85   <p>
86   <strong>Astuce:</strong>
87   Si tu survoles une fiche, tu sauras quand elle a été mise à jour la dernière fois !</p>
88   {/min_auth}
89 {else}
90   {if $advanced}
91   {include file="search.adv.form.tpl"}
92   {else}
93   {include file="search.quick.tpl"}
94   {/if}
95 {/if}
96
97
98 {* vim:set et sw=2 sts=2 sws=2: *}