} else {
            $temp_days = array();
            $temp_duration = array();
            $temp_room = array();
            $temp_period = array();
            foreach ($get_det as $gi => $gd) {
                if ($rdd['SCHEDULE_TYPE'] == 'VARIABLE') {
                    $temp_days[$gd['DAYS']] = $gd['DAYS'];
                } elseif ($rdd['SCHEDULE_TYPE'] == 'BLOCKED') {
                    $temp_days[$gd['DAYS']] = DaySname(date('l', $gd['COURSE_PERIOD_DATE']));
                }
                $temp_period[$gd['PERIOD']] = $gd['PERIOD'];
                $temp_duration[$gd['DURATION']] = $gd['DURATION'];
                $temp_room[$gd['ROOM']] = $gd['ROOM'];
            }
            $schedule_RET[$rdi]['DAYS'] = _makeDays(implode('', $temp_days));
            $schedule_RET[$rdi]['DURATION'] = implode(',', $temp_duration);
            $schedule_RET[$rdi]['ROOM'] = implode(',', $temp_room);
            $schedule_RET[$rdi]['PERIOD'] = implode(',', $temp_period);
            if ($schedule_RET[$rdi]['MARKING_PERIOD_ID'] == 'Custom') {
                $schedule_RET[$rdi]['MARKING_PERIOD_ID'] = date('M/d/Y', strtotime($cp_info[1]['BEGIN_DATE'])) . ' to ' . date('M/d/Y', strtotime($cp_info[1]['END_DATE']));
            }
        }
    }
    ListOutput($schedule_RET, array('COURSE' => 'Course', 'PERIOD' => 'Period', 'DAYS' => 'Days', 'DURATION' => 'Time', 'ROOM' => 'Room', 'MARKING_PERIOD_ID' => 'Marking Period'), 'Course', 'Courses');
}
$_REQUEST['category_id'] = 2;
include 'modules/users/includes/OtherInfoInc.inc.php';
function CreateSelect($val, $name, $opt, $link = '')
{
    if ($link != '') {
Beispiel #2
0
             $temp_days = array();
             $temp_duration = array();
             $temp_room = array();
             foreach ($get_det as $gi => $gd) {
                 if ($rdd['SCHEDULE_TYPE'] == 'VARIABLE') {
                     $temp_days[$gd['DAYS']] = $gd['DAYS'];
                 } elseif ($rdd['SCHEDULE_TYPE'] == 'BLOCKED') {
                     $temp_days[$gd['DAYS']] = DaySname(date('l', $gd['COURSE_PERIOD_DATE']));
                 }
                 $time = explode(' to ', $gd['DURATION']);
                 $gd['DURATION'] = date("g:i A", strtotime($time[0])) . ' to ' . date("g:i A", strtotime($time[1]));
                 unset($time);
                 $temp_duration[$gd['DURATION']] = $gd['DURATION'];
                 $temp_room[$gd['ROOM']] = $gd['ROOM'];
             }
             $RET[$ri][$rdi]['DAYS'] = _makeDays(implode('', $temp_days));
             $RET[$ri][$rdi]['DURATION'] = implode(',', $temp_duration);
             $RET[$ri][$rdi]['ROOM'] = implode(',', $temp_room);
         }
     }
 }
 if (count($RET)) {
     $handle = PDFStart();
     foreach ($RET as $student_id => $courses) {
         echo "<table width=100%  style=\" font-family:Arial; font-size:12px;\" >";
         echo "<tr><td  style=\"font-size:15px; font-weight:bold; padding-top:20px;\">" . GetSchool(UserSchool()) . "<div style=\"font-size:12px;\">Student Schedules Report</div></td><td align=right style=\"padding-top:20px;\">" . ProperDate(DBDate()) . "</td></tr><tr><td colspan=3 style=\"border-top:1px solid #333;\">&nbsp;</td></tr></table>";
         unset($_openSIS['DrawHeader']);
         echo '<br>';
         echo '<table  border=0>';
         echo '<tr><td>Student ID:</td>';
         echo '<td>' . $courses[1]['STUDENT_ID'] . '</td></tr>';