some reindent, just to say it is a real good work Car !!!
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Tue, 8 Feb 2005 06:13:27 +0000 (06:13 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:28:06 +0000 (23:28 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-458

htdocs/advanced_search.php
htdocs/search.php
include/search.inc.php

index c25d670..5318765 100644 (file)
@@ -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) {
index a6a66f9..bbe3a25 100644 (file)
@@ -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);
index c161308..4943204 100644 (file)
@@ -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()