1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
function getArraySqlValueRepeatTest($aPhp_ResultSql,$intSqlLine,$intSqlCol,$strContentCel)
{
global $glb_aSqlCelSaveProp;
global $glb_intNbSqlLines;
global $glb_aSqlKeyCols;
$colId=$glb_aSqlKeyCols[$intSqlCol];
if($intSqlCol == 0) //si on est a la 1ere colonne
$intSqlBorneSupPrecedent = $glb_intNbSqlLines;
else //si on est a une autre colonne que la 1ere
//borne superieur = interval precedent
$intSqlBorneSupPrecedent = $glb_aSqlCelSaveProp[$intSqlCol-1]['INT_LIMIT_UPPER_PREVIOUS'] ;
/******* recherche pour l'interval precedent ********/
//portion de tableau = a l'interval precedent
$aPhp_ResultSqlCut=array_slice($aPhp_ResultSql[$colId],$intSqlLine,$intSqlBorneSupPrecedent-$intSqlLine);
$aNbRepetition=array_count_values($aPhp_ResultSqlCut);
/******* Fin recherche pour l'interval precedent ********/
return $aNbRepetition[$strContentCel];
} |