1 {**************************************************************************}
3 {* Copyright (C) 2003-2011 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 {if hasPerm('edit_directory,admin') && t($suggestAddresses)}
26 <p class="center"><strong>Voulez-vous télécharger le <a href="{$globals->baseurl}/search/adv/addresses{$plset_args}">tableau des adresses postales</a> pour la recette précédente ?</strong></p>
29 <script type="text/javascript">//<![CDATA[
30 {literal}$(function() { load_advanced_search({{/literal}{foreach from=$smarty.request key=key item=item name="load"}"{$key}":"{$item}"{if not $smarty.foreach.load.last},{/if}{/foreach}{literal}}); });{/literal}
33 <p class="center">[<a href="search">Revenir à la recherche simple</a>]</p>
34 <form id="recherche" action="search/adv" method="get" onsubmit="return cleanForm(this, 'search/adv')">
35 <table class="bicol" cellpadding="3" summary="Recherche">
42 <td>Nom, prénom, surnom...</td>
44 <input type="hidden" name="rechercher" value="Chercher"/>
45 <input type="submit" style="display:none"/>
46 <input type="text" name="name" size="32" value="{$smarty.request.name}" />
47 <select name="name_type">
48 <option value="" {if $smarty.request.name_type eq ''}selected="selected"{/if}> - </option>
49 <option value="lastname" {if $smarty.request.name_type eq 'lastname'}selected="selected"{/if}>nom</option>
50 <option value="firstname" {if $smarty.request.name_type eq 'firstname'}selected="selected"{/if}>prénom</option>
51 <option value="nickname" {if $smarty.request.name_type eq 'nickname'}selected="selected"{/if}>surnom</option>
58 {include file="include/select_promo.tpl" promo_data=$smarty.request egal1="egal1" egal2="egal2" promo1="promo1" promo2="promo2" edu_type="edu_type"}
66 <td style="width:100px">
67 <input type="radio" name="woman" value="0" {if !$smarty.request.woman}checked="checked"{/if} id="woman0"/><label for="woman0">indifférent</label>
69 <td style="width:100px">
70 <input type="radio" name="woman" value="1" {if $smarty.request.woman eq 1}checked="checked"{/if} id="woman1"/><label for="woman1">homme</label>
72 <td style="width:100px">
73 <input type="radio" name="woman" value="2" {if $smarty.request.woman eq 2}checked="checked"{/if} id="woman2"/><label for="woman2">femme</label>
80 <td>Sur Polytechnique.org</td>
84 <td style="width:100px">
85 <input type="radio" name="subscriber" value="0" {if !$smarty.request.subscriber}checked="checked"{/if} id="subscriber0"/><label for="subscriber0">indifférent</label>
87 <td style="width:100px">
88 <input type="radio" name="subscriber" value="1" {if $smarty.request.subscriber eq 1}checked="checked"{/if} id="subscriber1"/><label for="subscriber1">inscrit</label>
90 <td style="width:100px">
91 <input type="radio" name="subscriber" value="2" {if $smarty.request.subscriber eq 2}checked="checked"{/if} id="subscriber2"/><label for="subscriber2">non inscrit</label>
98 <td>A une redirection active</td>
102 <td style="width:100px">
103 <input type="radio" name="has_email_redirect" value="0" {if !$smarty.request.has_email_redirect}checked="checked"{/if}
104 id="has_email_redirect0" /><label for="has_email_redirect0">indifférent</label>
106 <td style="width:100px">
107 <input type="radio" name="has_email_redirect" value="1" {if $smarty.request.has_email_redirect eq 1}checked="checked"{/if}
108 id="has_email_redirect1" /><label for="has_email_redirect1">oui</label>
110 <td style="width:100px">
111 <input type="radio" name="has_email_redirect" value="2" {if $smarty.request.has_email_redirect eq 2}checked="checked"{/if}
112 id="has_email_redirect2" /><label for="has_email_redirect2">non</label>
123 <td style="width:100px">
124 <input type="radio" name="alive" value="0" {if !$smarty.request.alive}checked="checked"{/if} id="alive0"/><label for="alive0">indifférent</label>
126 <td style="width:100px">
127 <input type="radio" name="alive" value="1" {if $smarty.request.alive eq 1}checked="checked"{/if} id="alive1"/><label for="alive1">vivant</label>
129 <td style="width:100px">
130 <input type="radio" name="alive" value="2" {if $smarty.request.alive eq 2}checked="checked"{/if} id="alive2"/><label for="alive2">décédé</label>
138 <input type="checkbox" name="with_soundex" value="1" {if $smarty.request.with_soundex}checked="checked"{/if} id="sdxn" />
139 <label for="sdxn">Étendre par proximité sonore (uniquement sur nom et prénom).</label>
143 <th colspan="2">Géographie</th>
146 <td colspan="2" class="center"><small>Seuls les lieux où résident des camarades sont proposés ci-dessous.</small></td>
148 {include file="search/adv.form.autocomplete_select.tpl" description="Pays" name="country"
149 value_text=$smarty.request.country_text value=$smarty.request.country title="Tous les pays"}
150 {include file="search/adv.form.address_component.tpl" description="Région, province, état…" name="administrative_area_level_1"
151 value=$smarty.request.administrative_area_level_1}
152 {include file="search/adv.form.address_component.tpl" description="Département, comté…" name="administrative_area_level_2"
153 value=$smarty.request.administrative_area_level_2}
154 <tr id="locality_text">
156 <td><input type="text" class="autocomplete" name="locality_text" size="32" value="{$smarty.request.locality_text}" /></td>
158 {include file="search/adv.form.address_component.tpl" description="Ville" name="locality" value=$smarty.request.locality}
159 {include file="search/adv.form.address_component.tpl" description="Code postal" name="postal_code" value=$smarty.request.postal_code}
162 <label for="only_current">
163 <input name="only_current" id="only_current" type="checkbox"{if $smarty.request.only_current} checked="checked"{/if}/>
164 Chercher uniquement parmi les adresses actuelles.
168 {if hasPerm('admin,edit_directory')}
171 <label for="only_ax_mail">
172 <input name="only_ax_mail" id="only_ax_mail" type="checkbox"{if $smarty.request.only_ax_mail} checked="checked"{/if}/>
173 Chercher uniquement parmi les adresses postales de l'AX.
179 <th colspan="2">Activité</th>
183 <td><input type="text" class="autocomplete" name="entreprise" size="32" value="{$smarty.request.entreprise}" /></td>
187 <td><input type="text" class="autocomplete" name="jobdescription" size="32" value="{$smarty.request.jobdescription}" /></td>
189 {include file="search/adv.form.autocomplete_select.tpl" description="Mots-clefs" name="jobterm"
190 value_text=$smarty.request.jobterm_text value=$smarty.request.jobterm title="Tous les mots-clefs"}
191 {if hasPerm('directory_private')}
194 <td><input type="text" name="cv" size="32" value="{$smarty.request.cv}" /></td>
199 <input type='checkbox' name='only_referent' {if $smarty.request.only_referent}checked='checked'{/if} id="only_referent"/>
200 <label for="only_referent">Chercher uniquement parmi les camarades se proposant comme référents.</label>
204 <th colspan="2">Divers</th>
206 {include file="search/adv.form.autocomplete_select.tpl" description="Nationalité" name="nationalite"
207 value_text=$smarty.request.nationalite_text value=$smarty.request.nationalite title="Toutes les nationalités"}
208 {if hasPerm('directory_private')}
209 {include file="search/adv.form.autocomplete_select.tpl" description="Binet" name="binet"
210 value_text=$smarty.request.binet_text value=$smarty.request.binet title="Tous les binets"}
212 {include file="search/adv.form.autocomplete_select.tpl" description="Groupe X" name="groupex"
213 value_text=$smarty.request.groupex_text value=$smarty.request.groupex title="Tous les groupes X"}
214 {if hasPerm('directory_private')}
215 {include file="search/adv.form.autocomplete_select.tpl" description="Section" name="section"
216 value_text=$smarty.request.section_text value=$smarty.request.section title="Toutes les sections"}
218 {include file="search/adv.form.autocomplete_select.tpl" description="Formation" name="school"
219 value_text=$smarty.request.school_text value=$smarty.request.school title="Toutes les formations"}
223 <input name="diploma" size="32" value="{$smarty.request.diploma}"/>
227 <td>Corps d'origine</td>
229 <select name="origin_corps">
230 {foreach from=$origin_corps_list key=id item=corps}
231 <option value="{$id}" {if $smarty.request.origin_corps eq $id}selected="selected"{/if}>{$corps}</option>
237 <td>Corps actuel</td>
239 <select name="current_corps">
240 {foreach from=$current_corps_list key=id item=corps}
241 <option value="{$id}" {if $smarty.request.current_corps eq $id}selected="selected"{/if}>{$corps}</option>
249 <select name="corps_rank">
250 {foreach from=$corps_rank_list key=id item=corps}
251 <option value="{$id}" {if $smarty.request.corps_rank eq $id}selected="selected"{/if}>{$corps}</option>
257 <td>Commentaire contient</td>
258 <td><input type="text" name="free" size="32" value="{$smarty.request.free}" /></td>
261 <td>Numéro de téléphone</td>
262 <td><input type="text" name="phone_number" size="32" value="{$smarty.request.phone_number}"/></td>
265 <td style="vertical-align: middle">
266 <span>Networking et sites webs</span>
271 <td style="padding-left: 0px;">
272 <input type="text" name="networking_address" size="32" value="{$smarty.request.networking_address}" />
275 <select name="networking_type">
276 {foreach from=$networking_types key=id item=network}
277 <option value="{$id}" {if $smarty.request.networking_type eq $id}selected="selected"{/if}>{$network}</option>
285 {if hasPerm('admin,edit_directory')}
287 <td>Matricule AX</td>
289 <textarea name="schoolid_ax" rows="10" cols="12">{$smarty.request.schoolid_ax}</textarea>
291 <i>Entrer une liste de matricules AX (un par ligne)</i>
295 {if $smarty.session.auth ge AUTH_COOKIE}
298 <input type='checkbox' name='order' value='date_mod' {if $smarty.request.order eq "date_mod"}checked='checked'{/if} id="order"/>
299 <label for="order">Mettre les fiches modifiées récemment en premier.</label>
304 <input type='checkbox' name='exact' id="exact" {if $smarty.request.exact}checked='checked'{/if} value='1'/>
305 <label for="exact">Faire une recherche exacte.</label>
309 {if hasPerm('admin,edit_directory')}
312 <label><input type="checkbox" id="addresses_dump" onclick="addressesDump();" />Tableau des adresses postales.</label>
316 <tr><td colspan="2"></td></tr>
318 <td colspan="2" style="text-align: center">
319 <input type="submit" value="Chercher" />
325 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}