include_once("./common.inc.php");
$strFileName = "catalogue.php";
$arrQueryInfo = getAllParams();
$Country = $arrQueryInfo['Country'];
if($Country == "") $Country = 0;
$CountryId = $Country;
$City = $arrQueryInfo['City'];
$Type = $arrQueryInfo['Type'];
if ($Type == "") $Type = "0";
$Town = $arrQueryInfo['Town'];
if ($Town == "") $Town = "0";
$strTit3 = "Аренда недвижимости";
if($City != '') {
$sqlCity = "SELECT `strContentRegion` FROM `tblcities` WHERE `id` = '" . $City . "'";
$resultCity = query ($sqlCity);
if(mysql_num_rows($resultCity) > 0) $rowCity = mysql_fetch_row($resultCity);
}
/*
if ($arrQueryInfo['boolSearch'] == "") $arrQueryInfo['boolSearch'] = "0";
if ($arrQueryInfo['lngPage'] > 1) $arrQueryInfo['boolSearch'] = "1";
*/
// контент
/*
if ($arrQueryInfo['boolSearch'] != "1") {
if (preg_match("/^[0-9]+$/i", $Type) && ($Type > 0)) {
if ( $Country =="") {
$Country =="0";
}
$strWhere = "where CountryId = '" . $Country . "' and ingTipeCottage = '" . $Type . "' and boolStatus = '1'";
$sql = "select * from tblcontent $strWhere";
$resultContent = query ($sql);
if ( mysql_num_rows($resultContent) > 0 ) {
$rowContent = mysql_fetch_assoc ($resultContent);
}
}
} */
if (!empty($Country) && is_numeric($Country)) {
if (!empty($Type) && is_numeric($Type)) {
// с $City
if (!empty($City) && is_numeric($City)) {
// первый h1
$strTit = $arrCottageRentTypeMnAAA["$Type"] . " " . $arrCountrySecondName["$Country"] . ", " . $arrCitySecondName["$City"] . " | " . $arrCottageRentTypeMnAAAA["$Type"] . " в аренду, " . $arrCountryName["$Country"] . ", " . $arrCityName["$City"];
// тайтл
$strTitle = $arrCottageRentTypeMnAAA["$Type"] . " " . $arrCountrySecondName["$Country"] . ", " . $arrCitySecondName["$City"] . ". Аренда " . $arrCottageRentTypeMnbbbb["$Type"] . " для отдыха " . $arrCityName["$City"] . ", " . $arrCountryName["$Country"];
// второй h1
$strTit2 = $arrCottageRentTypeMnAAA["$Type"] . " " . $arrCitySecondName["$City"];
// под банером
$strTit3 = "Аренда " . $arrCottageRentTypeMnPadej["$Type"] . " " . $arrCountrySecondName["$Country"];
$strKeywords = $arrCottageRentTypeMn["$Type"] . " " . $arrCountrySecondName["$Country"] . " " . $arrCountryName["$Country"] . " " . $arrCityName["$City"] . " " . $arrCitySecondName["$City"];
}
// без $City
else {
$strTit = "Аренда " . $arrCottageRentTypeMnbbbb["$Type"] . " " . $arrCountrySecondName["$Country"] . ". " . $arrCottageRentTypeMnAAA["$Type"] . " в аренду " . $arrCountryName["$Country"];
$strTitle = "Аренда " . $arrCottageRentTypeMnPadej["$Type"] . " " . $arrCountrySecondName["$Country"] . ", каталог недвижимости, жилья. " . $arrCottageRentTypeAAAA["$Type"] . " " . $arrCountrySecondName["$Country"] . " в аренду";
$strTit2 = "Аренда " . $arrCountrySecondName["$Country"];
$strKeywords = $arrCottageRentTypeMn["$Type"] . " " . $arrCountrySecondName["$Country"] . " " . $arrCountryName["$Country"];
}
}
// $Type нет
else {
// c $City
if (!empty($City) && is_numeric($City)) {
$strTitle = $arrCountryName["$Country"] . ", " . $arrCityName["$City"] . ". Виллы, дома, коттеджи, апартаменты, квартиры в аренду " . $arrCitySecondName["$City"];
$strTit2 = $strTitle;
$strKeywords = $arrCountrySecondName["$Country"] . " " . $arrCountryName["$Country"] . " " . $arrCityName["$City"] . " " . $arrCitySecondName["$City"];
}
// без $City
else {
$strTitle = "Аренда " . $arrCountrySecondName["$Country"] . ", недвижимость " . $arrCountrySecondName["$Country"] . " | виллы, дома, коттеджи, апартаменты, квартиры в аренду";
$strTit2 = $strTitle;
$strKeywords = $arrCountrySecondName["$Country"];
}
}
}
else {
// $Country нет
if (!empty($Type) && is_numeric($Type)) {
$strTitle = "Аренда " . $arrCottageRentTypeMnId["$Type"] . ". " . $arrCottageRentTypeMnA["$Type"] . ", жилье, невижимость в аренду";
$strTit = "Аренда " . $arrCottageRentTypeMnId["$Type"] . ". Недвижимость в аренду";
$strKeywords = $strTit;
}
else {
$strTitle = 'Аренда жилья, недвижимости. Виллы, дома, коттеджи, квартиры в аренду';
$strTit = "Аренда вилл, домов, коттеджей, квартир. Недвижимость в аренду";
$strKeywords = $strTit;
}
}
if($titlecontent2["$Country"]["$Type"] != '') {
$strTitle = $titlecontent2["$Country"]["$Type"];
}
if($Town != 0) {
$strTitle = $arrTownName["$Town"] . ", " . $arrCountryName["$Country"] . ". Аренда виллы, дома, коттеджа, апартаментов, квартиры";
$strTit2 = $arrTownName["$Town"] . ' аренда вилл, домов, коттеджей, апартаментов, квартир';
}
$strKeywords = $strKeywords . " аренда недвижимость в аренду";
$strDescription = 'Агентство недвижимости «Аренда в Европе» предлагает сервис по аренде, продаже недвижимости: виллы, дома, коттеджи, квартиры, апартаменты | ' . $strTit2;
include_once("./header.inc.php");
?>
|
 |
