Convert source code to UTF-8
[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}" />
45 {if $smarty.request.name && !$with_soundex && $smarty.request.recherche}
648020d2 46 <a class='smaller' href="search/adv?with_soundex=1&amp;{$url_args}">
a7de4ef7 47 étendre par proximité sonore
0337d704 48 </a>
49 {/if}
50 </td>
51 </tr>
52 <tr>
a7de4ef7 53 <td>Prénom</td>
0337d704 54 <td>
55 <input type="text" name="firstname" size="32" value="{$smarty.request.firstname}" />
56 {if $smarty.request.firstname && !$with_soundex && $smarty.request.recherche}
648020d2 57 <a class='smaller' href="search/adv?with_soundex=1&amp;{$url_args}">
a7de4ef7 58 étendre par proximité sonore
0337d704 59 </a>
60 {/if}
61 </td>
62 </tr>
63 <tr>
64 <td>Surnom</td>
65 <td>
66 <input type="text" name="nickname" size="32" value="{$smarty.request.nickname}" />
67 </td>
68 </tr>
69 <tr>
70 <td>Promotion</td>
71 <td>
72 <select name="egal1">
73 <option value="=" {if $smarty.request.egal1 eq "="}selected="selected"{/if}>&nbsp;=&nbsp;</option>
74 <option value="&gt;=" {if $smarty.request.egal1 eq "&gt;="}selected="selected"{/if}>&nbsp;&gt;=&nbsp;</option>
75 <option value="&lt;=" {if $smarty.request.egal1 eq "&lt;="}selected="selected"{/if}>&nbsp;&lt;=&nbsp;</option>
76 </select>
77 <input type="text" name="promo1" size="4" maxlength="4" value="{$smarty.request.promo1}" />
78 &nbsp;ET&nbsp;
79 <select name="egal2">
80 <option value="=" {if $smarty.request.egal2 eq "="}selected="selected"{/if}>&nbsp;=&nbsp;</option>
81 <option value="&gt;=" {if $smarty.request.egal2 eq "&gt;="}selected="selected"{/if}>&nbsp;&gt;=&nbsp;</option>
82 <option value="&lt;=" {if $smarty.request.egal2 eq "&lt;="}selected="selected"{/if}>&nbsp;&lt;=&nbsp;</option>
83 </select>
84 <input type="text" name="promo2" size="4" maxlength="4" value="{$smarty.request.promo2}" />
85 </td>
86 </tr>
87 <tr>
88 <td>Sexe</td>
89 <td>
90 <table>
91 <tr>
92 <td style="width:100px">
a7de4ef7 93 <input type="radio" name="woman" value="0" {if !$smarty.request.woman}checked="checked"{/if} />Indifférent
0337d704 94 </td>
95 <td style="width:100px">
96 <input type="radio" name="woman" value="1" {if $smarty.request.woman eq 1}checked="checked"{/if} />Homme
97 </td>
98 <td style="width:100px">
99 <input type="radio" name="woman" value="2" {if $smarty.request.woman eq 2}checked="checked"{/if} />Femme
100 </td>
101 </tr>
102 </table>
103 </td>
104 </tr>
105 <tr>
106 <td>Sur polytechnique.org</td>
107 <td>
108 <table>
109 <tr>
110 <td style="width:100px">
a7de4ef7 111 <input type="radio" name="subscriber" value="0" {if !$smarty.request.subscriber}checked="checked"{/if} />Indifférent
0337d704 112 </td>
113 <td style="width:100px">
114 <input type="radio" name="subscriber" value="1" {if $smarty.request.subscriber eq 1}checked="checked"{/if} />Inscrit
115 </td>
116 <td style="width:100px">
117 <input type="radio" name="subscriber" value="2" {if $smarty.request.subscriber eq 2}checked="checked"{/if} />Non inscrit
118 </td>
119 </tr>
120 </table>
121 </td>
122 </tr>
123 <tr>
124 <td>En vie</td>
125 <td>
126 <table>
127 <tr>
128 <td style="width:100px">
a7de4ef7 129 <input type="radio" name="alive" value="0" {if !$smarty.request.alive}checked="checked"{/if} />Indifférent
0337d704 130 </td>
131 <td style="width:100px">
132 <input type="radio" name="alive" value="1" {if $smarty.request.alive eq 1}checked="checked"{/if} />Vivant
133 </td>
134 <td style="width:100px">
a7de4ef7 135 <input type="radio" name="alive" value="2" {if $smarty.request.alive eq 2}checked="checked"{/if} />Décédé
0337d704 136 </td>
137 </tr>
138 </table>
139 </td>
140 </tr>
141 <tr>
a7de4ef7 142 <th colspan="2">Géographie</th>
0337d704 143 </tr>
144 <tr>
56670b6a 145 <td colspan="2">
a7de4ef7 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>
56670b6a 147 </tr>
148 <tr>
0337d704 149 <td>Ville</td>
150 <td><input type="text" name="city" size="32" value="{$smarty.request.city}" /></td>
151 </tr>
152 <tr>
153 <td>Pays</td>
154 <td>
3c640222 155 <select name="country" onchange="return Ajax.update_html('region', '{$platal->ns}search/ajax/region/' + this.value);">
0337d704 156 {if $smarty.request.country}
157 {assign var="country" value=$smarty.request.country}
158 {else}
159 {assign var="country" value=""}
160 {/if}
161 {geoloc_country country=$country}
162 </select>
163 </td>
164 </tr>
165 <tr>
a7de4ef7 166 <td>Région ou département</td>
29c930c0 167 <td id="region">
0337d704 168 {if $smarty.request.region}
169 {assign var="region" value=$smarty.request.region}
170 {else}
171 {assign var="region" value=""}
172 {/if}
3c640222 173 {include file="search/adv.region.form.tpl" country=$smarty.request.country}
0337d704 174 </td>
175 </tr>
176 <tr>
a7de4ef7 177 <th colspan="2">Activité</th>
0337d704 178 </tr>
179 <tr>
180 <td>Entreprise</td>
181 <td><input type="text" name="entreprise" size="32" value="{$smarty.request.entreprise}" /></td>
182 </tr>
183 <tr>
184 <td>Fonction</td>
185 <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}>
190 {$cp.fonction_fr}
191 </option>
192 {/iterate}
193 </select>
194 </td>
195 </tr>
196 <tr>
197 <td>Poste</td>
198 <td><input type="text" name="poste" size="32" value="{$smarty.request.poste}" /></td>
199 </tr>
200 <tr>
201 <td>Secteur</td>
202 <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}>
207 {$cs.label}
208 </option>
209 {/iterate}
210 </select>
211 </td>
212 </tr>
213 <tr>
214 <td>CV contient</td>
215 <td><input type="text" name="cv" size="32" value="{$smarty.request.cv}" /></td>
216 </tr>
217 <tr>
218 <td colspan="2">
219 <input type='checkbox' name='only_referent' {if $smarty.request.only_referent}checked='checked'{/if} />
a7de4ef7 220 chercher uniquement parmi les camarades se proposant comme référents
0337d704 221 </td>
222 </tr>
223 <tr>
224 <th colspan="2">Divers</th>
225 </tr>
226 <tr>
a7de4ef7 227 <td>Nationalité</td>
0337d704 228 <td>
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}>
232 {$cn.text}
233 </option>
234 {/iterate}
235 </select>
236 </td>
237 </tr>
238 <tr>
239 <td>Binet</td>
240 <td>
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}>
245 {$cb.text}
246 </option>
247 {/iterate}
248 </select>
249 </td>
250 </tr>
251 <tr>
252 <td>Groupe X</td>
253 <td>
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}>
258 {$cg.text}
259 </option>
260 {/iterate}
261 </select>
262 </td>
263 </tr>
264 <tr>
265 <td>Section</td>
266 <td>
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}>
270 {$cs.text}
271 </option>
272 {/iterate}
273 </select>
274 </td>
275 </tr>
276 <tr>
277 <td>Formation</td>
278 <td>
3c640222 279 <select name="school" onchange="return Ajax.update_html('grade', '{$platal->ns}search/ajax/grade/' + this.value);">
0337d704 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}>
283 {$cs.text}
284 </option>
285 {/iterate}
286 </select>
287 </td>
288 </tr>
289 <tr>
290 <td></td>
29c930c0 291 <td id="grade">
292 {include file="search/adv.grade.form.tpl" grade=$smarty.request.diploma}
0337d704 293 </td>
294 </tr>
295 <tr>
296 <td>Commentaire contient</td>
297 <td><input type="text" name="free" size="32" value="{$smarty.request.free}" /></td>
298 </tr>
1f17ab93 299 <tr>
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')"/>
303 </div>
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} />
a7de4ef7 306 mettre les fiches modifiées récemment en premier
1f17ab93 307 {/if}
308 </td>
309 </tr>
0337d704 310 </table>
cb4a0b71 311</form>
312<p class="center">
a7de4ef7 313 <input type="button" value="Voir les résultats sur une carte" onclick="launch_form('geoloc/')"/>
cb4a0b71 314</p>
0337d704 315<p>
a7de4ef7 316 <strong>N.B.</strong> Le caractère joker * peut remplacer une ou plusieurs lettres dans les recherches.
0337d704 317</p>
318
a7de4ef7 319{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}