if (($user != $login) && $is_nonuser_admin) { load_user_layers ($user); } else { load_user_layers (); } load_user_categories (); $next = mktime ( 3, 0, 0, $thismonth + 1, 1, $thisyear ); $nextyear = date ( "Y", $next ); $nextmonth = date ( "m", $next ); //$nextdate = date ( "Ymd" ); $prev = mktime ( 3, 0, 0, $thismonth - 1, 1, $thisyear ); $prevyear = date ( "Y", $prev ); $prevmonth = date ( "m", $prev ); //$prevdate = date ( "Ymd" ); if ( ! empty ( $bold_days_in_year ) && $bold_days_in_year == 'Y' ) { $boldDays = true; $startdate = sprintf ( "%04d%02d01", $prevyear, $prevmonth ); $enddate = sprintf ( "%04d%02d31", $nextyear, $nextmonth ); } else { $boldDays = false; $startdate = sprintf ( "%04d%02d01", $thisyear, $thismonth ); $enddate = sprintf ( "%04d%02d31", $thisyear, $thismonth ); } $HeadX = ''; if ( $auto_refresh == "Y" && ! empty ( $auto_refresh_time ) ) { $refresh = $auto_refresh_time * 60; // convert to seconds $HeadX = "\n"; } $INC = array('js/popups.php'); print_header($INC,$HeadX); /* Pre-Load the repeated events for quicker access */ $repeated_events = read_repeated_events ( ( ! empty ( $user ) && strlen ( $user ) ) ? $user : $login, $cat_id, $startdate ); /* Pre-load the non-repeating events for quicker access */ $events = read_events ( ( ! empty ( $user ) && strlen ( $user ) ) ? $user : $login, $startdate, $enddate, $cat_id ); ?>
|
if ( ! empty ( $cat_id ) )
$monthURL = "month.php?cat_id=$cat_id&";
else
$monthURL = 'month.php?';
display_small_month ( $prevmonth, $prevyear, true, true, "prevmonth",
$monthURL );
display_small_month ( $nextmonth, $nextyear, true, true, "nextmonth",
$monthURL );
?> November 2008 Baha'i Youth Events Calendar State: All
[Printer Friendly] |