Beispiel #1
0
    $footwear->addItem(new \Kendo\UI\MenuItem('Leisure Trainers'), new \Kendo\UI\MenuItem('Running Shoes'), new \Kendo\UI\MenuItem('Outdoor Footwear'), new \Kendo\UI\MenuItem('Sandals/Flip Flops'), new \Kendo\UI\MenuItem('Footwear Accessories'));
    $leisure = new \Kendo\UI\MenuItem('Leisure Clothing');
    $leisure->addItem(new \Kendo\UI\MenuItem('T-Shirts'), new \Kendo\UI\MenuItem('Hoodies & Sweatshirts'), new \Kendo\UI\MenuItem('Jackets'), new \Kendo\UI\MenuItem('Pants'), new \Kendo\UI\MenuItem('Shorts'));
    $sports = new \Kendo\UI\MenuItem('Sports Clothing');
    $sports->addItem(new \Kendo\UI\MenuItem('Football'), new \Kendo\UI\MenuItem('Basketball'), new \Kendo\UI\MenuItem('Golf'), new \Kendo\UI\MenuItem('Tennis'), new \Kendo\UI\MenuItem('Swimwear'));
    $accessories = new \Kendo\UI\MenuItem('Accessories');
    $item->addItem($footwear, $leisure, $sports, $accessories);
}
$mens = new \Kendo\UI\MenuItem('Men\'s');
$womens = new \Kendo\UI\MenuItem('Women\'s');
$boys = new \Kendo\UI\MenuItem('Boy\'s');
$girls = new \Kendo\UI\MenuItem('Girl\'s');
addSubCategories($mens);
addSubCategories($womens);
addSubCategories($boys);
addSubCategories($girls);
$footwear = new \Kendo\UI\MenuItem('Footwear');
$footwear->addItem(new \Kendo\UI\MenuItem('Men\'s'), new \Kendo\UI\MenuItem('Women\'s'), new \Kendo\UI\MenuItem('Junior\'s'), new \Kendo\UI\MenuItem('Children\'s'));
$menu->addItem($mens, $womens, $boys, $girls, $footwear);
echo $menu->render();
?>

<script>
    $(document).ready(function() {
        var original = $("#menu").clone(true);

        original.find(".k-state-active").removeClass("k-state-active");

        $("#apply").click( function(e) {
            e.preventDefault();
            var menu = $("#menu"),
  </head>
  <body class="skin-blue">
    <div class="wrapper">
      
      <?php 
top_header();
//function in include/dashboardFunctions.php
?>
      
      <?php 
sidebar();
//function in include/dashboardFunctions.php
?>

		<?php 
addSubCategories();
//function in include/adminFunctions.php
?>

      <?php 
footer();
//function in include/dashboardFunctions.php
?>
    </div><!-- ./wrapper -->

    <!-- jQuery 2.1.3 -->
    <script src="plugins/jQuery/jQuery-2.1.3.min.js"></script>
    <!-- Bootstrap 3.3.2 JS -->
    <script src="bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    <!-- jQuery UI 1.11.1 -->
    <script src="https://code.jquery.com/ui/1.11.1/jquery-ui.min.js" type="text/javascript"></script>