hlavny subor charset utf-8
tento subor je ulozeny v ANSI - hlavny subor pre zobrazenie
v nom mam funckiu
Kód:
function leftMenuAdmin(button){
$(document).ready(function() {
removeAlert();
switch(button){
case 'pobyty' : $("#menu ul:visible").slideUp(200);
$("#menu li.active").removeClass();
$("#pobyty").addClass('active');
showLoading();
$("#tabs").hide();
$("#taby").load("site.php/tabs #tabs_pobyty");
$("#output").load("site/pobyty.php");
$("#tabs").fadeIn("fast");
hideLoading();
break;
case '':
case '': atd.....
}
});
}
dalsi subor pobyty.php
ulozeny utf-8
Kód:
<table cellspacing="0">
<thead>
<tr id="filter">
<th>
<a class="order order_D" href="#" title="Zoradiť podľa: ID"></a>
<div id="1" style="cursor:pointer;" title="Zobraziť filter pre: ID">Nr.</div>
</th>
<th>
<a class="order order_D" href="#" title="Zoradiť podľa: Meno užívatela"></a>
<div id="2" style="cursor:pointer;" title="Zobraziť filter pre: Meno užívatela">Name</div>
</th>
<th>
<a class="order order_D" href="#" title="Zoradiť podľa: Číslo faktúry"></a>
<div id="3" style="cursor:pointer;" title="Zobraziť filter pre: Číslo faktúry">ID</div>
</th>
<th>
<a class="order order_D" href="#" title="Zoradiť podľa: Variabilný symbol"></a>
<div id="4" style="cursor:pointer;" title="Zobraziť filter pre: Variabilný symbol">Hotel</div>
</th>
<th>
<a class="order order_D" href="#" title="Zoradiť podľa: Dátum vystavenia"></a>
<div id="5" style="cursor:pointer;" title="Zobraziť filter pre: Dátum vystavenia">Date of start/end</div>
</th>
<th>Days</th>
<th>Coupon [€]</th>
<th>Price [€]</th>
<th>Actions</th>
</tr>
</thead>
</table>
a tie slova ktore su tam teraz "natvrdo" potrebujem vypisovat v jazykoch takze na zaciatok by som mal dat
Kód:
session_start();
switch($_SESSION['lang']){
case 'sk': include('langs/sk.php');
break;
case 'en': include('langs/en.php');
break;
}
a vypis npriklad echo $lang['meno']...a podobne
a ten include jazyka mi tam hodi cisty riadok preco?