예제 #1
0
// Create a drg object
//$db->debug=1;
$toggle = 0;
$thisfile = basename($_SERVER['PHP_SELF']);
if (isset($mode) && !empty($mode)) {
    $saved_header = "location:{$thisfile}?sid={$sid}&lang={$lang}&pn={$pn}&edit={$edit}&ln={$ln}&fn={$fn}&bd={$bd}&opnr={$opnr}&group_nr={$group_nr}&dept_nr={$dept_nr}&dept_nr={$dept_nr}&oprm={$oprm}&y={$y}&m={$m}&d={$d}&display={$display}&newsave=1";
}
switch ($mode) {
    case 'delete':
        if ($DRG_obj->deleteProcedure($itemx)) {
            header($saved_header);
            exit;
        }
        break;
    case 'update_stat':
        if ($DRG_obj->setProcedureCategory($pn, $itemx, $val)) {
            header($saved_header);
            exit;
        }
        break;
    case 'update_loc':
        if ($DRG_obj->setProcedureLocalization($itemx, $val)) {
            header($saved_header);
            exit;
        }
        break;
}
// end of switch
if (!isset($group_nr)) {
    $group_nr = 0;
}