Fix url
[platal.git] / templates / search / adv.form.tpl
index d53b537..2ac5780 100644 (file)
@@ -22,9 +22,9 @@
 
 <h1>Recherche avancée</h1>
 
-<p>[<a href="{rel}/search">Recherche simple</a>]</p>
+<p>[<a href="search">Recherche simple</a>]</p>
 
-<form id="recherche" action="{rel}/search/adv" method="get">
+<form id="recherche" action="search/adv" method="get">
   <table class="bicol" cellpadding="3" summary="Recherche">
     <tr>
       <td>Nom</td>
@@ -33,7 +33,7 @@
        <input type="submit" style="display:none"/>
         <input type="text" name="name" size="32" value="{$smarty.request.name}" />
         {if $smarty.request.name && !$with_soundex && $smarty.request.recherche}
-        <a class='smaller' href="{$smarty.server.PHP_SELF}?with_soundex=1&amp;{$url_args}">
+        <a class='smaller' href="search/adv?with_soundex=1&amp;{$url_args}">
           étendre par proximité sonore
         </a>
         {/if}
@@ -44,7 +44,7 @@
       <td>
         <input type="text" name="firstname" size="32" value="{$smarty.request.firstname}" />
         {if $smarty.request.firstname && !$with_soundex && $smarty.request.recherche}
-        <a class='smaller' href="{$smarty.server.PHP_SELF}?with_soundex=1&amp;{$url_args}">
+        <a class='smaller' href="search/adv?with_soundex=1&amp;{$url_args}">
           étendre par proximité sonore
         </a>
         {/if}
       <td><input type="text" name="free" size="32" value="{$smarty.request.free}" /></td>
     </tr>
   </table>
-       {min_auth level='cookie'}
-       <p>
-               <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
-       </p>
-       {/min_auth}
-</form>
-       <p class="center">
-               <script type="text/javascript">{literal}
-               function launch_form(url) {
-                       var f = document.getElementById('recherche');
-                       f.action = url;
-                       f.submit();
-               }
-               {/literal}</script>
-               {if $use_map}
-                 <input type="button" value="Voir les résultats sur une carte" onclick="launch_form('geoloc/')"/>
-               {/if}
-               <input type="button" value="Chercher" onclick="launch_form('{$smarty.server.PHP_SELF}')"/>
+  {if $smarty.session.auth ge AUTH_COOKIE}
+  <p>
+    <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
   </p>
+  {/if}
+</form>
+<p class="center">
+  <script type="text/javascript">{literal}
+    function launch_form(url) {
+      var f = document.getElementById('recherche');
+      f.action = url;
+      f.submit();
+    }
+  {/literal}</script>
+  <input type="button" value="Voir les résultats sur une carte" onclick="launch_form('geoloc/')"/>
+  <input type="button" value="Chercher" onclick="launch_form('search/adv')"/>
+</p>
 <p>
   <strong>N.B.</strong> Le caractère joker * peut remplacer une ou plusieurs lettres dans les recherches.
 </p>