Beispiel #1
0
     $cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0;
     $cal = isset($_GET['cal']) ? (int) $_GET['cal'] : 0;
     $opt = isset($_GET['opt']) ? $_GET['opt'] : '';
     $content = EVLIST_dayview($year, $month, $day, $cat, $cal, $opt);
     echo $content;
     exit;
     break;
 case 'getCalWeek':
     USES_evlist_views();
     $month = (int) $_GET['month'];
     $day = (int) $_GET['day'];
     $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':
Beispiel #2
0
    $day = isset($_REQUEST['day']) ? (int) $_REQUEST['day'] : 0;
}
switch ($view) {
    case 'today':
        list($year, $month, $day) = explode('-', $_EV_CONF['_today']);
        $content = EVLIST_view('', $year, $month, $day);
        break;
    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;