1 {**************************************************************************}
3 {* Copyright (C) 2003-2006 Polytechnique.org *}
4 {* http://opensource.polytechnique.org/ *}
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. *}
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. *}
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 *}
21 {**************************************************************************}
23 <h1>Recherche dans l'annuaire</h1>
25 <form id="recherche" action="search/adv" method="get">
26 <script type="text/javascript">{literal}
27 function launch_form(url) {
28 var f = document.getElementById('recherche');
33 <table class="bicol" cellpadding="3" summary="Recherche">
36 Recherche avancée [<a href="search"><<< Recherche simple</a>]
42 <input type="hidden" name="rechercher" value="Chercher"/>
43 <input type="submit" style="display:none"/>
44 <input type="text" name="name" size="32" value="{$smarty.request.name}" />
45 {if $smarty.request.name && !$with_soundex && $smarty.request.recherche}
46 <a class='smaller' href="search/adv?with_soundex=1&{$url_args}">
47 étendre par proximité sonore
55 <input type="text" name="firstname" size="32" value="{$smarty.request.firstname}" />
56 {if $smarty.request.firstname && !$with_soundex && $smarty.request.recherche}
57 <a class='smaller' href="search/adv?with_soundex=1&{$url_args}">
58 étendre par proximité sonore
66 <input type="text" name="nickname" size="32" value="{$smarty.request.nickname}" />
73 <option value="=" {if $smarty.request.egal1 eq "="}selected="selected"{/if}> = </option>
74 <option value=">=" {if $smarty.request.egal1 eq ">="}selected="selected"{/if}> >= </option>
75 <option value="<=" {if $smarty.request.egal1 eq "<="}selected="selected"{/if}> <= </option>
77 <input type="text" name="promo1" size="4" maxlength="4" value="{$smarty.request.promo1}" />
80 <option value="=" {if $smarty.request.egal2 eq "="}selected="selected"{/if}> = </option>
81 <option value=">=" {if $smarty.request.egal2 eq ">="}selected="selected"{/if}> >= </option>
82 <option value="<=" {if $smarty.request.egal2 eq "<="}selected="selected"{/if}> <= </option>
84 <input type="text" name="promo2" size="4" maxlength="4" value="{$smarty.request.promo2}" />
92 <td style="width:100px">
93 <input type="radio" name="woman" value="0" {if !$smarty.request.woman}checked="checked"{/if} />Indifférent
95 <td style="width:100px">
96 <input type="radio" name="woman" value="1" {if $smarty.request.woman eq 1}checked="checked"{/if} />Homme
98 <td style="width:100px">
99 <input type="radio" name="woman" value="2" {if $smarty.request.woman eq 2}checked="checked"{/if} />Femme
106 <td>Sur polytechnique.org</td>
110 <td style="width:100px">
111 <input type="radio" name="subscriber" value="0" {if !$smarty.request.subscriber}checked="checked"{/if} />Indifférent
113 <td style="width:100px">
114 <input type="radio" name="subscriber" value="1" {if $smarty.request.subscriber eq 1}checked="checked"{/if} />Inscrit
116 <td style="width:100px">
117 <input type="radio" name="subscriber" value="2" {if $smarty.request.subscriber eq 2}checked="checked"{/if} />Non inscrit
128 <td style="width:100px">
129 <input type="radio" name="alive" value="0" {if !$smarty.request.alive}checked="checked"{/if} />Indifférent
131 <td style="width:100px">
132 <input type="radio" name="alive" value="1" {if $smarty.request.alive eq 1}checked="checked"{/if} />Vivant
134 <td style="width:100px">
135 <input type="radio" name="alive" value="2" {if $smarty.request.alive eq 2}checked="checked"{/if} />Décédé
142 <th colspan="2">Géographie</th>
146 <label for="only_current"><input name="only_current" id="only_current" type="checkbox"{if $smarty.request.only_current} checked="checked"{/if}/>chercher uniquement les adresses où les camarades sont actuellement.</label></td>
150 <td><input type="text" name="city" size="32" value="{$smarty.request.city}" /></td>
155 <select name="country" onchange="return Ajax.update_html('region', '{$platal->ns}search/ajax/region/' + this.value);">
156 {if $smarty.request.country}
157 {assign var="country" value=$smarty.request.country}
159 {assign var="country" value=""}
161 {geoloc_country country=$country}
166 <td>Région ou département</td>
168 {if $smarty.request.region}
169 {assign var="region" value=$smarty.request.region}
171 {assign var="region" value=""}
173 {include file="search/adv.region.form.tpl" country=$smarty.request.country}
177 <th colspan="2">Activité</th>
181 <td><input type="text" name="entreprise" size="32" value="{$smarty.request.entreprise}" /></td>
186 <select name="fonction">
187 <option value="0"></option>
188 {iterate from=$choix_postes item=cp}
189 <option value="{$cp.id}" {if $smarty.request.fonction eq $cp.id}selected{/if}>
198 <td><input type="text" name="poste" size="32" value="{$smarty.request.poste}" /></td>
203 <select name="secteur">
204 <option value="0"></option>
205 {iterate item=cs from=$choix_secteurs}
206 <option value="{$cs.id}" {if $smarty.request.secteur eq $cs.id}selected{/if}>
215 <td><input type="text" name="cv" size="32" value="{$smarty.request.cv}" /></td>
219 <input type='checkbox' name='only_referent' {if $smarty.request.only_referent}checked='checked'{/if} />
220 chercher uniquement parmi les camarades se proposant comme référents
224 <th colspan="2">Divers</th>
229 <select name="nationalite">
230 {iterate from=$choix_nats item=cn}
231 <option value="{$cn.id}" {if $smarty.request.nationalite eq $cn.id}selected="selected"{/if}>
241 <select name="binet">
242 <option value="0"></option>
243 {iterate item=cb from=$choix_binets}
244 <option value="{$cb.id}" {if $smarty.request.binet eq $cb.id}selected="selected"{/if}>
254 <select name="groupex">
255 <option value="0"></option>
256 {iterate item=cg from=$choix_groupesx}
257 <option value="{$cg.id}" {if $smarty.request.groupex eq $cg.id}selected="selected"{/if}>
267 <select name="section">
268 {iterate item=cs from=$choix_sections}
269 <option value="{$cs.id}" {if $smarty.request.section eq $cs.id}selected="selected"{/if}>
279 <select name="school" onchange="return Ajax.update_html('grade', '{$platal->ns}search/ajax/grade/' + this.value);">
280 <option value="0"></option>
281 {iterate item=cs from=$choix_schools}
282 <option value="{$cs.id}" {if $smarty.request.school eq $cs.id}selected="selected"{/if}>
292 {include file="search/adv.grade.form.tpl" grade=$smarty.request.diploma}
296 <td>Commentaire contient</td>
297 <td><input type="text" name="free" size="32" value="{$smarty.request.free}" /></td>
300 <td colspan="2" style="padding-top: 1.5em">
301 <div style="float: right">
302 <input type="button" value="Chercher" onclick="launch_form('search/adv')"/>
304 {if $smarty.session.auth ge AUTH_COOKIE}
305 <input type='checkbox' name='order' value='date_mod' {if $smarty.request.order eq "date_mod"}checked='checked'{/if} />
306 mettre les fiches modifiées récemment en premier
313 <input type="button" value="Voir les résultats sur une carte" onclick="launch_form('geoloc/')"/>
316 <strong>N.B.</strong> Le caractère joker * peut remplacer une ou plusieurs lettres dans les recherches.
319 {* vim:set et sw=2 sts=2 sws=2: *}