# mit der Variablen $count wird die Anzahl der angezeigten Termine angegeben # ist $count nicht definiert, werden alle Termine angezeigt # ist $jahr definiert, wird nur das entsprechende Jahr angezeigt $count = $_GET['count']; $jahr = $_GET['jahr']; include ("ctracker.php"); require_once("config.php"); require_once("inc/mysql.php"); require_once("init.inc.odyssee.php"); #require_once("function.php"); $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"); $text=""; $i=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 = "
"; $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"]; $url = "http://www.odysseetheater.com/produktionen.htm"; if ($list["url"] <> "") $url = $list["url"]; $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, ".$ort[0]; if ($terminvergleich != $list["name"]): $terminvergleich = $list["name"]; $text .= " ".$titel[0]." (".$titel[1].") "; $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; $i++; } } $text .= "".$spielort." "; $text .= " |