} else { if (isset($_POST['searchTerm'])) { $part->select2Part($_POST['searchTerm']); } else { if (isset($_POST['quotedhours'])) { $part->setValue('quotedhours', $_POST['quotedhours']); $part->setValue('partprice', $_POST['partprice']); $part->setValue('partid', $_POST['Drawing_ID']); $part->saveCommercialDetails(); } else { if (isset($_GET['ui'])) { if (isset($_GET['did'])) { $part->setPartID($_GET['did']); } if (isset($_GET['comm'])) { $part->showCommercialUI(); } else { $part->showPartUI(); } } if (isset($_GET['config'])) { $part->setCustomerID($_GET['cid']); $part->showPartList(); } if (isset($_GET['vcomm'])) { $part->setValue('customerid', $_GET['cid']); $part->viewCommercialDetails(); } } } }