$orderLine['unitPrice'] = $item['unitPrice']; $orderLine['picture'] = $item['picture']; $orderLine['name'] = $item['name']; $total += $item['unitPrice'] * $quantity; $orderLines['item' . $itemID] = $orderLine; } } if (count($orderLines) > 0) { $_SESSION['orderLines'] = $orderLines; $_SESSION['totalPrice'] = $total; header("Location:step3.php"); exit; } } $categories = get_categories(); $menuItems = get_items_by_filters('', '', 'E', 1, 40, 'menuitems.ranking', 'ASC'); ?> <div class="container"> <form id="menuForm" action="step2.php" method="post"> <?php foreach ($categories as $category) { ?> <div class="back step2"> <div class="row"> <div class="col-md-8 col-md-offset-1"> <h1 ><?php echo $category['name']; ?> </h1> </div>
if (isset($_POST['status'])) { $status = $_POST['status']; } if (isset($_POST['page'])) { $page = $_POST['page']; } if (isset($_POST['pageSize'])) { $pageSize = $_POST['pageSize']; } if (isset($_POST['orderField'])) { $orderField = $_POST['orderField']; } if (isset($_POST['orderDirection'])) { $orderDirection = $_POST['orderDirection']; } $items = get_items_by_filters($name, $categoryID, $status, $page, $pageSize, $orderField, $orderDirection); $total = get_itemSize_by_filters($name, $categoryID, $status); ?> <script type="text/javascript"> sodon_list = { refresh: function(){ sodon_common.ajax('post','#list-target','item_list.php', $('#orderForm').serialize() + '&page=<?php echo $page; ?> '+$('#searchParams').val(),''); }, paginate: function(page){ sodon_common.ajax('post','#list-target','item_list.php', $('#orderForm').serialize() + '&page='+page+$('#searchParams').val(),''); }, order: function(){