{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2011 Polytechnique.org *}
+{* Copyright (C) 2003-2013 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{/if}
<script type="text/javascript">//<![CDATA[
- {literal}$(function() { load_advanced_search({{/literal}{foreach from=$smarty.request key=key item=item}"{$key}":"{$item}",{/foreach}{literal}}); });{/literal}
+ {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}
//]]></script>
<p class="center">[<a href="search">Revenir à la recherche simple</a>]</p>
-<form id="recherche" action="search/adv" method="get" onsubmit="return cleanForm(this)">
+<form id="recherche" action="search/adv" method="get" onsubmit="return cleanForm(this, 'search/adv')">
<table class="bicol" cellpadding="3" summary="Recherche">
<tr>
<th colspan="2">
<td><input type="text" class="autocomplete" name="locality_text" size="32" value="{$smarty.request.locality_text}" /></td>
</tr>
{include file="search/adv.form.address_component.tpl" description="Ville" name="locality" value=$smarty.request.locality}
- {include file="search/adv.form.address_component.tpl" description="Arrondissement, quartier…" name="sublocality" value=$smarty.request.sublocality}
+ {include file="search/adv.form.address_component.tpl" description="Code postal" name="postal_code" value=$smarty.request.postal_code}
<tr>
<td colspan="2">
<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 actuelles.
+ Chercher uniquement parmi les adresses actuelles.
</label>
</td>
</tr>
+ {if hasPerm('admin,edit_directory')}
+ <tr>
+ <td colspan="2">
+ <label for="only_ax_mail">
+ <input name="only_ax_mail" id="only_ax_mail" type="checkbox"{if $smarty.request.only_ax_mail} checked="checked"{/if}/>
+ Chercher uniquement parmi les adresses postales de l'AX.
+ </label>
+ </td>
+ </tr>
+ {/if}
<tr>
<th colspan="2">Activité</th>
</tr>
</table>
</td>
</tr>
- {if hasPerm('admin,edit_directory')}
+ {if hasPerm('admin,edit_directory')}
<tr>
<td>Matricule AX</td>
<td>
<br />
<i>Entrer une liste de matricules AX (un par ligne)</i>
</td>
- {/if}
- {if $smarty.session.auth ge AUTH_COOKIE}
</tr>
+ {/if}
+ {if $smarty.session.auth ge AUTH_COOKIE}
<tr>
<td colspan="2">
<input type='checkbox' name='order' value='date_mod' {if $smarty.request.order eq "date_mod"}checked='checked'{/if} id="order"/>
<label for="exact">Faire une recherche exacte.</label>
</td>
</tr>
- {/if}
+ {/if}
+ {if hasPerm('admin,edit_directory')}
+ <tr>
+ <td colspan="2">
+ <label><input type="checkbox" id="addresses_dump" onclick="addressesDump();" />Tableau des adresses postales.</label>
+ </td>
+ </tr>
+ {/if}
<tr><td colspan="2"></td></tr>
<tr>
<td colspan="2" style="text-align: center">