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