Modifie le lables des samedis et des dimanches

This commit is contained in:
Rodolphe Quiedeville 2005-12-08 15:13:34 +00:00
parent cc03452a6b
commit 6662c9569c

View File

@ -50,6 +50,9 @@ $colors[10] = 'yellow';
$colors[11] = 'red';
$months = array(10,11);
$month = strftime("%m",time());
$year = strftime("%Y",time());
print "$month\n";
$sql = "SELECT distinct ligne";
@ -103,7 +106,16 @@ if ($resql)
$total = $total + $datas[$i];
$moydatas[$i] = $total / $j;
$labels[$i] = $j;
if (strftime('%u',mktime(12,12,12,$month,$j,$year)) == 6)
{
$labels[$i] = 'S';
}
if (strftime('%u',mktime(12,12,12,$month,$j,$year)) == 7)
{
$labels[$i] = 'D';
}
}
$img_root = DOL_DATA_ROOT."/graph/".substr($ligne->id,-1)."/telephonie/ligne/";