-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaddMenu.php
55 lines (55 loc) · 3.06 KB
/
addMenu.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
session_start();
if (!isset($_SESSION["session_user"]))
{
header("location: error.php");
}
include "app/header.php";
include "app/nav.php";
?>
<div class="container">
<div class="row">
<div class="col-sm-3"></div>
<div class="col-sm-6">
<a href="booked.php" class="btn btn-default"><span class="glyphicon glyphicon-circle-arrow-left"></span> Go Back - Home Page</a><br><br>
<div class="panel panel-default">
<div class="panel-heading"><span class="glyphicon glyphicon-cutlery"></span> add menus here</div>
<div class="panel-body">
<div id="msg" style="display: none;" class="alert alert-success">
<span class="glyphicon glyphicon-check"></span>
<!--message from firebase will appear here...-->
</div>
<form method="post" autocomplete="off" name="myMenuForm">
<div class="form-group">
<label for="email">Menu item name:</label>
<input class="form-control" required="" type="text" name="name" id="name" placeholder="e.g. Menu item name"/>
</div>
<div class="form-group">
<label for="password">Qty:</label>
<input class="form-control" required="" type="text" name="qty" id="qty" placeholder="Qty"/>
</div>
<div class="form-group">
<label for="password">Price:</label>
<input class="form-control" required="" type="text" name="price" id="price" placeholder="Price"/>
</div>
<div class="form-group">
<label for="password">Category:</label>
<select name="category" id="category" class="form-control">
<option value="alcoholic drinks">Alcoholic Drinks</option>
<option value="soft drinks">Soft Drinks</option>
<option value="fruit juices">Fruit Juices</option>
<option value="beverages">Beverages</option>
<option value="starter">Starter</option>
<option value="main dish">Main Dish</option>
</select>
</div>
<button class="btn btn-block btn-primary" id="addRentals" onclick="handleFood()" type="button"><span class="glyphicon glyphicon-plus-sign"></span> add menu item</button>
</form>
</div>
</div>
</div>
<div class="col-sm-3"></div>
</div>
</div>
<?php
include "app/footer.php";