Доставка и оплата сувенирной продукции

 



'); } } } else { echo ('error!'); } } } if ($_SERVER['REQUEST_METHOD'] == 'POST') { if ($_POST['dealid'] != '') { $deal = callquery(PORTAL, "crm.deal.get", array( 'ID' => $_POST['dealid'] )); if (!isset($deal['error'])) { if (($deal['result']['COMPANY_ID'] == $_POST['companyid']) || ($deal['result']['CONTACT_ID'] == $_POST['contactid'])) { $res = callquery(PORTAL, "crm.deal.update", array( 'ID' => $_POST['dealid'], 'fields' => array( 'UF_CRM_1566901659' => '0', 'UF_CRM_1566888943' => $_POST['comment'] ) )); if (!isset($res['error'])) { echo ('Принято!'); } else { echo ('Ошибка!'); } } } else { echo ('error!!'); } } } ?>