';
$vast = (3600 * 2) / $day_scale;
$lasttotal=0;
for ($i = 0; $i < 22; $i = $i +2) {
$w=$vast;
$total+=$w;
$rounded_total=round($total);
$w=$rounded_total-$lasttotal;
echo ' '.$i.' ';
$lasttotal=$rounded_total;
}
echo '22 0';
echo ' | |
'.$this->get_long_day($i == 7 ? 0 : $i).' | '; if (is_array($days) && array_key_exists($i, $days)) echo $days[$i]; else echo ' '; echo ' |