Merge commit 'origin/fusionax' into account
[platal.git] / templates / search / quick.form.tpl
index ddf2802..d6693ec 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2006 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2009 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 {*                                                                        *}
 {**************************************************************************}
 
-<h1>Recherche simple dans l'annuaire</h1>
+<h1>Recherche dans l'annuaire</h1>
 
 <form action="search" method="get"{if $show_js} id="quick_form"{/if}>
   <table class="bicol" cellspacing="0" cellpadding="4">
+    {if $smarty.session.auth ge AUTH_COOKIE}
     <tr>
-      <td style="width: 78%">
-        <input type='text' name="quick" value="{$smarty.request.quick}" style="width: 100%" /><br />
-        {min_auth level='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}
+      <th colspan="2">
+        Recherche simple
+      </th>
+    </tr>
+    <tr>
+      <td colspan="2">
+        <input type='text' name="quick" value="{$smarty.request.quick}" style="width: 98%" /><br />
+      </td>
+    </tr>
+    <tr class="noprint">
+      <td style="width: 60%">
+        <input type="checkbox" name="with_soundex" id="with_soundex" value="1" {if $smarty.request.with_soundex}checked="checked"{/if} /> <label for="with_soundex">Activer la recherche par proximité sonore.</label>
+        <br /><input type='checkbox' name='order' id="order" value='date_mod' {if $smarty.request.order eq "date_mod"}checked='checked'{/if} /> <label for="order">Mettre les fiches modifiées récemment en premier.</label>
+        <br /><input type='checkbox' name='nonins' id="nonins" {if $smarty.request.nonins}checked='checked'{/if} value='1' /> <label for="nonins">Chercher uniquement des non inscrits.</label>
+      </td>
+    {else}
+    <tr class="noprint">
+      <td style="width: 60%">
+        <input type='text' name="quick" value="{$smarty.request.quick}" style="width: 98%" /><br />
       </td>
-      <td>
-        <input type="submit" value="Chercher" />
-        {min_auth level="cookie"}
-        <br /><a class='smaller' href="search/adv">Recherche&nbsp;avancée</a>
-        {/min_auth}
+    {/if}
+      <td class="right">
+        [<a href="search/adv">Recherche avancée</a>]
+        <br /><br /><input type="submit" value="Chercher" />
       </td>
     </tr>
   </table>
@@ -57,4 +67,4 @@
 </script>
 {/literal}
 {/if}
-{* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}