コード例 #1
0
// Zusaetzliche Daten laden
if (!$stdplan->load_data($type, $pers_uid, $ort_kurzbz, $stg_kz, $sem, $ver, $grp, $gruppe_kurzbz, null, $lva)) {
    die($stdplan->errormsg);
}
//echo 'Datum:'.$datum.'<BR>';
// Stundenplan einer Woche laden
if (!$stdplan->load_week($datum)) {
    die($stdplan->errormsg);
}
// Kopfbereich drucken
if (!$stdplan->draw_header()) {
    die($stdplan->errormsg);
}
// Stundenplan der Woche drucken
if ($ort_kurzbz == 'all') {
    $stdplan->draw_week($raumres, $uid, false);
} else {
    $stdplan->draw_week($raumres, $uid);
}
if (isset($count)) {
    echo "Es wurde" . ($count != 1 ? 'n' : '') . " {$count} Stunde" . ($count != 1 ? 'n' : '') . " reserviert!<BR>";
}
?>

<P><br><?php 
echo $p->t('lvplan/fehlerUndFeedback');
?>
 <A class="Item" href="mailto:<?php 
echo MAIL_LVPLAN;
?>
"><?php 
コード例 #2
0
    $i++;
    if (!date("w", $begin)) {
        $begin = jump_day($begin, 1);
    }
    $stdplan->init_stdplan();
    $datum = $begin;
    $begin += 604800;
    // eine Woche
    // Stundenplan einer Woche laden
    if (!$stdplan->load_week($datum, $db_stpl_table)) {
        die($stdplan->errormsg);
    }
    // Stundenplan der Woche drucken
    if ($format == 'csv' || $format == 'ical') {
        $stdplan->draw_week_csv($target, LVPLAN_KATEGORIE);
    } else {
        $style = 'style="padding-top: 10px;" class="page-break-after"';
        echo '<div ' . $style . '>';
        $stdplan->draw_week(false, '', false);
        echo '</div>';
    }
}
// Print in csv-file
if ($format == 'csv') {
    echo $crlf;
} elseif ($format == 'ical') {
    echo $crlf . 'END:VCALENDAR';
} else {
    echo '<P class="dont-print">' . $p->t('lvplan/fehlerUndFeedback') . ' <A class="Item" href="mailto:' . MAIL_LVPLAN . '">' . $p->t('lvplan/lvKoordinationsstelle') . '</A></P>';
    echo '</body></html>';
}