<?php
include('veza/le.php');
require('xwaf.php'); // Before all your code starts.
$xWAF = new xWAF();
$xWAF->start();

$colname_content_cat = $_GET['content_cat'];
$query_content_cat = "SELECT * FROM le_menu_category WHERE menu_cat_id = '".$colname_content_cat."'";
$content_cat = mysqli_query($leld,$query_content_cat);
$row_content_cat = mysqli_fetch_assoc($content_cat);
$totalRows_content_cat = mysqli_num_rows($content_cat);

$colname_content_sub2 = $_GET['content_sub'];
$query_content_sub2 = "SELECT * FROM le_menu_subcat WHERE menu_subcat_id = '".$colname_content_sub2."'";
$content_sub2 = mysqli_query($leld,$query_content_sub2);
$row_content_sub2 = mysqli_fetch_assoc($content_sub2);
$totalRows_content_sub2 = mysqli_num_rows($content_sub2);


?>
<!DOCTYPE html>

<html>
    <head>
        <meta charset="utf-8">
        <title>Luxury Event Catering Tivat - Menu - <?php echo $row_content_cat['menu_cat_name']; ?> - </title>
        <meta name="description" content="Luxury Event Catering Tivat MONTENEGRO - ">
		<meta name="robots" content="index,follow" />
        <meta name="author" content="LaktusDev">
        <meta name="keywords" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">

        <!-- Stylesheets -->
		<link rel="icon" href="icon.jpg">
        <link rel="stylesheet" href="css/bootstrap.min.css"/><!-- bootstrap grid -->
        <link rel="stylesheet" href="css/bootstrap-theme.min.css"/><!-- bootstrap theme -->
        <link rel="stylesheet" href="css/style.css"/><!-- template styles -->
        <link rel="stylesheet" href="css/color-default.css"/><!-- default template color styles -->
        <link rel="stylesheet" href="css/retina.css"/><!-- retina ready styles -->
        <link rel="stylesheet" href="css/responsive.css"/><!-- responsive styles -->
        <link rel="stylesheet" href="css/animate.css"/><!-- animation for content -->

        <!-- Google Web fonts -->
        <link href='https://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
        <link href='https://fonts.googleapis.com/css?family=Suranna' rel='stylesheet' type='text/css'>
        <link href='https://fonts.googleapis.com/css?family=Montez' rel='stylesheet' type='text/css'>

        <!-- Font icons -->
        <link rel="stylesheet" href="font-awesome/css/font-awesome.min.css"/><!-- Font awesome icons -->
    </head>

    <body>

<?php include("inc/header.php"); ?>

        <!-- .page-content start -->
        <div class="page-content custom-img-background dark page-title page-title-4 mb-100">
            <div class="container">
                <!-- .row start -->
                <div class="row">
                    <!-- .col-md-12 start -->
                    <div class="col-md-12 centered">
                        <div class="custom-heading style-1 triggerAnimation animated" data-animate='fadeInUp'>
                            <h1><span>Luxury Event</span></h1>
                            <h1><?php echo $row_content_cat['menu_cat_name']; ?></h1>
                        </div><!-- .custom-heading.style-1 end -->
                    </div><!-- .col-md-12 end -->
                </div><!-- .row end -->
            </div><!-- .container end -->
        </div><!-- .page-content end -->
		

        <!-- .page-content start -->
        <div class="page-content">
            <div class="container">
                <!-- .row start -->
                <div class="row">
                    <div class="col-md-12 centered clearfix">
                        <div class="custom-heading style-1">
                            <h3><span>Tasty</span></h3>
                            <h3>Example menus</h3>

                            <!-- .divider.style-1 start -->
                            <div class="divider style-1 center">
                                <span class="hr-simple left"></span>
                                <i class="fa fa-circle hr-icon"></i>
                                <span class="hr-simple right"></span>
                            </div>
                        </div><!-- .custom-heading.style-1 end -->
                        <ul class="tabs">
<?php
$colname_content_sub = $_GET['content_sub'];
$query_content_sub = "SELECT * FROM le_menu_subcat_subcat WHERE menu_subcat_subcat = '".$colname_content_sub."'";
$content_sub = mysqli_query($leld,$query_content_sub);
$row_content_sub = mysqli_fetch_assoc($content_sub);
$totalRows_content_sub = mysqli_num_rows($content_sub);
?>
							<li class="active">
                                <a href="#tab<?php echo $row_content_sub['menu_subcat_subcat_id']; ?>"><?php echo $row_content_sub['menu_subcat_subcat_name']; ?></a>
                            </li>
