Пример #1
0
    }
    if (isset($_POST['rdatedb'])) {
        $gage->setValue('rdatedb', $_POST['rdatedb']);
    }
    $gage->saveProperty();
} else {
    if (isset($_POST['delgage'])) {
        //print_r($_POST);
        $delgage = $_POST['delgage'];
        $gid = $_POST['Gage_SlNo_ID'];
        $i = 0;
        $j = count($gid);
        while ($i < $j) {
            if (isset($delgage[$i])) {
                $gage->setValue('gageslnoid', $gid[$i]);
                $gage->deleteGage();
            }
            $i++;
        }
    } else {
        if (isset($_GET['ui'])) {
            $gage->showGageUI();
        }
        if (isset($_GET['gtype'])) {
            $gage->setValue('gagedesc', $_GET['gtype']);
            $gage->saveGageType();
        }
        if (isset($_GET['rgage'])) {
            if (isset($_GET['gid'])) {
                $gage->setValue('gageid', $_GET['gid']);
            }