do not remove xface.php
[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   {/if}
49
50   <div class="contact-list" style="clear:both">
51     {capture name=list}
52     {iterate item=res from=$search_results}
53       {if $res.contact || $res.watch}
54         {include file=include/minifiche.tpl c=$res show_action="retirer"}
55       {else}
56         {include file=include/minifiche.tpl c=$res show_action="ajouter"}
57       {/if}
58     {/iterate}
59     {/capture}
60     {$smarty.capture.list|smarty:nodefaults}
61   </div>
62
63   {if $search_pages_nb > 1}
64   <p>
65     {foreach from=$search_pages_link item=l}
66     {if $l.i eq $search_page}
67     <span class="erreur">{$l.text}</span>
68     {else}
69     <a href="{$l.u}">{$l.text}</a>
70     {/if}
71     {/foreach}
72   </p>
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: *}