<?php
$colname_content_sub2 = $_GET['content_sub'];
$query_content_sub2 = "SELECT * FROM le_menu_subcat_subcat WHERE menu_subcat_subcat = '".$colname_content_sub."'";
$content_sub2 = mysqli_query($leld,$query_content_sub2);
$row_content_sub2 = mysqli_fetch_assoc($content_sub2);
$totalRows_content_sub2 = mysqli_num_rows($content_sub2);
?>
<?php while($row_content_sub2 = mysqli_fetch_assoc($content_sub2)) { ?>
                            <li class="">
                                <a href="#tab<?php echo $row_content_sub2['menu_subcat_subcat_id']; ?>"><?php echo $row_content_sub2['menu_subcat_subcat_name']; ?></a>
                            </li>
<?php } ?>
                        </ul><!-- .tabs end -->

                        <!-- .tabs-content-wrap start -->
                        <div class="tab-content-wrap">
                            <!-- #tab1 content start -->
                            <div id="tab<?php echo $row_content_sub['menu_subcat_subcat_id']; ?>" class="tab-content">

                                <ul class="tab-menu-price">
                                    <li class="menu-thumbnail">
                                        <img src="img/pics/menu-item-01.png" alt="Luxury Event Catering Tivat" />
                                    </li>
                                    <li class="menu-price">
                                        <p>&euro;&nbsp;<?php $final_price = $row_content_sub['menu_subcat_subcat_total']; echo number_format($final_price); ?></p>
                                    </li>
                                </ul>
                                <div class="custom-heading style-1">
                                    <h4><?php echo $row_content_sub['menu_subcat_subcat_name']; ?></h4>

                                    <!-- .divider.style-1 start -->
                                    <div class="divider style-1 center">
                                        <span class="hr-simple left"></span>
                                        <i class="fa fa-circle hr-icon"></i>
                                        <span class="hr-simple right"></span>
                                    </div>
                                </div><!-- .custom-heading.style-1 end -->
                                <p>
                                    <span>(Pricing is per person.)</span>
                                </p>
<?php
$colname_content_cat = $_GET['content_cat'];
$colname_content_sub = $_GET['content_sub'];
$colname_content_subsub = $row_content_sub['menu_subcat_subcat_id'];
$query_menu_content = "SELECT * FROM le_menu_content WHERE content_cat = '".$colname_content_cat."' and content_sub = '".$colname_content_sub."' and content_subsub = '".$colname_content_subsub."'";
$menu_content = mysqli_query($leld,$query_menu_content);
$totalRows_menu_content = mysqli_num_rows($menu_content);
?>
                                <ul>
<?php while($row_content = mysqli_fetch_assoc($menu_content)) { ?>
									<li><?php echo $row_content['content']; ?></li>
<?php } ?>
                                </ul>
                            </div><!-- #tab1 content end -->

                            <!-- #tab2 content start -->
                            <div id="tab<?php echo $row_content_sub2['menu_subcat_subcat_id']; ?>" class="tab-content">
                                <ul class="tab-menu-price">
                                    <li class="menu-thumbnail">
                                        <img src="img/pics/menu-item-02.png" alt="Luxury Event Catering Tivat" />
                                    </li>
                                    <li class="menu-price">
                                        <p>$24</p>
                                    </li>
                                </ul>
                                <div class="custom-heading style-1">
                                    <h4>Royal Plate Elegant Multi-course</h4>

                                    <!-- .divider.style-1 start -->
                                    <div class="divider style-1 center">
                                        <span class="hr-simple left"></span>
                                        <i class="fa fa-circle hr-icon"></i>
                                        <span class="hr-simple right"></span>
                                    </div>
                                </div><!-- .custom-heading.style-1 end -->
                                <p>
                                    <span>(Pricing is per person.)</span>
                                </p>

                                <ul>

                                    <li>Southern fried chicken with grilled potatoes and green salad</li>

                                </ul>

                            </div><!-- #tab2 content end -->

                            
                        </div><!-- .tab-content-wrap end -->
                    </div><!-- .col-md-12 end -->
                </div><!-- .row end -->
                <!-- .row start -->
                <div class="row">
                    <div class="col-md-12 centered triggerAnimation animated" data-animate='fadeInUp'>
                        <a href="#" class="btn btn-big black"><span>Need custom menu? Contact us</span></a>
                    </div>
                </div><!-- .row end -->
            </div><!-- .container end -->
        </div><!-- .page-content end -->
		
<?php include("inc/footer.php"); ?>

<?php include("inc/copyright.php"); ?>

            <a href="#" class="scroll-up"><i class="fa fa-angle-double-up"></i></a>

        </div><!-- .copyright-container end -->

        <script src="js/jquery-2.1.4.min.js"></script><!-- jQuery library -->
        <script src="js/bootstrap.min.js"></script><!-- .bootstrap script -->
        <script src="js/jquery.scripts.min.js"></script><!-- modernizr, retina, stellar for parallax -->  
        <script src="masterslider/jquery.easing.min.js"></script><!-- Master slider easing js -->
        <script src="js/jquery.dlmenu.min.js"></script><!-- for responsive menu -->
        <script src="js/include.js"></script><!-- custom js functions -->
        <script src="js/TweenMax.min.js"></script> <!-- Plugin for smooth scrolling-->
        <script src="js/ScrollToPlugin.min.js"></script> <!-- Plugin for smooth scrolling-->

        
    </body>
</html>
