setDate($this->year,$this->previousMonth,26); for($i=1;$i<=$this->span;$i++) { if($date3->format('d') >= 26) { echo " | ".$date3->format('D')." ".$date3->format('n')."/".$date3->format('j')." | ";
}
else
{
echo "".$date3->format('D')." ".$date3->format('n')."/".$date3->format('j')." | ";
}
$date3->modify('+1 day');
}
?>
---|---|---|
$user Total: $totalTime | ";
$date = new DateTime();
$date->setDate($this->year,$this->previousMonth,26);
for($j=1;$j<=$this->span;$j++)
{
foreach ($dates as $entryDate => $total)
{
$newDate = explode("-", $entryDate);
$dayOfMonth = $newDate[2];
if($dayOfMonth == $date->format('d'))
{
echo "$total | "; $j++; } } echo "- | "; $date->modify('+1 day'); } echo "
report); ?>