//mostra calendario dispo camere include("config.php"); $obj=new sast1com(); $obj->connessione(); $month=$_GET['month']; $year=$_GET['year']; $linguai=$_SESSION['linguai']; $id=$_GET['id']; if(strlen($linguai)>0)include("lingue/$linguai.php"); else {include("lingue/it.php"); $linguai="it"; } ?> if($linguai=="it")$monthNames = Array("Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno","Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre"); if($linguai=="en")$monthNames=Array("January","February","March","April","May","June","July","August","September","October","November","December"); if($linguai=="fr")$monthNames=Array("Janvier","Fevrier","Mars","Avril","Mar","Juin","Juillet","Aout","Septembre","Octobre","Novembre","Decembre"); if($linguai=="es")$monthNames=Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"); if($linguai=="de")$monthNames=Array("Januar","Februar","Marz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"); if (!isset($_GET["month"])) $_GET["month"] = date("m"); if (!isset($_GET["year"])) $_GET["year"] = date("Y"); $cMonth = $_GET["month"]; $cYear = $_GET["year"]; $prev_year = $cYear; $next_year = $cYear; $prev_month = $cMonth-1; $next_month = $cMonth+1; if ($prev_month == 0 ) { $prev_month = 12; $prev_year = $cYear - 1; } if ($next_month == 13 ) { $next_month = 1; $next_year = $cYear + 1; } ?>
|