1
Hallo Joerg,
ich habe ein problem mit der Anzeige der Umlaute auf meiner Seite. Habe alles eingebunden was nötig ist. Leider ist die Ausgabe immer noch miserabel :-(
Mein Code ist der folgende.
Könntest Du mir helfen ? Die live Seite ist hier :
https://www.mallorca-properties.co.uk/mallorca-immobilien-schnaeppchen/newest/
ich habe ein problem mit der Anzeige der Umlaute auf meiner Seite. Habe alles eingebunden was nötig ist. Leider ist die Ausgabe immer noch miserabel :-(
Mein Code ist der folgende.
Könntest Du mir helfen ? Die live Seite ist hier :
https://www.mallorca-properties.co.uk/mallorca-immobilien-schnaeppchen/newest/
<?php include("/home/mallorc1/public_html/includes/my-client-area/6m_globals.php");
ini_set('display_errors', 0);
session_start();
global $IN;
$propcity = 'palma';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<head>
<meta name="robots" content="noindex" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Mallorca Immobilien Schnäppchen - Stark Reduzierte Immobilien kaufen</title>
<meta name="description" content="llll➤ Große Auswahl an Schnäppchen Immobilien täglich aktualisiert auf ganz Mallorca ✅ Exklusive ✓ Fincas ✓ Villen ✓ Wohnungen ➤ mehr als 2000 Mallorca Immobilien, 8 Büros ➤ Hier Ansehen!" />
<link rel="stylesheet" type="text/css"
href="https://www.mallorca-properties.co.uk/mallorca-demo/new-site/css/style.css"/>
<link rel="stylesheet" type="text/css"
href="https://www.mallorca-properties.co.uk/mallorca-demo/new-site/css/mob-style.css"/>
<meta name="robots" content="index,follow,archive"/>
<script type="text/javascript" src="https://www.mallorca-properties.co.uk/js/jquery-1.7.1.js"></script>
<script type="text/javascript" src="/js/jquery.corners.min.js"></script>
<script type="text/javascript" src="/js/jquery.lightbox-0.5.min.js"></script>
<script type="text/javascript" src="/js/jquery.cycle.js"></script>
<script type="text/javascript" src="/js/swfobject.js"></script>
<link rel="stylesheet" type="text/css" href="http://www.mallorca-properties.co.uk//css/jquery.lightbox-0.5.css"
media="screen"/>
<script type="text/javascript" src="http://www.mallorca-properties.co.uk//js/scripts.js"></script>
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" media="all" href="http://www.mallorca-properties.co.uk//globals/iefixes"/>
<![endif]-->
</head>
<script type="text/javascript">
$(document).ready(function () {
$("#menu-icon").click(function () {
if ($('#menu-icon').hasClass('menu-normal')) {
$(".mobile-menu").slideDown("slow");
$("#menu-icon").addClass('menu-active');
$("#menu-icon").removeClass('menu-normal');
} else {
$(".mobile-menu").slideUp("slow");
$("#menu-icon").removeClass('menu-active');
$("#menu-icon").addClass('menu-normal');
}
});
$('li.no_click>a').click(function () {
return false;
});
$(".mobile-menu li").click(function () {
if ($(this).hasClass("dropoff")) {
$(this).addClass("dropon");
$(this).removeClass("dropoff")
$(this).find(".tog2").css("display", "block");
$(this).find(".tog1").css("display", "none");
} else {
$(this).addClass("dropoff");
$(this).removeClass("dropon");
$(this).find(".tog2").css("display", "none");
$(this).find(".tog1").css("display", "block");
}
});
});
</script>
<link rel="stylesheet" type="text/css" href="http://www.mallorca-properties.co.uk//css/jquery.lightbox-0.5.css"
media="screen"/>
<script type="text/javascript" src="http://www.mallorca-properties.co.uk//js/scripts.js"></script>
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" media="all" href="http://www.mallorca-properties.co.uk//globals/iefixes"/>
<![endif]-->
</head>
<body id="contentPage">
{embed="globals/_branding" language="de"}
<div id="main-container">
<div id="inner-container">
<div class="search-container">
<h1 class="search-results">Mallorca Immobilien Schnäppchen</h1>
<!-- <div class="top-section">
<div id="map-canvas">
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d786859.1893721538!2d2.349794232098287!3d39.61214478799177!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x1297b8766606c129%3A0xb7eb9bff02d2ecc0!2sMajorca!5e0!3m2!1sen!2suk!4v1484668364252" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>
</div>
<div class="search-section">
<h2>Property Search</h2>
<div class="search-form">
<form method="post" action="https://www.mallorca-properties.co.uk/results/en/">
<input type="hidden" name="order" value="property_price+asc" />
<input type="hidden" name="num" value="10" />
<input type="hidden" name="lfield16_keyword" value="standard" />
<ul>
<li><label for="property_city">City Search:</label>
<input type="text" aria-haspopup="true" aria-autocomplete="list" role="textbox" autocomplete="off" name="exact-property_city" class="property_city_autocomplete ui-autocomplete-input" id="property_city">
</li>
<li>
<label for="property_type">Type</label>
<select name="property_type[]" id="property_type" style="width:120px" class="search_box">
<option value="Villa">Villa</option>
<option value="Apartment">Apartment</option>
<option value="Villa">Villa</option>
<option value="Townhouse">Townhouse</option>
<option value="Apartment">Apartment</option>
<option value="Mansion">Mansion</option>
<option value="Land">Land</option>
<option value="Finca">Finca</option>
<option value="Country Hotel">Country Hotel</option>
</select>
</li>
<li>
<label for="property_type">Price selection</label>
<select name="property_price-from[]" id="property_type" class="search_box">
<option value="" selected="selected">Selection </option>
<option value="">All</option>
<option value="5000-200000"> < 200.000</option>
<option value="200000"> > 200.000 </option>
<option value="400000"> > 400.000</option>
<option value="600000"> > 600.000</option>
<option value="1000000"> > 1.000.000</option>
<option value="3000000"> > 3.000.000</option>
<option value="5000000"> > 5.000.000</option>
<option value="10000000"> >10.000.000 </option>
{/super_search_property_price-from == "array"}
{/super_search_property_price-to == "array"}
</select>
</li>
<li>
<input type="submit" class="searchButton" value="Search" />
</li>
</ul>
</form>
</div>
<div class="link">
<div id="partnerLinks" class="rounded boxDark" style="display:none">
<h3 class="partnerLinkIcon">Live Reduced Properties</h3>
<ul>
{exp:query sql="SELECT city as pc_city ,property_ref as pc_property_ref,property_type as pc_property_type,property_url as pc_property_url,property_price as pc_property_price,property_price_change,property_url_de as pc_property_url_de FROM property_price_changes where property_price_change<0 order by property_price_change ASC LIMIT 10 "}
<li><a href="{pc_property_url}">{pc_city} {pc_property_type} </a> {property_price_change} %</li>
{/exp:query}
</ul>
<br>
</div>
<br><br>
</div>
</div></div>
</div></div>-->
<div class="search-container property-in">
<div class="search-results-section">
{if no_results}
<link rel="stylesheet" type="text/css"
href="https://www.mallorca-properties.co.uk/mallorca-demo/new-site/css/style.css"/>
<script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/js/jquery.corners.min.js"></script>
<script type="text/javascript" src="/js/jquery.lightbox-0.5.min.js"></script>
<script type="text/javascript" src="/js/jquery.cycle.js"></script>
<script type="text/javascript" src="/js/swfobject.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('.pagination-links:last').wrap('<div class="paginationContainer">');
$('.searchTotalResults').clone().appendTo('.paginationContainer');
});
</script>
<link rel="stylesheet" type="text/css" href="http://www.mallorca-properties.co.uk//css/jquery.lightbox-0.5.css"
media="screen"/>
<script type="text/javascript" src="http://www.mallorca-properties.co.uk//js/scripts.js"></script>
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" media="all" href="http://www.mallorca-properties.co.uk//globals/iefixes"/>
<![endif]-->
</head>
<body id="contentPage">
<div class="container_16">
{embed="globals/_branding" language="en"}
<div class="grid_12" id="content">
<h1>Mallorca property for sale bargains</h1>
<!--p class="intro">The following Mallorca Villas are available</p-->
<h5>The following Mallorca Villas are available</h5>
{/if}
<div id="headerLinks"></div>
<!-- end #headerLinks -->
<div id="propertyin-stats">
<!--{seo_content}-->
<!-- {city_testimonial}-->
</div>
<div class="clear"></div>
<div id="searchResults">
<div class="search-sort">
{if segment_2 == "newest"}
<strong class='noLink' >Neueste zuerst</strong>
{if:else}
<form method="get" action="https://www.mallorca-properties.co.uk/{segment_1}/newest" style="display:inline">
<button type="submit" class="sortorderButton rounded"><span>Neueste zuerst</span></button>
</form>
{/if}
{if segment_2 == "cheapest"}
<strong class='noLink' style="color: white">Günstige zuerst</strong>
{if:else}
<form method="get" action="https://www.mallorca-properties.co.uk/{segment_1}/cheapest" style="display:inline">
<button type="submit" class="sortorderButton rounded"><span>Günstige zuerst </span></button>
</form>
{/if}
{if segment_2 == "expensive"}
<strong class='noLink' >Teuerste zuerst </strong>
{if:else}
<form method="get" action="https://www.mallorca-properties.co.uk/{segment_1}/expensive" style="display:inline">
<button type="submit" class="sortorderButton rounded"><span>Teuerste zuerst </span></button>
</form>
{/if}
{exp:query sql="SELECT COUNT(entry_id) AS property_price_changes_count
FROM property_price_changes
where property_price_changes.property_price_change <0 "}
<div class="prop-found">{property_price_changes_count} {mp_search-results_total-results_de}</div>
{/exp:query}
</div>
<br><br>
<div class="clear"><!-- IE FIX --></div>
<?php
if (isset($_SESSION['properties_saved'])) {
$myArray1 = explode('||', $_SESSION['properties_saved']);
} else {
$myArray1 = array();
}
?>
<?php
$segment_2_for_order = "{segment_2}";
// echo $segment_2_for_order ;
$order_by = null;
$order_by_type = 0;
switch ($segment_2_for_order) {
case "newest":
$order_by_type = 2 ;
$order_by = "order by property_price_changes.change_date DESC";
break;
case "cheapest":
$order_by_type = 3 ;
$order_by = "order by property_price_changes.property_price ASC";
break;
case "expensive":
$order_by_type = 4 ;
$order_by = "order by property_price_changes.property_price DESC";
break;
default:
$order_by_type = 1;
$order_by = "order by property_price_changes.property_price_change ASC";
}
?>
{exp:query sql="SELECT
properties.property_bedrooms as pc_property_bedrooms ,
properties.property_bathrooms as pc_property_bathrooms ,
properties.property_living_area as pc_property_living_area ,
SUBSTRING(properties.property_description_de,1, 200) as pc_property_description_de ,
property_price_changes.entry_id , property_price_changes.city as pc_city ,
property_price_changes.property_ref as pc_property_ref,
property_price_changes.property_type as pc_property_type,
property_price_changes.property_url as pc_property_url,
property_price_changes.property_price as pc_property_price,
property_price_changes.property_price_change,
property_price_changes.property_url_de as pc_property_url_de ,
property_price_changes.change_date as pc_changed_date
FROM property_price_changes
LEFT JOIN properties ON properties.property_ref = property_price_changes.property_ref
where property_price_changes.property_price_change <0
<?=$order_by?>
LIMIT 10"}
<div class="results-property clearfix rounded">
<div class="search-image">
<div class="resultsDetailImage">
{if property_featured == "y"}
<span class="imgPropResultsFeatured">Featured Property</span>
{/if}
{if property_bargain == "y"}
<span class="imgPropResultsFeatured1">Featured Property</span>
{/if}
{if property_heading-en!=""}
<a href="{pc_property_url_de}" rel="{entry_id}">
{if:else}
<a href="{pc_property_url_de}" rel="{entry_id}">
{/if}
{embed="embeds/results_thumbnails" entryID="{entry_id}" width="250" height="185"}</a>
<div class="extraImages" title="{entry_id}">
</div>
</div>
<!-- end #resultsDetailImage -->
</div>
<div class="results-search-details">
<h1>
{if property_heading-de!=""}
<a href="{pc_property_url_de}">{pc_property_type} {mp_search-results_term-for-sale-in_en}{property_city}
{pc_city}</a>
{if:else}
<a href="{pc_property_url_de}">{pc_property_type}{mp_search-results_term-for-sale-in_en} {pc_city}</a>
{/if}
<span>€{if pc_property_price == 0}POA{if:else}{exp:number_format number="{pc_property_price}" decimals="0" dec_point="." thousands_sep=","}{/if}</span>
</h1>
<h2>
</h2>
<h1 style="font-size: 14px;color: darkgrey">
Preisreduzierung am {pc_changed_date} <span style="color: red">{property_price_change} %</span>
</h1>
<ul>
<!-- <li>{mp_search-results_term-ref_{segment_2}}: {title}</li> -->
<!-- <li>{mp_search-results_term-type_{segment_2}}: {property_type}</li> -->
{if pc_property_bedrooms }
<img style="vertical-align:middle" src="/mallorca-demo/new-site/images/bed.png" alt="Schlafzimmer"
style="width:12px;height:12px;">
{pc_property_bedrooms}
{/if}
{if pc_property_bedrooms }
<img style="vertical-align:middle" src="/mallorca-demo/new-site/images/bath.png" alt="Badezimmer"
style="width:12px;height:12px;">
{pc_property_bedrooms}
{/if}
{if pc_property_living_area }
<img style="vertical-align:middle" src="/mallorca-demo/new-site/images/appart.png" alt="qm"
style="width:12px;height:12px;">
{pc_property_living_area} qm
{/if}
</b>
<?php $property_area = '{property_area}';
?>
</ul>
{if pc_property_living_area }
<p>{pc_property_description_de} ....</p>
{/if}
<div class="detail-button">
{if property_heading-en!=""}
<?php $property_title = '{title}' . ""; ?>
<a href="{pc_property_url_de}" multiple="yes"} class="rounded
button">{mp_search-results_term-fulldetails_de}</a>
<!-- <a id="button_save_<?php /*echo $property_title;*/ ?>" class="save_button" rel="{title}" target="_blank" onclick="button_save(this.rel,this.id)" href="#top">save</a><span id='s_button_save_<?php /*echo $property_title;*/ ?>'></span>
<a id='v_button_save_<?php /*echo $property_title;*/ ?>' href="https://www.mallorca-properties.co.uk/index.php/account/myproperty/en" class="viewd-property" style="display:none">View Property</a>
--> {if:else}
<?php $property_title = '{title}' . ""; ?>
<a href="{pc_property_url_de}" multiple="yes" class="rounded button">{mp_search-results_term-fulldetails_de}</a>
<!-- <a id="button_save_<?php /*echo $property_title;*/ ?>" class="save_button" rel="{title}" target="_blank" onclick="button_save(this.rel,this.id)" href="#top">save</a><span id='s_button_save_<?php /*echo $property_title;*/ ?>'></span>
<a id='v_button_save_<?php /*echo $property_title;*/ ?>' href="https://www.mallorca-properties.co.uk/index.php/account/myproperty/en" class="viewd-property" style="display:none">View Property</a>
--> {/if}
</div>
</div>
<!-- end #resultsDetail -->
</div>
<!-- end .results-property -->
{/exp:query}
{exp:query sql="SELECT COUNT(entry_id) AS property_price_changes_count
FROM property_price_changes
where property_price_changes.property_price_change <0 "}
{if property_price_changes_count > 10 }
<div class="results-buttons wire-buttons">
<div class="button more-results-button">Mehr Immobilien (+10)</div>
<input type="hidden" value="0" id="pagination_counter" data-pagination-offset="10"/>
</div>
{/if}
{/exp:query}
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp"></script>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script src="https://www.mallorca-properties.co.uk/mallorca-demo/new-site/js/cityarrays.js"></script>
</div>
<!-- end #searchResults -->
</div>
</div>
<!-- end .container_16 -->
</div>
</div>
<script>
function button_save(rel, id) {
$("#s_" + id).css("background", "url('https://www.mallorca-properties.co.uk/mallorca-demo/new-site/images/loader.gif')");
//document.getElementById(id).style.backgroundImage = "url('https://www.mallorca-properties.co.uk/mallorca-demo/new-site/images/loader.gif')";
event.preventDefault();
var url1 = 'https://www.mallorca-properties.co.uk/mallorca-demo/index.php/account?temp_save=' + rel;
$.ajax({
url: url1,
type: 'GET',
//data: JSON.stringify({temp_save:rel+""}),
contentType: false,
processData: false,
success: function (returndata) {
var res = returndata.split("||");
document.getElementById(id).innerHTML = "Saved";
$("#s_" + id).css("background", "none");
$("#u_" + id).css("display", "block");
$("#v_" + id).css("display", "block");
$(".user-img").css("display", "none");
$(".alert-img").css("display", "block");
$("#counter").text(((res.length) - 1) + "");
$("#" + id).off("click");
}
});
return false;
}
</script>
<script type="text/javascript">
$(document).ready(function () {
$('#property_price-from').change(function () {
$('#pricefilter').submit();
});
});
//load More start
$('.more-results-button').bind("click", function (event) {
var count = $("#searchResults").find(".results-property").length;
var ctn = parseInt(count + 5);
if ($('.more-results-button').hasClass('more-data')) {
return false;
}
else {
$('.more-results-button').addClass('more-data');
var pagination_offset = $('#pagination_counter').data('pagination-offset');
var curr_url = window.location.href.split('/');
// var param = 'channel=properties&num=10&keywords=reduced+bank-reposesion+bargain+KSP00673+OPPORTUNITY&orderby=entry_date+desc+title+asc&exact-property_classs';
//var url = "{site_url}property-in/property-result-data/"+"{segment_1}/"+param+"/"+count;
var param = '/' + pagination_offset + '/<?=$order_by?>/';
var url = "https://www.mallorca-properties.co.uk/mallorca-immobilien-schnaeppchen/price_change_ajax" + param;
$.ajax({
type: "POST",
dataType: "html",
url: url,
beforeSend: function () {
$(".more-results-button").addClass('loading');
},
success: function (data) {
$(".more-results-button").removeClass('loading');
var $result = $(data);
$result.insertBefore('.results-buttons');
$('#pagination_counter').data('pagination-offset', pagination_offset + 10);
$(".loading-bunny").hide();
var no_more = $result.find(".nomore");
$(".more-results-button").removeClass('more-data');
if ($('.nomore').length > 0) {
$('.more-results-button').hide();
}
return ctn += 10;
},
error: function () {
alert("no more");
},
complete: function () {
}
});
}
});
//load More end
</script>
</div>
<!--
{embed="embeds/seo_rating" language="en"}
--!>
<div class="home-news-widgets">
<div id="inner-container">
<!--
<span>NEWS AND REVIEWS</span>
{if segment_1=="de"}
{embed="embeds/news-widget" language="de"}
{if:else}
{embed="embeds/news-widget" language="en"}
{/if}
</div>
</div>
</div>
{embed="globals/_footer" language="de"}
<div>
</body>
</html>