Subversion Repositories Applications.gtt

Compare Revisions

Ignore whitespace Rev 100 → Rev 101

/trunk/actions/GttCtrlActionStatTableauCharge.class.php
120,9 → 120,6
$cmd = TravailProjet::GTP_ID_UTILISATEUR_DATE_DEB_FIN;
$param = array($Utilisateur->getIdUtilisateur(), $mois_courant_j1, $mois_courant_j36);
$tab_tp = $TravailProjet->consulter($cmd, $param);
if ($tab_tp && count($tab_tp) == 1) {
$tab_tp = array($tab_tp);
}
if ($tab_tp != false) {
$tab_projet_id = array();
138,7 → 135,7
$ProjetCategorie = new ProjetCategorie();
$cmd = ProjetCategorie::GPC_ID;
$param = $Projet->getCeCategorie();
$Categorie = $ProjetCategorie->consulter($cmd, $param);
$Categorie = current($ProjetCategorie->consulter($cmd, $param));
// Nous vérifions le temps de travail pour ce projet
$aso_tps_w = 0;
174,9 → 171,6
$AbsenceMotif = new AbsenceMotif();
$cmd = AbsenceMotif::GAM_TOUS;
$tab_am = $AbsenceMotif->consulter($cmd);
if ($tab_am && count($tab_am) == 1) {
$tab_am = array($tab_am);
}
 
// Récupération des absences pour un utilisateur à une date donnée
$Absence = new Absence();
183,9 → 177,6
$cmd = Absence::GA_ID_UTILISATEUR_DATE_DEB_FIN;
$param = array($Utilisateur->getIdUtilisateur(), $mois_courant_j1, $mois_courant_j36);
$tab_a = $Absence->consulter($cmd, $param);
if ($tab_a && count($tab_a) == 1) {
$tab_a = array($tab_a);
}
if ($tab_a != false) {
$aso_stat['ab_total'] = '';
if ($tab_am) {