From: x2000habouzit Date: Thu, 14 Oct 2004 11:58:26 +0000 (+0000) Subject: should correct the forgotten sorting option X-Git-Tag: xorg/old~1295 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=d4efa8f8a441db581a74fd5759367192cbecba64;p=platal.git should correct the forgotten sorting option --- diff --git a/htdocs/search.php b/htdocs/search.php index 01e321f..f18ea4e 100644 --- a/htdocs/search.php +++ b/htdocs/search.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: search.php,v 1.26 2004-10-14 11:47:06 x2000habouzit Exp $ + $Id: search.php,v 1.27 2004-10-14 11:58:26 x2000habouzit Exp $ ***************************************************************************/ require("auto.prepend.inc.php"); @@ -94,6 +94,7 @@ if (array_key_exists('rechercher', $_REQUEST)) { $page->assign('offsets',range(0,$nbpages)); $page->assign('url_args',$fields->get_url()); $page->assign('with_soundex',$with_soundex); + $page->assign('mod_date_sort',$mod_date_sort); $page->assign('offset',$offset->value); $page->assign('perpage',$globals->search_results_per_page); $page->assign('is_admin',has_perms()); diff --git a/templates/search.tpl b/templates/search.tpl index 9cd7a05..ab31e14 100644 --- a/templates/search.tpl +++ b/templates/search.tpl @@ -17,7 +17,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: search.tpl,v 1.15 2004-10-12 21:55:42 x2000habouzit Exp $ + $Id: search.tpl,v 1.16 2004-10-14 11:58:26 x2000habouzit Exp $ ***************************************************************************} {dynamic} @@ -48,7 +48,7 @@ {if $with_soundex==0} - [ + [ Recherche par proximité sonore]  {/if} [Nouvelle recherche] @@ -72,14 +72,14 @@ {if $perpage < $nb_resultats_total}

{if $offset!=0} - + Précédent   {/if} {section name=offset loop=$offsets} {if $offset!=$smarty.section.offset.index*$perpage} - + {$smarty.section.offset.index+1} {else} @@ -88,7 +88,7 @@   {/section} {if $offset < $nb_resultats_total-$perpage} - + Suivant