".htmlentities($msg['acquisition_rub'], ENT_QUOTES, $charset)." | ".htmlentities($msg['acquisition_rub_sol'], ENT_QUOTES, $charset)." |
";
while($row = mysql_fetch_object($res)) {
$new_id_bud = $row->num_budget;
if ($new_id_bud != $id_bud) {
$id_bud = $new_id_bud;
print pmb_bidi("".htmlentities($row->lib_bud, ENT_QUOTES, $charset)." | ");
if($row->type_budget) {
$aff_glo = true;
$mnt = $row->montant_global;
$cal = budgets::calcEngagement($id_bud);
if($cal > $mnt) $sol=0; else $sol = $mnt-$cal;
$sol = number_format($sol, 2,'.','' );
if($cal > $mnt*($row->seuil_alerte/100)) $alert = true; else $alert = false;
} else {
$aff_glo = false;
}
print " |
";
}
$tab_rub = rubriques::listAncetres($row->id_rubrique, true);
$lib_rub = '';
$lib_rub_no_html = "" ;
foreach ($tab_rub as $dummykey=>$value) {
$lib_rub.= htmlentities($value[1], ENT_QUOTES, $charset);
$lib_rub_no_html.= $value[1];
if($value[0] != $row->id_rubrique) $lib_rub.= ":";
}
if(!$aff_glo) {
$mnt = $row->montant;
$cal = rubriques::calcEngagement($row->id_rubrique);
if($cal > $mnt) $sol=0; else $sol = $mnt-$cal;
$sol = number_format($sol, 2,'.','' );
if($cal >= $mnt*($row->seuil_alerte/100)) $alert = true; else $alert = false;
}
if ($alert) $cl = "class='erreur' "; else $cl= '';
print " | ".$sol." |
");
}
print "
";
mysql_free_result($res);
// affichage pagination
print "
";
$nav_bar = aff_pagination ($base_url, $nbr_lignes, $nb_per_page, $page, 10, false, true) ;
print $nav_bar;
print "
";
}
}
print $sel_footer;