include_once("../common.inc.php");
$strFileName = "ext_search.php";
$arrQueryInfo = getAllParams();
$CountryId = $arrQueryInfo['CountryId'];
if($CountryId == "") $CountryId = 0;
$CottCityId = $arrQueryInfo['CottCityId'];
$TypeId = $arrQueryInfo['TypeId'];
if (!empty($CountryId) && is_numeric($CountryId)) {
if (!empty($TypeId) && is_numeric($TypeId)) {
// с $CottCityId
if (!empty($CottCityId) && is_numeric($CottCityId)) {
$strTitle = $arrCottageRentTypeMnAAA["$TypeId"] . " " . $arrCitySecondName["$CottCityId"] . ". Аренда " . $arrCottageRentTypeMnIdA["$TypeId"] . " " . $arrCountrySecondName["$CountryId"] . ". " . $arrCottageRentTypeMnA["$TypeId"] . " " . $arrCountrySecondName["$CountryId"];
$strKeywords = $arrCottageRentTypeMn["$TypeId"] . " " . $arrCountrySecondName["$CountryId"] . " " . $arrCountryName["$CountryId"] . " " . $arrCityName["$CottCityId"] . " " . $arrCitySecondName["$CottCityId"];
}
// без $CottCityId
else {
/* $strTitle = $arrCottageRentTypeMnAAA["$TypeId"] . " " . $arrCountrySecondName["$CountryId"] . ". Аренда " . $arrCottageRentTypeMnIdA[$TypeId] . " " . $arrCountrySecondName["$CountryId"] . ". " . $arrCottageRentTypeMnA["$TypeId"] . " для отдыха " . $arrCountrySecondName["$CountryId"]; */
$strTitle = $arrCottageRentTypeMnAAA["$TypeId"] . " " . $arrCountrySecondName["$CountryId"] . ". Аренда " . $arrCottageRentTypeMnIdA["$TypeId"] . " " . $arrCountrySecondName["$CountryId"] . ". " . $arrCottageRentTypeMnAAAA["$TypeId"] . " " . $arrCountrySecondName["$CountryId"] . " в аренду";
$strKeywords = $arrCottageRentTypeMn["$TypeId"] . " " . $arrCountrySecondName["$CountryId"] . " " . $arrCountryName["$CountryId"];
}
}
// $TypeId нет
else {
// c $CottCityId
if (!empty($CottCityId) && is_numeric($CottCityId)) {
$strTitle = "Недвижимость " . $arrCountrySecondName["$CountryId"] . " " . $arrCitySecondName["$CottCityId"] . ". Виллы коттеджи дома квартиры " . $arrCitySecondName["$CottCityId"] ;
$strKeywords = $arrCountrySecondName["$CountryId"] . " " . $arrCountryName["$CountryId"] . " " . $arrCityName["$CottCityId"] . " " . $arrCitySecondName["$CottCityId"];
}
// без $CottCityId
else {
$strTitle = "Недвижимость " . $arrCountrySecondName["$CountryId"] . ". Аренда вилл коттеджей домов квартир " . $arrCountrySecondName["$CountryId"];
$strKeywords = $arrCountrySecondName["$CountryId"] . " " . $arrCountryName["$CountryId"];
}
}
}
else {
// $CountryId нет
if (!empty($TypeId) && is_numeric($TypeId)) {
$strTitle = "Аренда " . $arrCottageRentTypeMnIdA["$TypeId"] . ", аренда " . $arrCottageRentTypeMnPad["$TypeId"] . ". " . $arrCottageRentTypeMnA["$TypeId"] . " в аренду";
$strKeywords = $arrCottageRentTypeMn["$TypeId"];
}
else {
$strTitle = 'Аренда вилл, аренда домов, аренда коттеджей, аренда апартаментов, аренда квартир, аренда недвижимости';
$strKeywords = "виллы коттеджи дома квартиры апартаменты";
}
}
$strKeywords = $strKeywords . " аренда недвижимость в аренду";
$strDescription = 'Аренда в Европе - агентство недвижимости. Аренда и продажа недвижимости: виллы, коттеджи, дома, квартиры, апартаменты. ' . $strTitle;
// контент
/*
if ($arrQueryInfo['boolSearch'] != "1") {
if (eregi("^[0-9]+$", $TypeId) && ($TypeId > 0)) {
if ( $CountryId =="") {
$CountryId =="0";
}
$strWhere = "where CountryId = '" . $CountryId . "' and ingTipeCottage = '" . $TypeId . "' and boolStatus = '1'";
$sql = "select * from tblcontent $strWhere";
$resultContent = query ($sql);
if ( mysql_num_rows($resultContent) > 0 ) {
$rowContent = mysql_fetch_assoc ($resultContent);
}
}
} */
/*
//поиск по ID
if (!empty($arrQueryInfo['id_search'])) {
$id = $arrQueryInfo['id_search'];
if ( eregi("^[0-9]+$", $id) && ($id > 0) )
{
$sql = "select COUNT(*) from tblcottagerent, tblagency where tblcottagerent.id='" . $id . "' and tblagency.id=tblcottagerent.AgencyId and tblcottagerent.boolCottageStatus='1' and tblcottagerent.boolPrivateCatalog='0'";
$result = query($sql);
$row = mysql_fetch_row($result);
if ($row[0] == 1)
{
$Loc = "Location: /cottage_rent.php?id={$id}";
header($Loc);
}
}
}
$strTitle = getStrZag();
$strKeywords = $strTitle;
$strDescription = $strTitle;
$strAlt = $strTitle;
$findme = ' Аренда';
$pos1 = stripos($strTitle, $findme);
$strTitle2 = substr("$strTitle", 0, $pos1);
$CottCityId = $arrQueryInfo['CottCityId'];
if ( "" != $CottCityId ) {
$strTitle2 = $strTitle2 . " " . $arrCitySecondName[$CottCityId];
}
*/
include_once("./header.inc.php");
?>
" . $strTitle . "
";
} */
if (!empty($strWhere)) {
// Pagination
$lngRecordsPerPage = 8;
$lngPagesLimit = 11;
$sql = "select count(tblcottagerent.id) as count_id from tblcottagerent WHERE boolCottageStatus='1' $strWhere ";
$paginationInfo = getPaginationCatalog ($sql, "partner/ext_search.php", $lngRecordsPerPage, $lngPagesLimit, array("CountryId" => $arrQueryInfo['CountryId'], "TypeId" => $arrQueryInfo['TypeId'], "CottCityId"=>$arrQueryInfo['CottCityId'], "IngPool"=>$arrQueryInfo['IngPool'], "NoteId"=>$arrQueryInfo['NoteId']) );
//! Pagination
$sql = "SELECT * FROM tblcottagerent WHERE boolCottageStatus='1' $strWhere ORDER BY curCottagePrice ASC LIMIT $paginationInfo[lngStartLimit], $lngRecordsPerPage ";
$result = query($sql);
if ( (num_rows($result) == 0) || $arrQueryInfo['id_search'] ) {
$countrySql = "select * from tblcountries WHERE boolCountryStatus='1' ORDER BY lngViewPriority, strCountryName";
$countryResult = mysql_query ($countrySql, $db);
while ( $row = mysql_fetch_assoc($countryResult) )
{
$arrCountries[$row['id']] = $row;
}
if ( '' != $CountryId ) { ?>" . $strShortContent . "
";
} */
$i = 1;
while ( $row = fetch_array($result) ) {
if ($i%2 == 1) {
?>
}
?>
include ("../table.inc5.php");?>
|
if ($i%2 == 0) {
?>
}
$i++;
}
if ($i%2 == 0) {
?>
|
}
if ("
1 " != $paginationInfo["strPagination"]) { ?>
}
}
}
/*
if ( "" != $rowContent['strTitle'] ) {
$strTitle = nl2br($rowContent['strTitle']);
// $strTitle = ereg_replace ("&", "&", $strTitle);
$strTitle = ereg_replace ("/>", ">", $strTitle);
echo "
" . $strTitle . "
";
}
if ( "" != $rowContent['strShortContent'] ) {
$strShortContent = nl2br($rowContent['strShortContent']);
// $strShortContent = ereg_replace ("&", "&", $strShortContent);
$strShortContent = ereg_replace ("/>", ">", $strShortContent);
echo "
" . $strShortContent . "
";
}
if ( "" != $rowContent['strContent'] ) {
if ( $rowContent['boolUseJavaEditor'] == "0" ) {
$strContent = nl2br($rowContent['strContent']);
}
else {
$strContent = $rowContent['strContent'];
}
// $strContent = ereg_replace ("&", "&", $strContent);
$strContent = ereg_replace ("/>", ">", $strContent);
echo "
" . $strContent . "
";
}
*/
/*if ("" != $arrcontent2["$CountryId"]["$TypeId"] && "" == $arrQueryInfo['lngPage']) {
$strShortContent = nl2br($arrcontent2["$CountryId"]["$TypeId"]);
echo "
" . $strShortContent . "
";
}*/
/*
if (eregi("^[0-9]+$", $TypeId) && ($TypeId > 0)) {
if ( $CountryId =="") {
$CountryId =="0";
}
$strWhere = "where CountryId = '" . $CountryId . "' and ingTipeCottage = '" . $TypeId . "' and boolStatus = '1'";
$sql = "select * from tblcontent $strWhere";
$resultContent = query ($sql);
if ( mysql_num_rows($resultContent) > 0 ) {
$rowContent = mysql_fetch_assoc ($resultContent);
}
}
if ( "" != $rowContent['strShortContent'] ) {
$strShortContent = nl2br($rowContent['strShortContent']);
echo "
" . $strShortContent . "
";
} */
include_once("../footer.inc.php");
?>