$count = $_GET['count']; $start = $_GET['start']; if (!$start) $start = 0; if ($count) $count = $count + $start; include ("ctracker.php"); require_once("config.php"); require_once("inc/mysql.php"); require_once("init.inc.odyssee.php"); #require_once("function.php"); #global $monat, $tag; $monat["January"] = "Jänner"; $monat["February"] = "Februar"; $monat["March"] = "März"; $monat["April"] = "April"; $monat["May"] = "Mai"; $monat["June"] = "Juni"; $monat["July"] = "Juli"; $monat["August"] = "August"; $monat["September"] = "September"; $monat["October"] = "Oktober"; $monat["November"] = "November"; $monat["December"] = "Dezember"; $tag = array ("Sunday" => "Sonntag", "Monday" => "Montag", "Tuesday" => "Dienstag", "Wednesday" => "Mittwoch", "Thursday" => "Donnerstag", "Friday" => "Freitag", "Saturday" => "Samstag"); echo "
"; #echo "
"; for ($i=0; $i <= 2; $i++){ echo "
"; tabelle(); if ($i < 2) echo "
"; } echo "
"; function tabelle () { global $threadstable, $monat, $tag, $count, $start; $j=0; $DB=new db_mysql; $date = zeit(); $result=$DB->sql_qry("SELECT * FROM $threadstable WHERE rubrikid='18' AND type='event' AND beginn >= ".$date." ORDER BY beginn"); if($result) : $text = "
ODYSSEE
THEATER
"; $text .= "
Programmvorschau
"; $terminvergleich = ""; while($list=mysql_fetch_array($result)) { if ($count && $j >= $count) break; if ($j >= $start){ if ($terminvergleich != $list["name"] || $ortvergleich != $list["event_loc"]): $text .= "
".$spielort."
"; $ortvergleich = $list["event_loc"]; endif; $titel=explode("(",$list["name"]); $titel[1] = substr($titel[1],0,strlen($titel[1])-1); $ort = explode(",",$list["event_loc"]); $spielort = $list["event_loc"]; $dasmonat = $monat[date("F",$list["beginn"])]; $dertag = $tag[date("l",$list["beginn"])]; $dasdatum = $titel[1].", ".$titel[0].", ".$dertag.date(", j. ",$list["beginn"]).$dasmonat.date(" Y, H:i",$list["beginn"])."h
".$spielort; if ($terminvergleich != $list["name"]): $terminvergleich = $list["name"]; $text .= "
$titel[1]
"; $text .= "
$titel[0]
"; $text .= "
".$dertag.date(", j. ",$list["beginn"]).$dasmonat.date(" Y, H:i",$list["beginn"])." h
"; else: $text .= "
".$dertag.date(", j. ",$list["beginn"]).$dasmonat.date(" Y, H:i",$list["beginn"])." h
"; endif; } $j++; } $text .= "
".$spielort."
"; echo $text; #endif; echo "
Kartenreservierung
:
Tel.: 01/86 59 103 oder 0676 9 414 616
Online: http://tickets.odysseetheater.com
"; #echo "
Musisches Zentrum Wien
8, Zeltgasse 7
"; echo "
Änderungen vorbehalten!
"; #echo "
Aktuelle Infos unter 0676 9 414 616 oder auf
"; echo "
www.odysseetheater.com
"; endif; } ?>