<?php
include('../../shopping_cart.class.php');
session_start();
date_default_timezone_set('Europe/London');
$Cart = new Shopping_Cart('shopping_cart');
require_once('../../Connections/mysqli_connect.php');
require_once('../../inc/restfuncs.php');
$_SESSION['callingpage']  = $_SERVER["REQUEST_URI"];
$_SESSION['menucallpage'] = $_SERVER["REQUEST_URI"];
$_SESSION['orderplaced']  = 'N';

if (isset($_GET['itemname'])) { $getitemname = $_GET['itemname']; } else { $getitemname = NULL; }
if (isset($_GET['price']))    { $getprice    = $_GET['price'];    } else { $getprice    = NULL; }
if (isset($_GET['itemid']))   { $getitemid   = $_GET['itemid'];   } else { $getitemid   = NULL; }
if (isset($_GET['menuid']))   { $getmenuid   = $_GET['menuid'];   } else { $getmenuid   = NULL; }

//<!-- ******************************************************************************************************* -->
$restaurantid = 48590;
                      $_SESSION['restaurantid']=48590;
                    $category="BeveragesCategory";$relatedRestaurants = array (
  0 => 
  array (
    'name' => 'Merrills Fish Grill',
    'url' => 'https://www.eateasy.co.uk/County-Durham-takeaways/Sunderland-restaurants/Merrills-Fish-Grill-SR4-7HG.php',
  ),
  1 => 
  array (
    'name' => 'Grangetown Chippy',
    'url' => 'https://www.eateasy.co.uk/County-Durham-takeaways/Sunderland-restaurants/Grangetown-Chippy-SR2-9QF.php',
  ),
  2 => 
  array (
    'name' => 'Fletchers Fish And Chips',
    'url' => 'https://www.eateasy.co.uk/County-Durham-takeaways/Sunderland-restaurants/Fletchers-Fish-And-Chips-SR2-8LU.php',
  ),
  3 => 
  array (
    'name' => 'Gills Golden Fry',
    'url' => 'https://www.eateasy.co.uk/County-Durham-takeaways/Sunderland-restaurants/Gills-Golden-Fry-SR3-3HU.php',
  ),
);$selArr = array(array(0));
        $_SESSION["selArr"]=$selArr;
        
// <!-- ******************************************************************************************************* -->
// End of restaurant Specific

if (isset($_GET['category'])) {
    $category = $_GET['category'];
}
if (!isset($_SESSION['menurestaurantid']) || $_SESSION['menurestaurantid'] != $restaurantid) {
    $choicenum = 0;
    $_SESSION['callingpage'] = $_SERVER["REQUEST_URI"];
    $Cart->emptycart();
    $Cart->save();
    $savedcategory = "";
    $_SESSION['menurestaurantid'] = $restaurantid;
    $query = 'SELECT * FROM restaurant WHERE restaurantid=' . $restaurantid;
    $results = mysqli_query($dbci, $query) or die(mysqli_error());
    $foundlist = mysqli_num_rows($results);
    if ($foundlist) {
        $row = mysqli_fetch_array($results, MYSQLI_ASSOC);
        $_SESSION['boxnum']               = $row["boxnum"];
        $_SESSION['restcity']             = $row["restcity"];
        $_SESSION['resttype']             = $row['rest_type'];
        $resttype                         = rtrim($_SESSION['resttype']);
        $_SESSION['resttype2']            = $row['rest_type2'];
        $resttype2                        = rtrim($_SESSION['resttype2']);
        $_SESSION['resttype3']            = $row['rest_type3'];
        $resttype3                        = rtrim($_SESSION['resttype3']);
        $_SESSION['resttype4']            = $row['rest_type4'];
        $resttype4                        = rtrim($_SESSION['resttype4']);
        $_SESSION['restcounty']           = $row["restcounty"];
        $_SESSION['restname']             = $row["restname"];
        $restname                         = $_SESSION['restname'];
        $_SESSION['keywords']             = $row["keywords"];
        $_SESSION['restactive']           = $row['restactive'];
        $_SESSION['restaddress1']         = $row['restaddress1'];
        $_SESSION['restaddress2']         = $row['restaddress2'];
        $_SESSION['restcity']             = $row['restcity'];
        $_SESSION['restcounty']           = $row['restcounty'];
        $_SESSION['restpostcode']         = $row['restpostcode'];
        $restpostcode                     = $_SESSION['restpostcode'];
        $restpart1                        = $row['part1'];
        $_SESSION['restpart1']            = $row['part1'];
        $restpart1                        = $_SESSION['restpart1'];
        $_SESSION['restemail']            = $row['restemail'];
        $_SESSION['rest_image']           = rtrim($row['rest_image']);
        $_SESSION['telephone']            = $row['telephone'];
        $_SESSION['urlrestname']          = $row['urlrestname'];
        $_SESSION['deliverycharge']       = $row['delivery_charge'];
        $_SESSION['deliverytimelag']      = $row['delivery_timelag'];
        $_SESSION['deliverythreshold']    = $row['free_delivery_threshold'];
        $_SESSION['cashondelivery']       = $row['cashondelivery'];
        $_SESSION['minimumorder']         = $row['minimum_order'];
        $_SESSION['urlpath']              = $row['urlpath'];
        $_SESSION['sms']                  = $row['sms'];
        $_SESSION['fax']                  = $row['fax'];
        $_SESSION['vpnip']                = $row['vpnip'];
        $_SESSION['restauranturl']        = rtrim($_SESSION['urlpath']) . rtrim($_SESSION['urlrestname']);
        $_SESSION['OrderTotal']           = 0;
        $_SESSION['commission']           = $row['commission'];
        $_SESSION['special1itemname']     = $row['special1itemname'];
        $_SESSION['special2itemname']     = $row['special2itemname'];
        $_SESSION['special3itemname']     = $row['special3itemname'];
        $_SESSION['special1description']  = $row['special1description'];
        $_SESSION['special2description']  = $row['special2description'];
        $_SESSION['special3description']  = $row['special3description'];
        $_SESSION['special1subtype']      = $row['special1subtype'];
        $_SESSION['special2subtype']      = $row['special2subtype'];
        $_SESSION['special3subtype']      = $row['special3subtype'];
        $_SESSION['special1price']        = $row['special1price'];
        $_SESSION['special2price']        = $row['special2price'];
        $_SESSION['special3price']        = $row['special3price'];
        $_SESSION['restosx']              = rtrim($row["osx"]);
        $_SESSION['restosy']              = rtrim($row["osy"]);
        $_SESSION['delivery_radius']      = rtrim($row["delivery_radius"]);
        $_SESSION['delivery_charge_late'] = rtrim($row["delivery_charge_late"]);
        $_SESSION['delivery_time_late']   = rtrim($row["delivery_time_late"]);
        $_SESSION['exclusioncode']        = rtrim($row["exclusioncode"]);
        $_SESSION['deliverypermile']      = rtrim($row["deliverypermile"]);
        $_SESSION['freedeliverydistance'] = rtrim($row["freedeliverydistance"]);
        $_SESSION['orderdeliverytype']    = rtrim($row["orderdeliverytype"]);
        $_SESSION['orderemail']           = rtrim($row["orderemail"]);
        $_SESSION['livemenu']             = rtrim($row["livemenu"]);
        $_SESSION['acceptcards']          = rtrim($row["acceptcards"]);
        $_SESSION['acceptpaypal']         = rtrim($row["acceptpaypal"]);
        $_SESSION['halal']                = rtrim($row["halal"]);
        $_SESSION['spicy']                = rtrim($row["spicy"]);
        $_SESSION['vegan']                = rtrim($row["vegan"]);
        $_SESSION['vegetarian']           = rtrim($row["vegetarian"]);
        if ($row['special1itemname'] != '' || $row['special2itemname'] != '' || $row['special3itemname'] != '') {
            $_SESSION['specials'] = TRUE;
        } else {
            $_SESSION['specials'] = FALSE;
        }
        $totaldeliverycharge  = 0;
        $distancecharge       = 0;
        $deliveryamountcharge = 0;
        $latecharge           = 0;
    } else {
        $_SESSION['restcity']   = "";
        $_SESSION['restcounty'] = "";
        $_SESSION['restname']   = "";
        $_SESSION['keywords']   = "";
        $_SESSION['restactive'] = "N";
    }
} else {
    $_SESSION['restaurantid'] = $restaurantid;
    if (isset($_GET['choicenum']) && $_GET['choicenum'] >= 0) {
        $choicenum     = $_GET['choicenum'];
        $savedcategory = $_GET['category'];
        $category      = 'ItemSelects';
    } else {
        $choicenum = 0;
        if (isset($_GET['act'])) {
            switch ($_GET['act']) {
                case "add":
                    $choices = " ( ";
                    for ($i = 0; $i < 100; $i++) {
                        if (isset($_GET[$i]) && $_GET[$i] != "") {
                            if ($choices == " ( ") {
                                $choices = rtrim($choices . urldecode($_GET[$i]));
                            } else {
                                $choices = rtrim($choices . "," . urldecode($_GET[$i]));
                            }
                        }
                    }
                    if ($choices == " ( ") { $choices = ""; } else { $choices .= " )"; }
                    $quantity = $Cart->getItemQuantity($getmenuid, $choices) + 1;
                    if ($quantity == 1) {
                        $Cart->setNewItem($getmenuid, $choices, $quantity, $getitemid, urldecode($getitemname), $getprice);
                    } else {
                        $Cart->setItemQuantity($getmenuid, $choices, $quantity);
                    }
                    $Cart->save();
                    break;
                case "rem":
                    $Cart->setItemQuantity($getmenuid, $_GET['choices'], 0);
                    $Cart->save();
                    break;
            }
        }
    }
    if (isset($_GET['quantity']) && is_array($_GET['quantity']) && count($_GET['quantity'])) {
        foreach ($_GET['quantity'] as $orderid => $quantity) {
            $Cart->setOrderQuantity($orderid, $quantity);
            $Cart->save();
        }
    }
}

$openarr                  = checkopen($_SESSION['restaurantid'], $dbci);
$_SESSION['discount']     = getDiscount();
$_SESSION['OKZone']       = checkZone();
$_SESSION['openclose']    = $openarr[0];
$_SESSION['opentimes']    = $openarr[1];
$_SESSION['islate']       = $openarr[2];
$restcity    = rtrim($_SESSION['restcity']);
$restcounty  = rtrim($_SESSION['restcounty']);
$restname    = rtrim($_SESSION['restname']);
$resttype    = rtrim($_SESSION['resttype']);
$KEYWORD     = $_SESSION['keywords'];
$restactive  = $_SESSION['restactive'];

