get('id'); $result1 = getResultatVMComptes($userId,$roleid); $result2 = getResultatVM2Comptes(); $result3 = getResultatVM3Comptes(); function arraySearch($var, $array){ for($i=0;$i <= sizeof($array)-1;$i++){ if($var==$array[$i][0]){ return $array[$i][1]; exit; } } return 0; } $temp=array(); $result=array(); for($i=0;$i <= sizeof($result1)-1;$i++){ $temp[0]=$result1[$i][0];//userid $temp['fullname']=$result1[$i][1];//fullname $temp['NbrComptesLocaliser']=arraySearch($temp[0],$result3); //nbr total des comptes localiser $temp['TotalCompte']=arraySearch($temp[0],$result2); //nbr total des comptes $temp['NbrComptesNonLocaliser']=$temp['TotalCompte']-$temp['NbrComptesLocaliser']; //nbr total des comptes non localiser //post if(isDR($result1[$i][2])) $temp[5]="DIRECTEUR REGIONAL"; if(isSuperviseur($result1[$i][2])) $temp[5]="SUPERVISEUR"; if(isDM($result1[$i][2])) $temp[5]="DELEGUE MEDICAL"; if($result1[$i][2]=="DIRECTEUR DE LA PROMOTION MEDICALE"){ $temp[5]="DIRECTEUR DE LA PROMOTION MEDICALE"; $temp[6]="OUEST"; } //région if(isOuestVMText($result1[$i][2])) $temp[6]="OUEST"; if(isCentreVMText($result1[$i][2])) $temp[6]="CENTRE"; if(isEstVMText($result1[$i][2])) $temp[6]="EST"; $result[$i]=$temp; } echo getMonitoringMainBar(3,$roleid). '

Nombre des comptes localisé/Non localisé


'.getRegionSelectSubmit($roleid,false).getRolesSelect().'
'; echo '
Poste Région Nom & Prénom Compte localisé Compte non localisé total
'; $viewer->view('CustomDashboardFooter.tpl'); ?>