|
$strWhere = "";
if (!empty($Town) && is_numeric($Town)) {
$strWhere .= " AND TownId='" . $Town . "' ";
}
if (!empty($City) && is_numeric($City)) {
$strWhere .= " AND LocationId='" . $City . "' ";
}
if (!empty($arrQueryInfo['Country']) && is_numeric($arrQueryInfo['Country'])) {
$strWhere .= " AND CountryId='" . $arrQueryInfo['Country'] . "' ";
}
if (!empty($arrQueryInfo['Type']) && is_numeric($arrQueryInfo['Type'])) {
$strWhere .= " AND TypeId='" . $arrQueryInfo['Type'] . "' ";
}
/* if (!empty($arrQueryInfo['NoteId']) && is_numeric($arrQueryInfo['NoteId'])) {
$strWhere .= " AND NoteId='" . $arrQueryInfo['NoteId'] . "' ";
}
if (!empty($arrQueryInfo['IngPool']) && is_numeric($arrQueryInfo['IngPool'])) {
$strWhere .= " AND IngPool='" . $arrQueryInfo['IngPool'] . "' ";
}*/
if ($strWhere != "")
$strWhere .= " AND boolPrivateCatalog='0' ";
// Pagination
$lngRecordsPerPage = 10;
$lngPagesLimit = 11;
$sql = "select count(tblcottagerent.id) as count_id from tblcottagerent WHERE boolCottageStatus='1' $strWhere ";
$paginationInfo = getPaginationCatalog ($sql, $strFileName, $lngRecordsPerPage, $lngPagesLimit, array("Country" => $arrQueryInfo['Country'], "Type" => $arrQueryInfo['Type'], "City"=>$arrQueryInfo['City'], "Town"=>$arrQueryInfo['Town']) );
//! Pagination
$sql = "SELECT * FROM tblcottagerent WHERE boolCottageStatus='1' $strWhere ORDER BY curCottagePrice ASC LIMIT $paginationInfo[lngStartLimit], $lngRecordsPerPage ";
$result = query($sql);
if ( '' != $Country ) { ?>Страны : Все страны | | Все города
if ( count ($arrTableCity["$Country"]) > 0 ) {
$boolContinue = 1;
echo '';
while ($boolContinue) {
echo '';
for ($j = 1; $j <= 4; $j++)
{
list($ingCity, $arrNameCities ) = each($arrTableCity["$Country"]);
echo '';
}
echo '
';
}
echo '
';
}
}
else {
$boolContinue = 1;
echo '';
while ($boolContinue)
{
echo "";
for ($j = 1; $j <= 4; $j++)
{
list($ingCountries, $NameCountries) = each($arrTableCountry);
echo '';
}
echo '
';
}
echo '
';
}
if (num_rows($result) == 0) { ?>
}
else {
?>
if ("1 " != $paginationInfo["strPagination"]) { ?>
}
require_once 'Mobile_Detect.php';
$detect = new Mobile_Detect;
if($detect->isMobile() && !$detect->isTablet()) {
$i = 1;
while($row = fetch_array($result)) {
?>
include ("./table.inc7.php");?> |
}
} else {
?>
$c = 0;
while($row = fetch_array($result)) {
?>
include ("./table.inc7.php");?> |
|
$c++;
if($c%2 == 0) echo '
';
}
?>
}
if ("1 " != $paginationInfo["strPagination"]) { ?>
}
}
/*
if ($arrQueryInfo['boolSearch'] != "1" && "" != $arrcontent3["$Country"]["$Type"]) {
$strContent = nl2br($arrcontent3["$Country"]["$Type"]);
echo "" . $strContent . "";
} */
/*
if ($arrQueryInfo['boolSearch'] != "1" && "" != $arrcontent3["$Country"]["$Type"]) {
if ( $rowContent['boolUseJavaEditor'] == "0" ) {
$strContent = nl2br($arrcontent3["$Country"]["$Type"]);
}
else {
$strContent = $arrcontent3["$Country"]["$Type"];
}
// $strContent = ereg_replace ("&", "&", $strContent);
// $strContent = ereg_replace ("/>", ">", $strContent);
echo "
" . $strContent . "";
} */
// контент из базы
/*$sql = "select * from tblcontent where CountryId = '" . $Country . "' and ingTipeCottage = '" . $Type . "' and boolStatus = '1'";
$resultContent = query ($sql);
if ( mysql_num_rows($resultContent) > 0 ) {
$rowContent = mysql_fetch_assoc ($resultContent);
}
if ( "" != $rowContent['strShortContent'] ) echo "
" . $rowContent['strShortContent'] . "
";*/
// регионы
/*if ($rowCity[0] != '') {
echo "
" . $rowCity[0] . "
";
}
elseif ("" != $arrcontent2["$Country"]["$Type"] && "" == $arrQueryInfo['lngPage']) {
$strShortContent = nl2br($arrcontent2["$Country"]["$Type"]);
echo "
" . $strShortContent . "
";
}*/
if ($rowCity[0] != '') {
echo "
" . $rowCity[0] . "
";
}
// контент
//if ("" != $arrcontent2["$Country"]["$Type"] && "" == $arrQueryInfo['lngPage']) echo "
" . $arrcontent2["$Country"]["$Type"] . "
";
if ("" != $arrcontent2["$Country"]["$Type"]) echo "
" . $arrcontent2["$Country"]["$Type"] . "
";
include_once("./footer.inc.php");