loadSelect2(); $config = VBOFactory::getConfig(); $rows = $this->rows; $lim0 = $this->lim0; $navbut = $this->navbut; $orderby = $this->orderby; $ordersort = $this->ordersort; $prname = $app->getUserStateFromRequest("vbo.rooms.rname", 'rname', '', 'string'); $pidcat = $app->getUserStateFromRequest("vbo.rooms.idcat", 'idcat', 0, 'int'); ?>

0) { $cat = explode(";", $row['idcat']); $catsfound = false; $q = "SELECT `name` FROM `#__vikbooking_categories` WHERE "; foreach ($cat as $k => $cc) { if (!empty($cc)) { $q .= "`id`=".$dbo->quote($cc)." "; if ($cc != end($cat) && !empty($cat[($k + 1)])) { $q .= "OR "; } $catsfound = true; } } $q .= ";"; if ($catsfound) { $dbo->setQuery($q); $lines = $dbo->loadAssocList(); if ($lines) { $categories = array(); foreach($lines as $ll) { $categories[] = $ll['name']; } $categories = implode(", ", $categories); } } } $caratteristiche = '0'; if (!empty($row['idcarat'])) { $tmpcarat = explode(";", $row['idcarat']); $caratteristiche = '' . VikBooking::totElements($tmpcarat) . ''; } $optionals = '0'; if (!empty($row['idopt'])) { $tmpopt = explode(";", $row['idopt']); $optionals = '' . VikBooking::totElements($tmpopt) . ''; } if ($row['fromadult'] == $row['toadult']) { $stradult = $row['fromadult']; } else { $stradult = $row['fromadult'].' - '.$row['toadult']; } if ($row['fromchild'] == $row['tochild']) { $strchild = $row['fromchild']; } else { $strchild = $row['fromchild'].' - '.$row['tochild']; } // shared calendar icon $sharedcal = ''; if (!empty($row['sharedcals'])) { $sharedcal = ' '; } // VCM room's channels mapped $website_source_lbl_short = substr($website_source_lbl, 0, 1); if (function_exists('mb_substr')) { $website_source_lbl_short = mb_substr($website_source_lbl, 0, 1, 'UTF-8'); } $roomchannels = array($website_source_lbl => strtoupper($website_source_lbl_short)); $otachannels = is_object($vcm_logos) && method_exists($vcm_logos, 'getVboRoomLogosMapped') ? $vcm_logos->getVboRoomLogosMapped($row['id']) : array(); $roomchannels = count($otachannels) ? array() : $roomchannels; $roomchannels = array_merge($roomchannels, $otachannels); // room upgrade option $room_upgrade_options = $config->getArray('room_upgrade_options_' . $row['id'], []); $room_upgrade_enabled = (!empty($room_upgrade_options['rooms']) && $room_upgrade_options['rooms']); ?>
" class=""> ' : ($orderby == "name" ? '' : '')); ?> " class=""> ' : ($orderby == "toadult" ? '' : '')); ?> " class=""> ' : ($orderby == "tochild" ? '' : '')); ?> " class=""> ' : ($orderby == "totpeople" ? '' : '')); ?> " class=""> ' : ($orderby == "units" ? '' : '')); ?>
$churi) { $is_img = (strpos($churi, 'http') !== false); // build readable channel name $raw_ch_name = $source; $lower_name = strtolower($raw_ch_name); $lower_name = preg_replace("/hotel$/", ' hotel', $lower_name); $channel_name = ucwords(preg_replace("/api$/", '', $lower_name)); ?>
<?php echo $source; ?>
' . $row['units'] . ''; ?> " : ""); ?>