Location: PHPKode > projects > ProjectButler > ProjectButler/user_hours/index.php
<?php

$offset='../includes/';
require_once("$offset/class.Calendar.php");
require_once("$offset/class.HolidayCache.php");

$holidayCache = new HolidayCache;

$start = explode('-', $start_date);
$end = explode('-', $end_date);
$start = mktime(0,0,0,$start[1],$start[2], $start[0]);
$end = mktime(0,0,0, $end[1], $end[2], $end[0]);

while($start <= $end) {
	echo date('Y-m-d', $start);
	$start = Calendar::add($start, 1);
	echo $holidayCache->isHoliday($start) ? 'H' : '-';
	echo Calendar::isWeekend($start) ? 'W' : '-';
	echo "\n";
}

?>
Return current item: ProjectButler