예제 #1
0
        $list[] = date("Y-m-d", $stu->requestedon);
        if ($stu->registrarapproval == 1) {
            $list[] = get_string('approvedc', 'local_request');
        } elseif ($stu->registrarapproval == 2) {
            $list[] = get_string('rejectedc', 'local_request');
        } else {
            $list[] = get_string('pending', 'local_request');
        }
        $data[] = $list;
    }
}

/* -Checking weather student have any current Semester- */

$currenttab = 'view';
$requestid->requestcourseexemtabs($currenttab);

$box = get_string('viewcourseexempage', 'local_request');
echo $OUTPUT->box($box);
$table = new html_table();
$table->id = 'requestcourseexem';
$table->head = array(
    get_string('semester', 'local_semesters'),
    get_string('courseexemfrom', 'local_request'),
    get_string('requested_date', 'local_request'),
    get_string('status', 'local_request')
);
$table->size = array('25%', '25%', '25%', '25%');
$table->align = array('left', 'left', 'left', 'center');
$table->width = '100%';
$table->data = $data;