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