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