Commit | Line | Data |
---|---|---|
0337d704 | 1 | {**************************************************************************} |
2 | {* *} | |
5e1513f6 | 3 | {* Copyright (C) 2003-2011 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 | ||
1f17ab93 | 23 | <h1>Recherche dans l'annuaire</h1> |
0337d704 | 24 | |
39394cbf SJ |
25 | {if hasPerm('edit_directory,admin') && t($suggestAddresses)} |
26 | <p class="center"><strong>Voulez-vous télécharger le <a href="{$globals->baseurl}/search/adv/addresses{$plset_args}">tableau des adresses postales</a> pour la recette précédente ?</strong></p> | |
27 | {/if} | |
28 | ||
e16215c4 SJ |
29 | <script type="text/javascript">//<![CDATA[ |
30 | {literal}$(function() { load_advanced_search({{/literal}{foreach from=$smarty.request key=key item=item}"{$key}":"{$item}",{/foreach}{literal}}); });{/literal} | |
31 | //]]></script> | |
63c89179 | 32 | |
ba50f03d | 33 | <p class="center">[<a href="search">Revenir à la recherche simple</a>]</p> |
21fb012b | 34 | <form id="recherche" action="search/adv" method="get" onsubmit="return cleanForm(this)"> |
0337d704 | 35 | <table class="bicol" cellpadding="3" summary="Recherche"> |
36 | <tr> | |
1f17ab93 | 37 | <th colspan="2"> |
ba50f03d | 38 | Recherche avancée |
1f17ab93 | 39 | </th> |
40 | </tr> | |
41 | <tr> | |
6443c93d | 42 | <td>Nom, prénom, surnom...</td> |
0337d704 | 43 | <td> |
66f2b6b3 | 44 | <input type="hidden" name="rechercher" value="Chercher"/> |
45 | <input type="submit" style="display:none"/> | |
6443c93d | 46 | <input type="text" name="name" size="32" value="{$smarty.request.name}" /> |
5600b2fe SJ |
47 | <select name="name_type"> |
48 | <option value="" {if $smarty.request.name_type eq ''}selected="selected"{/if}> - </option> | |
49 | <option value="lastname" {if $smarty.request.name_type eq 'lastname'}selected="selected"{/if}>nom</option> | |
50 | <option value="firstname" {if $smarty.request.name_type eq 'firstname'}selected="selected"{/if}>prénom</option> | |
51 | <option value="nickname" {if $smarty.request.name_type eq 'nickname'}selected="selected"{/if}>surnom</option> | |
52 | </select> | |
0337d704 | 53 | </td> |
54 | </tr> | |
55 | <tr> | |
56 | <td>Promotion</td> | |
57 | <td> | |
9f4004f3 | 58 | {include file="include/select_promo.tpl" promo_data=$smarty.request egal1="egal1" egal2="egal2" promo1="promo1" promo2="promo2" edu_type="edu_type"} |
0337d704 | 59 | </td> |
60 | </tr> | |
61 | <tr> | |
62 | <td>Sexe</td> | |
63 | <td> | |
64 | <table> | |
65 | <tr> | |
66 | <td style="width:100px"> | |
e803ded5 | 67 | <input type="radio" name="woman" value="0" {if !$smarty.request.woman}checked="checked"{/if} id="woman0"/><label for="woman0">indifférent</label> |
0337d704 | 68 | </td> |
69 | <td style="width:100px"> | |
e803ded5 | 70 | <input type="radio" name="woman" value="1" {if $smarty.request.woman eq 1}checked="checked"{/if} id="woman1"/><label for="woman1">homme</label> |
0337d704 | 71 | </td> |
72 | <td style="width:100px"> | |
e803ded5 | 73 | <input type="radio" name="woman" value="2" {if $smarty.request.woman eq 2}checked="checked"{/if} id="woman2"/><label for="woman2">femme</label> |
0337d704 | 74 | </td> |
75 | </tr> | |
76 | </table> | |
77 | </td> | |
78 | </tr> | |
79 | <tr> | |
e803ded5 | 80 | <td>Sur Polytechnique.org</td> |
0337d704 | 81 | <td> |
82 | <table> | |
83 | <tr> | |
84 | <td style="width:100px"> | |
e803ded5 | 85 | <input type="radio" name="subscriber" value="0" {if !$smarty.request.subscriber}checked="checked"{/if} id="subscriber0"/><label for="subscriber0">indifférent</label> |
0337d704 | 86 | </td> |
87 | <td style="width:100px"> | |
e803ded5 | 88 | <input type="radio" name="subscriber" value="1" {if $smarty.request.subscriber eq 1}checked="checked"{/if} id="subscriber1"/><label for="subscriber1">inscrit</label> |
0337d704 | 89 | </td> |
90 | <td style="width:100px"> | |
e803ded5 | 91 | <input type="radio" name="subscriber" value="2" {if $smarty.request.subscriber eq 2}checked="checked"{/if} id="subscriber2"/><label for="subscriber2">non inscrit</label> |
0337d704 | 92 | </td> |
93 | </tr> | |
94 | </table> | |
95 | </td> | |
96 | </tr> | |
97 | <tr> | |
c10e9a24 SJ |
98 | <td>A une redirection active</td> |
99 | <td> | |
100 | <table> | |
101 | <tr> | |
102 | <td style="width:100px"> | |
103 | <input type="radio" name="has_email_redirect" value="0" {if !$smarty.request.has_email_redirect}checked="checked"{/if} | |
104 | id="has_email_redirect0" /><label for="has_email_redirect0">indifférent</label> | |
105 | </td> | |
106 | <td style="width:100px"> | |
107 | <input type="radio" name="has_email_redirect" value="1" {if $smarty.request.has_email_redirect eq 1}checked="checked"{/if} | |
108 | id="has_email_redirect1" /><label for="has_email_redirect1">oui</label> | |
109 | </td> | |
110 | <td style="width:100px"> | |
111 | <input type="radio" name="has_email_redirect" value="2" {if $smarty.request.has_email_redirect eq 2}checked="checked"{/if} | |
112 | id="has_email_redirect2" /><label for="has_email_redirect2">non</label> | |
113 | </td> | |
114 | </tr> | |
115 | </table> | |
116 | </td> | |
117 | </tr> | |
118 | <tr> | |
0337d704 | 119 | <td>En vie</td> |
120 | <td> | |
121 | <table> | |
122 | <tr> | |
123 | <td style="width:100px"> | |
e803ded5 | 124 | <input type="radio" name="alive" value="0" {if !$smarty.request.alive}checked="checked"{/if} id="alive0"/><label for="alive0">indifférent</label> |
0337d704 | 125 | </td> |
126 | <td style="width:100px"> | |
e803ded5 | 127 | <input type="radio" name="alive" value="1" {if $smarty.request.alive eq 1}checked="checked"{/if} id="alive1"/><label for="alive1">vivant</label> |
0337d704 | 128 | </td> |
129 | <td style="width:100px"> | |
e803ded5 | 130 | <input type="radio" name="alive" value="2" {if $smarty.request.alive eq 2}checked="checked"{/if} id="alive2"/><label for="alive2">décédé</label> |
0337d704 | 131 | </td> |
132 | </tr> | |
133 | </table> | |
134 | </td> | |
135 | </tr> | |
136 | <tr> | |
56670b6a | 137 | <td colspan="2"> |
b16476f7 | 138 | <input type="checkbox" name="with_soundex" value="1" {if $smarty.request.with_soundex}checked="checked"{/if} id="sdxn" /> |
e803ded5 | 139 | <label for="sdxn">Étendre par proximité sonore (uniquement sur nom et prénom).</label> |
b16476f7 | 140 | </td> |
20ac3913 | 141 | </tr> |
b16476f7 | 142 | <tr> |
143 | <th colspan="2">Géographie</th> | |
56670b6a | 144 | </tr> |
145 | <tr> | |
1445337a SJ |
146 | <td colspan="2" class="center"><small>Seuls les lieux où résident des camarades sont proposés ci-dessous.</small></td> |
147 | </tr> | |
148 | <tr> | |
0337d704 | 149 | <td>Pays</td> |
150 | <td> | |
b0691e10 FB |
151 | <input name="countryTxt" type="text" class="autocomplete" style="display:none" size="32" |
152 | value="{$smarty.request.countryTxt}"/> | |
66f2b6b3 | 153 | <input name="country" class="autocompleteTarget" type="hidden" value="{$smarty.request.country}"/> |
154 | <a href="country" class="autocompleteToSelect">{icon name="table" title="Tous les pays"}</a> | |
0337d704 | 155 | </td> |
156 | </tr> | |
a67a14b4 SJ |
157 | <tr id="administrative_area_level_1_list"> |
158 | <td>Région, province, état…</td> | |
159 | <td> | |
160 | <input name="administrative_area_level_1" type="hidden" size="32" value="{$smarty.request.administrative_area_level_1}" /> | |
161 | </td> | |
162 | </tr> | |
163 | <tr id="administrative_area_level_2_list"> | |
164 | <td>Département, comté…</td> | |
165 | <td> | |
166 | <input name="administrative_area_level_2" type="hidden" size="32" value="{$smarty.request.administrative_area_level_2}" /> | |
167 | </td> | |
168 | </tr> | |
169 | <tr id="administrative_area_level_3_list"> | |
170 | <td>Canton…</td> | |
171 | <td> | |
172 | <input name="administrative_area_level_3" type="hidden" size="32" value="{$smarty.request.administrative_area_level_3}" /> | |
173 | </td> | |
174 | </tr> | |
175 | <tr id="locality_text"> | |
176 | <td>Ville</td> | |
875745ab | 177 | <td><input type="text" class="autocomplete" name="localityTxt" size="32" value="{$smarty.request.localityTxt}" /></td> |
a67a14b4 SJ |
178 | </tr> |
179 | <tr id="locality_list"> | |
180 | <td>Ville</td> | |
181 | <td> | |
182 | <input name="locality" type="hidden" size="32" value="{$smarty.request.locality}" /> | |
183 | </td> | |
184 | </tr> | |
185 | <tr id="sublocality_list"> | |
186 | <td>Arrondissement, quartier…</td> | |
187 | <td> | |
188 | <input name="sublocality" type="hidden" size="32" value="{$smarty.request.sublocality}" /> | |
189 | </td> | |
190 | </tr> | |
0337d704 | 191 | <tr> |
b16476f7 | 192 | <td colspan="2"> |
aab2ffdd SJ |
193 | <label for="only_current"> |
194 | <input name="only_current" id="only_current" type="checkbox"{if $smarty.request.only_current} checked="checked"{/if}/> | |
ab90f8cf | 195 | Chercher uniquement les adresses actuelles. |
aab2ffdd SJ |
196 | </label> |
197 | </td> | |
b16476f7 | 198 | </tr> |
199 | <tr> | |
a7de4ef7 | 200 | <th colspan="2">Activité</th> |
0337d704 | 201 | </tr> |
202 | <tr> | |
203 | <td>Entreprise</td> | |
838cc16a | 204 | <td><input type="text" class="autocomplete" name="entreprise" size="32" value="{$smarty.request.entreprise}" /></td> |
0337d704 | 205 | </tr> |
206 | <tr> | |
c7139c07 | 207 | <td>Description</td> |
f3bfd6c9 | 208 | <td><input type="text" class="autocomplete" name="jobdescription" size="32" value="{$smarty.request.jobdescription}" /></td> |
0337d704 | 209 | </tr> |
210 | <tr> | |
3ac45f10 | 211 | <td>Mots-clefs</td> |
0337d704 | 212 | <td> |
3ac45f10 PC |
213 | <input name="jobtermTxt" type="text" class="autocomplete{if $smarty.request.jobterm} hidden_valid{/if}" style="display:none" size="32" |
214 | value="{$smarty.request.jobtermTxt}"/> | |
215 | <input name="jobterm" class="autocompleteTarget" type="hidden" value="{$smarty.request.jobterm}"/> | |
216 | <a href="jobterm" class="autocompleteToSelect">{icon name="table" title="Tous les mots-clefs"}</a> | |
0337d704 | 217 | </td> |
218 | </tr> | |
574f3cc3 | 219 | {if hasPerm('directory_private')} |
0337d704 | 220 | <tr> |
221 | <td>CV contient</td> | |
222 | <td><input type="text" name="cv" size="32" value="{$smarty.request.cv}" /></td> | |
223 | </tr> | |
574f3cc3 | 224 | {/if} |
0337d704 | 225 | <tr> |
226 | <td colspan="2"> | |
f6818108 | 227 | <input type='checkbox' name='only_referent' {if $smarty.request.only_referent}checked='checked'{/if} id="only_referent"/> |
e803ded5 | 228 | <label for="only_referent">Chercher uniquement parmi les camarades se proposant comme référents.</label> |
0337d704 | 229 | </td> |
230 | </tr> | |
231 | <tr> | |
232 | <th colspan="2">Divers</th> | |
233 | </tr> | |
234 | <tr> | |
a7de4ef7 | 235 | <td>Nationalité</td> |
0337d704 | 236 | <td> |
b0691e10 FB |
237 | <input name="nationaliteTxt" type="text" class="autocomplete" style="display:none" size="32" |
238 | value="{$smarty.request.nationaliteTxt}"/> | |
66f2b6b3 | 239 | <input name="nationalite" class="autocompleteTarget" type="hidden" value="{$smarty.request.nationalite}"/> |
240 | <a href="nationalite" class="autocompleteToSelect">{icon name="table" title="Toutes les nationalités"}</a> | |
0337d704 | 241 | </td> |
242 | </tr> | |
574f3cc3 | 243 | {if hasPerm('directory_private')} |
0337d704 | 244 | <tr> |
245 | <td>Binet</td> | |
246 | <td> | |
b0691e10 FB |
247 | <input name="binetTxt" type="text" class="autocomplete" style="display:none" size="32" |
248 | value="{$smarty.request.binetTxt}"/> | |
66f2b6b3 | 249 | <input name="binet" class="autocompleteTarget" type="hidden" value="{$smarty.request.binet}"/> |
250 | <a href="binet" class="autocompleteToSelect">{icon name="table" title="Tous les binets"}</a> | |
0337d704 | 251 | </td> |
252 | </tr> | |
574f3cc3 | 253 | {/if} |
0337d704 | 254 | <tr> |
255 | <td>Groupe X</td> | |
256 | <td> | |
b0691e10 FB |
257 | <input name="groupexTxt" type="text" class="autocomplete" style="display:none" size="32" |
258 | value="{$smarty.request.groupexTxt}"/> | |
66f2b6b3 | 259 | <input name="groupex" class="autocompleteTarget" type="hidden" value="{$smarty.request.groupex}"/> |
260 | <a href="groupex" class="autocompleteToSelect">{icon name="table" title="Tous les groupes X"}</a> | |
0337d704 | 261 | </td> |
262 | </tr> | |
574f3cc3 | 263 | {if hasPerm('directory_private')} |
0337d704 | 264 | <tr> |
265 | <td>Section</td> | |
266 | <td> | |
b0691e10 FB |
267 | <input name="sectionTxt" type="text" class="autocomplete" style="display:none" size="32" |
268 | value="{$smarty.request.sectionTxt}"/> | |
66f2b6b3 | 269 | <input name="section" class="autocompleteTarget" type="hidden" value="{$smarty.request.section}"/> |
270 | <a href="section" class="autocompleteToSelect">{icon name="table" title="Toutes les sections"}</a> | |
0337d704 | 271 | </td> |
272 | </tr> | |
574f3cc3 | 273 | {/if} |
0337d704 | 274 | <tr> |
275 | <td>Formation</td> | |
276 | <td> | |
b0691e10 FB |
277 | <input name="schoolTxt" type="text" class="autocomplete" style="display:none" size="32" |
278 | value="{$smarty.request.schoolTxt}"/> | |
66f2b6b3 | 279 | <input name="school" class="autocompleteTarget" type="hidden" value="{$smarty.request.school}"/> |
280 | <a href="school" class="autocompleteToSelect">{icon name="table" title="Toutes les formations"}</a> | |
0337d704 | 281 | </td> |
282 | </tr> | |
90b6b819 | 283 | <tr> |
f6818108 | 284 | <td>Diplôme</td> |
285 | <td> | |
90b6b819 | 286 | <input name="diploma" size="32" value="{$smarty.request.diploma}"/> |
0337d704 | 287 | </td> |
288 | </tr> | |
289 | <tr> | |
00f25ab1 SJ |
290 | <td>Corps d'origine</td> |
291 | <td> | |
292 | <select name="origin_corps"> | |
293 | {foreach from=$origin_corps_list key=id item=corps} | |
294 | <option value="{$id}" {if $smarty.request.origin_corps eq $id}selected="selected"{/if}>{$corps}</option> | |
295 | {/foreach} | |
296 | </select> | |
297 | </td> | |
298 | </tr> | |
299 | <tr> | |
300 | <td>Corps actuel</td> | |
301 | <td> | |
302 | <select name="current_corps"> | |
303 | {foreach from=$current_corps_list key=id item=corps} | |
304 | <option value="{$id}" {if $smarty.request.current_corps eq $id}selected="selected"{/if}>{$corps}</option> | |
305 | {/foreach} | |
306 | </select> | |
307 | </td> | |
308 | </tr> | |
309 | <tr> | |
310 | <td>Grade</td> | |
311 | <td> | |
312 | <select name="corps_rank"> | |
313 | {foreach from=$corps_rank_list key=id item=corps} | |
314 | <option value="{$id}" {if $smarty.request.corps_rank eq $id}selected="selected"{/if}>{$corps}</option> | |
315 | {/foreach} | |
316 | </select> | |
317 | </td> | |
318 | </tr> | |
319 | <tr> | |
0337d704 | 320 | <td>Commentaire contient</td> |
321 | <td><input type="text" name="free" size="32" value="{$smarty.request.free}" /></td> | |
322 | </tr> | |
14256b08 | 323 | <tr> |
93f3f260 GB |
324 | <td>Numéro de téléphone</td> |
325 | <td><input type="text" name="phone_number" size="32" value="{$smarty.request.phone_number}"/></td> | |
326 | </tr> | |
327 | <tr> | |
92c3f9e5 GB |
328 | <td style="vertical-align: middle"> |
329 | <span>Networking et sites webs</span> | |
14256b08 GB |
330 | </td> |
331 | <td> | |
92c3f9e5 GB |
332 | <table> |
333 | <tr> | |
334 | <td style="padding-left: 0px;"> | |
335 | <input type="text" name="networking_address" size="32" value="{$smarty.request.networking_address}" /> | |
336 | </td> | |
337 | <td> | |
1d364832 RB |
338 | <select name="networking_type"> |
339 | {foreach from=$networking_types key=id item=network} | |
340 | <option value="{$id}" {if $smarty.request.networking_type eq $id}selected="selected"{/if}>{$network}</option> | |
341 | {/foreach} | |
342 | </select> | |
92c3f9e5 GB |
343 | </td> |
344 | </tr> | |
345 | </table> | |
14256b08 GB |
346 | </td> |
347 | </tr> | |
0f567f55 RB |
348 | {if hasPerm('admin,edit_directory')} |
349 | <tr> | |
350 | <td>Matricule AX</td> | |
351 | <td> | |
352 | <textarea name="schoolid_ax" rows="10" cols="12">{$smarty.request.schoolid_ax}</textarea> | |
353 | <br /> | |
354 | <i>Entrer une liste de matricules AX (un par ligne)</i> | |
355 | </td> | |
356 | {/if} | |
1f17ab93 | 357 | {if $smarty.session.auth ge AUTH_COOKIE} |
e04e6ac2 | 358 | </tr> |
e803ded5 SJ |
359 | <tr> |
360 | <td colspan="2"> | |
f6818108 | 361 | <input type='checkbox' name='order' value='date_mod' {if $smarty.request.order eq "date_mod"}checked='checked'{/if} id="order"/> |
e803ded5 SJ |
362 | <label for="order">Mettre les fiches modifiées récemment en premier.</label> |
363 | </td> | |
364 | </tr> | |
b8c2ada6 SJ |
365 | <tr> |
366 | <td colspan="2"> | |
367 | <input type='checkbox' name='exact' id="exact" {if $smarty.request.exact}checked='checked'{/if} value='1'/> | |
368 | <label for="exact">Faire une recherche exacte.</label> | |
369 | </td> | |
370 | </tr> | |
1f17ab93 | 371 | {/if} |
e803ded5 SJ |
372 | <tr><td colspan="2"></td></tr> |
373 | <tr> | |
374 | <td colspan="2" style="text-align: center"> | |
375 | <input type="submit" value="Chercher" /> | |
1f17ab93 | 376 | </td> |
377 | </tr> | |
0337d704 | 378 | </table> |
cb4a0b71 | 379 | </form> |
0337d704 | 380 | |
a7de4ef7 | 381 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |