$arFields = $obEl->getFields(); $prop = $obEl->GetProperties(); foreach ( $prop as $code => $data){ $arFields ["PROPERTY_".strtoupper($code) ] = $data["VALUE"]; } $arFields["PROPERTIES"] = $prop; $values [ $arFields["ID"] ] = $arFields; } $arProperty["VALUES"] = $values; $arResult["PRELOAD_VALUES"]["$ID"] = $arProperty["VALUES"]; }elseif( $ID == 81 && $arProperty["PROPERTY_TYPE"] == "G" && in_array( $ID , $arParams["PROPERTY_VALUES_PRELOAD"] )){ include_once( getenv("DOCUMENT_ROOT")."/bitrix/templates/work_copy/class/class_contract.php"); $arResult["PRELOAD_VALUES"]["$ID"] = IBlockContractHandler::getTOProgrammList(); } } if ( isset( $arResult["ELEMENT"]) && isset( $arParams["CHOISE_BUTTON"] ) && is_array( $arParams["CHOISE_BUTTON"] ) && (count( $arParams["CHOISE_BUTTON"] ) > 0 ) ){ /* Достаю значения свойства для свойств с выбором */ $arforRequest = array(); foreach ( $arParams["CHOISE_BUTTON"] as $propertyID => $Q ){ $IBlockID = $arResult["PROPERTY_LIST_FULL"][$propertyID]["LINK_IBLOCK_ID"]; $values = array();
IncludeTemplateLangFile ( getenv('DOCUMENT_ROOT') . SITE_TEMPLATE_PATH . '/lang/ru/sevice_calc.php' ); global $ar_Debug; $ar_Debug = array("TIMES"=>array(),"OTHER"=>array()); /* include service calculator functions */ require_once ( getenv("DOCUMENT_ROOT").'/bitrix/templates/work_copy/functions/service_calculator/functions.php'); require_once ( getenv("DOCUMENT_ROOT")."/bitrix/templates/work_copy/class/class_contract.php"); if ( CModule::IncludeModule("iblock") ): $time_start = microtime(1); $arChassis = GetChassis(); $arProgramTO = IBlockContractHandler::getTOProgrammList(); $currentRun = 0; if ( ($programTO = intval($_REQUEST['programTO'] )) > 0 && ($chId = intval ( $_REQUEST['chassis'] )) > 0 && ($yw = intval ( $_REQUEST['years_of_work'] ) ) > 0 && ($ry = intval ( $_REQUEST['run_at_year'] ) ) >0 ){ $result = array (); if( $_REQUEST["chassis-type"] != "new" ){ $currentRun = intval($_REQUEST["mileage"]); } $with_out_washing = ($_REQUEST["exclude_washing"] == "Y" )? true:false ; $discount = floatval($_REQUEST["discount"]);