Exemple #1
0
    }
    if (isset($_POST['Location_ID'])) {
        $ins->setValue('instloc', $_POST['Location_ID']);
    }
    if (isset($_POST['certno'])) {
        $ins->setValue('certno', $_POST['certno']);
    }
    $ins->saveInstrument();
} else {
    if (isset($_GET['ui'])) {
        if (isset($_GET['iid'])) {
            $ins->setValue('instrumentid', $_GET['iid']);
        }
        $ins->showInstrumentUI();
    }
    if (isset($_GET['itype'])) {
        $ity = new InstrumentType();
        $ity->setValue('typedesc', $_GET['itype']);
        $ity->saveInstrumentType();
    }
    if (isset($_GET['showlist'])) {
        $ins->displayInstrumentList();
    }
    if (isset($_GET['insid'])) {
        $ins->setValue('instrumentid', $_GET['insid']);
        $ins->getCalibtationHistory();
    }
    if (isset($_GET['showcplan'])) {
        $ins->showCalibrationPlan();
    }
}