roomrows; $rows = $this->rows; $prices = $this->prices; $allc = $this->allc; $vbo_app = VikBooking::getVboApplication(); $vbo_app->loadSelect2(); // access room helper to detect LOS rates $room_helper = VBORoomHelper::getInstance(); $currencysymb = VikBooking::getCurrencySymb(true); $idroom = $roomrows['id']; $name = $roomrows['name']; if (is_file(VBO_SITE_PATH.DIRECTORY_SEPARATOR.'resources'.DIRECTORY_SEPARATOR.'uploads'.DIRECTORY_SEPARATOR.$roomrows['img']) && getimagesize(VBO_SITE_PATH.DIRECTORY_SEPARATOR.'resources'.DIRECTORY_SEPARATOR.'uploads'.DIRECTORY_SEPARATOR.$roomrows['img'])) { $img = 'Room Image'; } else { $img = ''; } /** * We add the names of the categories next to the name of the room for better identification. * * @since 1.13.5 */ if (!empty($roomrows['idcat'])) { $parts = explode(';', rtrim($roomrows['idcat'], ';')); $cat_names = array(); foreach ($parts as $cat_id) { if (empty($cat_id)) { continue; } $cat_name = VikBooking::getCategoryName($cat_id); if (empty($cat_name)) { continue; } array_push($cat_names, $cat_name); } $name = count($cat_names) ? $name . ' (' . implode(', ', $cat_names) . ')' : $name; } if (!empty($prices)) { ?>
rows)) { ?>

getUserStateFromRequest("com_vikbooking.limit", 'limit', 15, 'int'); $lim0 = VikRequest::getVar('limitstart', 0, '', 'int'); $allpr = array(); $tottar = array(); foreach ($rows as $r) { if (!array_key_exists($r['idprice'], $allpr)) { $allpr[$r['idprice']] = VikBooking::getPriceAttr($r['idprice']); } $tottar[$r['days']][] = $r; } $prord = array(); $prvar = ''; foreach ($allpr as $kap => $ap) { $prord[] = $kap; // detect if this rate plan has got LOS rates $los_descr = ''; $rplan_haslos = $room_helper->hasLosRecords($idroom, $kap, true); if ($rplan_haslos) { $los_descr .= "\n
\n"; $los_descr .= "LOS >= $rplan_haslos " . JText::translate('VBDAYS') . "\n"; $los_descr .= "
\n"; } $prvar .= "" . VikBooking::getPriceName($kap) . "" . (!empty($ap) ? '' . $ap . '' : '') . $los_descr . "\n"; } $totrows = count($tottar); $tottar = array_slice($tottar, $lim0, $lim, true); ?>
$vt) { $multiid = ""; foreach ($prord as $ord) { foreach ($vt as $kkkt => $vvv) { if ($vvv['idprice'] == $ord) { $multiid .= $vvv['id'].";"; break; } } } ?> $vvv) { if ($vvv['idprice'] == $ord) { echo "\n"; $thereis = true; break; } } if (!$thereis) { echo "\n"; } unset($thereis); } ?>
".(!empty($vvv['attrdata'])? " - " : "")."
".$pageNav->getListFooter().""; echo $navbut; ?>
loadTemplate('wizard'); } ?>