Fixes CP and entreprise name in addresses dump.
[platal.git] / templates / search / adv.form.tpl
index d1e8d20..0a425a1 100644 (file)
@@ -31,7 +31,7 @@
 //]]></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">
         </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">