SHARE
TWEET

Untitled

a guest Sep 15th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3.  
  4. <head>
  5.     <title>Sushi Menu</title>
  6.     <meta charset="UTF-8">
  7.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8.     <link rel="stylesheet" href="styling.css">
  9. </head>
  10.  
  11. <body>
  12.  
  13.     <h2>SUSHI MENU</h2>
  14.  
  15.     <?php
  16.     include "Items.php";
  17.    
  18.  
  19.  
  20.     switch($_POST['menuoptions']){
  21.         case 'lunch_menu':
  22.    
  23.  
  24.     $menuitems_lunch = [];
  25.    
  26.     array_push($menuitems_lunch, new Item("Calamari", "001", "deep fried calamari in sauce", 12.99));
  27.     array_push($menuitems_lunch, new Item("Dragon Boat", "002", "variety of crab, salmon & shrimp sushi", 99.99));
  28.     array_push($menuitems_lunch, new Item("Tuna Rolls", "003", "Sushi rolls filled with tuna", 1024.0));
  29.     array_push($menuitems_lunch, new Item("Salmon Rolls", "004", "Sushi Rolls topped with salmon", 99.99));
  30.  
  31.    
  32.     break;
  33.  
  34.     case 'dinner menu':
  35.  
  36.     $menuitems_dinner = [];
  37.  
  38.     array_push($menuitems_dinner, new Item("test dinner", "001", "deep fried calamari in sauce", 12.99));
  39.     array_push($menuitems_dinner, new Item("test dinner", "002", "variety of crab, salmon & shrimp sushi", 99.99));
  40.     array_push($menuitems_dinner, new Item("test dinner", "003", "Sushi rolls filled with tuna", 1024.0));
  41.     array_push($menuitems_dinner, new Item("test dinner", "004", "Sushi Rolls topped with salmon", 99.99));
  42.  
  43.     break;
  44.  
  45.     case 'desert menu':
  46.  
  47.     $menuitems_desert = [];
  48.  
  49.     array_push($menuitems_desert, new Item("test desert", "001", "deep fried banana", 12.99));
  50.     array_push($menuitems_desert, new Item("test d", "002", "test snack 1213", 99.99));
  51.     array_push($menuitems_desert, new Item("test d", "003", "Sushi rolls filled with tuna", 1024.0));
  52.     array_push($menuitems_desert, new Item("test d", "004", "Sushi Rolls topped with salmon", 99.99));
  53.    
  54.     break;
  55.     default:
  56.     //error
  57.    
  58.    
  59.    
  60.     for ($i = 0; $i<count($menuitems_lunch); $i++) {
  61.         echo menu_view($menuitems_lunch[$i]);
  62.     }
  63.    
  64. }
  65.     ?>
  66.  
  67. </body>
  68.  
  69. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top