Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
das werde ich mir morgen anschauen, heute gerade wenig Zeit - aber vielen Dank!Der warenkorb funktioniert soweit noch nur müsste halt beim Anzeigen aus die ID wieder der Name werden und vom preis array der zweite teil da rann das man sieht (normal, gross, famely). Aber dafür jetzt keine zeit.
<?php
#error_reporting(-1); // -1 = alle Bits gesetzt, alle Fehler anzeigen
session_start();
?>
<!DOCtypeE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Pizza da Mamma</title>
<meta http-equiv="Content-typee" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" typee="text/css" href="../css/style.css" />
</head>
<body>
<div id="header">
<img src="../images/logo/171x37.png" alt="" width="171" height="37" />
<div class="small">
<a href="../index.html"><img src="../images/small1.gif" alt="" width="13" height="13" /></a>
<a href="../html/überuns.html"><img src="../images/small2.gif" alt="" width="16" height="13" /></a>
<a href="mailto:[email protected]"><img src="../images/small3.gif" alt="" width="16" height="13" /></a>
</div>
</div>
<div class="menu">
<img src="../images/lefttop.png" alt="" width="37" height="56" />
<ul>
<li><a href="../index.html" ><img src="../images/but1.gif.png" alt="" onmouseover="this.src='../images/but1_hover.gif.png';" onmouseout="this.src='../images/but1.gif.png'" width="109" height="30" /></a></li>
<li><a href="../html/überuns.html"><img src="../images/but2.gif.png" alt="" onmouseover="this.src='../images/but2_hover.gif.png';" onmouseout="this.src='../images/but2.gif.png'" width="109" height="30" /></a></li>
<li><a href="../html/sortiment.html"><img src="../images/but3.gif.png" alt="" onmouseover="this.src='../images/but3_hover.gif.png';" onmouseout="this.src='../images/but3.gif.png'" width="109" height="30" /></a></li>
<li><a href="bestellung.php"><img src="../images/but5_active.png" alt="" onmouseover="this.src='../images/but5_hover.png';" onmouseout="this.src='../images/but5_active.png'" width="109" height="30" /></a></li>
<li><a href="../html/standort.html"><img src="../images/but4.gif.png" alt="" onmouseover="this.src='../images/but4_hover.gif.png';" onmouseout="this.src='../images/but4.gif.png'" width="108" height="30" /></a></li>
</ul>
</div>
<div id="phpcontent"><br><br>
<div id="notizen">
<?
/*
karte.txt
1;Pizza Margerita;pizza;8.50,9.30;(klein),(gross)
2;Pizza Schinken;pizza;6.25,11.90;(klein),(gross)
3;Calzone del'fungie;pizza;7.65,8.97;(klein),(gross)
4;Pizza Salami;pizza;8.00,12.23;(klein),(gross)
*/
$karte_array = array();
$zeilen = file ("karte.txt");
foreach ($zeilen as $zeile) {
list($id,$name,$gruppe,$preis,$einheit) = explode(";", $zeile);
$preis_array=explode(",", $preis);
$preisanzahl=count($preis_array);
$einheit_array=explode(",", $einheit);
$karte_array[$id]=$name;
# in SESSION speichern nach Senden
if(isset($_POST[$id."_notizen"]) && $_POST[$id."_notizen"]!=""){
$_SESSION["KORB"][$id."_".time()] = $_POST[$id."_notizen"];
$_SESSION["KORB_preis"][$id."_".time()] = $_POST[$id."_preis"];
}
$outputradio="";
if($preisanzahl == "1"){
$outputradio="<input type='radio' name='".$id."_preis' value='".$preis."'>".$preis." ".$einheit."<br>";
}else{
for($i=0; $i < count($preis_array);$i++){
$outputradio.="<input type='radio' name='".$id."_preis' value='".$preis_array[$i]."|".$einheit_array[$i]."'>".$preis_array[$i]." ".$einheit_array[$i]."<br>";
}
}
echo '<form action="#" method="post" name="form">';
echo "".$id.". ".$name."<br>";
#echo $name.' ('.$preis.' CHF) zur Bestellung hinzufügen<br>';
echo '<input type="text" style="border:1px solid black; width:20px" maxlength="2" name="'.$id.'_notizen" value=""><br>';
echo $outputradio;
#echo '<input type="radio" name="'.$id.'_preis" value="11">1';
#echo '<input type="radio" name="'.$id.'_preis" value="22">2';
echo ' <input type="submit" class="formbutton" style="width:180px" value="Anzahl speichern"></form> ';
}
?>
</div>
<div id="notizen_anzeigen">
<center><b>DEIN WARENKORB</b><br /></center><br>
<?php
# unset($_SESSION["KORB"]);
if(isset($_SESSION["KORB"])){
echo "<small>";
# alle Daten aus SESSION Anzeigen
ksort ($_SESSION["KORB"]);
ksort ($_SESSION["KORB_preis"]);
$preisges="";
foreach($_SESSION["KORB"] as $key => $value){
list($PREIS,$EINHEIT) = explode("|", $_SESSION['KORB_preis'][$key]);
$preis =($value*$PREIS);
echo
$karte_array[trim(preg_replace('/_[\d]*$/', ' ', $key))]."
".$EINHEIT
#$key
.": ".$value." x ".$PREIS." = ".number_format($preis, 2, '.', '');
echo "<br>";
$preisges+=$preis;
}
echo "<br>";
echo "<hr />";
echo "Total: ".number_format($preisges, 2, '.', '')." CHF</small>";
}else{
echo "Dein Warenkorb ist leer<br>";
}
?>
<br><br><center>
<form action="#" method="post" name="form">
<input type="submit" class="formbutton" value="Anfrage erstellen zum Formular" /></form><br /></center>
</div>
</div>
<div id="footer">
© 2010 Pizza da Mamma. All rights reserved
</div>
<map name="Map" id="Map">
<area shape="rect" coords="110,2,128,63" href="#" />
</map>
<map name="Map2" id="Map2">
<area shape="rect" coords="109,1,126,65" href="#" />
</map>
<map name="Map3" id="Map3">
<area shape="rect" coords="111,2,127,67" href="#" />
</map>
<map name="Map4" id="Map4">
<area shape="rect" coords="112,0,128,64" href="#" />
</map>
<?php
#print_r($_SESSION);
?>
</body>
</html>
<?php
#error_reporting(-1); // -1 = alle Bits gesetzt, alle Fehler anzeigen
session_start();
?>
<!DOCtypeE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Pizza da Mamma</title>
<meta http-equiv="Content-typee" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" typee="text/css" href="../css/style.css" />
</head>
<body>
<div id="header">
<img src="../images/logo/171x37.png" alt="" width="171" height="37" />
<div class="small">
<a href="../index.html"><img src="../images/small1.gif" alt="" width="13" height="13" /></a>
<a href="../html/überuns.html"><img src="../images/small2.gif" alt="" width="16" height="13" /></a>
<a href="mailto:[email protected]"><img src="../images/small3.gif" alt="" width="16" height="13" /></a>
</div>
</div>
<div class="menu">
<img src="../images/lefttop.png" alt="" width="37" height="56" />
<ul>
<li><a href="../index.html" ><img src="../images/but1.gif.png" alt="" onmouseover="this.src='../images/but1_hover.gif.png';" onmouseout="this.src='../images/but1.gif.png'" width="109" height="30" /></a></li>
<li><a href="../html/überuns.html"><img src="../images/but2.gif.png" alt="" onmouseover="this.src='../images/but2_hover.gif.png';" onmouseout="this.src='../images/but2.gif.png'" width="109" height="30" /></a></li>
<li><a href="../html/sortiment.html"><img src="../images/but3.gif.png" alt="" onmouseover="this.src='../images/but3_hover.gif.png';" onmouseout="this.src='../images/but3.gif.png'" width="109" height="30" /></a></li>
<li><a href="bestellung.php"><img src="../images/but5_active.png" alt="" onmouseover="this.src='../images/but5_hover.png';" onmouseout="this.src='../images/but5_active.png'" width="109" height="30" /></a></li>
<li><a href="../html/standort.html"><img src="../images/but4.gif.png" alt="" onmouseover="this.src='../images/but4_hover.gif.png';" onmouseout="this.src='../images/but4.gif.png'" width="108" height="30" /></a></li>
</ul>
</div>
<div id="phpcontent"><br><br>
<div id="notizen">
<?
/*
karte.txt
1;Pizza Margerita;pizza;8.50,9.30;(klein),(gross)
2;Pizza Schinken;pizza;6.25,11.90;(klein),(gross)
3;Calzone del'fungie;pizza;7.65,8.97;(klein),(gross)
4;Pizza Salami;pizza;8.00,12.23;(klein),(gross)
*/
$karte_array = array();
$zeilen = file ("karte.txt");
foreach ($zeilen as $zeile) {
list($id,$name,$gruppe,$preis,$einheit) = explode(";", $zeile);
$preis_array=explode(",", $preis);
$preisanzahl=count($preis_array);
$einheit_array=explode(",", $einheit);
$karte_array[$id]=$name;
# in SESSION speichern nach Senden
if(isset($_POST[$id."_notizen"]) && $_POST[$id."_notizen"]!=""){
$_SESSION["KORB"][$id."_".time()] = $_POST[$id."_notizen"];
$_SESSION["KORB_preis"][$id."_".time()] = $_POST[$id."_preis"];
}
$outputradio="";
if($preisanzahl == "1"){
$outputradio="<input type='radio' name='".$id."_preis' value='".$preis."'>".$preis." ".$einheit."<br>";
}else{
for($i=0; $i < count($preis_array);$i++){
$outputradio.="<input type='radio' name='".$id."_preis' value='".$preis_array[$i]."|".$einheit_array[$i]."'>".$preis_array[$i]." ".$einheit_array[$i]."<br>";
}
}
echo '<form action="#" method="post" name="form">';
echo "".$id.". ".$name."<br>";
#echo $name.' ('.$preis.' CHF) zur Bestellung hinzufügen<br>';
echo '<input type="text" style="border:1px solid black; width:20px" maxlength="2" name="'.$id.'_notizen" value=""><br>';
echo $outputradio;
#echo '<input type="radio" name="'.$id.'_preis" value="11">1';
#echo '<input type="radio" name="'.$id.'_preis" value="22">2';
echo ' <input type="submit" class="formbutton" style="width:180px" value="Anzahl speichern"></form> ';
}
?>
</div>
<div id="notizen_anzeigen">
<center><b>DEIN WARENKORB</b><br /></center><br>
<?php
# unset($_SESSION["KORB"]);
if(isset($_SESSION["KORB"])){
#############################
# Warenkorb +/- verarbeitung
if(isset($_GET['key']) && isset($_GET['plus'])){
$_SESSION["KORB"][$_GET['key']]=($_SESSION["KORB"][$_GET['key']]+1);
}elseif(isset($_GET['key']) && isset($_GET['minus'])){
$_SESSION["KORB"][$_GET['key']]=($_SESSION["KORB"][$_GET['key']]-1);
if($_SESSION["KORB"][$_GET['key']]=='0'){
unset($_SESSION["KORB"][$_GET['key']]);
}
}
# Warenkorb +/- verarbeitung
#############################
echo "<small>";
# alle Daten aus SESSION Anzeigen
ksort ($_SESSION["KORB"]);
ksort ($_SESSION["KORB_preis"]);
$preisges="";
foreach($_SESSION["KORB"] as $key => $value){
list($PREIS,$EINHEIT) = explode("|", $_SESSION['KORB_preis'][$key]);
$preis =($value*$PREIS);
echo
$karte_array[trim(preg_replace('/_[\d]*$/', ' ', $key))]."
".$EINHEIT
#$key
.": ".$value." x ".$PREIS." = ".number_format($preis, 2, '.', '');
echo "
<a style='text-decoration:none' href='?key=".$key."&minus'>[-]</a>
<a style='text-decoration:none' href='?key=".$key."&plus'>[+]</a><br>";
$preisges+=$preis;
}
echo "<br>";
echo "<hr />";
echo "Total: ".number_format($preisges, 2, '.', '')." CHF</small>";
}else{
echo "Dein Warenkorb ist leer<br>";
}
?>
<br><br><center>
<form action="#" method="post" name="form">
<input type="submit" class="formbutton" value="Anfrage erstellen zum Formular" /></form><br /></center>
</div>
</div>
<div id="footer">
© 2010 Pizza da Mamma. All rights reserved
</div>
<map name="Map" id="Map">
<area shape="rect" coords="110,2,128,63" href="#" />
</map>
<map name="Map2" id="Map2">
<area shape="rect" coords="109,1,126,65" href="#" />
</map>
<map name="Map3" id="Map3">
<area shape="rect" coords="111,2,127,67" href="#" />
</map>
<map name="Map4" id="Map4">
<area shape="rect" coords="112,0,128,64" href="#" />
</map>
<pre>
<?php
print_r($_GET);
print_r($_SESSION);
?>
</pre>
</body>
</html>
<?php
#error_reporting(-1); // -1 = alle Bits gesetzt, alle Fehler anzeigen
session_start();
?>
<!DOCtypeE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Pizza da Mamma</title>
<meta http-equiv="Content-typee" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" typee="text/css" href="../css/style.css" />
</head>
<body>
<div id="header">
<img src="../images/logo/171x37.png" alt="" width="171" height="37" />
<div class="small">
<a href="../index.html"><img src="../images/small1.gif" alt="" width="13" height="13" /></a>
<a href="../html/überuns.html"><img src="../images/small2.gif" alt="" width="16" height="13" /></a>
<a href="mailto:[email protected]"><img src="../images/small3.gif" alt="" width="16" height="13" /></a>
</div>
</div>
<div class="menu">
<img src="../images/lefttop.png" alt="" width="37" height="56" />
<ul>
<li><a href="../index.html" ><img src="../images/but1.gif.png" alt="" onmouseover="this.src='../images/but1_hover.gif.png';" onmouseout="this.src='../images/but1.gif.png'" width="109" height="30" /></a></li>
<li><a href="../html/überuns.html"><img src="../images/but2.gif.png" alt="" onmouseover="this.src='../images/but2_hover.gif.png';" onmouseout="this.src='../images/but2.gif.png'" width="109" height="30" /></a></li>
<li><a href="../html/sortiment.html"><img src="../images/but3.gif.png" alt="" onmouseover="this.src='../images/but3_hover.gif.png';" onmouseout="this.src='../images/but3.gif.png'" width="109" height="30" /></a></li>
<li><a href="bestellung.php"><img src="../images/but5_active.png" alt="" onmouseover="this.src='../images/but5_hover.png';" onmouseout="this.src='../images/but5_active.png'" width="109" height="30" /></a></li>
<li><a href="../html/standort.html"><img src="../images/but4.gif.png" alt="" onmouseover="this.src='../images/but4_hover.gif.png';" onmouseout="this.src='../images/but4.gif.png'" width="108" height="30" /></a></li>
</ul>
</div>
<div id="phpcontent"><br><br>
<div id="notizen">
<?
/*
karte.txt
1;Pizza Margerita;pizza;8.50,9.30;(klein),(gross)
2;Pizza Schinken;pizza;6.25,11.90;(klein),(gross)
3;Calzone del'fungie;pizza;7.65,8.97;(klein),(gross)
4;Pizza Salami;pizza;8.00,12.23;(klein),(gross)
*/
$karte_array = array();
$zeilen = file ("karte.txt");
foreach ($zeilen as $zeile) {
list($id,$name,$gruppe,$preis,$einheit) = explode(";", $zeile);
$preis_array=explode(",", $preis);
$preisanzahl=count($preis_array);
$einheit_array=explode(",", $einheit);
$karte_array[$id]=$name;
# in SESSION speichern nach Senden
if(isset($_POST[$id."_notizen"]) && $_POST[$id."_notizen"]!=""){
$_SESSION["KORB"][$id."_".time()] = $_POST[$id."_notizen"];
$_SESSION["KORB_preis"][$id."_".time()] = $_POST[$id."_preis"];
}
$outputradio="";
if($preisanzahl == "1"){
$outputradio="<input type='radio' name='".$id."_preis' value='".$preis."'>".$preis." ".$einheit."<br>";
}else{
for($i=0; $i < count($preis_array);$i++){
$outputradio.="<input type='radio' name='".$id."_preis' value='".$preis_array[$i]."|".$einheit_array[$i]."'>".$preis_array[$i]." ".$einheit_array[$i]."<br>";
}
}
echo '<form action="#" method="post" name="form">';
echo "".$id.". ".$name."<br>";
#echo $name.' ('.$preis.' CHF) zur Bestellung hinzufügen<br>';
echo '<input type="text" style="border:1px solid black; width:20px" maxlength="2" name="'.$id.'_notizen" value=""><br>';
echo $outputradio;
#echo '<input type="radio" name="'.$id.'_preis" value="11">1';
#echo '<input type="radio" name="'.$id.'_preis" value="22">2';
echo ' <input type="submit" class="formbutton" style="width:180px" value="Anzahl speichern"></form> ';
}
?>
</div>
<div id="notizen_anzeigen">
<center><b>DEIN WARENKORB</b><br /></center><br>
<?php
# unset($_SESSION["KORB"]);
if(isset($_SESSION["KORB"])){
#############################
# Warenkorb +/- verarbeitung
if(isset($_GET['key']) && isset($_GET['plus'])){
$_SESSION["KORB"][$_GET['key']]=($_SESSION["KORB"][$_GET['key']]+1);
}elseif(isset($_GET['key']) && isset($_GET['minus'])){
$_SESSION["KORB"][$_GET['key']]=($_SESSION["KORB"][$_GET['key']]-1);
if($_SESSION["KORB"][$_GET['key']]=='0'){
unset($_SESSION["KORB"][$_GET['key']]);
}
}
# Warenkorb +/- verarbeitung
#############################
echo "<small>";
# alle Daten aus SESSION Anzeigen
ksort ($_SESSION["KORB"]);
ksort ($_SESSION["KORB_preis"]);
$preisges="";
foreach($_SESSION["KORB"] as $key => $value){
list($PREIS,$EINHEIT) = explode("|", $_SESSION['KORB_preis'][$key]);
$preis =($value*$PREIS);
echo
$karte_array[trim(preg_replace('/_[\d]*$/', ' ', $key))]."
".$EINHEIT
#$key
.": ".$value." x ".$PREIS." = ".number_format($preis, 2, '.', '');
echo "
<a style='text-decoration:none' href='?key=".$key."&minus'>[-]</a>
<a style='text-decoration:none' href='?key=".$key."&plus'>[+]</a><br>";
$preisges+=$preis;
}
echo "<br>";
echo "<hr />";
echo "Total: ".number_format($preisges, 2, '.', '')." CHF</small>";
}else{
echo "Dein Warenkorb ist leer<br>";
}
?>
<br><br><center>
<form action="#" method="post" name="form">
<input type="submit" class="formbutton" value="Bestellung abschicken" /></form><br /></center>
</div>
</div>
<div id="footer">
© 2010 Pizza da Mamma. All rights reserved
</div>
<map name="Map" id="Map">
<area shape="rect" coords="110,2,128,63" href="#" />
</map>
<map name="Map2" id="Map2">
<area shape="rect" coords="109,1,126,65" href="#" />
</map>
<map name="Map3" id="Map3">
<area shape="rect" coords="111,2,127,67" href="#" />
</map>
<map name="Map4" id="Map4">
<area shape="rect" coords="112,0,128,64" href="#" />
</map>
<pre>
<?php
#rint_r($_GET);
#print_r($_SESSION);
?>
</pre>
</body>
</html>
Das dürfte nicht am code selber liegen da der bei mir 100% funzt auch mit error on.Warning: number_format() expects parameter 1 to be double, string given in C:\xampp\htdocs\Alex\php\bestellung.php on line 110
/*
karte.txt
1;Pizza Margerita;pizza;8.50,9.30;(klein),(gross)
2;Pizza Schinken;pizza;6.25,11.90;(klein),(gross)
3;Calzone del'fungie;pizza;7.65,8.97;(klein),(gross)
4;Pizza Salami;pizza;8.00,12.23;(klein),(gross)
*/
Irgendwie sieht ja das genau gleich aus, auch den Punkt zwischen Einerstelle und Dezimalzahlen und die zwei Dezimalstellen werden exakt gleich angezeigt. Und das file wird falsch ausgelesen. Es wird ja Zeile für Zeile und dann schön der Reihenfolge nach - zuerst id, dann name, gruppe, preis, einheit. <-- Hier liest es ja auch das richtige aus.Wie sieht der Preis dieser Pizza in der txt aus, wie der code in der php datei?
<?php
error_reporting(-1); // -1 = alle Bits gesetzt, alle Fehler anzeigen
session_start();
?>
<!DOCtypeE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Pizza da Mamma</title>
<meta http-equiv="Content-typee" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" typee="text/css" href="../css/style.css" />
</head>
<body>
<div id="header">
<img src="../images/logo/171x37.png" alt="" width="171" height="37" />
<div class="small">
<a href="../index.html"><img src="../images/small1.gif" alt="" width="13" height="13" /></a>
<a href="../html/überuns.html"><img src="../images/small2.gif" alt="" width="16" height="13" /></a>
<a href="mailto:[email protected]"><img src="../images/small3.gif" alt="" width="16" height="13" /></a>
</div>
</div>
<div class="menu">
<img src="../images/lefttop.png" alt="" width="37" height="56" />
<ul>
<li><a href="../index.html" ><img src="../images/but1.gif.png" alt="" onmouseover="this.src='../images/but1_hover.gif.png';" onmouseout="this.src='../images/but1.gif.png'" width="109" height="30" /></a></li>
<li><a href="../html/überuns.html"><img src="../images/but2.gif.png" alt="" onmouseover="this.src='../images/but2_hover.gif.png';" onmouseout="this.src='../images/but2.gif.png'" width="109" height="30" /></a></li>
<li><a href="../html/sortiment.html"><img src="../images/but3.gif.png" alt="" onmouseover="this.src='../images/but3_hover.gif.png';" onmouseout="this.src='../images/but3.gif.png'" width="109" height="30" /></a></li>
<li><a href="bestellung.php"><img src="../images/but5_active.png" alt="" onmouseover="this.src='../images/but5_hover.png';" onmouseout="this.src='../images/but5_active.png'" width="109" height="30" /></a></li>
<li><a href="../html/standort.html"><img src="../images/but4.gif.png" alt="" onmouseover="this.src='../images/but4_hover.gif.png';" onmouseout="this.src='../images/but4.gif.png'" width="108" height="30" /></a></li>
</ul>
</div>
<div id="phpcontent"><br><br>
<div id="notizen">
<?
/*
karte.txt
1;Pizza Margerita;pizza;8.50,9.30;(klein),(gross)
2;Pizza Schinken;pizza;6.25,11.90;(klein),(gross)
3;Calzone del'fungie;pizza;7.65,8.97;(klein),(gross)
4;Bier;alk;3.00,5.55,8.99;0.25l,0.75l,1.00l
5;Pizza Salami;pizza;8.00,12.23;(klein),(gross)
*/
$karte_array = array();
$zeilen = file ("karte.txt");
foreach ($zeilen as $zeile) {
list($id,$name,$gruppe,$preis,$einheit) = explode(";", $zeile);
$preis_array=explode(",", $preis);
$preisanzahl=count($preis_array);
$einheit_array=explode(",", $einheit);
$karte_array[$id]=$name;
if($gruppe==$gruppe){ #if($gruppe=="pizza"){ wenn nur eine bestimmt gruppe angezeigt werden soll
# in SESSION speichern nach Senden
if(isset($_POST[$id."_notizen"]) && $_POST[$id."_notizen"]!=""){
$_SESSION["KORB"][$id."_".time()] = $_POST[$id."_notizen"];
$_SESSION["KORB_preis"][$id."_".time()] = $_POST[$id."_preis"];
}
$outputradio="";
if($preisanzahl == "1"){
$outputradio="<input type='radio' name='".$id."_preis' value='".$preis."'>".$preis." ".$einheit."<br>";
}else{
for($i=0; $i < count($preis_array);$i++){
$outputradio.="<input type='radio' name='".$id."_preis' value='".$preis_array[$i]."|".$einheit_array[$i]."'>".$preis_array[$i]." ".$einheit_array[$i]."<br>";
}
}
echo '<form action="#" method="post" name="form">';
echo "".$id.". ".$name." zur Bestellung hinzufügen<br>";
echo '<input type="text" style="border:1px solid black; width:20px" maxlength="2" name="'.$id.'_notizen" value=""><br>';
echo $outputradio;
echo ' <input type="submit" class="formbutton" style="width:180px" value="Anzahl speichern"></form>';
}
}
?>
</div>
<div id="notizen_anzeigen">
<center><b>DEIN WARENKORB</b><br /></center><br>
<?php
# unset($_SESSION["KORB"]);
if(isset($_SESSION["KORB"])){
#############################
# Warenkorb +/- verarbeitung
if(isset($_GET["key"]) && isset($_GET["plus"])){
$_SESSION["KORB"][$_GET["key"]]=($_SESSION["KORB"][$_GET["key"]]+1);
}elseif(isset($_GET["key"]) && isset($_GET["minus"])){
$_SESSION["KORB"][$_GET["key"]]=((float)$_SESSION["KORB"][$_GET["key"]]-1);
if($_SESSION["KORB"][$_GET["key"]]<"1"){
unset($_SESSION["KORB"][$_GET["key"]]);
}
}elseif(isset($_GET["key"]) && isset($_GET["raus"])){
unset($_SESSION["KORB"][$_GET["key"]]);
}
# Warenkorb +/- verarbeitung
#############################
echo "<small>";
# alle Daten aus SESSION Anzeigen
ksort ($_SESSION["KORB"]);
ksort ($_SESSION["KORB_preis"]);
$preisges="";
foreach($_SESSION["KORB"] as $key => $value){
list($PREIS,$EINHEIT) = explode("|", $_SESSION['KORB_preis'][$key]);
$preis =($value*$PREIS);
echo
$karte_array[trim(preg_replace('/_[\d]*$/', ' ', $key))]."
".$EINHEIT
#$key
.": ".$value." x ".$PREIS." = ".number_format($preis, 2, '.', '');
echo "
<a style='text-decoration:none' href='?key=".$key."&minus'>[-]</a>
<a style='text-decoration:none' href='?key=".$key."&plus'>[+]</a>
<a style='text-decoration:none' href='?key=".$key."&raus'>[x]</a>
<br>";
$preisges+=$preis;
}
echo "<br>";
echo "<hr />";
echo "Total: ".number_format($preisges, 2, '.', '')." CHF</small>";
}else{
echo "Dein Warenkorb ist leer<br>";
}
?>
<br><br><center>
<form action="#" method="post" name="form">
<input type="submit" class="formbutton" value="Bestellung abschicken" /></form><br /></center>
</div>
</div>
<div id="footer">
© 2010 Pizza da Mamma. All rights reserved
</div>
<map name="Map" id="Map">
<area shape="rect" coords="110,2,128,63" href="#" />
</map>
<map name="Map2" id="Map2">
<area shape="rect" coords="109,1,126,65" href="#" />
</map>
<map name="Map3" id="Map3">
<area shape="rect" coords="111,2,127,67" href="#" />
</map>
<map name="Map4" id="Map4">
<area shape="rect" coords="112,0,128,64" href="#" />
</map>
<pre>
<?php
#rint_r($_GET);
#print_r($_SESSION);
?>
</pre>
</body>
</html>
Deswegen hatte ich das ja schon so eingeplant :O).du bringst mich auf eine spitzen Idee Cheffchen
**
<a href="?anzeige=pizza">Pizza</a>
<a href="?anzeige=alk">Suff</a>
....
if((isset($_GET['anzeige']) && $gruppe == $_GET['anzeige']) || (!isset($_GET['anzeige']) && $gruppe == $gruppe)){
<?php
error_reporting(-1); // -1 = alle Bits gesetzt, alle Fehler anzeigen
session_start();
?>
<!DOCtypeE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Pizza da Mamma</title>
<meta http-equiv="Content-typee" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" typee="text/css" href="../css/style.css" />
</head>
<body>
<div id="header">
<img src="../images/logo/171x37.png" alt="" width="171" height="37" />
<div class="small">
<a href="../index.html"><img src="../images/small1.gif" alt="" width="13" height="13" /></a>
<a href="../html/überuns.html"><img src="../images/small2.gif" alt="" width="16" height="13" /></a>
<a href="mailto:[email protected]"><img src="../images/small3.gif" alt="" width="16" height="13" /></a>
</div>
</div>
<div class="menu">
<img src="../images/lefttop.png" alt="" width="37" height="56" />
<ul>
<li><a href="../index.html" ><img src="../images/but1.gif.png" alt="" onmouseover="this.src='../images/but1_hover.gif.png';" onmouseout="this.src='../images/but1.gif.png'" width="109" height="30" /></a></li>
<li><a href="../html/überuns.html"><img src="../images/but2.gif.png" alt="" onmouseover="this.src='../images/but2_hover.gif.png';" onmouseout="this.src='../images/but2.gif.png'" width="109" height="30" /></a></li>
<li><a href="../html/sortiment.html"><img src="../images/but3.gif.png" alt="" onmouseover="this.src='../images/but3_hover.gif.png';" onmouseout="this.src='../images/but3.gif.png'" width="109" height="30" /></a></li>
<li><a href="bestellung.php"><img src="../images/but5_active.png" alt="" onmouseover="this.src='../images/but5_hover.png';" onmouseout="this.src='../images/but5_active.png'" width="109" height="30" /></a></li>
<li><a href="../html/standort.html"><img src="../images/but4.gif.png" alt="" onmouseover="this.src='../images/but4_hover.gif.png';" onmouseout="this.src='../images/but4.gif.png'" width="108" height="30" /></a></li>
</ul>
</div>
<div id="phpcontent"><br><br>
<div id="bestellungmenu">
<ul>
<li><a href="bestellung_pizza.php" ><img src="../images/butpizza_active.png" alt="" onmouseover="this.src='../images/butpizza_hover.png';" onmouseout="this.src='../images/butpizza_active.png'" width="109" height="30" /></a></li>
</ul>
<ul>
<li><a href="bestellung_pasta.php" ><img src="../images/butpasta.png" alt="" onmouseover="this.src='../images/butpasta_hover.png';" onmouseout="this.src='../images/butpasta.png'" width="109" height="30" /></a></li>
</ul>
<ul>
<li><a href="bestellung_spezialitäten.php" ><img src="../images/butspezialitäten.png" alt="" onmouseover="this.src='../images/butspezialitäten_hover.png';" onmouseout="this.src='../images/butspezialitäten.png'" width="109" height="30" /></a></li>
</ul>
<ul>
<li><a href="bestellung_getränke.php" ><img src="../images/butgetränke.png" alt="" onmouseover="this.src='../images/butgetränke_hover.png';" onmouseout="this.src='../images/butgetränke.png'" width="109" height="30" /></a></li>
</ul>
<ul>
<li><a href="bestellung_insalate.php" ><img src="../images/butinsalate.png" alt="" onmouseover="this.src='../images/butinsalate_hover.png';" onmouseout="this.src='../images/butinsalate.png'" width="109" height="30" /></a></li>
</ul>
<ul>
<li><a href="bestellung_dessert.php" ><img src="../images/butdessert.png" alt="" onmouseover="this.src='../images/butdessert_hover.png';" onmouseout="this.src='../images/butdessert.png'" width="109" height="30" /></a></li>
</ul>
</div>
<div id="notizen">
<?
/*
karte.txt
1;Pizza Margherita;pizza;13.00,25.00;(normal),(gross)
2;Pizza Marinara;pizza;16.00,27.00;(normal),(gross)
3;Pizza Funghi;pizza;16.00,27.00;(normal),(gross)
4;Pizza Prosciutto;pizza;18.00,29.00;(normal),(gross)
24;Pizza Calzone farcito;pizza;22.00;(normal)
25;Pizza Bella Capri speziale;pizza;35.00;(normal)
27;Frittura mista di pesce;spezialitäten;30.00;(gross)
28;Verde;insalate;7.00;(normal)
33;Griechischer Salat (min 300gr);insalate;14.00;(normal)
34;Spaghetti alla Mafiosa;pasta;17.00;(normal)
40;Lasagne;pasta;18.00;(normal)
41;Tirami'su;dessert;8.00;(normal)
45;Schlagrahm;dessert;1.00;(normal)
46;Nature;getränke;4.00;(50cl)
etc. */
$karte_array = array();
$zeilen = file ("karte.txt");
foreach ($zeilen as $zeile) {
list($id,$name,$gruppe,$preis,$einheit) = explode(";", $zeile);
$preis_array=explode(",", $preis);
$preisanzahl=count($preis_array);
$einheit_array=explode(",", $einheit);
$karte_array[$id]=$name;
if((isset($_GET['pizza']) && $gruppe == $_GET['pizza']) || (!isset($_GET['pizza']) && $gruppe == $gruppe)){ #if($gruppe==$gruppe){ wenn alle gruppen angezeigt werden sollen
# in SESSION speichern nach Senden
if(isset($_POST[$id."_notizen"]) && $_POST[$id."_notizen"]!=""){
$_SESSION["KORB"][$id."_".time()] = $_POST[$id."_notizen"];
$_SESSION["KORB_preis"][$id."_".time()] = $_POST[$id."_preis"];
}
$outputradio="";
if($preisanzahl == "1"){
$outputradio="<input type='radio' name='".$id."_preis' value='".$preis."'>".$preis." ".$einheit."<br>";
}else{
for($i=0; $i < count($preis_array);$i++){
$outputradio.="<input type='radio' name='".$id."_preis' value='".$preis_array[$i]."|".$einheit_array[$i]."'>".$preis_array[$i]." ".$einheit_array[$i]."<br>";
}
}
echo '<form action="#" method="post" name="form">';
echo "".$id.". ".$name."<br>";
echo '<input type="text" style="border:1px solid black; width:20px" maxlength="2" name="'.$id.'_notizen" value=""><br>';
echo $outputradio;
echo ' <input type="submit" class="formbutton" style="width:180px" value="Anzahl speichern"></form>';
}
}
?>
</div>
<div id="notizen_anzeigen">
<center><b>DEIN WARENKORB</b><br /></center><br>
<?php
# unset($_SESSION["KORB"]);
if(isset($_SESSION["KORB"])){
#############################
# Warenkorb +/- verarbeitung
if(isset($_GET["key"]) && isset($_GET["plus"])){
$_SESSION["KORB"][$_GET["key"]]=($_SESSION["KORB"][$_GET["key"]]+1);
}elseif(isset($_GET["key"]) && isset($_GET["minus"])){
$_SESSION["KORB"][$_GET["key"]]=((float)$_SESSION["KORB"][$_GET["key"]]-1);
if($_SESSION["KORB"][$_GET["key"]]<"1"){
unset($_SESSION["KORB"][$_GET["key"]]);
}
}elseif(isset($_GET["key"]) && isset($_GET["raus"])){
unset($_SESSION["KORB"][$_GET["key"]]);
}
# Warenkorb +/- verarbeitung
#############################
echo "<small>";
# alle Daten aus SESSION Anzeigen
ksort ($_SESSION["KORB"]);
ksort ($_SESSION["KORB_preis"]);
$preisges="";
foreach($_SESSION["KORB"] as $key => $value){
list($PREIS,$EINHEIT) = explode("|", $_SESSION['KORB_preis'][$key]);
$preis =($value*$PREIS);
echo
$karte_array[trim(preg_replace('/_[\d]*$/', ' ', $key))]."
".$EINHEIT
#$key
.": ".$value." x ".$PREIS." = ".number_format($preis, 2, '.', '');
echo "
<a style='text-decoration:none' href='?key=".$key."&minus'>[-]</a>
<a style='text-decoration:none' href='?key=".$key."&plus'>[+]</a>
<a style='text-decoration:none' href='?key=".$key."&raus'>[x]</a>
<br>";
$preisges+=$preis;
}
echo "<br>";
echo "<hr />";
echo "Total: ".number_format($preisges, 2, '.', '')." CHF</small>";
}else{
echo "Dein Warenkorb ist leer<br>";
}
?>
<br><br><center>
<form action="#" method="post" name="form">
<input type="submit" class="formbutton" value="Bestellung abschicken" /></form><br /></center>
</div>
</div>
<div id="footer">
© 2010 Pizza da Mamma. All rights reserved
</div>
<map name="Map" id="Map">
<area shape="rect" coords="110,2,128,63" href="#" />
</map>
<map name="Map2" id="Map2">
<area shape="rect" coords="109,1,126,65" href="#" />
</map>
<map name="Map3" id="Map3">
<area shape="rect" coords="111,2,127,67" href="#" />
</map>
<map name="Map4" id="Map4">
<area shape="rect" coords="112,0,128,64" href="#" />
</map>
<pre>
<?php
#rint_r($_GET);
#print_r($_SESSION);
?>
</pre>
</body>
</html>
[B]Warning[/B]: Unknown: failed to open stream: No such file or directory in [B]Unknown[/B] on line [B]0[/B]
[B]Fatal error[/B]: Unknown: Failed opening required 'C:/xampp/htdocs/Alex/php/bestellung_spezialitäten.php' (include_path='.;C:\xampp\php\PEAR') in [B]Unknown[/B] on line [B]0[/B]
Zudem habe ich das Problem, dass ich nicht auf die Seiten Spezialitäten und Getränke komme, folgende Fehlermeldung:
<?php
error_reporting(-1); // -1 = alle Bits gesetzt, alle Fehler anzeigen
session_start();
?>
<!DOCtypeE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Pizza da Mamma</title>
<meta http-equiv="Content-typee" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" typee="text/css" href="../css/style.css" />
</head>
<body>
<div id="header">
<img src="../images/logo/171x37.png" alt="" width="171" height="37" />
<div class="small">
<a href="../index.html"><img src="../images/small1.gif" alt="" width="13" height="13" /></a>
<a href="../html/überuns.html"><img src="../images/small2.gif" alt="" width="16" height="13" /></a>
<a href="mailto:[email protected]"><img src="../images/small3.gif" alt="" width="16" height="13" /></a>
</div>
</div>
<div class="menu">
<img src="../images/lefttop.png" alt="" width="37" height="56" />
<ul>
<li><a href="../index.html" ><img src="../images/but1.gif.png" alt="" onmouseover="this.src='../images/but1_hover.gif.png';" onmouseout="this.src='../images/but1.gif.png'" width="109" height="30" /></a></li>
<li><a href="../html/überuns.html"><img src="../images/but2.gif.png" alt="" onmouseover="this.src='../images/but2_hover.gif.png';" onmouseout="this.src='../images/but2.gif.png'" width="109" height="30" /></a></li>
<li><a href="../html/sortiment.html"><img src="../images/but3.gif.png" alt="" onmouseover="this.src='../images/but3_hover.gif.png';" onmouseout="this.src='../images/but3.gif.png'" width="109" height="30" /></a></li>
<li><a href="bestellung.php"><img src="../images/but5_active.png" alt="" onmouseover="this.src='../images/but5_hover.png';" onmouseout="this.src='../images/but5_active.png'" width="109" height="30" /></a></li>
<li><a href="../html/standort.html"><img src="../images/but4.gif.png" alt="" onmouseover="this.src='../images/but4_hover.gif.png';" onmouseout="this.src='../images/but4.gif.png'" width="108" height="30" /></a></li>
</ul>
</div>
<div id="phpcontent"><br><br>
<div id="bestellungmenu">
<ul>
<li><a href="?anzeige=pizza" ><img src="../images/butpizza_active.png" alt="" onmouseover="this.src='../images/butpizza_hover.png';" onmouseout="this.src='../images/butpizza_active.png'" width="109" height="30" /></a></li>
</ul>
<ul>
<li><a href="?anzeige=pasta" ><img src="../images/butpasta.png" alt="" onmouseover="this.src='../images/butpasta_hover.png';" onmouseout="this.src='../images/butpasta.png'" width="109" height="30" /></a></li>
</ul>
<ul>
<li><a href="?anzeige=spezialitäten" ><img src="../images/butspezialitäten.png" alt="" onmouseover="this.src='../images/butspezialitäten_hover.png';" onmouseout="this.src='../images/butspezialitäten.png'" width="109" height="30" /></a></li>
</ul>
<ul>
<li><a href="?anzeige=getränke" ><img src="../images/butgetränke.png" alt="" onmouseover="this.src='../images/butgetränke_hover.png';" onmouseout="this.src='../images/butgetränke.png'" width="109" height="30" /></a></li>
</ul>
<ul>
<li><a href="?anzeige=insalate" ><img src="../images/butinsalate.png" alt="" onmouseover="this.src='../images/butinsalate_hover.png';" onmouseout="this.src='../images/butinsalate.png'" width="109" height="30" /></a></li>
</ul>
<ul>
<li><a href="?anzeige=dessert" ><img src="../images/butdessert.png" alt="" onmouseover="this.src='../images/butdessert_hover.png';" onmouseout="this.src='../images/butdessert.png'" width="109" height="30" /></a></li>
</ul>
</div>
<div id="notizen">
<?
/*
karte.txt
1;Pizza Margherita;pizza;13.00,25.00;(normal),(gross)
2;Pizza Marinara;pizza;16.00,27.00;(normal),(gross)
3;Pizza Funghi;pizza;16.00,27.00;(normal),(gross)
4;Pizza Prosciutto;pizza;18.00,29.00;(normal),(gross)
24;Pizza Calzone farcito;pizza;22.00;(normal)
25;Pizza Bella Capri speziale;pizza;35.00;(normal)
27;Frittura mista di pesce;spezialitäten;30.00;(gross)
28;Verde;insalate;7.00;(normal)
33;Griechischer Salat (min 300gr);insalate;14.00;(normal)
34;Spaghetti alla Mafiosa;pasta;17.00;(normal)
40;Lasagne;pasta;18.00;(normal)
41;Tirami'su;dessert;8.00;(normal)
45;Schlagrahm;dessert;1.00;(normal)
46;Nature;getränke;4.00;(50cl)
etc. */
$karte_array = array();
$zeilen = file ("karte.txt");
foreach ($zeilen as $zeile) {
list($id,$name,$gruppe,$preis,$einheit) = explode(";", $zeile);
$preis_array=explode(",", $preis);
$preisanzahl=count($preis_array);
$einheit_array=explode(",", $einheit);
$karte_array[$id]=$name;
if((isset($_GET['anzeige']) && $gruppe == $_GET['anzeige']) || (!isset($_GET['anzeige']) && $gruppe == "pizza")){ #if($gruppe==$gruppe){ wenn alle gruppen angezeigt werden sollen
# in SESSION speichern nach Senden
if(isset($_POST[$id."_notizen"]) && $_POST[$id."_notizen"]!=""){
$_SESSION["KORB"][$id."_".time()] = $_POST[$id."_notizen"];
$_SESSION["KORB_preis"][$id."_".time()] = $_POST[$id."_preis"];
}
$outputradio="";
if($preisanzahl == "1"){
$outputradio="<input type='radio' name='".$id."_preis' value='".$preis."|".$einheit."'>".$preis." ".$einheit."<br>";
}else{
for($i=0; $i < count($preis_array);$i++){
$outputradio.="<input type='radio' name='".$id."_preis' value='".$preis_array[$i]."|".$einheit_array[$i]."'>".$preis_array[$i]." ".$einheit_array[$i]."<br>";
}
}
echo '<form action="#" method="post" name="form">';
echo "".$id.". ".$name."<br>";
echo '<input type="text" style="border:1px solid black; width:20px" maxlength="2" name="'.$id.'_notizen" value=""><br>';
echo $outputradio;
echo ' <input type="submit" class="formbutton" style="width:180px" value="Anzahl speichern"></form>';
}
}
?>
</div>
<div id="notizen_anzeigen">
<center><b>DEIN WARENKORB</b><br /></center><br>
<?php
# unset($_SESSION["KORB"]); unset($_SESSION["KORB_preis"]);
if(isset($_SESSION["KORB"])){
#############################
# Warenkorb +/- verarbeitung
if(isset($_GET["key"]) && isset($_GET["plus"])){
$_SESSION["KORB"][$_GET["key"]]=($_SESSION["KORB"][$_GET["key"]]+1);
}elseif(isset($_GET["key"]) && isset($_GET["minus"])){
$_SESSION["KORB"][$_GET["key"]]=((float)$_SESSION["KORB"][$_GET["key"]]-1);
if($_SESSION["KORB"][$_GET["key"]]<"1"){
unset($_SESSION["KORB"][$_GET["key"]]);
}
}elseif(isset($_GET["key"]) && isset($_GET["raus"])){
unset($_SESSION["KORB"][$_GET["key"]]);
}
# Warenkorb +/- verarbeitung
#############################
echo "<small>";
# alle Daten aus SESSION Anzeigen
ksort ($_SESSION["KORB"]);
ksort ($_SESSION["KORB_preis"]);
$preisges="";
foreach($_SESSION["KORB"] as $key => $value){
list($PREIS,$EINHEIT) = explode("|", $_SESSION['KORB_preis'][$key]);
$preis =($value*$PREIS);
echo
$karte_array[trim(preg_replace('/_[\d]*$/', ' ', $key))]."
".$EINHEIT
#$key
.": ".$value." x ".$PREIS." = ".number_format($preis, 2, '.', '');
echo "
<a style='text-decoration:none' href='?key=".$key."&minus'>[-]</a>
<a style='text-decoration:none' href='?key=".$key."&plus'>[+]</a>
<a style='text-decoration:none' href='?key=".$key."&raus'>[x]</a>
<br>";
$preisges+=$preis;
}
echo "<br>";
echo "<hr />";
echo "Total: ".number_format($preisges, 2, '.', '')." CHF</small>";
}else{
echo "Dein Warenkorb ist leer<br>";
}
?>
<br><br><center>
<form action="#" method="post" name="form">
<input type="submit" class="formbutton" value="Bestellung abschicken" /></form><br /></center>
</div>
</div>
<div id="footer">
© 2010 Pizza da Mamma. All rights reserved
</div>
<map name="Map" id="Map">
<area shape="rect" coords="110,2,128,63" href="#" />
</map>
<map name="Map2" id="Map2">
<area shape="rect" coords="109,1,126,65" href="#" />
</map>
<map name="Map3" id="Map3">
<area shape="rect" coords="111,2,127,67" href="#" />
</map>
<map name="Map4" id="Map4">
<area shape="rect" coords="112,0,128,64" href="#" />
</map>
<pre>
<?php
#rint_r($_GET);
#print_r($_SESSION);
?>
</pre>
</body>
</html>
Cheffchen<!DOCTYPE HTML>
<html>
pizza - Pastebin.com[/url]
Cheffchen
<?php
$pizzaa="";
$pastaa="";
$spezialitätena="";
$getränkea="";
$insalatea="";
$desserta="";
if(isset($_GET['anzeige'])){
if($_GET['anzeige'] =="pizza"){$pizzaa="_active";}
if($_GET['anzeige'] =="pasta"){$pastaa="_active";}
if($_GET['anzeige'] =="spezialitäten"){$spezialitätena="_active";}
if($_GET['anzeige'] =="getränke"){$getränkea="_active";}
if($_GET['anzeige'] =="insalate"){$insalatea="_active";}
if($_GET['anzeige'] =="dessert"){$desserta="_active";}
}else{
$pizzaa="_active";
}
?>
<ul>
<li><a href="?anzeige=pizza" ><img src="../images/butpizza<?php echo $pizzaa;?>.png" alt="" onmouseover="this.src='../images/butpizza_hover.png';" onmouseout="this.src='../images/butpizza<?php echo $pizzaa;?>.png'" width="109" height="30" /></a></li>
</ul>
<ul>
<li><a href="?anzeige=pasta" ><img src="../images/butpasta<?php echo $pastaa;?>.png" alt="" onmouseover="this.src='../images/butpasta_hover.png';" onmouseout="this.src='../images/butpasta<?php echo $pastaa;?>.png'" width="109" height="30" /></a></li>
</ul>
<ul>
<li><a href="?anzeige=spezialitäten" ><img src="../images/butspezialitäten<?php echo $spezialitätena;?>.png" alt="" onmouseover="this.src='../images/butspezialitäten_hover.png';" onmouseout="this.src='../images/butspezialitäten<?php echo $spezialitätena;?>.png'" width="109" height="30" /></a></li>
</ul>
<ul>
<li><a href="?anzeige=getränke" ><img src="../images/butgetränke<?php echo $getränkea;?>.png" alt="" onmouseover="this.src='../images/butgetränke_hover.png';" onmouseout="this.src='../images/butgetränke<?php echo $getränkea;?>.png'" width="109" height="30" /></a></li>
</ul>
<ul>
<li><a href="?anzeige=insalate" ><img src="../images/butinsalate<?php echo $insalatea;?>.png" alt="" onmouseover="this.src='../images/butinsalate_hover.png';" onmouseout="this.src='../images/butinsalate<?php echo $insalatea;?>.png'" width="109" height="30" /></a></li>
</ul>
<ul>
<li><a href="?anzeige=dessert" ><img src="../images/butdessert<?php echo $desserta;?>.png" alt="" onmouseover="this.src='../images/butdessert_hover.png';" onmouseout="this.src='../images/butdessert<?php echo $desserta;?>.png'" width="109" height="30" /></a></li>
</ul>
<div id="Formularfelder">
<?php
$empfaenger='
<form action="input_text.htm"><p>Email:<br><input name="empfaenger" type="text" size="30" maxlength="30"></p></form>';
?>
</div>