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