thx
looks fine
the only thing i would change is on the picture because i dont know how to say it
this i changed but the sum isnt right
PHP Code:
$total[$i] = 0;
while ($r = $db->fetch_array($result))
{
print_cells_row (array($r['title'],$parent,vb_number_format($r['nbmess'],0,false,',',' '),vb_number_format($r['nbmess']/$totalcalc*100,2,false,',',' ')." %"),false,false,0,'top',false,true);
$total[$i] += $r['nbmess'];
}
print_cells_row(array("","Total in <q>".$totalstr[$i]."</q>",vb_number_format($total[$i],0,false,',',' '),vb_number_format($total[$i]/$totalcalc*100,2,false,',',' ')." %"),true);
$totalgen += $total[$i];
}
into:
PHP Code:
$total[$i] = 0;
print_cells_row(array("","Total in <q>".$totalstr[$i]."</q>",vb_number_format($total[$i],0,false,',',' '),vb_number_format($total[$i]/$totalcalc*100,2,false,',',' ')." %"),true);
while ($r = $db->fetch_array($result))
{
print_cells_row (array($r['title'],$parent,vb_number_format($r['nbmess'],0,false,',',' '),vb_number_format($r['nbmess']/$totalcalc*100,2,false,',',' ')." %"),false,false,0,'top',false,true);
$total[$i] += $r['nbmess'];
}
$totalgen += $total[$i];
}