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 avancée</h1>
25 <p>[<a href="search">Recherche simple</a>]</p>
27 <form id="recherche" action="search/adv" method="get">
28 <table class="bicol" cellpadding="3" summary="Recherche">
32 <input type="hidden" name="rechercher" value="Chercher"/>
33 <input type="submit" style="display:none"/>
34 <input type="text" name="name" size="32" value="{$smarty.request.name}" />
35 {if $smarty.request.name && !$with_soundex && $smarty.request.recherche}
36 <a class='smaller' href="search/adv?with_soundex=1&{$url_args}">
37 étendre par proximité sonore
45 <input type="text" name="firstname" size="32" value="{$smarty.request.firstname}" />
46 {if $smarty.request.firstname && !$with_soundex && $smarty.request.recherche}
47 <a class='smaller' href="search/adv?with_soundex=1&{$url_args}">
48 étendre par proximité sonore
56 <input type="text" name="nickname" size="32" value="{$smarty.request.nickname}" />
63 <option value="=" {if $smarty.request.egal1 eq "="}selected="selected"{/if}> = </option>
64 <option value=">=" {if $smarty.request.egal1 eq ">="}selected="selected"{/if}> >= </option>
65 <option value="<=" {if $smarty.request.egal1 eq "<="}selected="selected"{/if}> <= </option>
67 <input type="text" name="promo1" size="4" maxlength="4" value="{$smarty.request.promo1}" />
70 <option value="=" {if $smarty.request.egal2 eq "="}selected="selected"{/if}> = </option>
71 <option value=">=" {if $smarty.request.egal2 eq ">="}selected="selected"{/if}> >= </option>
72 <option value="<=" {if $smarty.request.egal2 eq "<="}selected="selected"{/if}> <= </option>
74 <input type="text" name="promo2" size="4" maxlength="4" value="{$smarty.request.promo2}" />
82 <td style="width:100px">
83 <input type="radio" name="woman" value="0" {if !$smarty.request.woman}checked="checked"{/if} />Indifférent
85 <td style="width:100px">
86 <input type="radio" name="woman" value="1" {if $smarty.request.woman eq 1}checked="checked"{/if} />Homme
88 <td style="width:100px">
89 <input type="radio" name="woman" value="2" {if $smarty.request.woman eq 2}checked="checked"{/if} />Femme
96 <td>Sur polytechnique.org</td>
100 <td style="width:100px">
101 <input type="radio" name="subscriber" value="0" {if !$smarty.request.subscriber}checked="checked"{/if} />Indifférent
103 <td style="width:100px">
104 <input type="radio" name="subscriber" value="1" {if $smarty.request.subscriber eq 1}checked="checked"{/if} />Inscrit
106 <td style="width:100px">
107 <input type="radio" name="subscriber" value="2" {if $smarty.request.subscriber eq 2}checked="checked"{/if} />Non inscrit
118 <td style="width:100px">
119 <input type="radio" name="alive" value="0" {if !$smarty.request.alive}checked="checked"{/if} />Indifférent
121 <td style="width:100px">
122 <input type="radio" name="alive" value="1" {if $smarty.request.alive eq 1}checked="checked"{/if} />Vivant
124 <td style="width:100px">
125 <input type="radio" name="alive" value="2" {if $smarty.request.alive eq 2}checked="checked"{/if} />Décédé
132 <th colspan="2">Géographie</th>
136 <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>
140 <td><input type="text" name="city" size="32" value="{$smarty.request.city}" /></td>
145 <select name="country" onchange="javascript:document.forms.recherche.submit();">
146 {if $smarty.request.country}
147 {assign var="country" value=$smarty.request.country}
149 {assign var="country" value=""}
151 {geoloc_country country=$country}
156 <td>Région ou département</td>
158 <select name="region">
159 {if $smarty.request.region}
160 {assign var="region" value=$smarty.request.region}
162 {assign var="region" value=""}
164 {if $smarty.request.country neq ""}
165 {geoloc_region country=$smarty.request.country region=$region}
167 <option value=""></option>
173 <th colspan="2">Activité</th>
177 <td><input type="text" name="entreprise" size="32" value="{$smarty.request.entreprise}" /></td>
182 <select name="fonction">
183 <option value="0"></option>
184 {iterate from=$choix_postes item=cp}
185 <option value="{$cp.id}" {if $smarty.request.fonction eq $cp.id}selected{/if}>
194 <td><input type="text" name="poste" size="32" value="{$smarty.request.poste}" /></td>
199 <select name="secteur">
200 <option value="0"></option>
201 {iterate item=cs from=$choix_secteurs}
202 <option value="{$cs.id}" {if $smarty.request.secteur eq $cs.id}selected{/if}>
211 <td><input type="text" name="cv" size="32" value="{$smarty.request.cv}" /></td>
215 <input type='checkbox' name='only_referent' {if $smarty.request.only_referent}checked='checked'{/if} />
216 chercher uniquement parmi les camarades se proposant comme référents
220 <th colspan="2">Divers</th>
225 <select name="nationalite">
226 {iterate from=$choix_nats item=cn}
227 <option value="{$cn.id}" {if $smarty.request.nationalite eq $cn.id}selected="selected"{/if}>
237 <select name="binet">
238 <option value="0"></option>
239 {iterate item=cb from=$choix_binets}
240 <option value="{$cb.id}" {if $smarty.request.binet eq $cb.id}selected="selected"{/if}>
250 <select name="groupex">
251 <option value="0"></option>
252 {iterate item=cg from=$choix_groupesx}
253 <option value="{$cg.id}" {if $smarty.request.groupex eq $cg.id}selected="selected"{/if}>
263 <select name="section">
264 {iterate item=cs from=$choix_sections}
265 <option value="{$cs.id}" {if $smarty.request.section eq $cs.id}selected="selected"{/if}>
275 <select name="school" onchange="javascript:document.forms.recherche.submit();">
276 <option value="0"></option>
277 {iterate item=cs from=$choix_schools}
278 <option value="{$cs.id}" {if $smarty.request.school eq $cs.id}selected="selected"{/if}>
288 <select name="diploma">
289 <option value="0"></option>
290 {section name=diploma loop=$choix_diplomas}
291 <option value="{$choix_diplomas[diploma]}" {if $smarty.request.diploma eq
292 $choix_diplomas[diploma]}selected="selected"{/if}>
293 {$choix_diplomas[diploma]}
300 <td>Commentaire contient</td>
301 <td><input type="text" name="free" size="32" value="{$smarty.request.free}" /></td>
304 {if $smarty.session.auth ge AUTH_COOKIE}
306 <input type='checkbox' name='order' value='date_mod' {if $smarty.request.order eq "date_mod"}checked='checked'{/if} />
307 mettre les fiches modifiées récemment en premier
312 <script type="text/javascript">{literal}
313 function launch_form(url) {
314 var f = document.getElementById('recherche');
319 {if $globals->geoloc->use_map}
320 <input type="button" value="Voir les résultats sur une carte" onclick="launch_form('geoloc/')"/>
322 <input type="button" value="Chercher" onclick="launch_form('search/adv')"/>
325 <strong>N.B.</strong> Le caractère joker * peut remplacer une ou plusieurs lettres dans les recherches.
328 {* vim:set et sw=2 sts=2 sws=2: *}