"; 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(""); 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 ""); } print "
".htmlentities($msg['acquisition_rub'], ENT_QUOTES, $charset)."".htmlentities($msg['acquisition_rub_sol'], ENT_QUOTES, $charset)."
".htmlentities($row->lib_bud, ENT_QUOTES, $charset)."
".$sol."
"; mysql_free_result($res); // constitution des liens $nbepages = ceil($nbr_lignes/$nb_per_page); $suivante = $page+1; $precedente = $page-1; // affichage du lien précédent si nécessaire print '
'; if($precedente > 0) print "[$msg[48]]"; for($i = 1; $i <= $nbepages; $i++) { if($i==$page) print "$i/$nbepages"; } if($suivante<=$nbepages) print "[$msg[49]]"; } print '
'; } print $sel_footer;