Adds registration evolution on 10 year period.
[platal.git] / templates / search / adv.form.tpl
CommitLineData
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&nbsp;?</strong></p>
27{/if}
28
f06a6d2b 29<script type="text/javascript">// <!--
63c89179 30 var baseurl = $.plURL("search/");
f06a6d2b 31 {literal}
63c89179 32
f06a6d2b
OLF
33 // display an autocomplete row : blabla (nb of found matches)
34 function make_format_autocomplete(block) {
35 return function(row) {
36 regexp = new RegExp('(' + RegExp.escape(block.value) + ')', 'i');
f1de811f 37
fb6dc875 38 name = row[0].htmlEntities().replace(regexp, '<strong>$1<\/strong>');
f1de811f 39
b3ec63d5 40 if (row[1] === "-1") {
6e828e47 41 return '&hellip;';
66f2b6b3 42 }
f1de811f 43
fb6dc875
PC
44 if (row[1] === "-2") {
45 return '<em>aucun camarade trouvé pour '+row[0].htmlEntities()+'<\/em>';
46 }
47
8a28e579
SJ
48 camarades = (row[1] > 1) ? "camarades" : "camarade";
49
fb6dc875 50 return name + '<em>&nbsp;&nbsp;-&nbsp;&nbsp;' + row[1].htmlEntities() + '&nbsp;' + camarades + '<\/em>';
f06a6d2b
OLF
51 };
52 }
f1de811f 53
e429cd03 54 // when changing country, open up administrativearea choice
f06a6d2b 55 function changeCountry(a2) {
1bdd08a7 56 $(".autocompleteTarget[name='country']").attr('value',a2);
f1de811f 57
f06a6d2b 58 if (a2) {
1bdd08a7 59 $(".autocomplete[name='countryTxt']").addClass('hidden_valid');
f1de811f 60
e429cd03
SJ
61 $("[name='administrativearea']").parent().load(baseurl + 'list/administrativearea/', { country:a2 }, function() {
62 if ($("select[name='administrativearea']").children("option").size() > 1) {
63 $("select[name='administrativearea']").attr('value', '{/literal}{$smarty.request.administrativearea}{literal}');
f1de811f 64
e429cd03 65 $("tr#administrativearea_list").show();
66f2b6b3 66 } else {
e429cd03 67 $("select[name='administrativearea']").attr('value', '');
f1de811f 68
e429cd03 69 $("tr#administrativearea_list").hide();
66f2b6b3 70 }
f06a6d2b
OLF
71 });
72 } else {
1bdd08a7 73 $(".autocomplete[name='countryTxt']").removeClass('hidden_valid');
f1de811f 74
e429cd03
SJ
75 $("select[name='administrativearea']").attr('value', '');
76 $("select[name='subadministrativearea']").attr('value', '');
f1de811f 77
e429cd03
SJ
78 $("tr#administrativearea_list").hide();
79 $("tr#subadministrativearea_list").hide();
80 }
81 }
82
83 // when changing administrativearea, open up subadministrativearea choice
84 function changeAdministrativeArea(id) {
85 if (id) {
86 $("[name='subadministrativearea']").parent().load(baseurl + 'list/subadministrativearea/', { administrativearea:id }, function() {
87 if ($("select[name='subadministrativearea']").children("option").size() > 1) {
88 $("select[name='subadministrativearea']").attr('value', '{/literal}{$smarty.request.subadministrativearea}{literal}');
89 $("tr#subadministrativearea_list").show();
90 } else {
91 $("select[name='subadministrativearea']").attr('value', '');
92 $("tr#subadministrativearea_list").hide();
93 }
94 });
95 } else {
96 $("select[name='subadministrativearea']").attr('value', '');
97 $("tr#subadministrativearea_list").hide();
f06a6d2b
OLF
98 }
99 }
f1de811f 100
f06a6d2b
OLF
101 // when changing school, open diploma choice
102 function changeSchool(schoolId) {
1bdd08a7 103 $(".autocompleteTarget[name='school']").attr('value',schoolId);
f1de811f 104
f06a6d2b 105 if (schoolId) {
1bdd08a7 106 $(".autocomplete[name='schoolTxt']").addClass('hidden_valid');
f06a6d2b 107 } else {
1bdd08a7 108 $(".autocomplete[name='schoolTxt']").removeClass('hidden_valid');
f06a6d2b 109 }
f9817768 110
96d80a35
VZ
111 $("[name='diploma']").parent().load(baseurl + 'list/diploma/', { school:schoolId }, function() {
112 $("select[name='diploma']").attr('value', '{/literal}{$smarty.request.diploma}{literal}');
f9817768 113 });
f06a6d2b 114 }
f1de811f 115
d5c93dbb
RB
116 // when checking/unchecking "only_referent", disable/enable some fields
117 function changeOnlyReferent() {
118 if ($("#only_referent").is(':checked')) {
119 $("input[name='entreprise']").attr('disabled', true);
120 } else {
121 $("input[name='entreprise']").removeAttr('disabled');
122 }
123 }
124
3ac45f10
PC
125 // when choosing a job term in tree, hide tree and set job term field
126 function searchForJobTerm(treeid, jtid, full_name) {
127 $(".term_tree").remove();
128 $("input[name='jobtermTxt']").val(full_name).addClass("hidden_valid").show();
129 $("input[name='jobterm']").val(jtid);
130 }
131
fb6dc875
PC
132 function cancel_autocomplete(field, realfield) {
133 $(".autocomplete[name='"+field+"']").removeClass('hidden_valid').val('').focus();
134 if (typeof(realfield) != "undefined") {
135 $(".autocompleteTarget[name='"+realfield+"']").val('');
136 }
137 return;
138 }
139
f06a6d2b
OLF
140 // when choosing autocomplete from list, must validate
141 function select_autocomplete(name) {
142 nameRealField = name.replace(/Txt$/, '');
f1de811f 143
f06a6d2b
OLF
144 // nothing to do if field is not a text field for a list
145 if (nameRealField == name)
146 return null;
f1de811f 147
e429cd03 148 // if changing country, might want to open administrativearea choice
f06a6d2b
OLF
149 if (nameRealField == 'country')
150 return function(i) {
fb6dc875
PC
151 if (i.extra[0] < 0) {
152 cancel_autocomplete('countryTxt', 'country');
153 i.extra[1] = '';
154 }
f06a6d2b 155 changeCountry(i.extra[1]);
66f2b6b3 156 }
f1de811f 157
f06a6d2b
OLF
158 if (nameRealField == 'school')
159 return function(i) {
fb6dc875
PC
160 if (i.extra[0] < 0) {
161 cancel_autocomplete('schoolTxt', 'school');
162 i.extra[1] = '';
163 }
f06a6d2b
OLF
164 changeSchool(i.extra[1]);
165 }
f1de811f 166
f06a6d2b
OLF
167 // change field in list and display text field as valid
168 return function(i) {
169 nameRealField = this.field.replace(/Txt$/, '');
f1de811f 170
fb6dc875
PC
171 if (i.extra[0] < 0) {
172 cancel_autocomplete(this.field, nameRealField);
173 return;
174 }
175
1bdd08a7 176 $(".autocompleteTarget[name='"+nameRealField+"']").attr('value',i.extra[1]);
f1de811f 177
1bdd08a7 178 $(".autocomplete[name='"+this.field+"']").addClass('hidden_valid');
f06a6d2b
OLF
179 }
180 }
f1de811f 181
4171c0bf 182 $(function() {
f06a6d2b
OLF
183 $(".autocompleteTarget").hide();
184 $(".autocomplete").show().each(function() {
185 targeted = $("../.autocompleteTarget",this)[0];
f1de811f 186
f06a6d2b
OLF
187 if (targeted && targeted.value) {
188 me = $(this);
f1de811f 189
f06a6d2b
OLF
190 $.get(baseurl + 'list/'+ targeted.name +'/'+targeted.value, {},function(textValue) {
191 me.attr('value', textValue);
192 me.addClass('hidden_valid');
193 });
194 }
f1de811f 195
f06a6d2b
OLF
196 $(this).autocomplete(baseurl + "autocomplete/"+this.name,{
197 selectOnly:1,
198 formatItem:make_format_autocomplete(this),
199 field:this.name,
200 onItemSelect:select_autocomplete(this.name),
201 matchSubset:0,
202 width:$(this).width()});
203 });
f1de811f 204
f06a6d2b 205 $(".autocomplete").change(function() { $(this).removeClass('hidden_valid'); });
f1de811f 206
1bdd08a7 207 $(".autocomplete[name='countryTxt']").change(function() { changeCountry(''); });
f1de811f 208
f06a6d2b 209 changeCountry({/literal}'{$smarty.request.country}'{literal});
e429cd03 210 changeAdministrativeArea({/literal}'{$smarty.request.administrativearea}'{literal});
f1de811f 211
1bdd08a7 212 $(".autocomplete[name='schoolTxt']").change(function() { changeSchool(''); });
f1de811f 213
f06a6d2b 214 changeSchool({/literal}'{$smarty.request.school}'{literal});
f1de811f 215
f06a6d2b
OLF
216 $(".autocompleteToSelect").each(function() {
217 var fieldName = $(this).attr('href');
f1de811f 218
f06a6d2b 219 $(this).attr('href', baseurl + 'list/'+fieldName).click(function() {
1bdd08a7 220 var oldval = $("input.autocompleteTarget[name='"+fieldName+"']")[0].value;
f1de811f 221
1bdd08a7 222 $(".autocompleteTarget[name='"+fieldName+"']").parent().load(baseurl + 'list/'+fieldName,{},
f06a6d2b 223 function(selectBox) {
1bdd08a7
SJ
224 $(".autocompleteTarget[name='"+fieldName+"']").remove();
225 $(".autocomplete[name='"+fieldName+"Txt']").remove();
226 $("select[name='"+fieldName+"']").attr('value', oldval);
66f2b6b3 227 });
f1de811f 228
f06a6d2b 229 return false;
66f2b6b3 230 });
7d7b287c
OLF
231 }).parent().find('.autocomplete').change(function() {
232 // If we change the value in the type="text" field, then the value in the 'integer id' field must not be used,
233 // to ensure that, we unset it
234 $(this).parent().find('.autocompleteTarget').val('');
f06a6d2b 235 });
d5c93dbb
RB
236
237 $("#only_referent").change(function() { changeOnlyReferent(); });
238 changeOnlyReferent();
239
f06a6d2b 240 });
21fb012b 241/** Regexps to wipe out from search queries */
1d364832 242var default_form_values = [ /&woman=0(&|$)/, /&subscriber=0(&|$)/, /&alive=0(&|$)/, /&egal[12]=[^&]*&promo[12]=(&|$)/g, /&networking_type=0(&|$)/, /&[^&=]+=(&|$)/g ];
21fb012b
PC
243/** Uses javascript to clean form from all empty fields */
244function cleanForm(f) {
245 var query = $(f).formSerialize();
246 var old_query;
e533246c
RB
247 for (var i in default_form_values) {
248 var reg = default_form_values[i];
249 if (typeof(reg) != "undefined") {
250 do {
251 old_query = query;
252 query = query.replace(reg, '$1');
253 } while (old_query != query);
254 }
21fb012b
PC
255 }
256 query = query.replace(/^&*(.*)&*$/, '$1');
fb6dc875 257 if (query == "rechercher=Chercher") {
21fb012b
PC
258 alert("Aucun critère n'a été spécifié");
259 return false;
260 }
106b0788 261 document.location = baseurl + 'adv?' + query;
21fb012b
PC
262 return false;
263}
f06a6d2b 264-->
a94040d2 265{/literal}</script>
ba50f03d 266<p class="center">[<a href="search">Revenir à la recherche simple</a>]</p>
21fb012b 267<form id="recherche" action="search/adv" method="get" onsubmit="return cleanForm(this)">
0337d704 268 <table class="bicol" cellpadding="3" summary="Recherche">
269 <tr>
1f17ab93 270 <th colspan="2">
ba50f03d 271 Recherche avancée
1f17ab93 272 </th>
273 </tr>
274 <tr>
6443c93d 275 <td>Nom, prénom, surnom...</td>
0337d704 276 <td>
66f2b6b3 277 <input type="hidden" name="rechercher" value="Chercher"/>
278 <input type="submit" style="display:none"/>
6443c93d 279 <input type="text" name="name" size="32" value="{$smarty.request.name}" />
0337d704 280 </td>
281 </tr>
282 <tr>
283 <td>Promotion</td>
284 <td>
89ee88f2
PC
285 <script type="text/javascript">/*<![CDATA[*/
286 {literal}
287 function updatepromofields(egal1) {
288 var f = egal1.form;
289 f.egal2.disabled = f.promo2.disabled = egal1.value == '=';
290 f.egal2.readOnly = true;
291 if (f.egal1.value == '>=') {
292 f.egal2.value = '<=';
293 } else {
294 f.egal2.value = '>=';
295 }
296 }
4171c0bf 297 $(function() { updatepromofields($('select[name=egal1]')[0]); });
89ee88f2
PC
298 {/literal}
299 /*]]>*/</script>
300 <select name="egal1" onchange="updatepromofields(this)" style="text-align:center">
0337d704 301 <option value="=" {if $smarty.request.egal1 eq "="}selected="selected"{/if}>&nbsp;=&nbsp;</option>
302 <option value="&gt;=" {if $smarty.request.egal1 eq "&gt;="}selected="selected"{/if}>&nbsp;&gt;=&nbsp;</option>
303 <option value="&lt;=" {if $smarty.request.egal1 eq "&lt;="}selected="selected"{/if}>&nbsp;&lt;=&nbsp;</option>
304 </select>
305 <input type="text" name="promo1" size="4" maxlength="4" value="{$smarty.request.promo1}" />
e803ded5 306 &nbsp;et&nbsp;
89ee88f2 307 <input type="text" name="egal2" size="1" style="text-align:center" value="{if t($smarty.request.egal2) eq '&lt;'}&lt;{else}&gt;{/if}" readonly="readonly" />
0337d704 308 <input type="text" name="promo2" size="4" maxlength="4" value="{$smarty.request.promo2}" />
e4937ecc
SJ
309 <select name="edu_type" style="text-align:center">
310 <option value="{#UserFilter::GRADE_ING#}" {if $smarty.request.edu_type eq #UserFilter::GRADE_ING#}selected="selected"{/if}>X</option>
311 <option value="{#UserFilter::GRADE_MST#}" {if $smarty.request.edu_type eq #UserFilter::GRADE_MST#}selected="selected"{/if}>Master</option>
312 <option value="{#UserFilter::GRADE_PHD#}" {if $smarty.request.edu_type eq #UserFilter::GRADE_PHD#}selected="selected"{/if}>Docteur</option>
313 </select>
0337d704 314 </td>
315 </tr>
316 <tr>
317 <td>Sexe</td>
318 <td>
319 <table>
320 <tr>
321 <td style="width:100px">
e803ded5 322 <input type="radio" name="woman" value="0" {if !$smarty.request.woman}checked="checked"{/if} id="woman0"/><label for="woman0">indifférent</label>
0337d704 323 </td>
324 <td style="width:100px">
e803ded5 325 <input type="radio" name="woman" value="1" {if $smarty.request.woman eq 1}checked="checked"{/if} id="woman1"/><label for="woman1">homme</label>
0337d704 326 </td>
327 <td style="width:100px">
e803ded5 328 <input type="radio" name="woman" value="2" {if $smarty.request.woman eq 2}checked="checked"{/if} id="woman2"/><label for="woman2">femme</label>
0337d704 329 </td>
330 </tr>
331 </table>
332 </td>
333 </tr>
334 <tr>
e803ded5 335 <td>Sur Polytechnique.org</td>
0337d704 336 <td>
337 <table>
338 <tr>
339 <td style="width:100px">
e803ded5 340 <input type="radio" name="subscriber" value="0" {if !$smarty.request.subscriber}checked="checked"{/if} id="subscriber0"/><label for="subscriber0">indifférent</label>
0337d704 341 </td>
342 <td style="width:100px">
e803ded5 343 <input type="radio" name="subscriber" value="1" {if $smarty.request.subscriber eq 1}checked="checked"{/if} id="subscriber1"/><label for="subscriber1">inscrit</label>
0337d704 344 </td>
345 <td style="width:100px">
e803ded5 346 <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 347 </td>
348 </tr>
349 </table>
350 </td>
351 </tr>
352 <tr>
c10e9a24
SJ
353 <td>A une redirection active</td>
354 <td>
355 <table>
356 <tr>
357 <td style="width:100px">
358 <input type="radio" name="has_email_redirect" value="0" {if !$smarty.request.has_email_redirect}checked="checked"{/if}
359 id="has_email_redirect0" /><label for="has_email_redirect0">indifférent</label>
360 </td>
361 <td style="width:100px">
362 <input type="radio" name="has_email_redirect" value="1" {if $smarty.request.has_email_redirect eq 1}checked="checked"{/if}
363 id="has_email_redirect1" /><label for="has_email_redirect1">oui</label>
364 </td>
365 <td style="width:100px">
366 <input type="radio" name="has_email_redirect" value="2" {if $smarty.request.has_email_redirect eq 2}checked="checked"{/if}
367 id="has_email_redirect2" /><label for="has_email_redirect2">non</label>
368 </td>
369 </tr>
370 </table>
371 </td>
372 </tr>
373 <tr>
0337d704 374 <td>En vie</td>
375 <td>
376 <table>
377 <tr>
378 <td style="width:100px">
e803ded5 379 <input type="radio" name="alive" value="0" {if !$smarty.request.alive}checked="checked"{/if} id="alive0"/><label for="alive0">indifférent</label>
0337d704 380 </td>
381 <td style="width:100px">
e803ded5 382 <input type="radio" name="alive" value="1" {if $smarty.request.alive eq 1}checked="checked"{/if} id="alive1"/><label for="alive1">vivant</label>
0337d704 383 </td>
384 <td style="width:100px">
e803ded5 385 <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 386 </td>
387 </tr>
388 </table>
389 </td>
390 </tr>
391 <tr>
56670b6a 392 <td colspan="2">
b16476f7 393 <input type="checkbox" name="with_soundex" value="1" {if $smarty.request.with_soundex}checked="checked"{/if} id="sdxn" />
e803ded5 394 <label for="sdxn">Étendre par proximité sonore (uniquement sur nom et prénom).</label>
b16476f7 395 </td>
20ac3913 396 </tr>
b16476f7 397 <tr>
398 <th colspan="2">Géographie</th>
56670b6a 399 </tr>
400 <tr>
91610ef5 401 <td>Ville ou code postal</td>
df87518a 402 <td><input type="text" class="autocomplete" name="city" size="32" value="{$smarty.request.city}" /></td>
0337d704 403 </tr>
404 <tr>
405 <td>Pays</td>
406 <td>
b0691e10
FB
407 <input name="countryTxt" type="text" class="autocomplete" style="display:none" size="32"
408 value="{$smarty.request.countryTxt}"/>
66f2b6b3 409 <input name="country" class="autocompleteTarget" type="hidden" value="{$smarty.request.country}"/>
410 <a href="country" class="autocompleteToSelect">{icon name="table" title="Tous les pays"}</a>
0337d704 411 </td>
412 </tr>
e429cd03
SJ
413 <tr id="administrativearea_list">
414 <td>Région, province, état&hellip;</td>
415 <td>
416 <input name="administrativearea" type="hidden" size="32" value="{$smarty.request.administrativearea}" />
417 </td>
418 </tr>
419 <tr id="subadministrativearea_list">
420 <td>Département, comté&hellip;</td>
f6818108 421 <td>
e429cd03 422 <input name="subadministrativearea" type="hidden" size="32" value="{$smarty.request.subadministrativearea}" />
0337d704 423 </td>
424 </tr>
425 <tr>
b16476f7 426 <td colspan="2">
aab2ffdd
SJ
427 <label for="only_current">
428 <input name="only_current" id="only_current" type="checkbox"{if $smarty.request.only_current} checked="checked"{/if}/>
429 Chercher uniquement les adresses où les camarades sont actuellement.
430 </label>
431 </td>
b16476f7 432 </tr>
433 <tr>
a7de4ef7 434 <th colspan="2">Activité</th>
0337d704 435 </tr>
436 <tr>
437 <td>Entreprise</td>
838cc16a 438 <td><input type="text" class="autocomplete" name="entreprise" size="32" value="{$smarty.request.entreprise}" /></td>
0337d704 439 </tr>
440 <tr>
c7139c07 441 <td>Description</td>
f3bfd6c9 442 <td><input type="text" class="autocomplete" name="jobdescription" size="32" value="{$smarty.request.jobdescription}" /></td>
0337d704 443 </tr>
444 <tr>
3ac45f10 445 <td>Mots-clefs</td>
0337d704 446 <td>
3ac45f10
PC
447 <input name="jobtermTxt" type="text" class="autocomplete{if $smarty.request.jobterm} hidden_valid{/if}" style="display:none" size="32"
448 value="{$smarty.request.jobtermTxt}"/>
449 <input name="jobterm" class="autocompleteTarget" type="hidden" value="{$smarty.request.jobterm}"/>
450 <a href="jobterm" class="autocompleteToSelect">{icon name="table" title="Tous les mots-clefs"}</a>
0337d704 451 </td>
452 </tr>
574f3cc3 453 {if hasPerm('directory_private')}
0337d704 454 <tr>
455 <td>CV contient</td>
456 <td><input type="text" name="cv" size="32" value="{$smarty.request.cv}" /></td>
457 </tr>
574f3cc3 458 {/if}
0337d704 459 <tr>
460 <td colspan="2">
f6818108 461 <input type='checkbox' name='only_referent' {if $smarty.request.only_referent}checked='checked'{/if} id="only_referent"/>
e803ded5 462 <label for="only_referent">Chercher uniquement parmi les camarades se proposant comme référents.</label>
0337d704 463 </td>
464 </tr>
465 <tr>
466 <th colspan="2">Divers</th>
467 </tr>
468 <tr>
a7de4ef7 469 <td>Nationalité</td>
0337d704 470 <td>
b0691e10
FB
471 <input name="nationaliteTxt" type="text" class="autocomplete" style="display:none" size="32"
472 value="{$smarty.request.nationaliteTxt}"/>
66f2b6b3 473 <input name="nationalite" class="autocompleteTarget" type="hidden" value="{$smarty.request.nationalite}"/>
474 <a href="nationalite" class="autocompleteToSelect">{icon name="table" title="Toutes les nationalités"}</a>
0337d704 475 </td>
476 </tr>
574f3cc3 477 {if hasPerm('directory_private')}
0337d704 478 <tr>
479 <td>Binet</td>
480 <td>
b0691e10
FB
481 <input name="binetTxt" type="text" class="autocomplete" style="display:none" size="32"
482 value="{$smarty.request.binetTxt}"/>
66f2b6b3 483 <input name="binet" class="autocompleteTarget" type="hidden" value="{$smarty.request.binet}"/>
484 <a href="binet" class="autocompleteToSelect">{icon name="table" title="Tous les binets"}</a>
0337d704 485 </td>
486 </tr>
574f3cc3 487 {/if}
0337d704 488 <tr>
489 <td>Groupe X</td>
490 <td>
b0691e10
FB
491 <input name="groupexTxt" type="text" class="autocomplete" style="display:none" size="32"
492 value="{$smarty.request.groupexTxt}"/>
66f2b6b3 493 <input name="groupex" class="autocompleteTarget" type="hidden" value="{$smarty.request.groupex}"/>
494 <a href="groupex" class="autocompleteToSelect">{icon name="table" title="Tous les groupes X"}</a>
0337d704 495 </td>
496 </tr>
574f3cc3 497 {if hasPerm('directory_private')}
0337d704 498 <tr>
499 <td>Section</td>
500 <td>
b0691e10
FB
501 <input name="sectionTxt" type="text" class="autocomplete" style="display:none" size="32"
502 value="{$smarty.request.sectionTxt}"/>
66f2b6b3 503 <input name="section" class="autocompleteTarget" type="hidden" value="{$smarty.request.section}"/>
504 <a href="section" class="autocompleteToSelect">{icon name="table" title="Toutes les sections"}</a>
0337d704 505 </td>
506 </tr>
574f3cc3 507 {/if}
0337d704 508 <tr>
509 <td>Formation</td>
510 <td>
b0691e10
FB
511 <input name="schoolTxt" type="text" class="autocomplete" style="display:none" size="32"
512 value="{$smarty.request.schoolTxt}"/>
66f2b6b3 513 <input name="school" class="autocompleteTarget" type="hidden" value="{$smarty.request.school}"/>
514 <a href="school" class="autocompleteToSelect">{icon name="table" title="Toutes les formations"}</a>
0337d704 515 </td>
516 </tr>
90b6b819 517 <tr>
f6818108 518 <td>Diplôme</td>
519 <td>
90b6b819 520 <input name="diploma" size="32" value="{$smarty.request.diploma}"/>
0337d704 521 </td>
522 </tr>
523 <tr>
00f25ab1
SJ
524 <td>Corps d'origine</td>
525 <td>
526 <select name="origin_corps">
527 {foreach from=$origin_corps_list key=id item=corps}
528 <option value="{$id}" {if $smarty.request.origin_corps eq $id}selected="selected"{/if}>{$corps}</option>
529 {/foreach}
530 </select>
531 </td>
532 </tr>
533 <tr>
534 <td>Corps actuel</td>
535 <td>
536 <select name="current_corps">
537 {foreach from=$current_corps_list key=id item=corps}
538 <option value="{$id}" {if $smarty.request.current_corps eq $id}selected="selected"{/if}>{$corps}</option>
539 {/foreach}
540 </select>
541 </td>
542 </tr>
543 <tr>
544 <td>Grade</td>
545 <td>
546 <select name="corps_rank">
547 {foreach from=$corps_rank_list key=id item=corps}
548 <option value="{$id}" {if $smarty.request.corps_rank eq $id}selected="selected"{/if}>{$corps}</option>
549 {/foreach}
550 </select>
551 </td>
552 </tr>
553 <tr>
0337d704 554 <td>Commentaire contient</td>
555 <td><input type="text" name="free" size="32" value="{$smarty.request.free}" /></td>
556 </tr>
14256b08 557 <tr>
93f3f260
GB
558 <td>Numéro de téléphone</td>
559 <td><input type="text" name="phone_number" size="32" value="{$smarty.request.phone_number}"/></td>
560 </tr>
561 <tr>
92c3f9e5
GB
562 <td style="vertical-align: middle">
563 <span>Networking et sites webs</span>
14256b08
GB
564 </td>
565 <td>
92c3f9e5
GB
566 <table>
567 <tr>
568 <td style="padding-left: 0px;">
569 <input type="text" name="networking_address" size="32" value="{$smarty.request.networking_address}" />
570 </td>
571 <td>
1d364832
RB
572 <select name="networking_type">
573 {foreach from=$networking_types key=id item=network}
574 <option value="{$id}" {if $smarty.request.networking_type eq $id}selected="selected"{/if}>{$network}</option>
575 {/foreach}
576 </select>
92c3f9e5
GB
577 </td>
578 </tr>
579 </table>
14256b08
GB
580 </td>
581 </tr>
0f567f55
RB
582 {if hasPerm('admin,edit_directory')}
583 <tr>
584 <td>Matricule AX</td>
585 <td>
586 <textarea name="schoolid_ax" rows="10" cols="12">{$smarty.request.schoolid_ax}</textarea>
587 <br />
588 <i>Entrer une liste de matricules AX (un par ligne)</i>
589 </td>
590 {/if}
1f17ab93 591 {if $smarty.session.auth ge AUTH_COOKIE}
e04e6ac2 592 </tr>
e803ded5
SJ
593 <tr>
594 <td colspan="2">
f6818108 595 <input type='checkbox' name='order' value='date_mod' {if $smarty.request.order eq "date_mod"}checked='checked'{/if} id="order"/>
e803ded5
SJ
596 <label for="order">Mettre les fiches modifiées récemment en premier.</label>
597 </td>
598 </tr>
b8c2ada6
SJ
599 <tr>
600 <td colspan="2">
601 <input type='checkbox' name='exact' id="exact" {if $smarty.request.exact}checked='checked'{/if} value='1'/>
602 <label for="exact">Faire une recherche exacte.</label>
603 </td>
604 </tr>
1f17ab93 605 {/if}
e803ded5
SJ
606 <tr><td colspan="2"></td></tr>
607 <tr>
608 <td colspan="2" style="text-align: center">
609 <input type="submit" value="Chercher" />
1f17ab93 610 </td>
611 </tr>
0337d704 612 </table>
cb4a0b71 613</form>
0337d704 614
a7de4ef7 615{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}