txm wishes
authorx2000habouzit <x2000habouzit>
Thu, 4 Nov 2004 14:54:39 +0000 (14:54 +0000)
committerx2000habouzit <x2000habouzit>
Thu, 4 Nov 2004 14:54:39 +0000 (14:54 +0000)
htdocs/search.php
templates/search.quick.form.tpl

index 268c318..380fc1b 100644 (file)
@@ -18,7 +18,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: search.php,v 1.44 2004-11-04 13:54:50 x2000habouzit Exp $
+        $Id: search.php,v 1.45 2004-11-04 14:54:39 x2000habouzit Exp $
  ***************************************************************************/
 
 require("auto.prepend.inc.php");
@@ -63,7 +63,7 @@ if (array_key_exists('quick', $_REQUEST)) {
                 WHERE  '.$fields->get_where_statement().'
              ORDER BY  '.(logged() && !empty($_REQUEST['mod_date_sort']) ? 'date DESC,' :'')
                        .implode(',',array_filter(array($fields->get_order_statement(),'u.promo DESC,NomSortKey,prenom'))).'
-                LIMIT  '.(isset($_REQUEST['lucky']) ? "1" : $offset->value.','.$globals->search_results_per_page);
+                LIMIT  '.$offset->value.','.$globals->search_results_per_page;
 
     $page->mysql_assign($sql, 'resultats', 'nb_resultats','nb_resultats_total');
     
index a10f70f..53de327 100644 (file)
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: search.quick.form.tpl,v 1.1 2004-11-04 13:50:45 x2000habouzit Exp $
+        $Id: search.quick.form.tpl,v 1.2 2004-11-04 14:54:41 x2000habouzit Exp $
  ***************************************************************************}
 
-<h1>Recherche simple</h1>
+<h1>Recherche simple dans l'annuaire</h1>
 
 {if $error}<p class="error">{$error}</p>{/if}
 
     <tr>
       <td class='center' style="width: 78%">
         <input type='text' name="quick" value="{$smarty.request.quick}" style="width: 100%" /><br />
-        <input type="submit" value="Recherche Annuaire" /><input type="submit" name='lucky' value="J'ai de la chance" />
       </td>
       <td>
+        <input type="submit" value="Chercher" />
         {min_auth level="cookie"}
-        &nbsp;<a class='smaller' href="advanced_search.php">Recherche&nbsp;avancée</a>
+        <br /><a class='smaller' href="advanced_search.php">Recherche&nbsp;avancée</a>
         {/min_auth}
       </td>
     </tr>