//формируем местополежение if ($country != "") { $location = CSaleLocation::GetByID($country, LANGUAGE_ID); $country = ""; if ($location["CITY_NAME_LANG"] != "") { $country .= $location["CITY_NAME_LANG"] . ", "; } if ($location["REGION_NAME_LANG"] != "") { $country .= $location["REGION_NAME_LANG"] . ", "; } if ($location["COUNTRY_NAME_LANG"] != "") { $country .= $location["COUNTRY_NAME_LANG"]; } } if (isset($_GET["blank"])) { $blank = CBlanks::getBlankID($_GET["blank"]); if ($blank["slug"] == "f116" || $blank["slug"] == "f113f117") { $templates = CPBRFTemplates::getTemplates($blank["slug"]); $data = array("fio" => $fio, "country" => $country, "address" => $address, "zip" => $zip); if ($blank["slug"] == "f116") { $api_result = CF116::getPDF($data, $templates, $order["PRICE"], $order["PRICE"]); } if ($blank["slug"] == "f113f117") { $api_result = CF113F117::getPDF($data, $templates, $order["PRICE"], $order["PRICE"]); } if (isset($api_result->error)) { echo CAdminMessage::ShowMessage(array("DETAILS" => GetMessage('PBRF_ERROR_API') . $api_result->message)); } else { if ($api_result == null) { echo CAdminMessage::ShowMessage(array("DETAILS" => GetMessage('PBRF_ERROR_UNKNOWN'))); } else {