} if (isset($_POST['Brand_ID'])) { $toolbody->setBrandID($_POST['Brand_ID']); } else { if (isset($_POST['Brand_ID_E'])) { $toolbody->setBrandID($_POST['Brand_ID_E']); } } if (isset($_POST['minimumstock'])) { $toolbody->setMinimumStock($_POST['minimumstock']); } if (isset($_POST['toolremarks'])) { $toolbody->setToolRemarks($_POST['toolremarks']); } if (isset($_POST['tooloal'])) { $toolbody->setToolOAL($_POST['tooloal']); } if (isset($_POST['tmax'])) { $toolbody->setTMax($_POST['tmax']); } if (isset($_POST['pimg'])) { $pimg = $_POST['pimg']; } else { $pimg = ''; } $toolbody->saveToolBody($toolbodyid); if ($toolbodyid == '') { $toolbodyid = $toolbody->getToolBodyID(); } if ($pimg != '') { $toolbody->delPreview($pimg);