431 Fiche::CountByDef Fiche::count_by_modele

This commit is contained in:
Dany De Bontridder 2011-10-30 20:02:50 +00:00
parent 109125c59f
commit 195e0f06dc
2 changed files with 3 additions and 3 deletions

View file

@ -60,7 +60,7 @@ class contact extends Fiche
$script=$_SERVER['PHP_SELF'];
// Creation of the nav bar
// Get the max numberRow
$all_contact=$this->CountByDef($this->fiche_def_ref,$p_search,$extra_sql);
$all_contact=$this->count_by_modele($this->fiche_def_ref,$p_search,$extra_sql);
// Get offset and page variable
$offset=( isset ($_REQUEST['offset'] )) ?$_REQUEST['offset']:0;
$page=(isset($_REQUEST['page']))?$_REQUEST['page']:1;

View file

@ -244,7 +244,7 @@ class Fiche
*
* \return array of fiche object
*/
function CountByDef($p_frd_id,$p_search="",$p_sql="")
function count_by_modele($p_frd_id,$p_search="",$p_sql="")
{
$sql="select *
from
@ -1519,7 +1519,7 @@ class Fiche
if ( $p_amount) $filter_amount=' and f_id in (select f_id from jrnx where '.$filter_year.')';
$all_tiers=$this->CountByDef($this->fiche_def_ref,$p_search,$p_sql.$filter_amount);
$all_tiers=$this->count_by_modele($this->fiche_def_ref,$p_search,$p_sql.$filter_amount);
// Get offset and page variable
$offset=( isset ($_REQUEST['offset'] )) ?$_REQUEST['offset']:0;
$page=(isset($_REQUEST['page']))?$_REQUEST['page']:1;