All pastes #13170 Raw Edit

Miscellany

public php v1 · immutable
#13170 ·published 2005-06-02 10:26 UTC
rendered paste body
for($i=0; $i < $intNumDays; $i++) {	$EndOfDay = $EndOfDay + 86400;        $arHours = null;        $arJobCount = null;        while($arJobs[$curJob]->Date != null && $arJobs[$curJob]->Date < $EndOfDay)        {           $arJobCount[$arJobs[$curJob]->intTechID]++;           $arHours[$arJobs[$curJob]->intTechID] += $arJobs[$curJob]->intHours;           $curJob++;        }		$intStartDay = $EndOfDay - 86400;		if ($EndOfDay == $today) {		$day[] = array(			"intDayOfWeek" 	=> date("w", $intStartDay),			"boolToday"		=> "true",			"intDate" 		=> $intStartDay,                        "arJobCount"               => $arJobCount,                        "arHours"               => $arHours		);	 	} else {		$day[] = array(			"intDayOfWeek" 	=> date("w", $intStartDay),			"boolToday"		=> "false", 			"intDate" 		=> $intStartDay,                        "arJobCount"               => $arJobCount,                        "arHours"               => $arHours 		);	}}