$strFileName = "cotage_rent.php"; include_once("./common.inc.php"); $action = getParam("action"); $id = getParam("id"); $strIp = getenv("REMOTE_ADDR"); /*$elementInfo["WeekRent"] = getParam("WeekRent"); $elementInfo["lngOrderWeekRent"] = getParam("lngOrderWeekRent"); $elementInfo["totalCost"] = getParam("totalCost"); $elementInfo["boolTotalCost"] = getParam("boolTotalCost"); $elementInfo["CountryId"] = getParam("CountryId");*/ if ( $action == "plus" ) { $date = date("d"); if ( "" != $ingSessionId && "" != $id ) { $sql = "select * from tblsession where ingSessionid='" . $ingSessionId . "' and ingid='" . $id . "'"; $result = query($sql); if ( num_rows($result) == 0 ) { $sql = "insert into tblsession (strip,ingSessionid,ingid,dtetoday) values ('$strIp','$ingSessionId','$id','$date');"; query ($sql); } } header("Location: $strFileName?id=$id"); exit; } if ( $action == "minus" ) { if ( "" != $ingSessionId && "" != $id ) { $sql = "delete from tblsession where ingSessionid='" . $ingSessionId . "' and ingid='" . $id . "'"; query($sql); } header("Location: $strFileName?id=$id"); exit; } if (preg_match("/^[0-9]+$/i", $id) && ($id > 0)) { $sql = "select tblcottagerent.*, tblagency.CityId from tblcottagerent, tblagency where tblcottagerent.id='" . $id . "' and tblagency.id=tblcottagerent.AgencyId and tblcottagerent.boolCottageStatus='1'"; $result = query($sql); if ( $row = fetch_array($result) ) { $arrCottageRentNote[$row["NoteId"]]; setCityId ($row["CityId"]); $lngCottageType = $row["lngCottageType"]; } else { $sql = "select tblcottagerent.CountryId, tblcottagerent.TypeId from tblcottagerent where tblcottagerent.id='" . $id . "' and tblcottagerent.boolCottageStatus='0'"; $result = query($sql); if ( $row = fetch_array($result) ) { header("Location: /ext_search.php?CountryId=$row[CountryId]&TypeId=$row[TypeId]"); exit; } else { header("Location: https://www.apartment.su/"); exit; } } countPlus('tblcottagerent', $id, $row["lngCounter"], $row["lngCounterDay"]); //include_once("./count_cott.php"); } else { header("Location: https://www.apartment.su/"); exit; } // 1 раз тайтл // вилла в италии $arrCottageRentTypeSea[$row["TypeId"]] . " " . $arrCountrySecondName[$row["CountryId"]] $strTitle = $arrCottageRentTypeSea[$row["TypeId"]] . " " . $arrCountrySecondName[$row["CountryId"]] . ", " . $arrCottageRentTypeSearch[$row["TypeId"]] . " " . $arrCitySecondName[$row["LocationId"]] . ", " . $arrCottageRentTypeSearch[$row["TypeId"]] . " " . $arrCottageRentNote[$row["NoteId"]]; // 1 раз первый h1 и под банером $strTit = "Аренда " . $arrCottageRentTypeIdD[$row["TypeId"]] . " " . $arrCitySecondName[$row["LocationId"]] . ", " . $arrCottageRentTypeSearch[$row["TypeId"]] . " " . $arrCountrySecondName[$row["CountryId"]] . ", " . $arrCottageRentTypeSearch[$row["TypeId"]] . " " . $arrCottageRentNote[$row["NoteId"]]; // 1 раз под банером $strTit2 = "Аренда " . $arrCottageRentTypeIdD[$row["TypeId"]] . " " . $arrCitySecondName[$row["LocationId"]] . ", " . $arrCottageRentTypeSearch[$row["TypeId"]] . " " . $arrCottageRentNote[$row["NoteId"]]; // 2 раза дискрипшн и второй h1 $strTitleA = "Аренда " . $arrCountrySecondName[$row["CountryId"]] . " " . $arrCottageRentTypeIdD[$row["TypeId"]] . " " . $arrCottageRentNote[$row["NoteId"]] . " id: " . $id; // 1 раз объект $strTitleB = "Аренда " . $arrCottageRentTypeIdD[$row["TypeId"]] . " " . $arrCountrySecondName[$row["CountryId"]]; // 1 раз расположение $strTitleC = $arrCottageRentTypeSearch[$row["TypeId"]] . " " . $arrCottageRentNote[$row["NoteId"]]; // фото (около 10) $strAlt = $arrCottageRentTypeAAAA[$row["TypeId"]] . " " . $arrCountrySecondName[$row["CountryId"]] . " " . $arrCitySecondName[$row["LocationId"]] . " " . $arrCottageRentNote[$row["NoteId"]] . " id: " . $id; $strKeywords = $arrCountrySecondName[$row["CountryId"]] . " " . $arrCountryName[$row["CountryId"]] . " " . $arrCitySecondName[$row["LocationId"]] . " " . $arrCityName[$row["LocationId"]] . " " . $arrCottageRentTypeSearch[$row["TypeId"]]; $strDescription = $strTitleA . " | Агентство недвижимости «Аренда в Европе»"; $CountryId = $row["CountryId"]; include_once("./header.inc.php"); ?>
![]() |
© Rent in Europe 2005 - 2025. All Rights Reserved. | Registered in Italy IM138072 Аренда вилл, шале, домов и апартаментов в Европе order@apartment.su | villamania@virgilio.it Via Carli,4, 18038, Sanremo (IM), Italy, время работы: 10:00-19:00, Tel.: +39 345 991-62-73
7 Rue du Parc des Lices 4, 83990, Saint-Tropez, France, время работы: 10:00-19:00, Tel.: +33 679 85-54-61
|
|