Exemple #1
0
        $cell5->text = html_writer::link(new moodle_url('/local/cobaltcourses/equivalent.php', array('id' => $eq->id, 'delete' => 1, 'sesskey' => sesskey())), html_writer::empty_tag('img', array('src' => $OUTPUT->pix_url('t/delete'), 'alt' => get_string('delete'), 'class' => 'iconsmall')));
        $line[] = $cell4;
        $line[] = $cell5;
        $data[] = $line;
    }
}
if (!empty($records)) {
    $c = coursefilter($schoolvalues, 'local_course_equivalent');
    echo '<div style="float: left;width:100%;">';
    echo '<div style="margin-bottom: 10px;float: left;width:49%;">';
    $select1 = new single_select(new moodle_url('/local/cobaltcourses/equivalent.php?did=' . $did . ''), 'cid', $c, $cid, null, 'switchcategory');
    $select1->set_label(get_string('selectcourse', 'local_cobaltcourses') . ':&nbsp&nbsp&nbsp&nbsp');
    echo $OUTPUT->render($select1);
    echo '</div>';

    $d = departmentfilter($schoolvalues, 'local_course_equivalent');
    echo '<div style="margin-bottom: 10px;float: right;width:49%;">';
    $select2 = new single_select(new moodle_url('/local/cobaltcourses/equivalent.php?cid=' . $cid . ''), 'did', $d, $did, null, 'switchcategory');
    $select2->set_label(get_string('selectdepartment', 'local_cobaltcourses') . ':&nbsp&nbsp&nbsp&nbsp');
    echo $OUTPUT->render($select2);
    echo '</div>';
    echo '</div>';
}
/* ---View Part starts--- */
/* ---start the table--- */
$table = new html_table();
$table->id = "equivalenttable";
$head = array();
$head[] = get_string('course', 'local_cobaltcourses');
$head[] = get_string('department', 'local_cobaltcourses');
$head[] = get_string('schoolid', 'local_collegestructure');
Exemple #2
0
        $cell5->text = html_writer::link(new moodle_url('/local/cobaltcourses/prerequisite.php', array('id' => $eq->id, 'delete' => 1, 'sesskey' => sesskey())), html_writer::empty_tag('img', array('src' => $OUTPUT->pix_url('t/delete'), 'alt' => get_string('delete'), 'class' => 'iconsmall')));
        $line[] = $cell4;
        $line[] = $cell5;
        $data[] = $line;
    }
}
if (!empty($records)) {
    $c = coursefilter($schoolvalues, 'local_course_prerequisite');
    echo '<div style="float: left;width:100%;">';
    echo '<div style="margin-bottom: 10px;float: left;width:49%;">';
    $select1 = new single_select(new moodle_url('/local/cobaltcourses/prerequisite.php?did=' . $did . ''), 'cid', $c, $cid, null, 'switchcategory');
    $select1->set_label(get_string('selectcourse', 'local_cobaltcourses') . ':&nbsp&nbsp&nbsp&nbsp');
    echo $OUTPUT->render($select1);
    echo '</div>';

    $d = departmentfilter($schoolvalues, 'local_course_prerequisite');
    echo '<div style="margin-bottom: 10px;float: right;width:49%;">';
    $select2 = new single_select(new moodle_url('/local/cobaltcourses/prerequisite.php?cid=' . $cid . ''), 'did', $d, $did, null, 'switchcategory');
    $select2->set_label(get_string('selectdepartment', 'local_cobaltcourses') . ':&nbsp&nbsp&nbsp&nbsp');
    echo $OUTPUT->render($select2);
    echo '</div>';
    echo '</div>';
}
/* ---View Part starts--- */
/* ---start the table--- */
$table = new html_table();
$table->id = "equivalenttable";
$head = array();
$head[] = get_string('course', 'local_cobaltcourses');
$head[] = get_string('department', 'local_cobaltcourses');
$head[] = get_string('schoolid', 'local_collegestructure');