function fn_fecthorderymm($orderID) { $clarion_entity = new ISC_ADMIN_CLARION(); $clarion_entity->fn_fetchOrderYMM($orderID); $GLOBALS['ISC_CLASS_TEMPLATE']->SetTemplate('customerexisting.YMM.row'); return $GLOBALS["ISC_CLASS_TEMPLATE"]->ParseTemplate(true); }
/** * Add a customer YMM page * * Method will construct the add customer YMM page * * @access public * @param string $MsgDesc The optional message to display * @param string $MsgStatus The optional status of the message * @param bool $PreservePost TRUE to use the REQUEST variable, FALSE to read from the database. Default is FALSE * @return Void */ function addCustomerYMMStep1($MsgDesc = "", $MsgStatus = "", $PreservePost = false) { // Show the form to add the customer YMM $customerId = isc_html_escape((int) $_REQUEST['customerId']); if ($MsgDesc != "") { $GLOBALS['Message'] = MessageBox($MsgDesc, $MsgStatus); } $GLOBALS['CurrentTab'] = 0; $GLOBALS['FormAction'] = 'addCustomerYMM2'; $GLOBALS['Title'] = GetLang('AddCustomerYMMTitle'); $GLOBALS['Intro'] = GetLang('AddCustomerYMMIntro'); $GLOBALS['CustomerId'] = $customerId; if (!$GLOBALS["ISC_CLASS_ADMIN_AUTH"]->HasPermission(AUTH_Edit_Customers)) { $GLOBALS['CancelGoToManager'] = '1'; } else { $GLOBALS['CancelGoToManager'] = ''; } $GLOBALS['CustomFieldsAddressFormId'] = FORMFIELDS_FORM_ADDRESS; $GLOBALS['AddressFields'] = $this->generateAddressFields('address', $PreservePost); $GLOBALS['CustomFields'] = ''; if (gzte11(ISC_MEDIUMPRINT)) { $GLOBALS['CustomFields'] = $this->generateAddressFields('custom', $PreservePost); } if ($GLOBALS['CustomFields'] == '') { $GLOBALS[base64_decode('SGlkZUN1c3RvbUZpZWxkcw==')] = "none"; } /** * Add this to generate our JS event script */ $GLOBALS['FormFieldEventData'] = $GLOBALS['ISC_CLASS_FORM']->buildRequiredJS(); $GLOBALS['YearList'] = $this->fn_getYMMOptions($params, 'year'); $GLOBALS['MakeList'] = $this->fn_getYMMOptions($params, 'make'); $GLOBALS['ModelList'] = $this->fn_getYMMOptions($params, 'model'); $GLOBALS['CabSize'] = ISC_ADMIN_CLARION::fn_getCabBedsize(1); $GLOBALS['BedSize'] = ISC_ADMIN_CLARION::fn_getCabBedsize(2); $GLOBALS['SaveAndAddAnother'] = GetLang('SaveAndAddAnother'); $GLOBALS['CancelMessage'] = GetLang('ConfirmCancelCustomerAddress'); $GLOBALS["ISC_CLASS_TEMPLATE"]->SetTemplate("customer.YMM.form"); $GLOBALS["ISC_CLASS_TEMPLATE"]->ParseTemplate(); }