migrate search module.
[platal.git] / templates / search / adv.form.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<h1>Recherche avancée</h1>
24
09824164 25<p>[<a href="{rel}/search">Recherche simple</a>]</p>
0337d704 26
27<form id="recherche" action="{$smarty.server.PHP_SELF}" method="get">
28 <table class="bicol" cellpadding="3" summary="Recherche">
29 <tr>
30 <td>Nom</td>
31 <td>
3b78b65d 32 <input type="hidden" name="rechercher" value="Chercher"/>
33 <input type="submit" style="display:none"/>
0337d704 34 <input type="text" name="name" size="32" value="{$smarty.request.name}" />
35 {if $smarty.request.name && !$with_soundex && $smarty.request.recherche}
36 <a class='smaller' href="{$smarty.server.PHP_SELF}?with_soundex=1&amp;{$url_args}">
37 étendre par proximité sonore
38 </a>
39 {/if}
40 </td>
41 </tr>
42 <tr>
43 <td>Prénom</td>
44 <td>
45 <input type="text" name="firstname" size="32" value="{$smarty.request.firstname}" />
46 {if $smarty.request.firstname && !$with_soundex && $smarty.request.recherche}
47 <a class='smaller' href="{$smarty.server.PHP_SELF}?with_soundex=1&amp;{$url_args}">
48 étendre par proximité sonore
49 </a>
50 {/if}
51 </td>
52 </tr>
53 <tr>
54 <td>Surnom</td>
55 <td>
56 <input type="text" name="nickname" size="32" value="{$smarty.request.nickname}" />
57 </td>
58 </tr>
59 <tr>
60 <td>Promotion</td>
61 <td>
62 <select name="egal1">
63 <option value="=" {if $smarty.request.egal1 eq "="}selected="selected"{/if}>&nbsp;=&nbsp;</option>
64 <option value="&gt;=" {if $smarty.request.egal1 eq "&gt;="}selected="selected"{/if}>&nbsp;&gt;=&nbsp;</option>
65 <option value="&lt;=" {if $smarty.request.egal1 eq "&lt;="}selected="selected"{/if}>&nbsp;&lt;=&nbsp;</option>
66 </select>
67 <input type="text" name="promo1" size="4" maxlength="4" value="{$smarty.request.promo1}" />
68 &nbsp;ET&nbsp;
69 <select name="egal2">
70 <option value="=" {if $smarty.request.egal2 eq "="}selected="selected"{/if}>&nbsp;=&nbsp;</option>
71 <option value="&gt;=" {if $smarty.request.egal2 eq "&gt;="}selected="selected"{/if}>&nbsp;&gt;=&nbsp;</option>
72 <option value="&lt;=" {if $smarty.request.egal2 eq "&lt;="}selected="selected"{/if}>&nbsp;&lt;=&nbsp;</option>
73 </select>
74 <input type="text" name="promo2" size="4" maxlength="4" value="{$smarty.request.promo2}" />
75 </td>
76 </tr>
77 <tr>
78 <td>Sexe</td>
79 <td>
80 <table>
81 <tr>
82 <td style="width:100px">
83 <input type="radio" name="woman" value="0" {if !$smarty.request.woman}checked="checked"{/if} />Indifférent
84 </td>
85 <td style="width:100px">
86 <input type="radio" name="woman" value="1" {if $smarty.request.woman eq 1}checked="checked"{/if} />Homme
87 </td>
88 <td style="width:100px">
89 <input type="radio" name="woman" value="2" {if $smarty.request.woman eq 2}checked="checked"{/if} />Femme
90 </td>
91 </tr>
92 </table>
93 </td>
94 </tr>
95 <tr>
96 <td>Sur polytechnique.org</td>
97 <td>
98 <table>
99 <tr>
100 <td style="width:100px">
101 <input type="radio" name="subscriber" value="0" {if !$smarty.request.subscriber}checked="checked"{/if} />Indifférent
102 </td>
103 <td style="width:100px">
104 <input type="radio" name="subscriber" value="1" {if $smarty.request.subscriber eq 1}checked="checked"{/if} />Inscrit
105 </td>
106 <td style="width:100px">
107 <input type="radio" name="subscriber" value="2" {if $smarty.request.subscriber eq 2}checked="checked"{/if} />Non inscrit
108 </td>
109 </tr>
110 </table>
111 </td>
112 </tr>
113 <tr>
114 <td>En vie</td>
115 <td>
116 <table>
117 <tr>
118 <td style="width:100px">
119 <input type="radio" name="alive" value="0" {if !$smarty.request.alive}checked="checked"{/if} />Indifférent
120 </td>
121 <td style="width:100px">
122 <input type="radio" name="alive" value="1" {if $smarty.request.alive eq 1}checked="checked"{/if} />Vivant
123 </td>
124 <td style="width:100px">
125 <input type="radio" name="alive" value="2" {if $smarty.request.alive eq 2}checked="checked"{/if} />Décédé
126 </td>
127 </tr>
128 </table>
129 </td>
130 </tr>
131 <tr>
132 <th colspan="2">Géographie</th>
133 </tr>
134 <tr>
56670b6a 135 <td colspan="2">
136 <label for="only_current"><input name="only_current" id="only_current" type="checkbox"{if $smarty.request.only_current} checked="checked"{/if}/>chercher uniquement les adresses où les camarades sont actuellement.</label></td>
137 </tr>
138 <tr>
0337d704 139 <td>Ville</td>
140 <td><input type="text" name="city" size="32" value="{$smarty.request.city}" /></td>
141 </tr>
142 <tr>
143 <td>Pays</td>
144 <td>
145 <select name="country" onchange="javascript:document.forms.recherche.submit();">
146 {if $smarty.request.country}
147 {assign var="country" value=$smarty.request.country}
148 {else}
149 {assign var="country" value=""}
150 {/if}
151 {geoloc_country country=$country}
152 </select>
153 </td>
154 </tr>
155 <tr>
156 <td>Région ou département</td>
157 <td>
158 <select name="region">
159 {if $smarty.request.region}
160 {assign var="region" value=$smarty.request.region}
161 {else}
162 {assign var="region" value=""}
163 {/if}
164 {if $smarty.request.country neq ""}
165 {geoloc_region country=$smarty.request.country region=$region}
166 {else}
167 <option value=""></option>
168 {/if}
169 </select>
170 </td>
171 </tr>
172 <tr>
173 <th colspan="2">Activité</th>
174 </tr>
175 <tr>
176 <td>Entreprise</td>
177 <td><input type="text" name="entreprise" size="32" value="{$smarty.request.entreprise}" /></td>
178 </tr>
179 <tr>
180 <td>Fonction</td>
181 <td>
182 <select name="fonction">
183 <option value="0"></option>
184 {iterate from=$choix_postes item=cp}
185 <option value="{$cp.id}" {if $smarty.request.fonction eq $cp.id}selected{/if}>
186 {$cp.fonction_fr}
187 </option>
188 {/iterate}
189 </select>
190 </td>
191 </tr>
192 <tr>
193 <td>Poste</td>
194 <td><input type="text" name="poste" size="32" value="{$smarty.request.poste}" /></td>
195 </tr>
196 <tr>
197 <td>Secteur</td>
198 <td>
199 <select name="secteur">
200 <option value="0"></option>
201 {iterate item=cs from=$choix_secteurs}
202 <option value="{$cs.id}" {if $smarty.request.secteur eq $cs.id}selected{/if}>
203 {$cs.label}
204 </option>
205 {/iterate}
206 </select>
207 </td>
208 </tr>
209 <tr>
210 <td>CV contient</td>
211 <td><input type="text" name="cv" size="32" value="{$smarty.request.cv}" /></td>
212 </tr>
213 <tr>
214 <td colspan="2">
215 <input type='checkbox' name='only_referent' {if $smarty.request.only_referent}checked='checked'{/if} />
216 chercher uniquement parmi les camarades se proposant comme référents
217 </td>
218 </tr>
219 <tr>
220 <th colspan="2">Divers</th>
221 </tr>
222 <tr>
223 <td>Nationalité</td>
224 <td>
225 <select name="nationalite">
226 {iterate from=$choix_nats item=cn}
227 <option value="{$cn.id}" {if $smarty.request.nationalite eq $cn.id}selected="selected"{/if}>
228 {$cn.text}
229 </option>
230 {/iterate}
231 </select>
232 </td>
233 </tr>
234 <tr>
235 <td>Binet</td>
236 <td>
237 <select name="binet">
238 <option value="0"></option>
239 {iterate item=cb from=$choix_binets}
240 <option value="{$cb.id}" {if $smarty.request.binet eq $cb.id}selected="selected"{/if}>
241 {$cb.text}
242 </option>
243 {/iterate}
244 </select>
245 </td>
246 </tr>
247 <tr>
248 <td>Groupe X</td>
249 <td>
250 <select name="groupex">
251 <option value="0"></option>
252 {iterate item=cg from=$choix_groupesx}
253 <option value="{$cg.id}" {if $smarty.request.groupex eq $cg.id}selected="selected"{/if}>
254 {$cg.text}
255 </option>
256 {/iterate}
257 </select>
258 </td>
259 </tr>
260 <tr>
261 <td>Section</td>
262 <td>
263 <select name="section">
264 {iterate item=cs from=$choix_sections}
265 <option value="{$cs.id}" {if $smarty.request.section eq $cs.id}selected="selected"{/if}>
266 {$cs.text}
267 </option>
268 {/iterate}
269 </select>
270 </td>
271 </tr>
272 <tr>
273 <td>Formation</td>
274 <td>
275 <select name="school" onchange="javascript:document.forms.recherche.submit();">
276 <option value="0"></option>
277 {iterate item=cs from=$choix_schools}
278 <option value="{$cs.id}" {if $smarty.request.school eq $cs.id}selected="selected"{/if}>
279 {$cs.text}
280 </option>
281 {/iterate}
282 </select>
283 </td>
284 </tr>
285 <tr>
286 <td></td>
287 <td>
288 <select name="diploma">
289 <option value="0"></option>
290 {section name=diploma loop=$choix_diplomas}
291 <option value="{$choix_diplomas[diploma]}" {if $smarty.request.diploma eq
292 $choix_diplomas[diploma]}selected="selected"{/if}>
293 {$choix_diplomas[diploma]}
294 </option>
295 {/section}
296 </select>
297 </td>
298 </tr>
299 <tr>
300 <td>Commentaire contient</td>
301 <td><input type="text" name="free" size="32" value="{$smarty.request.free}" /></td>
302 </tr>
303 </table>
56670b6a 304 {min_auth level='cookie'}
305 <p>
306 <input type='checkbox' name='order' value='date_mod' {if $smarty.request.order eq "date_mod"}checked='checked'{/if} />
307 mettre les fiches modifiées récemment en premier
308 </p>
309 {/min_auth}
0337d704 310</form>
56670b6a 311 <p class="center">
312 <script type="text/javascript">{literal}
313 function launch_form(url) {
314 var f = document.getElementById('recherche');
315 f.action = url;
316 f.submit();
317 }
318 {/literal}</script>
5c7c72a4 319 {if $use_map}
320 <input type="button" value="Voir les résultats sur une carte" onclick="launch_form('geoloc/')"/>
321 {/if}
1f017b2d 322 <input type="button" value="Chercher" onclick="launch_form('{$smarty.server.PHP_SELF}')"/>
56670b6a 323 </p>
0337d704 324<p>
325 <strong>N.B.</strong> Le caractère joker * peut remplacer une ou plusieurs lettres dans les recherches.
326</p>
327
328{* vim:set et sw=2 sts=2 sws=2: *}