Example #1
0
        $year = (int) $_GET['year'];
        $cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0;
        $cal = isset($_GET['cal']) ? (int) $_GET['cal'] : 0;
        $opt = isset($_GET['opt']) ? $_GET['opt'] : '';
        $content = EVLIST_weekview($year, $month, $day, $cat, $cal, $opt);
        echo $content;
        exit;
        break;
    case 'getCalMonth':
        USES_evlist_views();
        $month = (int) $_GET['month'];
        $year = (int) $_GET['year'];
        $cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0;
        $cal = isset($_GET['cal']) ? (int) $_GET['cal'] : 0;
        $opt = isset($_GET['opt']) ? $_GET['opt'] : '';
        $content = EVLIST_monthview($year, $month, 1, $cat, $cal, $opt);
        echo $content;
        exit;
        break;
    case 'getCalYear':
        USES_evlist_views();
        $year = (int) $_GET['year'];
        $cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0;
        $cal = isset($_GET['cal']) ? (int) $_GET['cal'] : 0;
        $opt = isset($_GET['opt']) ? $_GET['opt'] : '';
        $content = EVLIST_yearview($year, 1, 1, $cat, $cal, $opt);
        echo $content;
        exit;
        break;
}
if (!empty($content)) {
Example #2
0
 case 'pday':
     $content = EVLIST_dayview($year, $month, $day, $category, $calendar, 'print');
     echo $content;
     exit;
 case 'day':
     $content .= EVLIST_view('day', $year, $month, $day, $category, $calendar);
     break;
 case 'pweek':
     $content = EVLIST_weekview($year, $month, $day, $category, $calendar, 'print');
     echo $content;
     exit;
 case 'week':
     $content .= EVLIST_view('week', $year, $month, $day, $category, $calendar);
     break;
 case 'pmonth':
     $content = EVLIST_monthview($year, $month, $day, $category, $calendar, 'print');
     echo $content;
     exit;
 case 'month':
     $content .= EVLIST_view('month', $year, $month, $day, $category, $calendar);
     break;
 case 'pyear':
     $tpl = 'yearview_print';
     break;
 case 'year':
     $content .= EVLIST_view('year', $year, 1, 1, $category, $calendar);
     break;
 case 'list':
     switch ($range) {
         case 1:
             // Past events