Oops
[platal.git] / templates / search / adv.form.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
5ddeb07c 3{* Copyright (C) 2003-2007 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
7b2413f6 25<form id="recherche" action="search/adv" method="get">
1f17ab93 26 <script type="text/javascript">{literal}
27 function launch_form(url) {
28 var f = document.getElementById('recherche');
29 f.action = url;
30 f.submit();
31 }
32 {/literal}</script>
0337d704 33 <table class="bicol" cellpadding="3" summary="Recherche">
34 <tr>
1f17ab93 35 <th colspan="2">
a7de4ef7 36 Recherche avancée [<a href="search">&lt;&lt;&lt;&nbsp;Recherche simple</a>]
1f17ab93 37 </th>
38 </tr>
39 <tr>
0337d704 40 <td>Nom</td>
41 <td>
3b78b65d 42 <input type="hidden" name="rechercher" value="Chercher"/>
43 <input type="submit" style="display:none"/>
0337d704 44 <input type="text" name="name" size="32" value="{$smarty.request.name}" />
0337d704 45 </td>
46 </tr>
47 <tr>
a7de4ef7 48 <td>Prénom</td>
0337d704 49 <td>
50 <input type="text" name="firstname" size="32" value="{$smarty.request.firstname}" />
0337d704 51 </td>
52 </tr>
53 <tr>
54 <td>Surnom</td>
55 <td>
56 <input type="text" name="nickname" size="32" value="{$smarty.request.nickname}" />
57 </td>
58 </tr>
59 <tr>
60 <td>Promotion</td>
61 <td>
62 <select name="egal1">
63 <option value="=" {if $smarty.request.egal1 eq "="}selected="selected"{/if}>&nbsp;=&nbsp;</option>
64 <option value="&gt;=" {if $smarty.request.egal1 eq "&gt;="}selected="selected"{/if}>&nbsp;&gt;=&nbsp;</option>
65 <option value="&lt;=" {if $smarty.request.egal1 eq "&lt;="}selected="selected"{/if}>&nbsp;&lt;=&nbsp;</option>
66 </select>
67 <input type="text" name="promo1" size="4" maxlength="4" value="{$smarty.request.promo1}" />
68 &nbsp;ET&nbsp;
69 <select name="egal2">
70 <option value="=" {if $smarty.request.egal2 eq "="}selected="selected"{/if}>&nbsp;=&nbsp;</option>
71 <option value="&gt;=" {if $smarty.request.egal2 eq "&gt;="}selected="selected"{/if}>&nbsp;&gt;=&nbsp;</option>
72 <option value="&lt;=" {if $smarty.request.egal2 eq "&lt;="}selected="selected"{/if}>&nbsp;&lt;=&nbsp;</option>
73 </select>
74 <input type="text" name="promo2" size="4" maxlength="4" value="{$smarty.request.promo2}" />
75 </td>
76 </tr>
77 <tr>
78 <td>Sexe</td>
79 <td>
80 <table>
81 <tr>
82 <td style="width:100px">
a7de4ef7 83 <input type="radio" name="woman" value="0" {if !$smarty.request.woman}checked="checked"{/if} />Indifférent
0337d704 84 </td>
85 <td style="width:100px">
86 <input type="radio" name="woman" value="1" {if $smarty.request.woman eq 1}checked="checked"{/if} />Homme
87 </td>
88 <td style="width:100px">
89 <input type="radio" name="woman" value="2" {if $smarty.request.woman eq 2}checked="checked"{/if} />Femme
90 </td>
91 </tr>
92 </table>
93 </td>
94 </tr>
95 <tr>
96 <td>Sur polytechnique.org</td>
97 <td>
98 <table>
99 <tr>
100 <td style="width:100px">
a7de4ef7 101 <input type="radio" name="subscriber" value="0" {if !$smarty.request.subscriber}checked="checked"{/if} />Indifférent
0337d704 102 </td>
103 <td style="width:100px">
104 <input type="radio" name="subscriber" value="1" {if $smarty.request.subscriber eq 1}checked="checked"{/if} />Inscrit
105 </td>
106 <td style="width:100px">
107 <input type="radio" name="subscriber" value="2" {if $smarty.request.subscriber eq 2}checked="checked"{/if} />Non inscrit
108 </td>
109 </tr>
110 </table>
111 </td>
112 </tr>
113 <tr>
114 <td>En vie</td>
115 <td>
116 <table>
117 <tr>
118 <td style="width:100px">
a7de4ef7 119 <input type="radio" name="alive" value="0" {if !$smarty.request.alive}checked="checked"{/if} />Indifférent
0337d704 120 </td>
121 <td style="width:100px">
122 <input type="radio" name="alive" value="1" {if $smarty.request.alive eq 1}checked="checked"{/if} />Vivant
123 </td>
124 <td style="width:100px">
a7de4ef7 125 <input type="radio" name="alive" value="2" {if $smarty.request.alive eq 2}checked="checked"{/if} />Décédé
0337d704 126 </td>
127 </tr>
128 </table>
129 </td>
130 </tr>
131 <tr>
56670b6a 132 <td colspan="2">
b16476f7 133 <input type="checkbox" name="with_soundex" value="1" {if $smarty.request.with_soundex}checked="checked"{/if} id="sdxn" />
134 <label for="sdxn">étendre par proximité sonore (uniquement sur nom et prénom)</label>
135 </td>
136 <tr>
137 <th colspan="2">Géographie</th>
56670b6a 138 </tr>
139 <tr>
0337d704 140 <td>Ville</td>
141 <td><input type="text" name="city" size="32" value="{$smarty.request.city}" /></td>
142 </tr>
143 <tr>
144 <td>Pays</td>
145 <td>
3c640222 146 <select name="country" onchange="return Ajax.update_html('region', '{$platal->ns}search/ajax/region/' + this.value);">
0337d704 147 {if $smarty.request.country}
148 {assign var="country" value=$smarty.request.country}
149 {else}
150 {assign var="country" value=""}
151 {/if}
b536b5ae 152 {geoloc_country country=$country available=true}
0337d704 153 </select>
154 </td>
155 </tr>
156 <tr>
a7de4ef7 157 <td>Région ou département</td>
29c930c0 158 <td id="region">
0337d704 159 {if $smarty.request.region}
160 {assign var="region" value=$smarty.request.region}
161 {else}
162 {assign var="region" value=""}
163 {/if}
3c640222 164 {include file="search/adv.region.form.tpl" country=$smarty.request.country}
0337d704 165 </td>
166 </tr>
167 <tr>
b16476f7 168 <td colspan="2">
169 <label for="only_current"><input name="only_current" id="only_current" type="checkbox"{if $smarty.request.only_current}
170checked="checked"{/if}/>chercher uniquement les adresses où les camarades sont actuellement.</label></td>
171 </tr>
172 <tr>
a7de4ef7 173 <th colspan="2">Activité</th>
0337d704 174 </tr>
175 <tr>
176 <td>Entreprise</td>
177 <td><input type="text" name="entreprise" size="32" value="{$smarty.request.entreprise}" /></td>
178 </tr>
179 <tr>
180 <td>Fonction</td>
181 <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}>
186 {$cp.fonction_fr}
187 </option>
188 {/iterate}
189 </select>
190 </td>
191 </tr>
192 <tr>
193 <td>Poste</td>
194 <td><input type="text" name="poste" size="32" value="{$smarty.request.poste}" /></td>
195 </tr>
196 <tr>
197 <td>Secteur</td>
198 <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}>
203 {$cs.label}
204 </option>
205 {/iterate}
206 </select>
207 </td>
208 </tr>
209 <tr>
210 <td>CV contient</td>
211 <td><input type="text" name="cv" size="32" value="{$smarty.request.cv}" /></td>
212 </tr>
213 <tr>
214 <td colspan="2">
215 <input type='checkbox' name='only_referent' {if $smarty.request.only_referent}checked='checked'{/if} />
a7de4ef7 216 chercher uniquement parmi les camarades se proposant comme référents
0337d704 217 </td>
218 </tr>
219 <tr>
220 <th colspan="2">Divers</th>
221 </tr>
222 <tr>
a7de4ef7 223 <td>Nationalité</td>
0337d704 224 <td>
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}>
228 {$cn.text}
229 </option>
230 {/iterate}
231 </select>
232 </td>
233 </tr>
234 <tr>
235 <td>Binet</td>
236 <td>
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}>
241 {$cb.text}
242 </option>
243 {/iterate}
244 </select>
245 </td>
246 </tr>
247 <tr>
248 <td>Groupe X</td>
249 <td>
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}>
254 {$cg.text}
255 </option>
256 {/iterate}
257 </select>
258 </td>
259 </tr>
260 <tr>
261 <td>Section</td>
262 <td>
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}>
266 {$cs.text}
267 </option>
268 {/iterate}
269 </select>
270 </td>
271 </tr>
272 <tr>
273 <td>Formation</td>
274 <td>
3c640222 275 <select name="school" onchange="return Ajax.update_html('grade', '{$platal->ns}search/ajax/grade/' + this.value);">
0337d704 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}>
279 {$cs.text}
280 </option>
281 {/iterate}
282 </select>
283 </td>
284 </tr>
285 <tr>
286 <td></td>
29c930c0 287 <td id="grade">
288 {include file="search/adv.grade.form.tpl" grade=$smarty.request.diploma}
0337d704 289 </td>
290 </tr>
291 <tr>
292 <td>Commentaire contient</td>
293 <td><input type="text" name="free" size="32" value="{$smarty.request.free}" /></td>
294 </tr>
1f17ab93 295 <tr>
296 <td colspan="2" style="padding-top: 1.5em">
297 <div style="float: right">
298 <input type="button" value="Chercher" onclick="launch_form('search/adv')"/>
299 </div>
300 {if $smarty.session.auth ge AUTH_COOKIE}
301 <input type='checkbox' name='order' value='date_mod' {if $smarty.request.order eq "date_mod"}checked='checked'{/if} />
a7de4ef7 302 mettre les fiches modifiées récemment en premier
1f17ab93 303 {/if}
304 </td>
305 </tr>
0337d704 306 </table>
cb4a0b71 307</form>
308<p class="center">
a7de4ef7 309 <input type="button" value="Voir les résultats sur une carte" onclick="launch_form('geoloc/')"/>
cb4a0b71 310</p>
0337d704 311<p>
a7de4ef7 312 <strong>N.B.</strong> Le caractère joker * peut remplacer une ou plusieurs lettres dans les recherches.
0337d704 313</p>
314
a7de4ef7 315{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}