diff --git a/include/class/contact.class.php b/include/class/contact.class.php index 4bd785c17..39bf44953 100644 --- a/include/class/contact.class.php +++ b/include/class/contact.class.php @@ -59,7 +59,7 @@ class contact extends Fiche $script=$_SERVER['PHP_SELF']; // Creation of the nav bar // Get the max numberRow - $all_contact=$this->count_by_modele($this->fiche_def_ref,$p_search,$extra_sql); + $all_contact=$this->count_by_modele($this->fiche_def_ref,$p_search,$extra_sql.$p_sql); // Get offset and page variable $offset=( isset ($_REQUEST['offset'] )) ?$_REQUEST['offset']:0; $page=(isset($_REQUEST['page']))?$_REQUEST['page']:1; diff --git a/include/contact.inc.php b/include/contact.inc.php index f22661800..ca3b0bad3 100644 --- a/include/contact.inc.php +++ b/include/contact.inc.php @@ -29,8 +29,9 @@ require_once NOALYSS_INCLUDE.'/class/fiche_def.class.php'; $http=new HttpInput(); -$low_action = (isset($_REQUEST['sb'])) ? $_REQUEST['sb'] : "list"; -/** \file +$low_action = $http->request('sb','string','list'); +/** + * \file * \brief Called from the module "Gestion" to manage the contact */ $href=basename($_SERVER['PHP_SELF']); @@ -81,7 +82,7 @@ if ($low_action == "list") ' where frd_id=' . FICHE_TYPE_CONTACT . ' order by fd_label ', 1); $sel_card->selected = (isset($_GET['cat'])) ? $_GET['cat'] : -1; - $sel_card->javascript = ' onchange="submit(this);"'; + $sel_card->javascript = ' onchange="waiting_box();submit(this);"'; echo _('Catégorie :') . $sel_card->input();