forked from hanif-mianjee/Restaurant-app
/
view_branch_menu_type.php
63 lines (47 loc) · 1.5 KB
/
view_branch_menu_type.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
56
57
58
59
60
61
62
63
<?php include 'includes/header.php'; ?>
<div class="container-fluide">
<?php if(isset($_SESSION['company_id'])){ ?>
<ul class="breadcrumb">
<li><a href="#">Home</a></li>
<li><a class="active" href="#">Branches Menu Types</a></li>
</ul>
<div class="page-heading">
<h1>View Menu Types</h1>
</div>
<div class="table-responsive custom-table">
<?php
$branch = new branch();
$branch_menu_type = new branch_menu_type();
$results = $branch_menu_type->get_branch_menu_type();
?>
<table id="myTable">
<thead>
<tr>
<th>Name</th>
<th>Status</th>
<th></th>
</tr>
</thead>
<tbody>
<?php
foreach($results as $res){
if($res->branch_menu_type_company == $_SESSION['company_id']){
//get branch name by id
//$branch_detail = $branch->get_branches($res->branch_menu_type_branch);
echo '<tr>';
echo '<td>'. $res->branch_menu_type_name .'</td>';
echo '<td>'. $res->branch_menu_type_status .'</td>';
echo '<td><a class="edit_btn" href="add_branch_menu_type.php?id='.$res->branch_menu_type_id.'"><i class="fa fa-pencil edit-icon"></i>';
echo '<i class="fa fa-ban hold-icon"></i>';
echo '<i class="fa fa-trash-o delete-icon"></i>';
echo '</td>';
echo '</tr>';
}
}
?>
</tbody>
</table>
<?php }?>
</div>
</div>
<?php include 'includes/footer.php'; ?>