$deliveryinfo = "Delivery unavailable";
if ($_SESSION['restactive'] == 'Y') {
    if ($_SESSION['deliverytimelag'] == "") { $_SESSION['deliverytimelag'] = "60"; }
    $deliveryinfo = 'Delivery up to ' . $_SESSION['delivery_radius'] . ' miles in ' . $_SESSION['deliverytimelag'] . ' mins';
} else {
    $deliveryinfo = "Delivery unavailable";
}

// FIX 1:  belongs here in the PHP, inside the distance
// check block — exactly as it is in the original template. Moving it to the
// HTML (as in the previous version) was incorrect; it must execute as PHP
// before the page renders so $distancecharge is set correctly.
if (isset($_SESSION['restclientdistance'])) {
    $distancecharge = 0;
    
    $_SESSION['distancecharge'] = $distancecharge;
} else {
    $_SESSION['distancecharge'] = 0;
}

$keywordlist = $restname . "," . $restcity . "," . $_SESSION['resttype'];
if ($_SESSION['resttype2'] != "") { $keywordlist .= "," . $_SESSION['resttype2']; }
if ($_SESSION['resttype3'] != "") { $keywordlist .= "," . $_SESSION['resttype3']; }
if ($_SESSION['resttype4'] != "") { $keywordlist .= "," . $_SESSION['resttype4']; }
$keywordlist .= ",food,delivery,takeaway,menu";

$descriptionlist = "Explore the full menu from $restname in $restcity. Order $resttype takeaway online for fast delivery or collection. Wide selection of delicious dishes.";

function CurrencyCheck($amount) {
    $amount = ltrim(rtrim($amount));
    $pos = strpos($amount, '.');
    $len = strlen($amount);
    if ($pos === false) {
        $amount .= '.00';
    } elseif ($pos + 2 == $len) {
        $amount .= '0';
    } elseif ($pos + 1 == $len) {
        $amount .= '00';
    }
    return ($amount);
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- SEO -->
    <title><?php echo htmlspecialchars($restname); ?>: <?php echo htmlspecialchars($resttype); ?> Takeaway Menu in <?php echo htmlspecialchars($restcity); ?> | EatEasy</title>
    <meta name="description" content="<?php echo htmlspecialchars($descriptionlist); ?>">
    <meta name="keywords"    content="<?php echo htmlspecialchars($keywordlist); ?>">
    <meta name="robots"      content="index, follow, max-snippet:-1, max-image-preview:large">
    <link rel="canonical"    href="<?php echo 'https://www.eateasy.co.uk/' . htmlspecialchars($_SESSION['urlpath'] . str_replace('.php', '-menu.php', rtrim($_SESSION['urlrestname']))); ?>">

    <!-- Open Graph -->
    <meta property="og:type"        content="restaurant">
    <meta property="og:title"       content="<?php echo htmlspecialchars($restname); ?>: <?php echo htmlspecialchars($resttype); ?> Takeaway Menu in <?php echo htmlspecialchars($restcity); ?>">
    <meta property="og:description" content="<?php echo htmlspecialchars($descriptionlist); ?>">
    <meta property="og:image"       content="https://www.eateasy.co.uk/images/<?php echo htmlspecialchars($_SESSION['rest_image']); ?>">
    <meta property="og:url"         content="<?php echo 'https://www.eateasy.co.uk/' . htmlspecialchars($_SESSION['urlpath'] . str_replace('.php', '-menu.php', rtrim($_SESSION['urlrestname']))); ?>">

    <!-- Twitter Card -->
    <meta name="twitter:card"        content="summary_large_image">
    <meta name="twitter:title"       content="<?php echo htmlspecialchars($restname); ?> Menu | EatEasy">
    <meta name="twitter:description" content="<?php echo htmlspecialchars($descriptionlist); ?>">
    <meta name="twitter:image"       content="https://www.eateasy.co.uk/images/<?php echo htmlspecialchars($_SESSION['rest_image']); ?>">

    <!-- Schema.org JSON-LD -->
    <script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "Restaurant",
        "name": "<?php echo htmlspecialchars($restname, ENT_QUOTES); ?>",
        "servesCuisine": "<?php echo htmlspecialchars($resttype, ENT_QUOTES); ?>",
        "telephone": "<?php echo htmlspecialchars($_SESSION['telephone'], ENT_QUOTES); ?>",
        "url": "<?php echo 'https://www.eateasy.co.uk/' . htmlspecialchars($_SESSION['urlpath'] . $_SESSION['urlrestname']); ?>",
        "menu": "<?php echo 'https://www.eateasy.co.uk/' . htmlspecialchars($_SESSION['urlpath'] . str_replace('.php', '-menu.php', rtrim($_SESSION['urlrestname']))); ?>",
        "image": "https://www.eateasy.co.uk/images/<?php echo htmlspecialchars($_SESSION['rest_image'], ENT_QUOTES); ?>",
        "address": {
            "@type": "PostalAddress",
            "streetAddress": "<?php echo htmlspecialchars(rtrim($_SESSION['restaddress1'] . ' ' . $_SESSION['restaddress2']), ENT_QUOTES); ?>",
            "addressLocality": "<?php echo htmlspecialchars($restcity, ENT_QUOTES); ?>",
            "addressRegion": "<?php echo htmlspecialchars($restcounty, ENT_QUOTES); ?>",
            "postalCode": "<?php echo htmlspecialchars($_SESSION['restpostcode'], ENT_QUOTES); ?>",
            "addressCountry": "GB"
        }
    }
    </script>

    <!-- Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-EEWCVF6M26"></script>
    <script>
        window.dataLayer = window.dataLayer || [];
        function gtag() { dataLayer.push(arguments); }
        gtag('js', new Date());
        gtag('config', 'G-EEWCVF6M26');
    </script>

    <!-- AdSense -->
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4829507070201485" crossorigin="anonymous"></script>

    <!-- Fonts -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500;600&display=swap" rel="stylesheet">

    <!-- Single consolidated CSS — replaces both index.css and menunew.css -->
    <!-- Bootstrap CSS must be loaded for tab-pane show/hide to work -->
    <link rel="stylesheet" href="https://www.eateasy.co.uk/css/bootstrap.css">
    <link rel="stylesheet" href="https://www.eateasy.co.uk/css/menu.css">

    <!-- jQuery MUST load before Bootstrap JS and cartnew.js -->
    <script src="https://www.eateasy.co.uk/js/jquery.min.js"></script>
    <!-- Bootstrap JS provides the .tab('show') plugin used by cartnew.js -->
    <script src="https://www.eateasy.co.uk/js/bootstrap.js"></script>
    <!-- Cart and site JS -->
    <script src="https://www.eateasy.co.uk/js/cartnew.js"></script>
    <script src="https://www.eateasy.co.uk/scripts/functions.js"></script>

    <script>
    function caps(el) { el.value = el.value.toUpperCase(); }
    </script>

    <!-- Cookie consent -->
    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.css">
    <script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.js"></script>
    <script>
    window.addEventListener("load", function() {
        window.cookieconsent.initialise({
            "palette": { "popup": {"background":"#0f2744","text":"#cce4f6"}, "button": {"background":"#3a6bc4","text":"#ffffff"} },
            "showLink": false, "type": "opt-out"
        });
    });
    </script>
</head>
<body class="menu-page">

<!-- ═══ HEADER ═══ -->
<header class="site-header">
    <div class="header-inner">
        <a class="logo-link" href="https://www.eateasy.co.uk/" aria-label="EatEasy Home">
            <img src="https://www.eateasy.co.uk/images/EatEasyLogoHeaderSmall.png"
                 alt="EatEasy" class="logo-img" width="120" height="38">
        </a>
        <button class="nav-toggle" aria-label="Toggle navigation" aria-expanded="false"
                onclick="var e=document.getElementById('main-nav');e.classList.toggle('open');this.setAttribute('aria-expanded',e.classList.contains('open').toString())">
            <span></span><span></span><span></span>
        </button>
        <nav id="main-nav" class="main-nav" aria-label="Main navigation">
            <ul>
                <li><a href="https://www.eateasy.co.uk/">Home</a></li>
                <li><a href="https://www.eateasy.co.uk/<?php echo htmlspecialchars($_SESSION['restauranturl']); ?>">Back to Restaurant</a></li>
                <?php if (isset($_SESSION['loginstatus']) && $_SESSION['loginstatus'] === 'IN'): ?>
                    <li><a href="https://www.eateasy.co.uk/member-profile.php">Profile</a></li>
                    <li><a href="https://www.eateasy.co.uk/logout.php">Logout</a></li>
                <?php else: ?>
                    <li><a href="https://www.eateasy.co.uk/login.php">Login</a></li>
                    <li><a href="https://www.eateasy.co.uk/register.php">Register</a></li>
                <?php endif; ?>
                <li><a href="https://www.eateasy.co.uk/about-us.php">About</a></li>
                <li><a href="https://www.eateasy.co.uk/contact-us.php">Contact Us</a></li>
            </ul>
        </nav>
        <form class="header-search" action="https://www.eateasy.co.uk/search.php" method="get" role="search">
            <input type="text" name="postcode" placeholder="Enter postcode…" maxlength="8" onkeyup="caps(this)" aria-label="Search by postcode">
            <input type="hidden" name="foodtype" id="foodtype2" value="All">
            <button type="submit">Search</button>
        </form>
    </div>
</header>

