Location: PHPKode > projects > Einkaufszettelgenerator > EZettel0.1/speise_aus_menu.php
<?
session_start();
$us= $HTTP_SESSION_VARS['uid'];
//echo "user=$us<br>"; 
?>
<html>
<LINK REL="stylesheet" TYPE="text/css" HREF="menu.css">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Menu -Speiselist</title>

</head>
<body class="speise">

<?
include("menu.ini");

$strsql_del="delete from menu where speise_id='$_GET[speise_id]' and tag='$_GET[tag]'";
$result_del = mysql_query($strsql_del, $connection);

echo "<TABLE BORDER=1 cellpadding=3 cellspacing=3  class=menu align=center>";

  $strsql_5 = "select distinct tag from menu order by tag ;"; 
 $result_5 = mysql_query($strsql_5, $connection);
   $r=0;
  while ( $row_5 = mysql_fetch_row($result_5) )
   {
 $r+=1;
 echo "<TR><TD valign=top><B>";
echo "<P><BR>";
if ($row_5[0] =='1'){ echo "Понедельник";}
if ($row_5[0] =='2') { echo "Вторник";}   
if ($row_5[0] =='3'){ echo "Среда";}   
if ($row_5[0] =='4'){ echo "Четверг";}   
if ($row_5[0] =='5'){ echo "Пятница";}   
if ($row_5[0] =='6'){ echo "Суббота";}   
if ($row_5[0] =='7'){ echo "Воскресенье";}   

echo "</td><td>";

$strsql_6 = "select p.speise_name, p.speise_id from  speise p,  menu t where ( (t.tag='$row_5[0]')&&(p.speise_id=t.speise_id) and (t.user_id='$us'));";
  $result_6 = mysql_query($strsql_6, $connection);
  $y=0;
 while ( $row_6 = mysql_fetch_row($result_6) )
  {
 $y+=1;
 echo "<a href=speise.php?speise_id=$row_6[1] target=blank>$row_6[0]</a> <a href=speise_aus_menu.php?speise_id=$row_6[1]&tag=$row_5[0]><font size=-2>удалить из меню</font></a> <BR> ";
  }
echo "<P></TD></TR>";
   }
?>
</TABLE>
<center><A HREF=input_menu.php>Выбрать меню</a>&nbsp;&nbsp;<A HREF=start.php>На первую страницу</a></center> 


Return current item: Einkaufszettelgenerator