"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 = "
"; $terminvergleich = ""; $jahresvergleich = ""; $ortvergleich=""; $hoehe = 0; while($list=mysql_fetch_array($result)) { if (!$jahr || $jahr == date("Y",$list["beginn"])){ if (($count && $i >= $count) || $hoehe >= 1100 ) break; if ($location && !stristr($list['event_loc'],$location)) continue; if ($i >= $start){ if ($terminvergleich != $list["name"] || $ortvergleich != $list["event_loc"]): $text .= "".$spielort."
"; $ortvergleich = $list["event_loc"]; $hoehe = $hoehe + 30; 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 ($jahresvergleich != date("Y",$list["beginn"])){ $jahresvergleich = date("Y",$list["beginn"]); $text .= "
".$jahresvergleich."
"; $hoehe = $hoehe + 30; } 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
"; $hoehe = $hoehe + 55; else: $text .= "".$dertag.date(", j. ",$list["beginn"]).$dasmonat.date(" Y, H:i",$list["beginn"])." h
"; $hoehe = $hoehe + 32; endif; } $i++; } } $text .= "".$spielort."
"; $text .= "
"; #echo "document.write('$text');"; echo $text; # Druckerauswahl aufrufen #echo ''; endif; ?>