<!-- ═══ MENU HERO BAND ═══ -->
<div class="menu-hero">
    <div class="menu-hero-inner">
        <img src="https://www.eateasy.co.uk/images/<?php echo htmlspecialchars($_SESSION['rest_image']); ?>"
             width="80" height="80" alt="<?php echo htmlspecialchars($restname); ?> Restaurant Image"
             class="menu-logo">
        <div class="menu-hero-info">
            <nav aria-label="Breadcrumb" class="breadcrumb-nav">
                <ol>
                    <li><a href="https://www.eateasy.co.uk">Home</a></li>
                    <li aria-hidden="true">›</li>
                    <li><a href="<?php echo htmlspecialchars('https://www.eateasy.co.uk/' . str_replace(' ','-',$restcounty) . '-takeaways/' . str_replace(' ','-',$restcity) . '-restaurants/' . str_replace(' ','-',$restcity) . '-takeaway-food-' . str_replace(' ','-',$restcounty) . '.php'); ?>"><?php echo htmlspecialchars($restcity); ?> Takeaways</a></li>
                    <li aria-hidden="true">›</li>
                    <li><a href="https://www.eateasy.co.uk/<?php echo htmlspecialchars($_SESSION['restauranturl']); ?>"><?php echo htmlspecialchars($restname); ?></a></li>
                    <li aria-hidden="true">›</li>
                    <li aria-current="page">Menu</li>
                </ol>
            </nav>
            <h1><?php echo htmlspecialchars($restname); ?> Takeaway Menu</h1>
            <p class="menu-meta"><?php echo htmlspecialchars($descriptionlist); ?></p>
            <p class="menu-meta">
                Distance:
                <?php if (isset($_SESSION['restclientdistance'])) { echo htmlspecialchars(substr($_SESSION['restclientdistance'], 0, 5)) . ' miles away'; } else { echo 'Sign in to see distance'; } ?>
                &nbsp;|&nbsp; Today's hours: <strong><?php echo htmlspecialchars($_SESSION['opentimes']); ?></strong>
                &nbsp;|&nbsp; Min. order: <strong>&pound;<?php echo htmlspecialchars($_SESSION['minimumorder']); ?></strong>
                &nbsp;|&nbsp; Delivery: up to <strong><?php echo htmlspecialchars($_SESSION['delivery_radius']); ?> miles</strong>
                <?php if ($_SESSION['deliverycharge'] > 0): ?>&nbsp;|&nbsp; Charge: <strong>&pound;<?php echo htmlspecialchars($_SESSION['deliverycharge']); ?></strong><?php endif; ?>
                <?php if ($_SESSION['deliverythreshold'] > 0): ?>&nbsp;|&nbsp; Free delivery over <strong>&pound;<?php echo htmlspecialchars($_SESSION['deliverythreshold']); ?></strong><?php endif; ?>
            </p>
            <?php
            $diet = '';
            if ($_SESSION['halal']      == 'Y') $diet .= '<img src="https://www.eateasy.co.uk/images/halal.jpg" width="36" height="36" alt="Halal Food at ' . htmlspecialchars($restname) . '" /> ';
            if ($_SESSION['vegan']      == 'Y') $diet .= '<img src="https://www.eateasy.co.uk/images/vegan.jpg" width="36" height="36" alt="Vegan Food at ' . htmlspecialchars($restname) . '" /> ';
            if ($_SESSION['vegetarian'] == 'Y') $diet .= '<img src="https://www.eateasy.co.uk/images/vegetarian.jpg" width="36" height="36" alt="Vegetarian Food at ' . htmlspecialchars($restname) . '" /> ';
            if ($_SESSION['spicy']      == 'Y') $diet .= '<img src="https://www.eateasy.co.uk/images/spicy.jpg" width="36" height="36" alt="Spicy Food at ' . htmlspecialchars($restname) . '" />';
            if ($diet) echo '<div class="menu-diet">' . $diet . '</div>';
            ?>
            <div class="share-buttons">
                <a href="https://twitter.com/intent/tweet?text=<?php echo urlencode('Check out the ' . $restname . ' menu on EatEasy!'); ?>&url=<?php echo urlencode('https://www.eateasy.co.uk/' . $_SESSION['urlpath'] . str_replace('.php', '-menu.php', rtrim($_SESSION['urlrestname']))); ?>"
                   class="share-btn share-x" target="_blank" rel="noopener noreferrer" aria-label="Share on X">
                    <svg width="13" height="13" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.744l7.73-8.835L1.254 2.25H8.08l4.253 5.622L18.244 2.25zm-1.161 17.52h1.833L7.084 4.126H5.117L17.083 19.77z"/></svg>
                    Share on Twitter
                </a>
                <a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo urlencode('https://www.eateasy.co.uk/' . $_SESSION['urlpath'] . str_replace('.php', '-menu.php', rtrim($_SESSION['urlrestname']))); ?>"
                   class="share-btn share-fb" target="_blank" rel="noopener noreferrer" aria-label="Share on Facebook">
                    <svg width="13" height="13" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/></svg>
                    Share on Facebook
                </a>
            </div>
        </div>
    </div>
</div>

