$strFileName = "cotage_rent.php";
include_once("./common.inc.php");
$id = getParam("id");
$boolExists = 0;
if (preg_match("/^[0-9]+$/i", $id) && ($id > 0)) {
$sql = "select * from tblcottagerent where id='" . $id . "'";
$result = query($sql);
if ( mysql_num_rows($result) == "" ) {
header("Location: https://www.apartment.su/ext_search.php?boolSearch=1&lngPriceTo=100000");
exit;
}
if ( $row = fetch_array($result) ) {
$arrCottageRentNote[$row["NoteId"]];
setCityId ($row["CityId"]);
$lngCottageType = $row["lngCottageType"];
$boolExists = 1;
}
}
else {
header("Location: https://www.apartment.su/");
exit;
}
if (!$boolExists) {
$strTitle .= "АРЕНДА ВИЛЛ, КОТТЕДЖЕЙ И АПАРТАМЕНТОВ В ЕВРОПЕ";
}
$arrOrderRentType = array();
if ($id%2 == 1) {
$strTitleA = $arrCottageRentTypeA[$row["TypeId"]] . " " . $arrCountrySecondName[$row["CountryId"]] . " " . $arrCitySecondName[$row["LocationId"]];
$strTitlea = $arrCottageRentType[$row["TypeId"]] . " " . $arrCountryRentType[$row["CountryId"]] . " " . $row["strCottageLocation"];
$strTitleAA = $arrCountryRentTypeId[$row["CountryId"]] . " " . "аренда" . " " . $arrCottageRentTypeMnId[$row["TypeId"]] . " | " . $arrCountryRentTypeId[$row["CountryId"]] . " " . $arrCottageRentTypeMn[$row["TypeId"]];
$strTitleaa = $arrCountryRentTypeId[$row["CountryId"]] . " " . "аренда" . " " . $arrCottageRentTypeMnId[$row["TypeId"]] . " " . $row["strCottageLocation"];
$strTitle = $strTitleA . " | " . $strTitleAA;
}
else {
$strTitleA = $arrCountryRentTypeId[$row["CountryId"]] . " " . $row["strCottageLocation"] . " " . "аренда" . " " . $arrCottageRentTypeId[$row["TypeId"]];
$strTitlea = $arrCountryRentTypeId[$row["CountryId"]] . " " . $row["strCottageLocation"] . " " . "аренда" . " " . $arrCottageRentTypeId[$row["TypeId"]];
$strTitleAA = $arrCottageRentTypeMnA[$row["TypeId"]] . " " . $arrCountryRentType[$row["CountryId"]];
$strTitleAAA = $arrCountryRentTypeId[$row["CountryId"]] . " " . $arrCottageRentTypeMn[$row["TypeId"]];
$strTitleaa = $arrCottageRentTypeMn[$row["TypeId"]] . " " . $arrCountryRentType[$row["CountryId"]] . " " . $row["strCottageLocation"];
$strTitle = $strTitleAA . " | " . $strTitleA . " | " . $strTitleAAA;
}
include_once("./alt.php");
if ( $boolExists ) {
?>
echo $arrCottageRentTypeSea[$row["TypeId"]] . " " . $arrCountrySecondName[$row["CountryId"]] . " " . $arrCitySecondName[$row["LocationId"]] . " | ID: " . $row['strPropositionId'];?> |
 |
$sql1 = "SELECT * from tblobjectimages where ObjectId = '" . $row['id'] . "' and strObjectType = 'cottage_rent' ";
$result1 = query ($sql1);
while ( $row1 = mysql_fetch_assoc($result1))
{
$arrAdditionalImages[$row1['id']] = $row1;
}
$boolContinue = 1;
while ($boolContinue)
{
list($lngImageId, $arrImageProperties) = each($arrAdditionalImages);
if ($arrImageProperties['strObjectImage'] != "")
{ ?>
}
else { $boolContinue = 0;}
}
?>
|
}
?>