'; tmpl2(); $tp = clean($_GET['tp'], 3); //include_once EVENTS_SETTINGS_FILE; //echo '
$showfuture: "'.$showfuture.'"
'; //if ($showfuture || USE_EVENTS_CATS === 1) { $showfuture = 1; $events_list = &new events_list(array('db_conn'=>$db_conn, 'is_adm'=>0, 'showfuture'=>$showfuture, 'tp'=>$tp)); $cats = $events_list->get_cats(); $eventslist = $events_list->get_events_list(); if (!$mn && !$yr) { $next_mn_yr = $events_list->get_mn_and_yr_for_next_non_past_event(); if (!empty($next_mn_yr)) { $mn = $next_mn_yr['mn']; $yr = $next_mn_yr['yr']; } } echo '
'; echo (in_array($tp, array_keys($cats))?'

'.$cats[$tp]['cat_name'].'

':''); echo '

'.MAIN_EVENTS_TYPE.'

'; if (USE_EVENTS_CATS) { $cat_menu = $events_list->get_cat_menu(); } echo $cat_menu; /* $m = 6; $y = 2008; */ $vars = array('vary_cal_height_to_fit' => 0); $cal = &new cal($mn, $yr, $vars); $cal->set_appts($events_list->get_appts()); //if($numdates) { // print the calendar /* echo '
'; echo $cal->get_cal(array('show_links' => '', 'show_blanks' => '')); echo '
'; */ //} /* echo __LINE__.'
';
print_r($cal);
echo '
'; */ /*--------------------------------------------------*/ // print the calendars echo '
'; echo '
'; echo '
'.$cal->get_cal(array('show_links' => 'prev', 'show_blanks' => 'before', 'classname' => 'firstcal')).'
'; $m = $cal->get_m(); $y = $cal->get_y(); $cal->cal($m+1, $y, $vars); echo '
'.$cal->get_cal(array('show_links' => '', 'show_blanks' => '')).'
'; //print_r($cal->appts); $cal->cal($m+2, $y, $vars); $cal->set_next_prev_links (array('next_m'=>$m+1, 'next_my'=>$y)); echo '
'.$cal->get_cal(array('show_links' => 'next', 'show_blanks' => 'after')).'
'; echo '
Hold mouse over orange dates on calendar for more information
'; echo '
'; echo '
'; //$appt[$yr][$mn][$dt][]['appt'] = $ap; echo $eventslist; /********************************* tool tips ******************************************/ echo ''; echo ' '; echo ' '; echo '
'; tmpl3(); ?>