Example #1
0
    $t1 = unserialize($t[0]);
    $t2 = unserialize($t[1]);
    $week = 0;
    if (isset($_REQUEST['week'])) {
        $week = (int) $_REQUEST['week'];
        if (!$week) {
            $week = $school->getCurrentWeek()[0];
        }
    }
    include 'offline.inc.php';
    include 'footer.inc.php';
    exit;
}
if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'ical') {
    require_once 'vendor/iCalcreator.php';
    $school = new schoolBIT();
    include 'header.inc.php';
    require_once 'data.php';
    $tables = unserialize($tables_s);
    $t = json_decode($t_s);
    $t1 = unserialize($t[0]);
    $t2 = unserialize($t[1]);
    $ll = array();
    $llns = array();
    $ld = array();
    $schedArr = array();
    //$t2Merged = array();
    $t2MergedDeletion = array();
    foreach ($t2 as $v) {
        // Merge itself
        if ($v instanceof LessonBITDeletion) {
Example #2
0
 function getTimePerWeek()
 {
     $weekday = schoolBIT::getWeekLangArr();
     return ($weekday[$this->day] ? '周' . $weekday[$this->day] : '') . '第' . $this->startTime . '-' . ($this->startTime + $this->durationTime - 1) . '节';
 }