Ejemplo n.º 1
0
function remove_record($agg)
{
    $remrecs = retrieve_all_checked_records($agg);
    $remids = collectIDs($remrecs);
    if (count($remrecs) > 0) {
        show_remove_form($remrecs, $remids);
    } else {
        infomsg("Please tick the record(s) you wish to remove");
    }
}
Ejemplo n.º 2
0
function delete_sp_and_edit_student($var)
{
    $f = explode('_', $var);
    $spid = $_POST['listid_' . $f[1] . '_' . $f[2]];
    $stid = $_POST['0'];
    save_student();
    $details = db_retrieve_study_prog_and_student_details($spid, $stid);
    show_remove_form(array('Study program "' . $details[0] . '" from student "' . $details[1] . '"'), $spid, array('stid' => $stid));
    $st = db_retrieve_student_byID($stid);
    addedit_student($st);
}