getDaysInMonth($month,$year))?(($month == 12)?1:$month+1):$month; $prev_month = ($day - 1 == 0)?(($month == 1)?12:$month-1):$month; $next_year = ($month != $next_month && $next_month == 1)?$year+1:$year; $prev_year = ($month != $prev_month && $prev_month == 12)?$year-1:$year; $next_day = ($day + 1 > getDaysInMonth($month,$year))?1:$day+1; $prev_day = ($day - 1 == 0)?getDaysInMonth($prev_month, $prev_year):$day - 1; $arProjectFilters['ixaffiliatemarketingcategory'] = $HTTP_POST_VARS['filter_attributes']; $arProjectFilters['iximpactarea'] = $HTTP_POST_VARS['filter_impactArea']; $arProjectFilters['sregion'] = $HTTP_POST_VARS['filter_region']; $objOccurrence = new Occurrence( array() ); $objOccurrenceFactory = new OccurrenceFactory(); // We need to retrieve all occurrences this day. So we specify the max // range to be the first second of the next day. $arDateRange = array($year.'-'.$month.'-'.$day,$next_year.'-'.$next_month.'-'.$next_day); list ($arOccurrence, $iNumOngoingReferrals) = $objOccurrenceFactory->searchByProjectFilters( $arProjectFilters, $arDateRange, true, true ); $objOccurrenceView = new OccurrenceView( $objOccurrence ); $sTypeName = (checkFlag('course') ? 'course' : 'project'); $sFlipFlags = (checkFlag('course') ? '_clearFlag=course' : '_setFlag=course'); // Generate what the possible error message should be: $sErrorMsg = ''; if ($arProjectFilters) { while (list($key,$val) = each($arProjectFilters)) { if ($val != '') { $sErrorMsg = 'There are no '.$sTypeName.' sessions scheduled for this day given the selected filters. Please choose another '.$sTypeName.' attribute or impact area.'; } } } $objSlug = SlugManagerFactory::get('Ongoing Referrals Button Area'); if(is_object($objSlug)) { $sReferralButtonText = $objSlug->printSlug(); } ?>
Daily Calendar           Weekly Calendar           Monthly Calendar
Our calendar displays s by month, week, and day. Select a viewing method and then click the name to learn more about it.
Previous Day Next Day

showDailyOccurrence( $arOccurrence, $year.'-'.$month.'-'.$day, $sErrorMsg ); ?>

Previous Day Next Day
showCorporateEventsCalendarKey(); ?>
View <?= (strtolower($sTypeName) == 'course' ? 'Project' : 'Course') ?> Calendar

Show Me printSlug(); ?>

12) return 0; $days_in_month = array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); $d = $days_in_month[$month - 1]; if ($month == 2) if ($year%4 == 0) if ($year%100 == 0) { if ($year%400 == 0) $d = 29; } else { $d = 29; } return $d; } ?>