$worker_id_local = "";
 }
 //Specifiv begin and end interval dates for Employers topo
 if ($displayStyle == TASKTIME_EMPLOYER) {
     $interval_begin = 0;
     $interval_end = $comptListHours;
 }
 //Display and calculation based on days, for most cases
 for ($reference_day = $interval_begin; $reference_day <= $interval_end; $reference_day++) {
     //Variables
     if ($displayStyle == TASKTIME_EMPLOYER) {
         $reference_date = $listHours->tim_date[$db_date_index];
     } elseif ($displayStyle == TASKTIME_WEEK) {
         $reference_date = _moveDate($firstDayDate, $reference_day, 1);
     } else {
         $reference_date = "{$year}-" . _dayDateTrim($month) . "-" . _dayDateTrim($reference_day);
     }
     $date = $listHours->tim_date[$db_date_index];
     $worker = $listHours->tim_mem_name[$db_date_index];
     $date_display = "<strong><em>{$reference_date}</em></strong>";
     //Display employer if needed
     /*
     if($employer!=$listHours->tim_org_name[$db_date_index]) {
     	$employer=$listHours->tim_org_name[$db_date_index];
     	
     	$block2->openRow($db_date_index);
     	$block2->cellRow("");
     	$block2->cellRow("<div class='worker_name'>$employer</div>");
     	$block2->cellRow("");
     	$block2->closeRow();
     	
        //		echo "$pyear-$pmonth-01<br/>";
        $prevLastDay = date('t', strtotime("{$pyear}-{$pmonth}-01"));
        //		echo "$prevLastDay<br/>";
        $fdDay = $prevLastDay + $firstDay;
        $fdMonth = $pmonth;
        $fdYear = $pyear;
    }
    if ($lastDay > $lastDayOfMonth) {
        $lastDay = $lastDay - $lastDayOfMonth;
        $ldYear = $nyear;
        $ldMonth = $nmonth;
        $ldDay = $lastDay + 1;
    }
    //Trimming dates
    $fdDay = _dayDateTrim($fdDay);
    $ldDay = _dayDateTrim($ldDay);
    $firstDayDate = "{$fdYear}-{$fdMonth}-{$fdDay}";
    $lastDayDate = "{$ldYear}-{$ldMonth}-{$ldDay}";
    $datePast = _moveDate($dateCalend, 7, -1);
    $dateNext = _moveDate($dateCalend, 7, 1);
    //echo $firstDayDate.",".$lastDayDate;
} else {
    if ($displayStyle == TASKTIME_ABSENCE_YEAR) {
        $datePast = $year - 1 . "-{$month}-01";
        $dateNext = $year + 1 . "-{$month}-01";
        $firstDayDate = "{$year}-01-01";
        $lastDayDate = "{$year}-12-31";
    } else {
        //*** Month Calculations ***
        //EDO 080428
        //Calculate dates (moved from the end of the file, to get date for WebCalendar)