<!-- ═══ THREE-COLUMN MENU LAYOUT ═══ -->
<div id="mainTab" class="menu-layout">

    <!-- Bootstrap nav-tabs — cartnew.js uses $('.nav-tabs a[href="#...""]').tab('show') -->
    <?php
    // Determine which tab to show on load.
    $activeTab = 'menucontents';
    if (isset($_GET['category']) && $_GET['category'] === 'orderform') {
        $activeTab = 'orderform';
    }
    ?>
    <ul class="nav nav-tabs menu-tabs">
        <li<?php echo $activeTab === 'categorybar'  ? ' class="active"' : ''; ?>><a href="#categorybar"  data-toggle="tab">Category</a></li>
        <li<?php echo $activeTab === 'menucontents' ? ' class="active"' : ''; ?>><a href="#menucontents" data-toggle="tab">Menu</a></li>
        <li<?php echo $activeTab === 'orderform'    ? ' class="active"' : ''; ?>><a href="#orderform"    data-toggle="tab">Order</a></li>
    </ul>
    <?php if ($activeTab === 'orderform'): ?>
    <script>
    // Force Bootstrap to show the Order tab after it initialises.
    // PHP sets the active class but Bootstrap's JS can reset it on ready.
    $(document).ready(function() {
        $('.nav-tabs a[href="#orderform"]').tab('show');
    });
    </script>
    <?php endif; ?>

    <div class="tab-content">

        <!-- LEFT: Category panel -->
        <div id="categorybar" class="tab-pane<?php echo $activeTab === 'categorybar' ? ' active' : ''; ?>">
            <?php
            $cat = 'DailySpecials';
            if ($_SESSION['specials']) {
                echo '<a href="?category=DailySpecialsCategory" class="categorytxt" onclick="this.blur(); return selcat(\'DailySpecialsCategory\');">Daily Specials</a>';
            }
            ?>
            <div class="categorytxt" onclick="this.blur(); return selcat('BeveragesCategory');"><a href="#menucontents" onclick="showmenu();">Beverages</a></div><div class="categorytxt" onclick="this.blur(); return selcat('PizzasCategory');"><a href="#menucontents" onclick="showmenu();">Pizzas</a></div><div class="categorytxt" onclick="this.blur(); return selcat('GarlicbreadCategory');"><a href="#menucontents" onclick="showmenu();">Garlic bread</a></div><div class="categorytxt" onclick="this.blur(); return selcat('BurgersCategory');"><a href="#menucontents" onclick="showmenu();">Burgers</a></div><div class="categorytxt" onclick="this.blur(); return selcat('KebabsCategory');"><a href="#menucontents" onclick="showmenu();">Kebabs</a></div><div class="categorytxt" onclick="this.blur(); return selcat('FishdishesCategory');"><a href="#menucontents" onclick="showmenu();">Fish dishes</a></div><div class="categorytxt" onclick="this.blur(); return selcat('PiesCategory');"><a href="#menucontents" onclick="showmenu();">Pies</a></div><div class="categorytxt" onclick="this.blur(); return selcat('SouvlakiCategory');"><a href="#menucontents" onclick="showmenu();">Souvlaki</a></div><div class="categorytxt" onclick="this.blur(); return selcat('ExtrasCategory');"><a href="#menucontents" onclick="showmenu();">Extras</a></div><div class="categorytxt" onclick="this.blur(); return selcat('SaucesCategory');"><a href="#menucontents" onclick="showmenu();">Sauces</a></div><div class="categorytxt" onclick="this.blur(); return selcat('KidsmealCategory');"><a href="#menucontents" onclick="showmenu();">Kids meal</a></div><div class="categorytxt" onclick="this.blur(); return selcat('MealdealsCategory');"><a href="#menucontents" onclick="showmenu();">Meal deals</a></div>
        </div>

        <!-- CENTRE: Menu panel -->
        <div class="tab-pane<?php echo $activeTab === 'menucontents' ? ' active' : ''; ?>" id="menucontents">
        <div id="menus">
            <div id="categoryselected"></div>
            <div id="phpcategoryframe">
                <?php
                // FIX 2: Daily Specials rendered as three separate if-blocks with
                // explicit IDs (10001/10002/10003, 99999991/92/93) matching the original.
                // The previous version used a foreach loop which was incorrect.
                if ($_SESSION['specials']) {
                    $extrasid  = '-1';
                    $extrasArr = "";
                    if ($category != 'DailySpecialsCategory') {
                        echo '<div id="DailySpecialsCategory" style="display:none"> <a name="DailySpecials" id="DailySpecials">';
                    } else {
                        echo '<div id="DailySpecialsCategory"> <a name="DailySpecials" id="DailySpecials">';
                    }
                    echo '<h2>Daily Specials</h2>
                    </a>
                    <table id="menutable">
                      <tr class="headtxt">
                        <th width="25">Id</th>
                        <th width="260">Item</th>
                        <th width="120"></th>
                        <th width="45">Price</th>
                        <th width="17">Add</th>
                      </tr>';
                    if ($_SESSION['special1itemname'] != '') {
                        $itemid      = "10001";
                        $menuid      = "99999991";
                        $itemname    = str_replace(",", "", $_SESSION['special1itemname']);
                        $description = $_SESSION['special1description'];
                        $subtype     = $_SESSION['special1subtype'];
                        $price       = $_SESSION['special1price'];
                        echo '
                      <tr class="odd">
                        <td rowspan="1">' . $itemid . '</td>
                        <td rowspan="1"><h3>' . htmlspecialchars($itemname) . '</h3>
                          <div>' . htmlspecialchars($description) . '</div></td>
                        <td>' . htmlspecialchars($subtype) . '</td>
                        <td>£ ' . $price . '</td>
                        <td><a id="' . $menuid . '" href="?act=add&quantity=1&menuid=' . $menuid . '&itemid=' . $itemid . '&itemname=' . urlencode($itemname . ' ' . $subtype) . '&price=' . $price . '&choicenum=' . $extrasid . '&category=DailySpecialsCategory" onclick="this.blur(); return addItem(' . $menuid . ',' . $itemid . ',\'' . $itemname . ' ' . $subtype . '\',' . $price . ',' . $extrasid . ',' . $extrasArr . ',\'DailySpecialsCategory\');"><img src="https://www.eateasy.co.uk/images/button-add.gif" alt="Add ' . htmlspecialchars($itemname) . ' to cart" /></a></td>
                      </tr>';
                    }
                    if ($_SESSION['special2itemname'] != '') {
                        $itemid      = "10002";
                        $menuid      = "99999992";
                        $itemname    = str_replace(",", "", $_SESSION['special2itemname']);
                        $description = $_SESSION['special2description'];
                        $subtype     = $_SESSION['special2subtype'];
                        $price       = $_SESSION['special2price'];
                        echo '
                      <tr class="even">
                        <td rowspan="1">' . $itemid . '</td>
                        <td rowspan="1"><h3>' . htmlspecialchars($itemname) . '</h3>
                          <div>' . htmlspecialchars($description) . '</div></td>
                        <td>' . htmlspecialchars($subtype) . '</td>
                        <td>£ ' . $price . '</td>
                        <td><a id="' . $menuid . '" href="?act=add&quantity=1&menuid=' . $menuid . '&itemid=' . $itemid . '&itemname=' . urlencode($itemname . ' ' . $subtype) . '&price=' . $price . '&choicenum=' . $extrasid . '&category=DailySpecialsCategory" onclick="this.blur(); return addItem(' . $menuid . ',' . $itemid . ',\'' . $itemname . ' ' . $subtype . '\',' . $price . ',' . $extrasid . ',' . $extrasArr . ',\'DailySpecialsCategory\');"><img src="https://www.eateasy.co.uk/images/button-add.gif" alt="Add ' . htmlspecialchars($itemname) . ' to cart" /></a></td>
                      </tr>';
                    }
                    if ($_SESSION['special3itemname'] != '') {
                        $itemid      = "10003";
                        $menuid      = "99999993";
                        $itemname    = str_replace(",", "", $_SESSION['special3itemname']);
                        $description = $_SESSION['special3description'];
                        $subtype     = $_SESSION['special3subtype'];
                        $price       = $_SESSION['special3price'];
                        echo '
                      <tr class="odd">
                        <td rowspan="1">' . $itemid . '</td>
                        <td rowspan="1"><h3>' . htmlspecialchars($itemname) . '</h3>
                          <div>' . htmlspecialchars($description) . '</div></td>
                        <td>' . htmlspecialchars($subtype) . '</td>
                        <td>£ ' . $price . '</td>
                        <td><a id="' . $menuid . '" href="?act=add&quantity=1&menuid=' . $menuid . '&itemid=' . $itemid . '&itemname=' . urlencode($itemname . ' ' . $subtype) . '&price=' . $price . '&choicenum=' . $extrasid . '&category=DailySpecialsCategory" onclick="this.blur(); return addItem(' . $menuid . ',' . $itemid . ',\'' . $itemname . ' ' . $subtype . '\',' . $price . ',' . $extrasid . ',' . $extrasArr . ',\'DailySpecialsCategory\');"><img src="https://www.eateasy.co.uk/images/button-add.gif" alt="Add ' . htmlspecialchars($itemname) . ' to cart" /></a></td>
                      </tr>';
                    }
                    echo '</table></div>';
                }
                ?>
                
                <div id="BeveragesCategory" <?php if($category=='BeveragesCategory') {echo 'style=""';} ?>> <h2>Beverages</h2>
                            <div id="categoryinfo">
                <table class="menutable">
                  <tr class="headtxt">
                    <th width="57%">Item</th>
                    <th width="28%"></th>
                    <th width="9%">Price</th>
                    <th width="6%">Add</th>
                  </tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Coca-Cola</h6>
                      <div></div></td>
                    <td>0.33L</td>
                    <td>£ 0.80</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149907,1,'Coca-Cola 0.33L',0.80,-1,'','BeveragesCategory'); showorder();" alt="Add Coca-Cola to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Diet Coca-Cola</h6>
                      <div></div></td>
                    <td>0.33L</td>
                    <td>£ 0.80</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149908,2,'Diet Coca-Cola 0.33L',0.80,-1,'','BeveragesCategory'); showorder();" alt="Add Diet Coca-Cola to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Sprite</h6>
                      <div></div></td>
                    <td>0.33L</td>
                    <td>£ 0.80</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149909,3,'Sprite 0.33L',0.80,-1,'','BeveragesCategory'); showorder();" alt="Add Sprite to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Fanta Orange</h6>
                      <div></div></td>
                    <td>0.33L</td>
                    <td>£ 0.80</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149910,4,'Fanta Orange 0.33L',0.80,-1,'','BeveragesCategory'); showorder();" alt="Add Fanta Orange to cart"/></td></tr></table></div>
                    </div>
                <div id="PizzasCategory" <?php if($category=='PizzasCategory') {echo 'style=""';} ?>> <h2>Pizzas</h2>
                            <div id="categoryinfo">
                <table class="menutable">
                  <tr class="headtxt">
                    <th width="57%">Item</th>
                    <th width="28%"></th>
                    <th width="9%">Price</th>
                    <th width="6%">Add</th>
                  </tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Margherita</h6>
                      <div></div></td>
                    <td>10&quot;</td>
                    <td>£ 4.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149911,5,'Margherita 10&quot;',4.50,-1,'','PizzasCategory'); showorder();" alt="Add Margherita to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>12&quot;</td>
                    <td>£ 5.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149912,5,'Margherita 12&quot;',5.50,-1,'','PizzasCategory'); showorder();" alt="Add Margherita to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Bolognese Pizza</h6>
                      <div>Bolognese sauce</div></td>
                    <td>10&quot;</td>
                    <td>£ 4.90</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149913,6,'Bolognese Pizza 10&quot;',4.90,-1,'','PizzasCategory'); showorder();" alt="Add Bolognese Pizza to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>12&quot;</td>
                    <td>£ 6.40</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149914,6,'Bolognese Pizza 12&quot;',6.40,-1,'','PizzasCategory'); showorder();" alt="Add Bolognese Pizza to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Salami Pizza</h6>
                      <div>Salami mushrooms and onions</div></td>
                    <td>10&quot;</td>
                    <td>£ 4.00</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149915,7,'Salami Pizza 10&quot;',4.00,-1,'','PizzasCategory'); showorder();" alt="Add Salami Pizza to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>12&quot;</td>
                    <td>£ 5.10</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149916,7,'Salami Pizza 12&quot;',5.10,-1,'','PizzasCategory'); showorder();" alt="Add Salami Pizza to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Hawaiian</h6>
                      <div>Ham and pineapple</div></td>
                    <td>10&quot;</td>
                    <td>£ 5.00</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149917,8,'Hawaiian 10&quot;',5.00,-1,'','PizzasCategory'); showorder();" alt="Add Hawaiian to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>12&quot;</td>
                    <td>£ 6.20</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149918,8,'Hawaiian 12&quot;',6.20,-1,'','PizzasCategory'); showorder();" alt="Add Hawaiian to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Vegetarian</h6>
                      <div>Onions mushrooms and peppers</div></td>
                    <td>10&quot;</td>
                    <td>£ 4.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149919,9,'Vegetarian 10&quot;',4.50,-1,'','PizzasCategory'); showorder();" alt="Add Vegetarian to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>12&quot;</td>
                    <td>£ 6.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149920,9,'Vegetarian 12&quot;',6.50,-1,'','PizzasCategory'); showorder();" alt="Add Vegetarian to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Mighty Meat</h6>
                      <div>Chicken ham pepperoni and salami</div></td>
                    <td>10&quot;</td>
                    <td>£ 5.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149921,10,'Mighty Meat 10&quot;',5.50,-1,'','PizzasCategory'); showorder();" alt="Add Mighty Meat to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>12&quot;</td>
                    <td>£ 6.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149922,10,'Mighty Meat 12&quot;',6.50,-1,'','PizzasCategory'); showorder();" alt="Add Mighty Meat to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Chicken Kiev Pizza</h6>
                      <div>Chicken ham mushrooms and garlic</div></td>
                    <td>10&quot;</td>
                    <td>£ 5.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149923,11,'Chicken Kiev Pizza 10&quot;',5.50,-1,'','PizzasCategory'); showorder();" alt="Add Chicken Kiev Pizza to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>12&quot;</td>
                    <td>£ 6.60</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149924,11,'Chicken Kiev Pizza 12&quot;',6.60,-1,'','PizzasCategory'); showorder();" alt="Add Chicken Kiev Pizza to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Chicken Special Pizza</h6>
                      <div>Chicken onions and sweetcorn</div></td>
                    <td>10&quot;</td>
                    <td>£ 4.90</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149925,12,'Chicken Special Pizza 10&quot;',4.90,-1,'','PizzasCategory'); showorder();" alt="Add Chicken Special Pizza to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>12&quot;</td>
                    <td>£ 5.90</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149926,12,'Chicken Special Pizza 12&quot;',5.90,-1,'','PizzasCategory'); showorder();" alt="Add Chicken Special Pizza to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Tuna Special</h6>
                      <div>Tuna sweetcorn and onions</div></td>
                    <td>10&quot;</td>
                    <td>£ 5.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149927,13,'Tuna Special 10&quot;',5.50,-1,'','PizzasCategory'); showorder();" alt="Add Tuna Special to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>12&quot;</td>
                    <td>£ 6.55</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149928,13,'Tuna Special 12&quot;',6.55,-1,'','PizzasCategory'); showorder();" alt="Add Tuna Special to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Calzone</h6>
                      <div>Ham mushrooms onions and peppers</div></td>
                    <td>10&quot;</td>
                    <td>£ 4.90</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149929,14,'Calzone 10&quot;',4.90,-1,'','PizzasCategory'); showorder();" alt="Add Calzone to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>12&quot;</td>
                    <td>£ 6.55</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149930,14,'Calzone 12&quot;',6.55,-1,'','PizzasCategory'); showorder();" alt="Add Calzone to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Pepperoni</h6>
                      <div>Pepperoni onions and peppers</div></td>
                    <td>10&quot;</td>
                    <td>£ 4.95</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149931,15,'Pepperoni 10&quot;',4.95,-1,'','PizzasCategory'); showorder();" alt="Add Pepperoni to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>12&quot;</td>
                    <td>£ 6.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149932,15,'Pepperoni 12&quot;',6.50,-1,'','PizzasCategory'); showorder();" alt="Add Pepperoni to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Seafood</h6>
                      <div>Tuna and prawns</div></td>
                    <td>10&quot;</td>
                    <td>£ 5.30</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149933,16,'Seafood 10&quot;',5.30,-1,'','PizzasCategory'); showorder();" alt="Add Seafood to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>12&quot;</td>
                    <td>£ 6.35</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149934,16,'Seafood 12&quot;',6.35,-1,'','PizzasCategory'); showorder();" alt="Add Seafood to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Hot  Spicy</h6>
                      <div>Hot spicy beef onions peppers and chillies</div></td>
                    <td>10&quot;</td>
                    <td>£ 5.90</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149935,17,'Hot  Spicy 10&quot;',5.90,-1,'','PizzasCategory'); showorder();" alt="Add Hot  Spicy to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>12&quot;</td>
                    <td>£ 6.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149936,17,'Hot  Spicy 12&quot;',6.50,-1,'','PizzasCategory'); showorder();" alt="Add Hot  Spicy to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Hot Shot</h6>
                      <div>Hot. ham onions mushrooms garlic and chillies</div></td>
                    <td>10&quot;</td>
                    <td>£ 5.40</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149937,18,'Hot Shot 10&quot;',5.40,-1,'','PizzasCategory'); showorder();" alt="Add Hot Shot to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>12&quot;</td>
                    <td>£ 6.60</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149938,18,'Hot Shot 12&quot;',6.60,-1,'','PizzasCategory'); showorder();" alt="Add Hot Shot to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Inferno</h6>
                      <div>Hot. Salami ham onions peppers and chilli base</div></td>
                    <td>10&quot;</td>
                    <td>£ 5.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149939,19,'Inferno 10&quot;',5.50,-1,'','PizzasCategory'); showorder();" alt="Add Inferno to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>12&quot;</td>
                    <td>£ 6.60</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149940,19,'Inferno 12&quot;',6.60,-1,'','PizzasCategory'); showorder();" alt="Add Inferno to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Kebab Pizza</h6>
                      <div>Kebab meat onions and peppers</div></td>
                    <td>10&quot;</td>
                    <td>£ 5.90</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149941,20,'Kebab Pizza 10&quot;',5.90,-1,'','PizzasCategory'); showorder();" alt="Add Kebab Pizza to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>12&quot;</td>
                    <td>£ 6.90</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149942,20,'Kebab Pizza 12&quot;',6.90,-1,'','PizzasCategory'); showorder();" alt="Add Kebab Pizza to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Gills Spicy Pizza</h6>
                      <div>Hot. Ham pepperoni mushrooms onions peppers spicy pork chilli and garlic</div></td>
                    <td>10&quot;</td>
                    <td>£ 5.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149943,21,'Gills Spicy Pizza 10&quot;',5.50,-1,'','PizzasCategory'); showorder();" alt="Add Gills Spicy Pizza to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>12&quot;</td>
                    <td>£ 6.70</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149944,21,'Gills Spicy Pizza 12&quot;',6.70,-1,'','PizzasCategory'); showorder();" alt="Add Gills Spicy Pizza to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Make Your Own Pizza</h6>
                      <div>Any five toppings of your choice (please select toppings from the list on the next page)</div></td>
                    <td>10&quot;</td>
                    <td>£ 5.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149945,22,'Make Your Own Pizza 10&quot;',5.50,-1,'','PizzasCategory'); showorder();" alt="Add Make Your Own Pizza to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>12&quot;</td>
                    <td>£ 6.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149946,22,'Make Your Own Pizza 12&quot;',6.50,-1,'','PizzasCategory'); showorder();" alt="Add Make Your Own Pizza to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Half  Half Pizza</h6>
                      <div>Any two pizzas on one base</div></td>
                    <td></td>
                    <td>£ 6.00</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149947,23,'Half  Half Pizza ',6.00,-1,'','PizzasCategory'); showorder();" alt="Add Half  Half Pizza to cart"/></td></tr></table></div>
                    </div>
                <div id="GarlicbreadCategory" <?php if($category=='GarlicbreadCategory') {echo 'style=""';} ?>> <h2>Garlic bread</h2>
                            <div id="categoryinfo">
                <table class="menutable">
                  <tr class="headtxt">
                    <th width="57%">Item</th>
                    <th width="28%"></th>
                    <th width="9%">Price</th>
                    <th width="6%">Add</th>
                  </tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Plain Garlic Bread</h6>
                      <div></div></td>
                    <td>10&quot;</td>
                    <td>£ 1.90</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149948,24,'Plain Garlic Bread 10&quot;',1.90,-1,'','GarlicbreadCategory'); showorder();" alt="Add Plain Garlic Bread to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>12&quot;</td>
                    <td>£ 2.90</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149949,24,'Plain Garlic Bread 12&quot;',2.90,-1,'','GarlicbreadCategory'); showorder();" alt="Add Plain Garlic Bread to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Garlic Bread with Cheese</h6>
                      <div></div></td>
                    <td>10&quot;</td>
                    <td>£ 2.40</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149950,25,'Garlic Bread with Cheese 10&quot;',2.40,-1,'','GarlicbreadCategory'); showorder();" alt="Add Garlic Bread with Cheese to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>12&quot;</td>
                    <td>£ 3.40</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149951,25,'Garlic Bread with Cheese 12&quot;',3.40,-1,'','GarlicbreadCategory'); showorder();" alt="Add Garlic Bread with Cheese to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Garlic Bread with Tomato</h6>
                      <div></div></td>
                    <td>10&quot;</td>
                    <td>£ 2.30</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149952,26,'Garlic Bread with Tomato 10&quot;',2.30,-1,'','GarlicbreadCategory'); showorder();" alt="Add Garlic Bread with Tomato to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>12&quot;</td>
                    <td>£ 3.40</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149953,26,'Garlic Bread with Tomato 12&quot;',3.40,-1,'','GarlicbreadCategory'); showorder();" alt="Add Garlic Bread with Tomato to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Garlic Bread with Cheese  Tomato</h6>
                      <div></div></td>
                    <td>10&quot;</td>
                    <td>£ 2.70</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149954,27,'Garlic Bread with Cheese  Tomato 10&quot;',2.70,-1,'','GarlicbreadCategory'); showorder();" alt="Add Garlic Bread with Cheese  Tomato to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>12&quot;</td>
                    <td>£ 3.60</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149955,27,'Garlic Bread with Cheese  Tomato 12&quot;',3.60,-1,'','GarlicbreadCategory'); showorder();" alt="Add Garlic Bread with Cheese  Tomato to cart"/></td></tr></table></div>
                    </div>
                <div id="BurgersCategory" <?php if($category=='BurgersCategory') {echo 'style=""';} ?>> <h2>Burgers</h2>
                            <div id="categoryinfo">
                <table class="menutable">
                  <tr class="headtxt">
                    <th width="57%">Item</th>
                    <th width="28%"></th>
                    <th width="9%">Price</th>
                    <th width="6%">Add</th>
                  </tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Plain Burger</h6>
                      <div></div></td>
                    <td>Half Pounder</td>
                    <td>£ 4.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149956,28,'Plain Burger Half Pounder',4.50,-1,'','BurgersCategory'); showorder();" alt="Add Plain Burger to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>Quarter Pounder</td>
                    <td>£ 3.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149957,28,'Plain Burger Quarter Pounder',3.50,-1,'','BurgersCategory'); showorder();" alt="Add Plain Burger to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Cheese Burger</h6>
                      <div></div></td>
                    <td>Half Pounder</td>
                    <td>£ 4.70</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149958,29,'Cheese Burger Half Pounder',4.70,-1,'','BurgersCategory'); showorder();" alt="Add Cheese Burger to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>Quarter Pounder</td>
                    <td>£ 3.70</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149959,29,'Cheese Burger Quarter Pounder',3.70,-1,'','BurgersCategory'); showorder();" alt="Add Cheese Burger to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Bolognese Burger</h6>
                      <div></div></td>
                    <td>Half Pounder</td>
                    <td>£ 5.00</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149960,30,'Bolognese Burger Half Pounder',5.00,-1,'','BurgersCategory'); showorder();" alt="Add Bolognese Burger to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>Quarter Pounder</td>
                    <td>£ 4.00</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149961,30,'Bolognese Burger Quarter Pounder',4.00,-1,'','BurgersCategory'); showorder();" alt="Add Bolognese Burger to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Chicken Burger</h6>
                      <div></div></td>
                    <td>Quarter Pounder</td>
                    <td>£ 3.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149962,31,'Chicken Burger Quarter Pounder',3.50,-1,'','BurgersCategory'); showorder();" alt="Add Chicken Burger to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Kebab Burger</h6>
                      <div></div></td>
                    <td>Quarter Pounder</td>
                    <td>£ 3.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149963,32,'Kebab Burger Quarter Pounder',3.50,-1,'','BurgersCategory'); showorder();" alt="Add Kebab Burger to cart"/></td></tr></table></div>
                    </div>
                <div id="KebabsCategory" <?php if($category=='KebabsCategory') {echo 'style=""';} ?>> <h2>Kebabs</h2>
                            <div id="categoryinfo">
                <table class="menutable">
                  <tr class="headtxt">
                    <th width="57%">Item</th>
                    <th width="28%"></th>
                    <th width="9%">Price</th>
                    <th width="6%">Add</th>
                  </tr>
                  <tr class="even">
                    <td rowspan="1"><h6>10&quot; Garlic Bread Special</h6>
                      <div>Served with kebab meat chips OR salad and sauce</div></td>
                    <td>Chips</td>
                    <td>£ 4.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149964,33,'10&quot; Garlic Bread Special Chips',4.50,-1,'','KebabsCategory'); showorder();" alt="Add 10&amp;quot; Garlic Bread Special to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6></h6>
                      <div>Served with kebab meat chips OR salad and sauce</div></td>
                    <td>Salad</td>
                    <td>£ 4.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149965,33,'10&quot;&quot; Garlic Bread Special Salad',4.50,-1,'','KebabsCategory'); showorder();" alt="Add 10&amp;quot;&amp;quot; Garlic Bread Special to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>12&quot; Garlic Bread Special</h6>
                      <div>Served with kebab meat chips OR salad and sauce</div></td>
                    <td>Chips</td>
                    <td>£ 5.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149966,34,'12&quot; Garlic Bread Special Chips',5.50,-1,'','KebabsCategory'); showorder();" alt="Add 12&amp;quot; Garlic Bread Special to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6></h6>
                      <div>Served with kebab meat chips OR salad and sauce</div></td>
                    <td>Salad</td>
                    <td>£ 5.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149967,34,'12&quot;&quot; Garlic Bread Special Salad',5.50,-1,'','KebabsCategory'); showorder();" alt="Add 12&amp;quot;&amp;quot; Garlic Bread Special to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Kebab Wrap (Plain)</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 2.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149968,35,'Kebab Wrap (Plain) ',2.50,-1,'','KebabsCategory'); showorder();" alt="Add Kebab Wrap (Plain) to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Kebab Wrap</h6>
                      <div>Served with sauce salad OR chips</div></td>
                    <td>Chips</td>
                    <td>£ 3.80</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149969,36,'Kebab Wrap Chips',3.80,-1,'','KebabsCategory'); showorder();" alt="Add Kebab Wrap to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>Salad</td>
                    <td>£ 3.80</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149970,36,'Kebab Wrap Salad',3.80,-1,'','KebabsCategory'); showorder();" alt="Add Kebab Wrap to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Chicken Wrap</h6>
                      <div>Served with salad n chips n sauce</div></td>
                    <td></td>
                    <td>£ 4.80</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149971,37,'Chicken Wrap ',4.80,-1,'','KebabsCategory'); showorder();" alt="Add Chicken Wrap to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Large Donner Kebab</h6>
                      <div>Served with pitta bread salad and sauce</div></td>
                    <td></td>
                    <td>£ 4.80</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149972,38,'Large Donner Kebab ',4.80,-1,'','KebabsCategory'); showorder();" alt="Add Large Donner Kebab to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Kebab Butty (Plain)</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 2.70</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149973,39,'Kebab Butty (Plain) ',2.70,-1,'','KebabsCategory'); showorder();" alt="Add Kebab Butty (Plain) to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Kebab Chip Butty</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 3.20</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149974,40,'Kebab Chip Butty ',3.20,-1,'','KebabsCategory'); showorder();" alt="Add Kebab Chip Butty to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Mixed Kebab</h6>
                      <div>Served with chicken donner kebab sauce chips n salad</div></td>
                    <td></td>
                    <td>£ 6.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149975,41,'Mixed Kebab ',6.50,-1,'','KebabsCategory'); showorder();" alt="Add Mixed Kebab to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Tray of Kebab Meat</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 3.80</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149976,42,'Tray of Kebab Meat ',3.80,-1,'','KebabsCategory'); showorder();" alt="Add Tray of Kebab Meat to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Tray of Meat  Chips</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 5.00</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149977,43,'Tray of Meat  Chips ',5.00,-1,'','KebabsCategory'); showorder();" alt="Add Tray of Meat  Chips to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Pitta Bread</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 0.40</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149978,44,'Pitta Bread ',0.40,-1,'','KebabsCategory'); showorder();" alt="Add Pitta Bread to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Chicken Kebab</h6>
                      <div>Served in pitta bread salad n sauce</div></td>
                    <td></td>
                    <td>£ 5.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149979,45,'Chicken Kebab ',5.50,-1,'','KebabsCategory'); showorder();" alt="Add Chicken Kebab to cart"/></td></tr></table></div>
                    </div>
                <div id="FishdishesCategory" <?php if($category=='FishdishesCategory') {echo 'style=""';} ?>> <h2>Fish dishes</h2>
                            <div id="categoryinfo">
                <table class="menutable">
                  <tr class="headtxt">
                    <th width="57%">Item</th>
                    <th width="28%"></th>
                    <th width="9%">Price</th>
                    <th width="6%">Add</th>
                  </tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Large Cod</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 3.70</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149980,46,'Large Cod ',3.70,-1,'','FishdishesCategory'); showorder();" alt="Add Large Cod to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Small Cod</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 3.00</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149981,47,'Small Cod ',3.00,-1,'','FishdishesCategory'); showorder();" alt="Add Small Cod to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Chips</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 1.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149982,48,'Chips ',1.50,-1,'','FishdishesCategory'); showorder();" alt="Add Chips to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Haddock</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 3.45</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149983,49,'Haddock ',3.45,-1,'','FishdishesCategory'); showorder();" alt="Add Haddock to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Fish Bites (4)</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 3.20</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149984,50,'Fish Bites (4) ',3.20,-1,'','FishdishesCategory'); showorder();" alt="Add Fish Bites (4) to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Fish Cake</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 1.20</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149985,51,'Fish Cake ',1.20,-1,'','FishdishesCategory'); showorder();" alt="Add Fish Cake to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Scampi (8)</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 2.80</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149986,52,'Scampi (8) ',2.80,-1,'','FishdishesCategory'); showorder();" alt="Add Scampi (8) to cart"/></td></tr></table></div>
                    </div>
                <div id="PiesCategory" <?php if($category=='PiesCategory') {echo 'style=""';} ?>> <h2>Pies</h2>
                            <div id="categoryinfo">
                <table class="menutable">
                  <tr class="headtxt">
                    <th width="57%">Item</th>
                    <th width="28%"></th>
                    <th width="9%">Price</th>
                    <th width="6%">Add</th>
                  </tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Spam Fritter</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 1.00</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149987,53,'Spam Fritter ',1.00,-1,'','PiesCategory'); showorder();" alt="Add Spam Fritter to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Mince Pie</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 1.30</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149988,54,'Mince Pie ',1.30,-1,'','PiesCategory'); showorder();" alt="Add Mince Pie to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Steak Pie</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 1.30</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149989,55,'Steak Pie ',1.30,-1,'','PiesCategory'); showorder();" alt="Add Steak Pie to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Cheese Pattie</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 1.20</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149990,56,'Cheese Pattie ',1.20,-1,'','PiesCategory'); showorder();" alt="Add Cheese Pattie to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Corn Beef Pattie</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 1.20</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149991,57,'Corn Beef Pattie ',1.20,-1,'','PiesCategory'); showorder();" alt="Add Corn Beef Pattie to cart"/></td></tr></table></div>
                    </div>
                <div id="SouvlakiCategory" <?php if($category=='SouvlakiCategory') {echo 'style=""';} ?>> <h2>Souvlaki</h2>
                            <div id="categoryinfo">
                <table class="menutable">
                  <tr class="headtxt">
                    <th width="57%">Item</th>
                    <th width="28%"></th>
                    <th width="9%">Price</th>
                    <th width="6%">Add</th>
                  </tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Souvlaki</h6>
                      <div></div></td>
                    <td>Chicken</td>
                    <td>£ 5.80</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149992,58,'Souvlaki Chicken',5.80,-1,'','SouvlakiCategory'); showorder();" alt="Add Souvlaki to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>Kebab</td>
                    <td>£ 4.80</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149993,58,'Souvlaki Kebab',4.80,-1,'','SouvlakiCategory'); showorder();" alt="Add Souvlaki to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>Mixed</td>
                    <td>£ 6.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149994,58,'Souvlaki Mixed',6.50,-1,'','SouvlakiCategory'); showorder();" alt="Add Souvlaki to cart"/></td></tr></table></div>
                    </div>
                <div id="ExtrasCategory" <?php if($category=='ExtrasCategory') {echo 'style=""';} ?>> <h2>Extras</h2>
                            <div id="categoryinfo">
                <table class="menutable">
                  <tr class="headtxt">
                    <th width="57%">Item</th>
                    <th width="28%"></th>
                    <th width="9%">Price</th>
                    <th width="6%">Add</th>
                  </tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Haggis</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 1.40</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149995,59,'Haggis ',1.40,-1,'','ExtrasCategory'); showorder();" alt="Add Haggis to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Smokey</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 1.10</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149996,60,'Smokey ',1.10,-1,'','ExtrasCategory'); showorder();" alt="Add Smokey to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Sausage</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 1.30</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149997,61,'Sausage ',1.30,-1,'','ExtrasCategory'); showorder();" alt="Add Sausage to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Chop Suey Roll</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 1.00</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149998,62,'Chop Suey Roll ',1.00,-1,'','ExtrasCategory'); showorder();" alt="Add Chop Suey Roll to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Chicken Breast</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 3.00</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7149999,63,'Chicken Breast ',3.00,-1,'','ExtrasCategory'); showorder();" alt="Add Chicken Breast to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Chip Butty</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 1.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150000,64,'Chip Butty ',1.50,-1,'','ExtrasCategory'); showorder();" alt="Add Chip Butty to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Pineapple Ring</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 0.80</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150001,65,'Pineapple Ring ',0.80,-1,'','ExtrasCategory'); showorder();" alt="Add Pineapple Ring to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Chicken Nuggets (10)</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 2.60</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150002,66,'Chicken Nuggets (10) ',2.60,-1,'','ExtrasCategory'); showorder();" alt="Add Chicken Nuggets (10) to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Onion Rings (5)</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 0.60</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150003,67,'Onion Rings (5) ',0.60,-1,'','ExtrasCategory'); showorder();" alt="Add Onion Rings (5) to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Tray of Chips  Curry Sauce</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 2.00</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150004,68,'Tray of Chips  Curry Sauce ',2.00,-1,'','ExtrasCategory'); showorder();" alt="Add Tray of Chips  Curry Sauce to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Tray of Chips  Gravy Sauce</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 2.00</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150005,69,'Tray of Chips  Gravy Sauce ',2.00,-1,'','ExtrasCategory'); showorder();" alt="Add Tray of Chips  Gravy Sauce to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Chips  Bolognese Sauce</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 2.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150006,70,'Chips  Bolognese Sauce ',2.50,-1,'','ExtrasCategory'); showorder();" alt="Add Chips  Bolognese Sauce to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Bolognese  Cheesy Chips</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 3.00</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150007,71,'Bolognese  Cheesy Chips ',3.00,-1,'','ExtrasCategory'); showorder();" alt="Add Bolognese  Cheesy Chips to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Cheesy Chips with Garlic</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 2.80</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150008,72,'Cheesy Chips with Garlic ',2.80,-1,'','ExtrasCategory'); showorder();" alt="Add Cheesy Chips with Garlic to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Bottle of Vinegar</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 0.90</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150009,73,'Bottle of Vinegar ',0.90,-1,'','ExtrasCategory'); showorder();" alt="Add Bottle of Vinegar to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Bottle of Ketchup</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 0.90</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150010,74,'Bottle of Ketchup ',0.90,-1,'','ExtrasCategory'); showorder();" alt="Add Bottle of Ketchup to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Breaded Bun</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 0.30</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150011,75,'Breaded Bun ',0.30,-1,'','ExtrasCategory'); showorder();" alt="Add Breaded Bun to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Chip Butty Splash</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 2.00</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150012,76,'Chip Butty Splash ',2.00,-1,'','ExtrasCategory'); showorder();" alt="Add Chip Butty Splash to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Peas</h6>
                      <div></div></td>
                    <td>Large</td>
                    <td>£ 0.90</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150013,77,'Peas Large',0.90,-1,'','ExtrasCategory'); showorder();" alt="Add Peas to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>Small</td>
                    <td>£ 0.60</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150014,77,'Peas Small',0.60,-1,'','ExtrasCategory'); showorder();" alt="Add Peas to cart"/></td></tr></table></div>
                    </div>
                <div id="SaucesCategory" <?php if($category=='SaucesCategory') {echo 'style=""';} ?>> <h2>Sauces</h2>
                            <div id="categoryinfo">
                <table class="menutable">
                  <tr class="headtxt">
                    <th width="57%">Item</th>
                    <th width="28%"></th>
                    <th width="9%">Price</th>
                    <th width="6%">Add</th>
                  </tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Curry Sauce</h6>
                      <div></div></td>
                    <td>Large</td>
                    <td>£ 1.00</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150015,78,'Curry Sauce Large',1.00,-1,'','SaucesCategory'); showorder();" alt="Add Curry Sauce to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>Small</td>
                    <td>£ 0.80</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150016,78,'Curry Sauce Small',0.80,-1,'','SaucesCategory'); showorder();" alt="Add Curry Sauce to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Gravy</h6>
                      <div></div></td>
                    <td>Large</td>
                    <td>£ 1.00</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150017,79,'Gravy Large',1.00,-1,'','SaucesCategory'); showorder();" alt="Add Gravy to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>Small</td>
                    <td>£ 0.80</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150018,79,'Gravy Small',0.80,-1,'','SaucesCategory'); showorder();" alt="Add Gravy to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Garlic Sauce</h6>
                      <div></div></td>
                    <td>Large</td>
                    <td>£ 1.00</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150019,80,'Garlic Sauce Large',1.00,-1,'','SaucesCategory'); showorder();" alt="Add Garlic Sauce to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>Small</td>
                    <td>£ 0.80</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150020,80,'Garlic Sauce Small',0.80,-1,'','SaucesCategory'); showorder();" alt="Add Garlic Sauce to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Chilli Sauce</h6>
                      <div></div></td>
                    <td>Large</td>
                    <td>£ 1.00</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150021,81,'Chilli Sauce Large',1.00,-1,'','SaucesCategory'); showorder();" alt="Add Chilli Sauce to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>Small</td>
                    <td>£ 0.80</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150022,81,'Chilli Sauce Small',0.80,-1,'','SaucesCategory'); showorder();" alt="Add Chilli Sauce to cart"/></td></tr></table></div>
                    </div>
                <div id="KidsmealCategory" <?php if($category=='KidsmealCategory') {echo 'style=""';} ?>> <h2>Kids meal</h2>
                            <div id="categoryinfo">
                <table class="menutable">
                  <tr class="headtxt">
                    <th width="57%">Item</th>
                    <th width="28%"></th>
                    <th width="9%">Price</th>
                    <th width="6%">Add</th>
                  </tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Sausage Kids Meal</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 2.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150023,82,'Sausage Kids Meal ',2.50,-1,'','KidsmealCategory'); showorder();" alt="Add Sausage Kids Meal to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Kebab Kids Meal</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 2.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150024,83,'Kebab Kids Meal ',2.50,-1,'','KidsmealCategory'); showorder();" alt="Add Kebab Kids Meal to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Chicken Nuggets Kids Meal</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 2.00</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150025,84,'Chicken Nuggets Kids Meal ',2.00,-1,'','KidsmealCategory'); showorder();" alt="Add Chicken Nuggets Kids Meal to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Any Pattie Kids Meal</h6>
                      <div></div></td>
                    <td>Cheese Pattie</td>
                    <td>£ 2.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150026,85,'Any Pattie Kids Meal Cheese Pattie',2.50,-1,'','KidsmealCategory'); showorder();" alt="Add Any Pattie Kids Meal to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6></h6>
                      <div></div></td>
                    <td>Corn Beef Pattie</td>
                    <td>£ 2.50</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150027,85,'Any Pattie Kids Meal Corn Beef Pattie',2.50,-1,'','KidsmealCategory'); showorder();" alt="Add Any Pattie Kids Meal to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Cheese Burger Kids Meal</h6>
                      <div></div></td>
                    <td></td>
                    <td>£ 2.70</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150028,86,'Cheese Burger Kids Meal ',2.70,-1,'','KidsmealCategory'); showorder();" alt="Add Cheese Burger Kids Meal to cart"/></td></tr></table></div>
                    </div>
                <div id="MealdealsCategory" <?php if($category=='MealdealsCategory') {echo 'style=""';} ?>> <h2>Meal deals</h2>
                            <div id="categoryinfo">
                <table class="menutable">
                  <tr class="headtxt">
                    <th width="57%">Item</th>
                    <th width="28%"></th>
                    <th width="9%">Price</th>
                    <th width="6%">Add</th>
                  </tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>10&quot; Meal Deal</h6>
                      <div>Any 10 inch pizza chips sauce and a can of soft drink</div></td>
                    <td></td>
                    <td>£ 6.00</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150029,87,'10&quot; Meal Deal ',6.00,-1,'','MealdealsCategory'); showorder();" alt="Add 10&amp;quot; Meal Deal to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>12&quot; Meal Deal</h6>
                      <div>Any 12 inch pizza chips sauce and 2 cans of soft drink</div></td>
                    <td></td>
                    <td>£ 7.00</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150030,88,'12&quot; Meal Deal ',7.00,-1,'','MealdealsCategory'); showorder();" alt="Add 12&amp;quot; Meal Deal to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>10&quot; Pizza Tray Deal</h6>
                      <div>Tray of meat sauce and chips</div></td>
                    <td></td>
                    <td>£ 8.00</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150031,89,'10&quot; Pizza Tray Deal ',8.00,-1,'','MealdealsCategory'); showorder();" alt="Add 10&amp;quot; Pizza Tray Deal to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>12&quot; Pizza  2 Chips Deal</h6>
                      <div>With 2 cans of soft drink</div></td>
                    <td></td>
                    <td>£ 8.00</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150032,90,'12&quot; Pizza  2 Chips Deal ',8.00,-1,'','MealdealsCategory'); showorder();" alt="Add 12&amp;quot; Pizza  2 Chips Deal to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>12&quot; Pizza  10&quot; Garlic Bread Deal</h6>
                      <div>Any 12 inch pizza 10 inch garlic bread with cheese tray of meat sauce and chips</div></td>
                    <td></td>
                    <td>£ 12.00</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150033,91,'12&quot; Pizza  10&quot; Garlic Bread Deal ',12.00,-1,'','MealdealsCategory'); showorder();" alt="Add 12&amp;quot; Pizza  10&amp;quot; Garlic Bread Deal to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>2 x 10&quot; Pizzas Deal</h6>
                      <div>Any 2 x 10 inch pizzas 2 x chips 2 x sauces and bottle of soft drink</div></td>
                    <td></td>
                    <td>£ 12.00</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150034,92,'2 x 10&quot; Pizzas Deal ',12.00,-1,'','MealdealsCategory'); showorder();" alt="Add 2 x 10&amp;quot; Pizzas Deal to cart"/></td></tr>
                  <tr class="odd">
                    <td rowspan="1"><h6>Family Deal 1</h6>
                      <div>Any 12 inch pizza large kebab 2 chips 2 sauces and bottle of soft drink</div></td>
                    <td></td>
                    <td>£ 12.00</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150035,93,'Family Deal 1 ',12.00,-1,'','MealdealsCategory'); showorder();" alt="Add Family Deal 1 to cart"/></td></tr>
                  <tr class="even">
                    <td rowspan="1"><h6>Family Deal 2</h6>
                      <div>Any 2 x 12 inch pizzas 2 x kebabs 2 x chips 2 x sauces 10 inch garlic bread and bottle of soft drink</div></td>
                    <td></td>
                    <td>£ 22.00</td><td><img src="https://www.eateasy.co.uk/images/button-add.gif" onclick="addItem(7150036,94,'Family Deal 2 ',22.00,-1,'','MealdealsCategory'); showorder();" alt="Add Family Deal 2 to cart"/></td></tr></table></div></div>
                <div id="itemselects" <?php if ($category != 'ItemSelects') { echo 'style="display:none"'; } ?>>
                    <p> </p>
                    <div id="formheading">
                        <h3>Choices for <?php echo htmlspecialchars($getitemname); ?></h3>
                    </div>
                    <p> </p>
                    <p>Click on the boxes below to select all options available</p>
                    <p> </p>
                    <form id="selectsform" name="selectsform" method="get" action="">
                        
                        <input type="hidden" id="fprice"    name="price"    value="<?php echo htmlspecialchars($getprice); ?>">
                        <input type="hidden" id="fitemid"   name="itemid"   value="<?php echo htmlspecialchars($getitemid); ?>">
                        <input type="hidden" id="fmenuid"   name="menuid"   value="<?php echo htmlspecialchars($getmenuid); ?>">
                        <input type="hidden" id="fitemname" name="itemname" value="<?php echo urlencode($getitemname); ?>">
                        <input type="hidden" id="fcategory" name="category" value="<?php echo htmlspecialchars($savedcategory); ?>">
                        <input type="hidden" name="act" value="add">
                        <input type="submit" class="itemsubmit" id="submit" value="Save Changes">
                    </form>
                    <p> </p>
                </div>
            </div>
        </div>
        </div><!-- /#menucontents -->

        <!-- Order panel -->
        <div id="orderform" class="tab-pane<?php echo $activeTab === 'orderform' ? ' active' : ''; ?>">
        <img src="https://www.eateasy.co.uk/images/shopping_basket.gif" width="40" height="40" alt="Shopping Basket">
        <h3>Order Details</h3>
        <div id="categoryframe"></div>
        <div id="order">
            <?php if ($Cart->hasItems()): ?>
                <form action="#" method="get">
                    <!-- Returning to order tab after quantity update -->
                    <input type="hidden" name="category" value="orderform">
                    <table id="cart">
                        <tr class="headtxt">
                            <th style="display:none;" width="1">Id</th>
                            <th width="60">Item</th>
                            <th width="45">Price</th>
                            <th width="23">Qty</th>
                            <th width="45">Total</th>
                            <th width="15">Del</th>
                        </tr>
                        <?php
                        $_SESSION['actualdiscount'] = 0;
                        $_SESSION['actualdelivery'] = 0;
                        $total_quantity = 0;
                        $total_price = $i = 0;
                        foreach ($Cart->getItems() as $menuid => $menuvalue):
                            foreach ($menuvalue as $choices => $choicesvalue):
                                foreach ($choicesvalue as $content => $value):
                                    if ($content == "quantity") { $quantity = $value; }
                                    if ($content == "itemname") { $itemname = $value; }
                                    if ($content == "itemid")   { $itemid   = $value; }
                                    if ($content == "orderid")  { $orderid  = $value; }
                                    if ($content == "price")    { $price    = $value; }
                                endforeach;
                                $total_price    = $total_price + $price * $quantity;
                                $total_quantity = $total_quantity + $quantity;
                        ?>
                            <?php echo $i++ % 2 == 0 ? "<tr>" : "<tr class='odd'>"; ?>
                            <td style="display:none;" class="item_id"><?php echo htmlspecialchars($itemid); ?></td>
                            <td class="item_name" colspan="5"><?php echo htmlspecialchars($itemname . ' ' . $choices); ?></td>
                            </tr><tr>
                            <td></td>
                            <td class="unit_price">£<?php echo CurrencyCheck($price); ?></td>
                            <td class="quantity center"><input type="text" name="quantity[<?php echo htmlspecialchars($orderid); ?>]" size="2" width="10" value="<?php echo htmlspecialchars($quantity); ?>" tabindex="<?php echo $i; ?>"></td>
                            <td class="extended_price">£<?php echo CurrencyCheck(($price * $quantity)); ?></td>
                            <td class="remove"><img src="https://www.eateasy.co.uk/images/button-remove.gif" onclick="this.blur(); return removeItem(<?php echo htmlspecialchars($menuid); ?>,'<?php echo htmlspecialchars($choices); ?>');" alt="Remove <?php echo htmlspecialchars($itemname); ?> from cart"></td>
                            </tr>
                        <?php endforeach; ?>
                        <?php endforeach; ?>
                        <?php $_SESSION['totalquantity'] = $total_quantity; ?>
                        <?php echo $i++ % 2 == 0 ? "<tr>" : "<tr class='odd'>"; ?>
                            <td></td><td colspan="2">Total</td>
                            <td colspan="3" id="total_price">£<?php echo CurrencyCheck($total_price); ?></td>
                        </tr>
                        <?php
                        if (isset($_SESSION['discount']) && $_SESSION['discount'] > 0) {
                            echo $i++ % 2 == 0 ? "<tr>" : "<tr class='odd'>";
                            echo '<td></td><td class="item_name">' . htmlspecialchars(rtrim($_SESSION['discountname'])) . '</td><td>Discount</td>';
                            echo '<td colspan="3">-£ ' . CurrencyCheck($_SESSION['discount']) . '</td></tr>';
                            $total_price = $total_price - $_SESSION['discount'];
                            $_SESSION['actualdiscount'] = $_SESSION['discount'];
                        }
                        if (isset($_SESSION['islate']) && $_SESSION['islate'] && $_SESSION['delivery_charge_late'] > 0) {
                            $latecharge = $_SESSION['delivery_charge_late'];
                        } else {
                            $latecharge = 0;
                        }
                        if ($_SESSION['deliverycharge'] > 0 && ($_SESSION['deliverythreshold'] > $total_price || $_SESSION['deliverythreshold'] == 0)) {
                            $deliveryamountcharge = $_SESSION['deliverycharge'];
                        } else {
                            $deliveryamountcharge = 0;
                        }
                        if (isset($_SESSION['distancecharge'])) {
                            $distancecharge = $_SESSION['distancecharge'];
                        } else {
                            $distancecharge = 0;
                        }
                        $totaldeliverycharge = $distancecharge + $deliveryamountcharge + $latecharge;
                        echo $i++ % 2 == 0 ? "<tr>" : "<tr class='odd'>";
                        echo '<td></td><td colspan="2">Delivery</td>';
                        echo '<td colspan="3">£ ' . CurrencyCheck($totaldeliverycharge) . '</td></tr>';
                        echo '<tr><td></td><td colspan="2">Total</td>';
                        echo '<td colspan="3">£ ' . CurrencyCheck($totaldeliverycharge + $total_price) . '</td></tr>';
                        $_SESSION['OrderTotal']    = $totaldeliverycharge + $total_price;
                        $_SESSION['actualdelivery']= $totaldeliverycharge;
                        ?>
                        <tr class="headtxt"><th colspan="6"> </th></tr>
                    </table>
                    <input type="submit" name="update" value="Update cart">
                </form>
                <p> </p>
            <?php else: ?>
                <p class="center">You have no items in your cart.</p>
            <?php endif; ?>
        </div>

        <?php
        if ($_SESSION['restactive'] != "Y") {
            echo '<p><img src="https://www.eateasy.co.uk/images/ordering-unavailable-sign.png" alt="Takeaway Unavailable" /></p>
                <p> </p>
                <a href="https://www.eateasy.co.uk/register.php" style="display:inline-block;background:#D5E3F0;color:#1a2535;border:1px solid #000;border-radius:6px;padding:.45rem 1rem;font-family:DM Sans,sans-serif;font-size:.85rem;font-weight:600;text-decoration:none">Register for alerts</a>
                <h4> to receive an SMS or email alert<br>when we launch in your area</h4>';
        } else {
            if ($_SESSION['openclose']) {
                echo '<p><img src="https://www.eateasy.co.uk/images/open-sign.png" alt="Restaurant Open" /></p>';
            } else {
                echo '<p><img src="https://www.eateasy.co.uk/images/completely-closed-sign.png" alt="Restaurant Closed" /></p>';
            }
        }
        ?>
        <p> </p>
        <?php
        if ($_SESSION['restactive'] == "Y") {
            echo '<div id="cashondelivery">
                <h4>' . htmlspecialchars($CODtitle) . '</h4>
                <p> </p>
                <form method="post" action="https://www.eateasy.co.uk/nvpprocessing/CODconfirm.php" name="DoDirectPaymentForm">
                    <input name="method" type="submit" class="center" value="Cash Checkout" ' . $cashdisabled . '>
                </form>
                <p>Add comment at checkout</p>
            </div>';
        }
        ?>

        <div id="deliverydetails">
            <h3>Home Delivery Address</h3>
            <p> </p>
            <?php
            if (isset($_SESSION['loginstatus']) && $_SESSION['loginstatus'] == "IN") {
                echo "<p>" . htmlspecialchars(trim($_SESSION['title']) . " " . trim($_SESSION['firstname'] . " " . trim($_SESSION['lastname']))) . "</p>";
                echo "<p>" . htmlspecialchars(rtrim($_SESSION['address1']) . rtrim(" " . $_SESSION['address2']) . ", " . rtrim($_SESSION['city']) . ", " . rtrim($_SESSION['county']) . " " . rtrim($_SESSION['postcode'])) . "</p>";
                echo "<p>Tel: " . htmlspecialchars($_SESSION['phone']) . "</p>";
                echo "<p>Mob: " . htmlspecialchars($_SESSION['mobile']) . "</p>";
            } else {
                echo '<p style="display:flex;gap:.5rem;flex-wrap:wrap;margin:.5rem 0">
                    <a href="https://www.eateasy.co.uk/login.php" style="display:inline-block;background:#D5E3F0;color:#1a2535;border:1px solid #000;border-radius:6px;padding:.45rem 1rem;font-family:DM Sans,sans-serif;font-size:.85rem;font-weight:600;text-decoration:none">Login</a>
                    <span style="line-height:2">or</span>
                    <a href="https://www.eateasy.co.uk/register.php" style="display:inline-block;background:#D5E3F0;color:#1a2535;border:1px solid #000;border-radius:6px;padding:.45rem 1rem;font-family:DM Sans,sans-serif;font-size:.85rem;font-weight:600;text-decoration:none">Register</a>
                    </p>';
            }
            ?>
            <div itemscope itemtype="https://schema.org/Restaurant">
                <h3>Restaurant Details</h3>
                <p> </p>
                <p><span itemprop="name"><?php echo htmlspecialchars(trim($_SESSION['restname'])); ?></span></p>
                <p><span itemprop="address" itemscope itemtype="https://schema.org/PostalAddress">
                    <span itemprop="streetAddress"><?php echo htmlspecialchars(rtrim($_SESSION['restaddress1'] . rtrim(" " . $_SESSION['restaddress2']))); ?></span>,
                    <span itemprop="addressLocality"><?php echo htmlspecialchars(rtrim($_SESSION['restcity'])); ?></span>,
                    <span itemprop="addressRegion"><?php echo htmlspecialchars(rtrim($_SESSION['restcounty'])); ?></span>,
                    <span itemprop="postalCode"><?php echo htmlspecialchars(rtrim($_SESSION['restpostcode'])); ?></span>
                </span></p>
                <p><span itemprop="telephone"><?php echo htmlspecialchars($_SESSION['telephone']); ?></span></p>
                <p> </p>
            </div>
            <p><?php echo htmlspecialchars($descriptionlist); ?></p>
            <p> </p>
        </div>
            </div>
        </div>
        </div><!-- /tab-content -->
    </div><!-- /#mainTab -->

