"; //echo $freitag . "
"; //echo date('D', $montag) . "
"; //echo date('D', $freitag) . "
"; if (isset($_GET["nino"]) && isset($_GET["timestamp"])) { $timestamp_wochenkarte = trim($_GET["timestamp"]); } else { $timestamp_wochenkarte = $montag; } require ("inc/db.inc.php"); $db = mysql_connect($dbserver,$dbuser,$dbpass); mysql_select_db($dbname); $result = mysql_query("SELECT * FROM " . $tbl_wochenkarte . " WHERE timestamp = '" . $timestamp_wochenkarte . "'"); if ( mysql_num_rows($result) == 1 ) { $wochenkarte = mysql_fetch_array($result); $gerichte_reihenfolge = explode(",", $wochenkarte["gerichte_ids"]); if ( $wochenkarte["extras"] != "" ) { $wochenkarte_extras = explode("|", $wochenkarte["extras"]); $anz_specials = count($wochenkarte_extras); for ( $i=0; $i < $anz_specials; $i++ ) { $wochenkarte_extras[$i] = explode(";", $wochenkarte_extras[$i]); } } } else { $output_txt = $text[$lang]["wk_nodata"]; } // Gerichte laden $result = mysql_query("SELECT * FROM " . $tbl_gerichte . " ORDER BY id"); while ( $data = mysql_fetch_array($result) ) { $gerichte[$data["id"]]['id'] = $data["id"]; $gerichte[$data["id"]]['name'] = htmlspecialchars(stripslashes($data["name"]), ENT_QUOTES); $gerichte[$data["id"]]['zusatz'] = htmlspecialchars(stripslashes($data["zusatz"]), ENT_QUOTES); if ($data["preis"] != "") { $gerichte[$data["id"]]['preis'] = number_format($data["preis"], 2, ",", ""); } } mysql_close($db); ?> "> " /> <? echo "Wochenkarte" . $page_title_separator . $page_maintitle; ?>
Wochenkarte

\n"; echo "\n"; echo "\n"; echo "\n"; } ?>
\n" . $gerichte[$gerichte_reihenfolge[$i]]['name']; if ( $gerichte[$gerichte_reihenfolge[$i]]['zusatz'] != "" ) { echo "
\n"; echo "" . $gerichte[$gerichte_reihenfolge[$i]]['zusatz'] . "\n"; } echo "
€ " . $gerichte[$gerichte_reihenfolge[$i]]['preis'] . "
\n"; echo "\n"; if ( $anz_specials == 2 ) echo "\n"; echo "\n"; echo "\n"; echo "\n"; if ( $anz_specials == 2 ) echo "\n"; echo "\n"; ?>
" . htmlspecialchars(stripslashes($wochenkarte_extras[0][0]), ENT_QUOTES) . "" . htmlspecialchars(stripslashes($wochenkarte_extras[1][0]), ENT_QUOTES) . "
" . nl2br(htmlspecialchars(stripslashes($wochenkarte_extras[0][1]), ENT_QUOTES)) . "" . nl2br(htmlspecialchars(stripslashes($wochenkarte_extras[1][1]), ENT_QUOTES)) . "

zurück