Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <title>Restaurants in Kirkcaldy</title>
- <link href="css/styles.css" rel="stylesheet" type="text/css">
- <link href="css/cssreset.css" rel="stylesheet" type="text/css">
- <script src="js/scripts.js"></script>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- </head>
- <body>
- <?php
- require('classCalls.php');
- $id = $_GET['id'];
- $appetisers = 'Appetisers';
- $restaurant = new Restaurant($id);
- $menu = new Menu($id, $appetisers);
- $something = $restaurant->result;
- $items = $restaurant->result;
- $getAppetisers = $menu->result;
- $getMains = $menu->result;
- echo "<div class='flex-grid-menu'>";
- foreach($something as $rows){
- echo <<<EOF
- <div class='header-restaurant'>
- <section>
- <h2>{$rows['restaurant']}</h2>
- <span class='para'>{$rows['content']}</span>
- <span class='para'>{$rows['name']}</span>
- <span class='para'>{$rows['postcode']}</span>
- <span class='para'>{$rows['phone']}</span>
- </section>
- </div>
- <div class='rows'>
- <div class='categories'>
- <h2>Categories</h2>
- <ul>
- <li>Appetisers</li>
- <li>Mains</li>
- <li>Desserts</li>
- <li>Drinks</li>
- <li>Sides</li>
- </ul>
- </div>
- <div class="wrapper">
- <div class="shop-description">
- <p>{$rows['rdescription']}</p>
- </div>
- EOF;
- }
- echo '<div class="menu-listing">
- <h2>Menu</h2>
- <div class="menu-display">
- <section>
- <h3>Appetisers</h3>
- ';
- foreach($getAppetisers as $row){
- if($row['type'] == 'Appetisers'){
- echo <<<EOC
- <p class="food-name {$row['vegan']} {$row['serviceTime']}">
- {$row['iname']} </p>
- <p class="food-price"> £{$row['price']}</p>
- <p class="food-description">
- {$row['description']}
- </p>
- EOC;
- }
- }
- echo'</section>
- </div>';
- echo '
- <div class="menu-display">
- <section>
- <h3>Mains</h3>
- ';
- foreach($getMains as $row){
- if($row['type'] == 'Mains'){
- echo <<<EOC
- <p class="food-name {$row['vegan']} {$row['serviceTime']}">
- {$row['iname']} </p>
- <p class="food-price"> £{$row['price']}</p>
- <p class="food-description">
- {$row['description']}
- </p>
- EOC;
- }
- }
- echo'</section>
- </div>';
- echo '</div>';
- ?>
- </body>
- </html>
Add Comment
Please, Sign In to add comment