"> |
";
echo $user_fullname;
}
if ( $is_nonuser_admin )
echo " -- " . translate("Admin mode") . " --";
if ( $is_assistant )
echo " -- " . translate("Assistant mode") . " --";
if ( $categories_enabled == "Y" ) {
echo " \n \n";
print_category_menu('day', sprintf ( "%04d%02d%02d",$thisyear, $thismonth, $thisday ), $cat_id, $friendly);
}
?>
|
"> |
|
|
"> |
|
"> |
";
if ( $WEEK_START == 0 ) echo "" .
weekday_short_name ( 0 ) . " | ";
for ( $i = 1; $i < 7; $i++ ) {
echo "" .
weekday_short_name ( $i ) . " | ";
}
if ( $WEEK_START == 1 ) echo "" .
weekday_short_name ( 0 ) . " | ";
echo "\n";
// generate values for first day and last day of month
$monthstart = mktime ( 3, 0, 0, $thismonth, 1, $thisyear );
$monthend = mktime ( 3, 0, 0, $thismonth + 1, 0, $thisyear );
if ( $WEEK_START == "1" )
$wkstart = get_monday_before ( $thisyear, $thismonth, 1 );
else
$wkstart = get_sunday_before ( $thisyear, $thismonth, 1 );
$wkend = $wkstart + ( 3600 * 24 * 7 );
for ( $i = $wkstart; date ( "Ymd", $i ) <= date ( "Ymd", $monthend );
$i += ( 24 * 3600 * 7 ) ) {
for ( $i = $wkstart; date ( "Ymd", $i ) <= date ( "Ymd", $monthend );
$i += ( 24 * 3600 * 7 ) ) {
echo "\n";
for ( $j = 0; $j < 7; $j++ ) {
$date = $i + ( $j * 24 * 3600 );
if ( date ( "Ymd", $date ) >= date ( "Ymd", $monthstart ) &&
date ( "Ymd", $date ) <= date ( "Ymd", $monthend ) ) {
if ( date ( "Ymd", $date ) == date ( "Ymd", $now ) )
echo "| ";
else
echo " | ";
echo "";
echo "" .
date ( "d", $date ) .
" | \n";
} else {
print " | \n";
}
}
echo " \n";
}
}
?>
|
|