<?php $this->widget('addressLineWidget', array('links' => array(Yii::t("travelAgency", "Туристические агентства") . $item->country_id->name_2 => SiteHelper::createUrl("/travelAgency"), $item->name))); $listComments = CatalogFirmsComments::fetchAll(DBQueryParamsClass::CreateParams()->setConditions("firm_id=:firm_id AND active=1")->setParams(array(":firm_id" => $item->id))->setOrderBy("id DESC")->setLimit(-1)->setCache(0)); $listService = CatalogFirmsService::fetchAll(DBQueryParamsClass::CreateParams()->setConditions("firm_id=:firm_id AND active=1")->setParams(array(":firm_id" => $item->id))->setLimit(-1)->setCache(0)); $toursCondition = "firm_id=:firm_id AND active=1"; $tourParams = array(":firm_id" => $item->id); $country = Yii::app()->request->getParam("country", ""); if (!empty($country)) { $countryModel = CatalogCountry::fetchBySlug($country); } else { $countryModel = new CatalogCountry(); } $category = Yii::app()->request->getParam("category", ""); if (!empty($category)) { $categoryModel = CatalogToursCategory::fetchBySlug($category); } else { $categoryModel = new CatalogToursCategory(); } if ($countryModel->id > 0) { $toursCondition .= " AND country_id='" . $countryModel->id . "'"; } if ($categoryModel->id > 0) { $toursCondition .= " AND category_id='" . $categoryModel->id . "'"; } $listTours = CatalogTours::fetchAll(DBQueryParamsClass::CreateParams()->setConditions($toursCondition)->setParams($tourParams)->setOrderBy("pos DESC")->setLimit(-1)->setCache(0)); $listItems = CatalogFirmsItems::fetchAll(DBQueryParamsClass::CreateParams()->setConditions("firm_id=:firm_id AND active=1")->setParams(array(":firm_id" => $item->id))->setLimit(-1)->setCache(0)); ?> <div id="InnerText" class="innerPage"> <br/> <?php