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