From: Pierre Habouzit (MadCoder Date: Tue, 8 Feb 2005 06:13:27 +0000 (+0000) Subject: some reindent, just to say it is a real good work Car !!! X-Git-Tag: xorg/old~302 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=82cc229ebf2355bead930800ff252235a6817888;p=platal.git some reindent, just to say it is a real good work Car !!! git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-458 --- diff --git a/htdocs/advanced_search.php b/htdocs/advanced_search.php index c25d670..5318765 100644 --- a/htdocs/advanced_search.php +++ b/htdocs/advanced_search.php @@ -63,6 +63,7 @@ function form_prepare() if (!Env::has('rechercher')) { form_prepare(); } else { + // {{{ function get_list() function get_list($offset, $limit, $order, $order_inv) { diff --git a/htdocs/search.php b/htdocs/search.php index a6a66f9..bbe3a25 100644 --- a/htdocs/search.php +++ b/htdocs/search.php @@ -33,6 +33,7 @@ require_once("geoloc.inc.php"); if (Env::has('quick')) { $page->assign('formulaire', 0); + // {{{ get_list function get_list($offset, $limit, $order, $order_inv) { global $globals; $qSearch = new QuickSearch('quick'); @@ -67,6 +68,8 @@ if (Env::has('quick')) { return array($list, $nb_tot); } + // }}} + $search = new XOrgSearch(get_list); $search->setNbLines($globals->search->per_page); $search->addOrder('mark', 'mark', false, 'pertinence', AUTH_PUBLIC, true); diff --git a/include/search.inc.php b/include/search.inc.php index c161308..4943204 100644 --- a/include/search.inc.php +++ b/include/search.inc.php @@ -28,14 +28,15 @@ class XOrgSearch extends XOrgPlugin { // {{{ properties - var $_get_vars = Array('offset', 'order', 'order_inv', 'rechercher'); - var $limit = 20; + var $_get_vars = Array('offset', 'order', 'order_inv', 'rechercher'); + var $limit = 20; var $order_defaut = 'promo'; // type of orders : (field name, default ASC, text name, auth) var $orders = array( - 'promo' =>array('promo', false, 'promotion', AUTH_PUBLIC), - 'nom' =>array('nom', true, 'nom', AUTH_PUBLIC), - 'date_mod' =>array('u.date', false, 'dernière modification', AUTH_COOKIE)); + 'promo' =>array('promo', false, 'promotion', AUTH_PUBLIC), + 'nom' =>array('nom', true, 'nom', AUTH_PUBLIC), + 'date_mod' =>array('u.date', false, 'dernière modification', AUTH_COOKIE) + ); // }}} // {{{ function setNbLines()