<P>
<HR CLEAR="all">
<B><?php echo $lang[viewday]?></B>
<?php
if(!isset($year))
	$year = strftime("%Y");

if(!isset($month))
	$month = strftime("%m");

if(!isset($day))
	$day = strftime("%d");

for($i = -7; $i <= 7; $i++)
{
	$ctime = mktime(0, 0, 0, $month, $day + $i, $year);
	
	$str = strftime("%b %d", $ctime);
	
	$cyear  = date("Y", $ctime);
	$cmonth = date("m", $ctime);
	$cday   = date("d", $ctime);
	
	echo "<a href=".$phpgw->link("/rbs/day.php", "year=$cyear&month=$cmonth&day=$cday" ).">$str</a>, \n";
}

?>
<HR>
</P>
