Телефон гарячої лінії в Україні 0 800 50 50 44, +380322442208 , +380322221608

'; $i = 0; $last_region = ''; foreach ($xml->result_table->items as $row){ $region = (string)$row->RegionDescriptionUA; $name = (string)$row->DescriptionUA; $city = (string)$row->CityDescriptionUA; $street = (string)$row->StreetDescriptionUA; $house = (string)$row->House; $flat = trim((string)$row->Flat); $lim = $row->Limitweight; $type = $row->Branchtype; $code = $row->BranchCode; $arr_shc = explode (';', str_replace(array('Пн ', ' Вт ', ' Ср ', ' Чт ', ' Пт ', ' Сб ', ' Нд ', '--:-- - --:--'), '', (string)$row->WorkingHours)); $only_r = (string)$row->OnlyReceiver; $lat = $row->Latitude; $lon = $row->Longitude; $adr_more = $row->AddressMoreInformation; if ($city == ''){ continue; } if ($only_r == '1'){ $only_r_txt = '*'; } else { $only_r_txt = ''; } $adress = $street; if ($house != ''){ $adress .= ', ' . $house; } if ($flat != ''){ $adress .= '/' . $flat; } if ($adr_more != ''){ //$adress .= ' (' . $adr_more . ')'; } $i++; if ($last_region != $region){ $res .= ''; $i++; } $last_region = $region; if (($city == 'Київ') and ($rosan_av)){ $res .= ''; $rosan_av = false; } if ($type == 'ОВ') { $st = 'font-weight: bold;'; } else { $st = ''; } $res .= ''; } $res .= '
Відділення(місто) Тип Адреса пн-пт сб
' . $region . ' область        
Київ Росан вул. Авіаконструктора Антонова, 5, оф. 101 09:00-18:30
(обід 13:00-14:00)
10:00-13:30
' . $city . ' ' . $type . ' ' . $only_r_txt . ' №' . $code . ' ' . $adress . ' ' . $arr_shc[0] . ' ' . $arr_shc[5] . '
'; echo $res;