-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMasterPage4.master
446 lines (360 loc) · 26.7 KB
/
MasterPage4.master
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
<%@ Master Language="VB" CodeFile="MasterPage4.master.vb" Inherits="MasterPage4" %>
<!DOCTYPE html>
<html>
<head runat="server">
<meta http-equiv="Page-Enter" content="blendTrans(Duration=0)">
<meta http-equiv="Page-Exit" content="blendTrans(Duration=0)">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Tell the browser to be responsive to screen width -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<!-- Favicon icon -->
<link rel="icon" type="image/png" sizes="16x16" href="assets/images/favicon1.png">
<title>MyCafe : e-Restaurant</title>
<!-- Bootstrap Core CSS -->
<link href="assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/plugins/perfect-scrollbar/css/perfect-scrollbar.css" rel="stylesheet">
<!-- Page CSS -->
<link href="assets/css/pages/chat-app-page.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="assets/css/style.css" rel="stylesheet">
<!-- You can change the theme colors from here -->
<link href="assets/css/colors/default.css" id="theme" rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<link href="assets/plugins/bootstrap-select/bootstrap-select.min.css" rel="stylesheet" />
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
<script type="text/javascript">
function date_time(id)
{
date = new Date;
year = date.getFullYear();
month = date.getMonth();
months = new Array('January', 'February', 'March', 'April', 'May', 'June', 'Jully', 'August', 'September', 'October', 'November', 'December');
d = date.getDate();
day = date.getDay();
days = new Array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday');
h = date.getHours();
if(h<10)
{
h = "0"+h;
}
m = date.getMinutes();
if(m<10)
{
m = "0"+m;
}
s = date.getSeconds();
if(s<10)
{
s = "0"+s;
}
result = ''+h+':'+m+':'+s +'    '+days[day]+' '+d+' '+months[month]+' '+year;
document.getElementById(id).innerHTML = result;
setTimeout('date_time("'+id+'");','1000');
return true;
}
</script>
</head>
<body class="fix-header card-no-border fix-sidebar">
<form id="form1" runat="server" novalidate>
<!-- ============================================================== -->
<!-- Preloader - style you can find in spinners.css -->
<!-- ============================================================== -->
<div class="preloader">
<div class="loader">
<div class="loader__figure"></div>
<p class="loader__label">Shoplify</p>
</div>
</div>
<!-- ============================================================== -->
<!-- Main wrapper - style you can find in pages.scss -->
<!-- ============================================================== -->
<div id="main-wrapper">
<!-- ============================================================== -->
<!-- Topbar header - style you can find in pages.scss -->
<!-- ============================================================== -->
<header class="topbar">
<nav class="navbar top-navbar navbar-expand-md navbar-light">
<!-- ============================================================== -->
<!-- Logo -->
<!-- ============================================================== -->
<div class="navbar-header">
<a class="navbar-brand" href="index.html">
<!-- Logo icon --><b>
<!--You can put here icon as well // <i class="wi wi-sunset"></i> //-->
<!-- Dark Logo icon -->
<img src="assets/images/logo-icon5.png" alt="homepage" class="dark-logo" width="50px" height="50px" />
<!-- Light Logo icon
<img src="assets/images/logo-light-icon.png" alt="homepage" class="light-logo" /> -->
</b>
<!--End Logo icon -->
<!-- Logo text --><span>
<!-- dark Logo text -->
<img src="assets/images/logo-text5.png" alt="homepage" class="dark-logo" height ="35px;" width="160px"/>
<!-- Light Logo text
<img src="assets/images/logo-light-text.png" class="light-logo" alt="homepage" /> --></span> </a>
</div>
<!-- ============================================================== -->
<!-- End Logo -->
<!-- ============================================================== -->
<div class="navbar-collapse">
<!-- ============================================================== -->
<!-- toggle and nav items -->
<!-- ============================================================== -->
<ul class="navbar-nav mr-auto">
<!-- This is -->
<li class="nav-item"> <a class="nav-link nav-toggler hidden-md-up waves-effect waves-dark" href="javascript:void(0)"><i class="ti-menu" style="color:#c9c9c9"></i></a> </li>
<li class="nav-item"> <a class="nav-link sidebartoggler hidden-sm-down waves-effect waves-dark" href="javascript:void(0)"><i class="ti-menu" style="color:#c9c9c9"></i></a> </li>
<!-- <li class="nav-item hidden-sm-down">
<span>
<asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="SqlDataSource2" DataTextField="BRANCHNAME" DataValueField="BRANCHNAME" data-style="btn-secondary btn-sm" CssClass="selectpicker m-r-250 text-center" AutoPostBack="True"></asp:DropDownList>
<asp:SqlDataSource runat="server" ID="SqlDataSource2" ConnectionString='<%$ ConnectionStrings:ShoplifyConnectionString %>' SelectCommand="SELECT [BRANCHNAME] FROM [SHOPLIFYBRANCH]"></asp:SqlDataSource>
</span>
</li> -->
</ul>
<!-- ============================================================== -->
<!-- User profile and search -->
<!-- ============================================================== -->
<ul class="navbar-nav my-lg-0">
<!-- ============================================================== -->
<!-- Date & Time -->
<!-- ============================================================== -->
<li class="nav-item hidden-xs-down search-box">
<span class="nav-link hidden-sm-down waves-effect waves-dark" id="date_time" style="margin-top:10px"></span>
<script type="text/javascript">window.onload = date_time('date_time');</script>
</li>
<!-- ============================================================== -->
<!-- Country -->
<!-- ============================================================== -->
<li class="nav-item dropdown">
<div class="col-lg-12 text-center">
<span class="label label-warning" style="margin-top:10px;padding-top:20px">
<asp:Label ID="Label1" runat="server" Text="No Table" class="font-weight-bold font-18"></asp:Label>
</span></div>
</li>
<!-- ============================================================== -->
<!-- Profile -->
<!-- ============================================================== -->
<% If Session("ssUserLevel") = "Administrator" Or Session("ssUserLevel") = "Chef" Or Session("ssUserLevel") = "General Manager" Or Session("ssUserLevel") = "Manager" Or Session("ssUserLevel") = "Waiter" Or Session("ssUserLevel") = "Cashier" Then%>
<li class="nav-item dropdown">
<% DPPic1.ImageUrl = Session("ssUserDPLink") %>
<a class="nav-link dropdown-toggle waves-effect waves-dark" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><asp:Image ID="DPPic1" runat="server" alt="user" class="profile-pic"/> </a>
<div class="dropdown-menu dropdown-menu-right animated flipInY">
<ul class="dropdown-user">
<li>
<div class="dw-user-box">
<% DPPic2.ImageUrl = Session("ssUserDPLink") %>
<div class="u-img"><asp:Image ID="DPPic2" runat="server" />
</div>
<div class="u-text">
<h4><% = Session("ssUserName") %></h4>
<p class="text-muted"><% = Session("ssUserFullName") %></p>
<p class="text-muted"><% = Session("ssUserSection") %></p>
<p class="text-muted"><% = Session("ssUserLevel") %></p>
<a href="AccountSetting.aspx" class="btn btn-rounded btn-danger btn-sm">View Profile</a>
</div>
</div>
</li>
<li role="separator" class="divider"></li>
<li> <asp:LinkButton ID="mymessage" runat="server"><i class="ti-email"></i> Message</asp:LinkButton></li>
<li role="separator" class="divider"></li>
<li> <asp:LinkButton ID="accSetting" runat="server"><i class="ti-user"></i> My Account</asp:LinkButton></li>
<hr style="margin-bottom: 0.5rem; margin-top: 0.5rem;"/>
<li><asp:LinkButton ID="hypLogout" runat="server" ><i class="fa fa-power-off"></i> Logout</asp:LinkButton></li>
</ul>
</div>
</li>
<%End If %>
</ul>
</div>
</nav>
</header>
<!-- ============================================================== -->
<!-- End Topbar header -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- Left Sidebar - style you can find in sidebar.scss -->
<!-- ============================================================== -->
<aside class="left-sidebar">
<!-- Sidebar scroll-->
<div class="scroll-sidebar">
<!-- Sidebar navigation-->
<nav class="sidebar-nav">
<ul id="sidebarnav">
<li class="nav-devider"></li>
<% If Session("ssSuperUser") = "Superadmin" Then %>
<span class="hide-menu">
<li class="nav-small-cap font-weight-bold text-center">ROLES</li>
<div class="col-sm-12">
<asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource1" DataTextField="LEVELNAME" DataValueField="LEVELNAME" data-style="btn-secondary btn-sm" CssClass="selectpicker m-b-20 m-r-10 text-center" AutoPostBack="True">
</asp:DropDownList>
<asp:SqlDataSource runat="server" ID="SqlDataSource1" ConnectionString='<%$ ConnectionStrings:ShoplifyConnectionString %>' SelectCommand="SELECT [LEVELNAME] FROM [SHOPLIFYLEVEL]"></asp:SqlDataSource>
</div>
</span>
<% End If %>
<% If Session("ssUserLevel") = "Administrator" Or Session("ssUserLevel") = "Chef" Or Session("ssUserLevel") = "General Manager" Or Session("ssUserLevel") = "Manager" Or Session("ssUserLevel") = "Waiter" Or Session("ssUserLevel") = "Cashier" Then%>
<li class="nav-small-cap font-weight-bold">MAIN</li>
<li> <a href="Home.aspx"><i class="mdi mdi-home"></i><span class="hide-menu">Home</span></a>
<%End If %>
<% If Session("ssUserLevel") = "Administrator" Then%>
<li class="nav-small-cap font-weight-bold">ADMINISTRATION</li>
<li> <a class="has-arrow waves-effect waves-dark" aria-expanded="false" href="#"><i class="mdi mdi-account-settings-variant"></i><span class="hide-menu">User Master</span></a>
<ul aria-expanded="false" class="collapse">
<li><a href="AddNewUser.aspx"><i class="mdi mdi-account-plus"></i> Add New User</a></li>
<li><a href="ManageUser.aspx"><i class="mdi mdi-account-edit"></i> Edit User</a></li>
<li><a href="UserActivation.aspx"><i class="mdi mdi-account-check"></i> Enable/Disable User</a></li>
</ul>
</li>
<% End If %>
<% If Session("ssUserLevel") = "Administrator" Or Session("ssUserLevel") = "Chef" Then%>
<li> <a class="has-arrow waves-effect waves-dark" aria-expanded="false" href="#"><i class="mdi mdi-food"></i><span class="hide-menu">Menu Master</span></a>
<ul aria-expanded="false" class="collapse">
<% If Session("ssUserLevel") = "Administrator" Then%>
<li><a href="AddNewMenu.aspx"><i class="mdi mdi-playlist-plus"></i> Add New Menu</a></li>
<li><a href="ManageMenu.aspx"><i class="mdi mdi-tooltip-edit"></i> Edit Menu</a></li>
<li><a href="AddNewCategory.aspx"><i class="mdi mdi-settings"></i> Add/Delete Category</a></li>
<%End If %>
<% If Session("ssUserLevel") = "Administrator" Or Session("ssUserLevel") = "Chef" Then%>
<li><a href="MenuActivation.aspx"><i class="mdi mdi-block-helper"></i> Enable/Disable Menu</a></li>
<%End If %>
</ul>
</li>
<%End If %>
<% If Session("ssUserLevel") = "Administrator" Or Session("ssUserLevel") = "Chef" Then%>
<li><a class="has-arrow waves-effect waves-dark" href="#" aria-expanded="false"><i class="mdi mdi-book-open"></i><span class="hide-menu">Table Master</span></a>
<ul aria-expanded="false" class="collapse">
<% If Session("ssUserLevel") = "Administrator" Then%>
<li><a href="ManageTableAdd.aspx"><i class="mdi mdi-playlist-plus"></i> Add Table </a></li>
<li><a href="ManageTableEdit.aspx"><i class="mdi mdi-tooltip-edit"></i> Edit Table</a></li>
<%End If %>
<% If Session("ssUserLevel") = "Administrator" Or Session("ssUserLevel") = "Chef" Or Session("ssUserLevel") = "Cashier" Or Session("ssUserLevel") = "Waiter" Then%>
<li><a href="ManageTableStatus.aspx"><i class="mdi mdi-block-helper"></i> Enable/Disable Table</a></li>
<%End If %>
</ul>
</li>
<%End If %>
<% If Session("ssUserLevel") = "Administrator" Or Session("ssUserLevel") = "Chef" Or Session("ssUserLevel") = "General Manager" Or Session("ssUserLevel") = "Manager" Or Session("ssUserLevel") = "Waiter" Or Session("ssUserLevel") = "Cashier" Then%>
<li class="nav-small-cap font-weight-bold">USER INFORMATION</li>
<li> <a href="AccountSetting.aspx" ><i class="mdi mdi-account"></i><span class="hide-menu">My Account</span></a></li>
<%End If %>
<% If Session("ssUserLevel") = "Administrator" Or Session("ssUserLevel") = "General Manager" Or Session("ssUserLevel") = "Manager" Then%>
<li class="nav-small-cap font-weight-bold">USER MASTER</li>
<li> <a href="UserList.aspx"><i class="mdi mdi-account-card-details"></i><span class="hide-menu">User List</span></a></li>
<li><a href="DisableUser.aspx"><i class="mdi mdi-account-off"></i><span class="hide-menu"> Disable User</span></a></li>
<%End If %>
<% If Session("ssUserLevel") = "Administrator" Or Session("ssUserLevel") = "Chef" Or Session("ssUserLevel") = "General Manager" Or Session("ssUserLevel") = "Manager" Or Session("ssUserLevel") = "Waiter" Or Session("ssUserLevel") = "Cashier" Then%>
<li class="nav-small-cap font-weight-bold">MENU MASTER</li>
<li> <a href="MenuListCategory.aspx"><i class="mdi mdi-format-list-numbers"></i><span class="hide-menu">Menu List</span></a></li>
<%End If %>
<% If Session("ssUserLevel") = "Administrator" Or Session("ssUserLevel") = "Waiter" Then%>
<li class="nav-small-cap font-weight-bold">WAITER</li>
<li> <a class="has-arrow waves-effect waves-dark" aria-expanded="false" href="#"><i class="mdi mdi-book-open"></i><span class="hide-menu">Manage Order</span></a>
<ul aria-expanded="false" class="collapse">
<li><a href="TakeOrderWaiter.aspx">Take Order</a></li>
<li><a href="ManageOrderWaiter.aspx">Manage Order</a></li>
<li><a href="WaiterOrderStatus.aspx">Order Status</a></li>
</ul>
</li>
<li> <a href="WaiterOrderHistory.aspx"><i class="mdi mdi-history"></i><span class="hide-menu">Order History</span></a></li>
<%End If %>
<% If Session("ssUserLevel") = "Administrator" Or Session("ssUserLevel") = "Chef" Then%>
<li class="nav-small-cap font-weight-bold">KITCHEN</li>
<li> <a class="has-arrow waves-effect waves-dark" aria-expanded="false" href="#"><i class="mdi mdi-book-open"></i><span class="hide-menu">Manage Order</span></a>
<ul aria-expanded="false" class="collapse">
<li><a href="ManageOrderKitchen.aspx">Manage Order</a></li>
<li><a href="KitchenOrderStatus.aspx">Order Status</a></li>
</ul>
</li>
<li> <a href="KitchenOrderHistory.aspx"><i class="mdi mdi-history"></i><span class="hide-menu">Order History</span></a></li>
<%End If %>
<% If Session("ssUserLevel") = "Administrator" Or Session("ssUserLevel") = "Customer" Then%>
<% If Session("ssUserLevel") = "Administrator" Then%>
<li class="nav-small-cap font-weight-bold">CUSTOMER</li>
<li><a href="TakeOrderTable.aspx"><i class="mdi mdi-book-open"></i><span class="hide-menu">Choose Table</span></a></li>
<li><a href="CustomerClickScan.aspx"><i class="mdi mdi-book-open"></i><span class="hide-menu">Scan QR</span></a></li>
<%End If%>
<li class="nav-small-cap font-weight-bold text-center">Home</li>
<li class="text-center"><asp:ImageButton ID="btnhome" runat="server" ImageUrl="~/assets/images/home.png" style="height:40%; width:40%;"/></li>
<li class="nav-small-cap font-weight-bold text-center">Make Order</li>
<li class="text-center"><asp:ImageButton ID="btnmakeorder" runat="server" ImageUrl="~/assets/images/menulist.png" style="height:40%; width:40%;"/></li>
<li class="nav-small-cap font-weight-bold text-center">Order Status</li>
<li class="text-center"><asp:ImageButton ID="btnorderstatus" runat="server" ImageUrl="~/assets/images/orderstatus.png" style="height:40%; width:40%;"/></li>
<li class="nav-small-cap font-weight-bold text-center">Bill</li>
<li class="text-center"><asp:ImageButton ID="btnorderbill" runat="server" ImageUrl="~/assets/images/bill.png" style="height:40%; width:40%;"/></li>
<%End If %>
<% If Session("ssUserLevel") = "Administrator" Or Session("ssUserLevel") = "Cashier" Then%>
<li class="nav-small-cap font-weight-bold">CASHIER</li>
<li><a href="CashierPayment.aspx"><i class="mdi mdi-book-open"></i><span class="hide-menu">Payment</span></a></li>
<%End If %>
<% If Session("ssUserLevel") = "Administrator" Or Session("ssUserLevel") = "Chef" Or Session("ssUserLevel") = "General Manager" Or Session("ssUserLevel") = "Manager" Or Session("ssUserLevel") = "Waiter" Or Session("ssUserLevel") = "Cashier" Then%>
<li class="nav-small-cap font-weight-bold">REPORTS</li>
<li> <a href="SalesReport.aspx"><i class="mdi mdi-book-open"></i><span class="hide-menu">Sales Report</span></a></li>
<%End If %>
</ul>
</nav>
<!-- End Sidebar navigation -->
</div>
<!-- End Sidebar scroll-->
</aside>
<!-- ============================================================== -->
<!-- End Left Sidebar - style you can find in sidebar.scss -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- Page wrapper -->
<!-- ============================================================== -->
<div class="page-wrapper">
<!-- ============================================================== -->
<!-- Container fluid -->
<!-- ============================================================== -->
<div class="container-fluid">
<asp:ContentPlaceHolder id="Content" runat="server">
</asp:ContentPlaceHolder>
</div>
<!-- ============================================================== -->
<!-- End Container fluid -->
<!-- ============================================================== -->
</div>
<!-- ============================================================== -->
<!-- End Page wrapper -->
<!-- ============================================================== -->
</div>
<!-- ============================================================== -->
<!-- End Wrapper -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- All Jquery -->
<!-- ============================================================== -->
<script src="assets/plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap tether Core JavaScript -->
<script src="assets/plugins/bootstrap/js/popper.min.js"></script>
<script src="assets/plugins/bootstrap/js/bootstrap.min.js"></script>
<!-- slimscrollbar scrollbar JavaScript -->
<script src="assets/js/perfect-scrollbar.jquery.min.js"></script>
<!--Wave Effects -->
<script src="assets/js/waves.js"></script>
<!--Menu sidebar -->
<script src="assets/js/sidebarmenu.js"></script>
<!--stickey kit -->
<script src="assets/plugins/sticky-kit-master/dist/sticky-kit.min.js"></script>
<script src="assets/plugins/sparkline/jquery.sparkline.min.js"></script>
<!--Custom JavaScript -->
<script src="assets/js/custom.min.js"></script>
<script src="assets/js/chat.js"></script>
<!-- ============================================================== -->
<!-- Style switcher -->
<!-- ============================================================== -->
<script src="assets/plugins/styleswitcher/jQuery.style.switcher.js"></script>
<script src="assets/plugins/bootstrap-select/bootstrap-select.min.js" type="text/javascript"></script>
</form>
<asp:ContentPlaceHolder id="Script" runat="server">
</asp:ContentPlaceHolder>
</body>
</html>