\n"; } $INC = array('js/popups.php'); print_header($INC,$HeadX); /* Pre-Load the repeated events for quckier access */ $repeated_events = read_repeated_events ( ( ! empty ( $user ) && strlen ( $user ) ) ? $user : $login, $cat_id ); /* Pre-load the non-repeating events for quicker access */ $events = read_events ( ( ! empty ( $user ) && strlen ( $user ) ) ? $user : $login, $startdate, $enddate, $cat_id ); ?>
'; if ( $WEEK_START == "1" ) $wkstart = get_monday_before ( $prevyear, $prevmonth, 1 ); else $wkstart = get_sunday_before ( $prevyear, $prevmonth, 1 ); $monthstart = mktime ( 3, 0, 0, $prevmonth, 1, $prevyear ); $monthend = mktime ( 3, 0, 0, $prevmonth + 1, 0, $prevyear ); echo "\n"; echo ""; if ( $WEEK_START == 0 ) echo ""; for ( $i = 1; $i < 7; $i++ ) { echo ""; } if ( $WEEK_START == 1 ) echo ""; echo "\n"; for ( $i = $wkstart; date ( "Ymd", $i ) <= date ( "Ymd", $monthend ); $i += ( 24 * 3600 * 7 ) ) { print "\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 ) ) { print "\n"; } else { print "\n"; } } print "\n"; } echo "
" . "" . date_to_str ( sprintf ( "%04d%02d01", $prevyear, $prevmonth ), $DATE_FORMAT_MY, false, false ) . "
" . weekday_short_name ( 0 ) . "" . weekday_short_name ( $i ) . "" . weekday_short_name ( 0 ) . "
" . date ( "d", $date ) . "
\n"; } ?> \n"; echo $user_fullname; } if ( $is_nonuser_admin ) echo "
-- " . translate("Admin mode") . " --
"; if ( $is_assistant ) echo "
-- " . translate("Assistant mode") . " --
"; if ( $categories_enabled == "Y" && (!$user || $user == $login)) { echo "
\n
\n"; print_category_menu('month',sprintf ( "%04d%02d01",$thisyear, $thismonth ),$cat_id, $friendly ); } ?>
'; if ( $WEEK_START == "1" ) $wkstart = get_monday_before ( $nextyear, $nextmonth, 1 ); else $wkstart = get_sunday_before ( $nextyear, $nextmonth, 1 ); $monthstart = mktime ( 3, 0, 0, $nextmonth, 1, $nextyear ); $monthend = mktime ( 3, 0, 0, $nextmonth + 1, 0, $nextyear ); echo "\n"; echo ""; if ( $WEEK_START == 0 ) echo ""; for ( $i = 1; $i < 7; $i++ ) { echo ""; } if ( $WEEK_START == 1 ) echo ""; echo "\n"; for ( $i = $wkstart; date ( "Ymd", $i ) <= date ( "Ymd", $monthend ); $i += ( 24 * 3600 * 7 ) ) { print "\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 ) ) { print "\n"; } else { print "\n"; } } print "\n"; } echo "
" . "" . date_to_str ( sprintf ( "%04d%02d01", $nextyear, $nextmonth ), $DATE_FORMAT_MY, false, false ) . "
" . weekday_short_name ( 0 ) . "" . weekday_short_name ( $i ) . "" . weekday_short_name ( 0 ) . "
" . date ( "d", $date ) . "
\n"; } ?>
sun = " . date ( "D, m-d-Y", $sun ) . "
"; //echo "

monthstart = " . date ( "D, m-d-Y", $monthstart ) . "
"; //echo "

monthend = " . date ( "D, m-d-Y", $monthend ) . "
"; // NOTE: if you make HTML changes to this table, make the same changes // to the example table in pref.php. for ( $i = $wkstart; date ( "Ymd", $i ) <= date ( "Ymd", $monthend ); $i += ( 24 * 3600 * 7 ) ) { print "

\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 ) ) { $thiswday = date ( "w", $date ); $is_weekend = ( $thiswday == 0 || $thiswday == 6 ); if ( empty ( $WEEKENDBG ) ) $is_weekend = false; $class = $is_weekend ? "tablecellweekend" : "tablecell"; $color = $is_weekend ? $WEEKENDBG : $CELLBG; if ( empty ( $color ) ) $color = "#C0C0C0"; print "\n"; } else { print "\n"; } } print "\n"; } ?>
"; else echo "BGCOLOR=\"$color\">"; //echo date ( "D, m-d-Y H:i:s", $date ) . "
"; print_date_entries ( date ( "Ymd", $date ), ( ! empty ( $user ) ) ? $user : $login, $friendly, false ); print "
 

friendly=1" TARGET="cal_printer_friendly" onMouseOver="window.status = ''">[]