<?php } else { ?> <div class="panel-body"> <a href="menu.add.php">Add</a> a new menu item </div> <?php } ?> </div> </div> <?php } } else { bootstrap_alert(array('error' => 'No items to display.')); } ?> <?php //if (isset($_POST['submit'])) var_dump($selectedItems); ?> <div class="fixed-right"> <input type="submit" name="submit" value="Save Menu" class="btn btn-primary" id="btnSubmit"> </div> </form> </div> </div> <?php require_once 'templates/footer.php'; ?> <script type="text/javascript">
} ?> </table> <div class="panel-footer">Total: <span class="pull-right">Rs. <?php echo $tot; ?> </span></div> </div> </div> </div> <?php $i++; } } else { $alertArray['success'] = "Looks like nothing has been ordered yet! "; bootstrap_alert($alertArray); } } ?> </div> </div> <?php include 'templates/footer.php'; ?> <script type="text/javascript"> document.body.onload = function() { $('.panel-collapse:first').collapse('show'); $('[data-toggle="tooltip"]').tooltip(); }
<div class="form-group"> <label class="sr-only" for="txtUsername">Enter Username</label> <div class="input-group"> <input type="text" class="form-control" id="txtUsername" placeholder="Username" required> </div> <div class="input-group"> <button type="submit" class="btn btn-primary" id="btnSearch"><span class="glyphicon glyphicon-search"></span></button> </div> </div> </form> <br> <form action="<?php echo $_SERVER['REQUEST_URI']; ?> " method="post" id="serveForm" onsubmit="checkBoxes()"> <table id="searchResults"> </table> </form> </div> <?php } else { bootstrap_alert(array('error' => 'There are no orders today!')); } ?> </div> </div> <?php require 'templates/footer.php'; ?> <script type="text/javascript" src="/assets/js/staff.js"></script>
</div> <input type="submit" class="btn btn-primary" value="Continue" name="clearBalance"> <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> </form> </div> </div> </div> </div> <h2>Edit Account</h2> <hr> <form class="form-horizontal" action="account.edit.php?id=<?php echo $id; ?> " method="post"> <?php bootstrap_alert($alert_array); ?> <div class="form-group"> <label class="col-sm-2 control-label">Name</label> <div class="col-sm-10"> <p class="form-control-static"><?php echo $user->full_name(); ?> </p> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Username</label> <div class="col-sm-10"> <p class="form-control-static"><?php echo $user->username;
<hr> <table id="showOrdersTable" class="table table-bordered "> <tr id="tblHeader"> <th>Item</th> <th class="text-right">Quantity</th> <th class="text-right">Rate</th> <th class="text-right">Cost</th> </tr> <tbody></tbody> <tfoot id="tblFooter"> </tfoot> </table> </div> <?php } else { bootstrap_alert(array('error' => '<b>Sorry!</b>There is nothing on the menu today.')); } ?> </div> <?php include 'templates/footer.php'; ?> <script type="text/javascript"> function order(t) { // CHECK IF VALUE IS LESS THAN 0 // THEN IF YES SHOW INFO // AND SET THE HIDDEN CONTROL TO DISABLED=FALSE var id = t.getAttribute("id"); var menuId = id.toString().split("-")[1]; var info = document.getElementById('info-' + menuId);
$menu_item = MenuItem::select(array('id' => $id)); if (!is_object($menu_item)) { redirect_to('menu.view.php'); } ?> <div class="row" style="margin-right: 0"> <div class="col-md-6 col-md-offset-3 page-wrapper"> <h2>Add New Menu Item</h2> <hr> <form action="menu.edit.php" method="post" autocomplete="off"> <input type="hidden" name="id" value="<?php echo $id; ?> " /> <?php bootstrap_alert($alert); ?> <div class="row"> <div class="form-group col-md-6"> <label for="txtItemName">Item Name:</label> <input type="text" class="form-control" id="txtItemName" name="name" placeholder="E.g. Buff Momos" tabindex="1" required value="<?php echo $menu_item->name; ?> "> </div> <div class="form-group col-md-6"> <label for="txtCost">Cost:</label> <input type="number" class="form-control" id="txtCost" name="cost" placeholder="E.g. 80" tabindex="1" min="0" step="0.01" required value="<?php echo $menu_item->cost; ?> ">