"Sonntag", "Monday" => "Montag", "Tuesday" => "Dienstag", "Wednesday" => "Mittwoch", "Thursday" => "Donnerstag", "Friday" => "Freitag", "Saturday" => "Samstag"); #$text = '"; while ($j <= $ende){ if ($produktion[$j] != NULL){ $p=explode("|",$produktion[$j]); if (!$jahr || $p[2] == $jahr){ if ($p[1]){ $p[1] = "(". $p[1] .")"; } if ($p[2] <> $jahresvergleich){ if ($p[3] && $test[$p[0]] != true){ $jahresvergleich = $p[2]; $text .= "".$jahresvergleich . "". $p[0] . " " . $p[1]. "
"; $test[$p[0]] = true; } } else { if ($p[3] && $test[$p[0]] != true){ $text .= "          ".$p[0] . " " . $p[1]. "
"; $test[$p[0]] = true; } } } } $j++; } #$text .= "
'; $text = ""; $DB=new db_mysql; $date = zeit(); $result=$DB->sql_qry("SELECT * FROM $threadstable WHERE rubrikid='18' AND type='event' ORDER BY beginn"); $i = 0; if($result) : while($list=mysql_fetch_array($result)) { $titel=explode("(",$list["name"]); $titel[1] = substr($titel[1],0,strlen($titel[1])-1); $ort = explode(",",$list["event_loc"]); $url = $list["url"]; $dasjahr = date("Y",$list["beginn"]); $dasmonat = $monat[date("F",$list["beginn"])]; $dertag = $tag[date("l",$list["beginn"])]; $dasdatum = $titel[1].", ".$titel[0].", ".$dertag.date(", d. ",$list["beginn"]).$dasmonat.date(" Y, H:i",$list["beginn"])."h, ".$ort[0]; if ($jahr="*" && $dasjahr <= date("Y")-5) continue; else $produktion[$i] = $titel[0]."|".$titel[1]."|".$dasjahr."|".$url; $i++; } endif; $j = 0; $ende = $i; $jahresvergleich = "0000"; $produktion = array_unique($produktion); #$text .= "

Produktionen

"; echo "document.write('$text');"; ?>