Example #1
0
    if (isset($_POST['slno'])) {
        $gage->setValue('slno', $_POST['slno']);
    }
    if (isset($_POST['Gage_ID'])) {
        $gage->setValue('gageid', $_POST['Gage_ID']);
    }
    if (isset($_POST['gagetype'])) {
        $gage->setValue('gagetype', $_POST['gagetype']);
    }
    if (isset($_POST['gatepassno'])) {
        $gage->setValue('gatepassno', $_POST['gatepassno']);
    }
    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 {