Remove pdf version too
[platal.git] / templates / search / quick.form.tpl
index 466faf4..dc95c51 100644 (file)
 
 <h1>Recherche simple dans l'annuaire</h1>
 
-<form action="{rel}/search" method="get"{if $show_js} id="quick_form"{/if}>
+<form action="search" method="get"{if $show_js} id="quick_form"{/if}>
   <table class="bicol" cellspacing="0" cellpadding="4">
     <tr>
       <td style="width: 78%">
         <input type='text' name="quick" value="{$smarty.request.quick}" style="width: 100%" /><br />
-        {min_auth level='cookie'}
+        {if $smarty.session.auth ge AUTH_COOKIE}
         <input type='checkbox' name='order' value='date_mod' {if $smarty.request.order eq "date_mod"}checked='checked'{/if} />
         mettre les fiches modifiées récemment en premier
         {if $smarty.request.nonins}
         <br /><input type='checkbox' name='nonins' readonly="readonly" checked='checked' value='1' /> Chercher uniquement des non inscrits
         {/if}
-        {/min_auth}
+        {/if}
       </td>
       <td>
         <input type="submit" value="Chercher" />
-        {min_auth level="cookie"}
-        <br /><a class='smaller' href="{rel}/search/adv">Recherche&nbsp;avancée</a>
-        {/min_auth}
+        {if $smarty.session.auth ge AUTH_COOKIE}
+        <br /><a class='smaller' href="search/adv">Recherche&nbsp;avancée</a>
+        {/if}
       </td>
     </tr>
   </table>