Esempio n. 1
0
    }
    if (isset($_POST['spindletaper'])) {
        $mach->setValue('spindletaper', $_POST['spindletaper']);
    }
    if (isset($_POST['atcsize'])) {
        $mach->setValue('atcsize', $_POST['atcsize']);
    }
    if (isset($_POST['maxrpm'])) {
        $mach->setValue('maxrpm', $_POST['maxrpm']);
    }
    if (isset($_POST['tablesize'])) {
        $mach->setValue('tablesize', $_POST['tablesize']);
    }
    if (isset($_POST['toolclampingforce'])) {
        $mach->setValue('toolclampingforce', $_POST['toolclampingforce']);
    }
    if (isset($_POST['torque'])) {
        $mach->setValue('torque', $_POST['torque']);
    }
    if (isset($_POST['stroke'])) {
        $mach->setValue('stroke', $_POST['stroke']);
    }
    $mach->saveMachine();
} else {
    if (isset($_GET['ui'])) {
        if (isset($_GET['mid'])) {
            $mach->setValue('machineid', $_GET['mid']);
        }
        $mach->showMachineUI();
    }
}