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