Contact : navigation bar was not correct

This commit is contained in:
Dany wm De Bontridder 2020-11-01 20:10:49 +01:00
parent e5b8e5af5a
commit 4f1d78b311
2 changed files with 5 additions and 4 deletions

View file

@ -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;

View file

@ -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();