コード例 #1
0
ファイル: school.php プロジェクト: anilch/Personel
        $message = get_string('delconfirm', 'local_collegestructure');
        echo $OUTPUT->confirm($message, $yesurl, $returnurl);
    }
    echo $OUTPUT->footer();
    die;
}
/* ---End of delete the School--- */

/* ---function for unassigning the users from school--- */
if ($unassign) {
    $returnurl = new moodle_url('/local/collegestructure/assignusers.php');

    $PAGE->url->param('unassign', 1);
    if ($confirm and confirm_sesskey()) {

        $school->unassign_users_instance($id, $userid);
    }
    $strheading = get_string('unassingheading', 'local_collegestructure');
    $PAGE->navbar->add(get_string('manageschools', 'local_collegestructure'), "/local/collegestructure/index.php", get_string('viewschool', 'local_collegestructure'));
    $PAGE->navbar->add($strheading);
    $PAGE->set_title($strheading);

    echo $OUTPUT->header();
    echo $OUTPUT->heading($strheading);

    $yesurl = new moodle_url('/local/collegestructure/school.php', array('id' => $id, 'userid' => $userid, 'unassign' => 1, 'confirm' => 1, 'sesskey' => sesskey()));
    $message = get_string('unassignregistrar', 'local_collegestructure');
    echo $OUTPUT->confirm($message, $yesurl, $returnurl);

    echo $OUTPUT->footer();
    die;