1 {**************************************************************************}
3 {* Copyright (C) 2003-2004 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.php">Recherche simple</a>]</p>
27 <form id="recherche" action="{$smarty.server.PHP_SELF}" method="get">
28 <table class="bicol" cellpadding="3" summary="Recherche">
32 <input type="text" name="name" size="32" value="{$smarty.request.name}" />
33 {if $smarty.request.name && !$with_soundex && $smarty.request.recherche}
34 <a class='smaller' href="{$smarty.server.PHP_SELF}?with_soundex=1&{$url_args}">
35 étendre par proximité sonore
43 <input type="text" name="firstname" size="32" value="{$smarty.request.firstname}" />
44 {if $smarty.request.firstname && !$with_soundex && $smarty.request.recherche}
45 <a class='smaller' href="{$smarty.server.PHP_SELF}?with_soundex=1&{$url_args}">
46 étendre par proximité sonore
54 <input type="text" name="nickname" size="32" value="{$smarty.request.nickname}" />
61 <option value="=" {if $smarty.request.egal1 eq "="}selected="selected"{/if}> = </option>
62 <option value=">=" {if $smarty.request.egal1 eq ">="}selected="selected"{/if}> >= </option>
63 <option value="<=" {if $smarty.request.egal1 eq "<="}selected="selected"{/if}> <= </option>
65 <input type="text" name="promo1" size="4" maxlength="4" value="{$smarty.request.promo1}" />
68 <option value="=" {if $smarty.request.egal2 eq "="}selected="selected"{/if}> = </option>
69 <option value=">=" {if $smarty.request.egal2 eq ">="}selected="selected"{/if}> >= </option>
70 <option value="<=" {if $smarty.request.egal2 eq "<="}selected="selected"{/if}> <= </option>
72 <input type="text" name="promo2" size="4" maxlength="4" value="{$smarty.request.promo2}" />
80 <td style="width:100px">
81 <input type="radio" name="woman" value="0" {if !$smarty.request.woman}checked="checked"{/if} />Indifférent
83 <td style="width:100px">
84 <input type="radio" name="woman" value="1" {if $smarty.request.woman eq 1}checked="checked"{/if} />Homme
86 <td style="width:100px">
87 <input type="radio" name="woman" value="2" {if $smarty.request.woman eq 2}checked="checked"{/if} />Femme
94 <td>Sur polytechnique.org</td>
98 <td style="width:100px">
99 <input type="radio" name="subscriber" value="0" {if !$smarty.request.subscriber}checked="checked"{/if} />Indifférent
101 <td style="width:100px">
102 <input type="radio" name="subscriber" value="1" {if $smarty.request.subscriber eq 1}checked="checked"{/if} />Inscrit
104 <td style="width:100px">
105 <input type="radio" name="subscriber" value="2" {if $smarty.request.subscriber eq 2}checked="checked"{/if} />Non inscrit
116 <td style="width:100px">
117 <input type="radio" name="alive" value="0" {if !$smarty.request.alive}checked="checked"{/if} />Indifférent
119 <td style="width:100px">
120 <input type="radio" name="alive" value="1" {if $smarty.request.alive eq 1}checked="checked"{/if} />Vivant
122 <td style="width:100px">
123 <input type="radio" name="alive" value="2" {if $smarty.request.alive eq 2}checked="checked"{/if} />Décédé
130 <th colspan="2">Géographie</th>
134 <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>
138 <td><input type="text" name="city" size="32" value="{$smarty.request.city}" /></td>
143 <select name="country" onchange="javascript:document.forms.recherche.submit();">
144 {if $smarty.request.country}
145 {assign var="country" value=$smarty.request.country}
147 {assign var="country" value=""}
149 {geoloc_country country=$country}
154 <td>Région ou département</td>
156 <select name="region">
157 {if $smarty.request.region}
158 {assign var="region" value=$smarty.request.region}
160 {assign var="region" value=""}
162 {if $smarty.request.country neq ""}
163 {geoloc_region country=$smarty.request.country region=$region}
165 <option value=""></option>
171 <th colspan="2">Activité</th>
175 <td><input type="text" name="entreprise" size="32" value="{$smarty.request.entreprise}" /></td>
180 <select name="fonction">
181 <option value="0"></option>
182 {iterate from=$choix_postes item=cp}
183 <option value="{$cp.id}" {if $smarty.request.fonction eq $cp.id}selected{/if}>
192 <td><input type="text" name="poste" size="32" value="{$smarty.request.poste}" /></td>
197 <select name="secteur">
198 <option value="0"></option>
199 {iterate item=cs from=$choix_secteurs}
200 <option value="{$cs.id}" {if $smarty.request.secteur eq $cs.id}selected{/if}>
209 <td><input type="text" name="cv" size="32" value="{$smarty.request.cv}" /></td>
213 <input type='checkbox' name='only_referent' {if $smarty.request.only_referent}checked='checked'{/if} />
214 chercher uniquement parmi les camarades se proposant comme référents
218 <th colspan="2">Divers</th>
223 <select name="nationalite">
224 {iterate from=$choix_nats item=cn}
225 <option value="{$cn.id}" {if $smarty.request.nationalite eq $cn.id}selected="selected"{/if}>
235 <select name="binet">
236 <option value="0"></option>
237 {iterate item=cb from=$choix_binets}
238 <option value="{$cb.id}" {if $smarty.request.binet eq $cb.id}selected="selected"{/if}>
248 <select name="groupex">
249 <option value="0"></option>
250 {iterate item=cg from=$choix_groupesx}
251 <option value="{$cg.id}" {if $smarty.request.groupex eq $cg.id}selected="selected"{/if}>
261 <select name="section">
262 {iterate item=cs from=$choix_sections}
263 <option value="{$cs.id}" {if $smarty.request.section eq $cs.id}selected="selected"{/if}>
273 <select name="school" onchange="javascript:document.forms.recherche.submit();">
274 <option value="0"></option>
275 {iterate item=cs from=$choix_schools}
276 <option value="{$cs.id}" {if $smarty.request.school eq $cs.id}selected="selected"{/if}>
286 <select name="diploma">
287 <option value="0"></option>
288 {section name=diploma loop=$choix_diplomas}
289 <option value="{$choix_diplomas[diploma]}" {if $smarty.request.diploma eq
290 $choix_diplomas[diploma]}selected="selected"{/if}>
291 {$choix_diplomas[diploma]}
298 <td>Commentaire contient</td>
299 <td><input type="text" name="free" size="32" value="{$smarty.request.free}" /></td>
302 {min_auth level='cookie'}
304 <input type='checkbox' name='order' value='date_mod' {if $smarty.request.order eq "date_mod"}checked='checked'{/if} />
305 mettre les fiches modifiées récemment en premier
308 <input type="hidden" name="rechercher" value="Chercher"/>
309 <input type="submit" style="display:none" value="Chercher" onClick="launch_form('{$smarty.server.PHP_SELF}')"/>
312 <script type="text/javascript">{literal}
313 function launch_form(url) {
314 var f = document.getElementById('recherche');
319 <input type="button" value="Voir les résultats sur une carte" onClick="launch_form('geoloc/')"/>
320 <input type="button" value="Chercher" onClick="launch_form('{$smarty.server.PHP_SELF}')"/>
323 <strong>N.B.</strong> Le caractère joker * peut remplacer une ou plusieurs lettres dans les recherches.
326 {* vim:set et sw=2 sts=2 sws=2: *}