<!-- Related restaurants -->
<?php if (!empty($relatedRestaurants)): ?>
<div class="related-section">
    <div style="max-width:1160px;margin:0 auto;padding:0 1.25rem">
        <h2>More <?php echo htmlspecialchars($resttype); ?> Takeaways in <?php echo htmlspecialchars($restcity); ?></h2>
        <div class="related-grid">
            <?php foreach ($relatedRestaurants as $related): ?>
            <a href="<?php echo htmlspecialchars($related['url']); ?>" class="related-card">
                <h3><?php echo htmlspecialchars($related['name']); ?></h3>
                <p>Explore more <?php echo htmlspecialchars($resttype); ?> options</p>
            </a>
            <?php endforeach; ?>
        </div>
    </div>
</div>
<?php endif; ?>

<!-- AdSense -->
<div class="ad-slot" style="max-width:1160px;margin:0 auto;padding:0 1.25rem">
    <ins class="adsbygoogle" style="display:block"
         data-ad-client="ca-pub-4829507070201485"
         data-ad-slot="YOUR_AD_SLOT_ID"
         data-ad-format="auto"
         data-full-width-responsive="true"></ins>
    <script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
</div>

<!-- ═══ FOOTER ═══ -->
<footer class="site-footer">
    <div class="footer-inner">
        <div class="footer-brand">
            <img src="https://www.eateasy.co.uk/images/EatEasyLogoHeaderSmall.png"
                 alt="EatEasy" class="footer-logo" width="110" height="35">
            <address>
                <strong>Eateasy Ltd.</strong><br>
                69 Godmans Lane, Marks Tey, Essex CO6 1NQ
            </address>
            <a href="mailto:info@eateasy.co.uk">info@eateasy.co.uk</a>
        </div>
        <nav class="footer-links" aria-label="Footer navigation">
            <a href="https://www.eateasy.co.uk/delivery-policy.php">Delivery &amp; Service Policy</a>
            <a href="https://www.eateasy.co.uk/terms-and-conditions.php">Terms &amp; Conditions</a>
            <a href="https://www.eateasy.co.uk/quality-policy.php">Quality Policy</a>
            <a href="https://www.eateasy.co.uk/privacy-policy.php">Privacy Policy</a>
            <a href="https://www.eateasy.co.uk/environmental-policy.php">Environmental Policy</a>
            <a href="https://www.eateasy.co.uk/about-us.php">About Us</a>
            <a href="https://www.eateasy.co.uk/contact-us.php">Contact Us</a>
            <a href="https://www.eateasy.co.uk/owner-login.php">Online Owner Login</a>
            <a href="https://eateasy.co.uk/cookie-policy.php">Eateasy Cookie Policy</a>
        </nav>
        <p class="footer-copy">&copy; <?php echo date('Y'); ?> Eateasy Ltd. All rights reserved.</p>
    </div>
</footer>

</body>
</html>
