-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreservation_status.php
165 lines (141 loc) · 5.59 KB
/
reservation_status.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
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
<?php session_start();
if(empty($_SESSION['id'])):
header('Location:index.php');
endif;
?>
<?php include 'header.php';?>
<body>
<?php include 'navbar.php';?>
<?php include 'menu-tab.php';?>
<div class = "content">
<div class = "col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class = "col-md-9 col-lg-9">
<div class="widget wgreen">
<div class="widget-head">
<div class="pull-left title">Reservation Summary</div>
<div class="widget-icons pull-right">
<button class="btn btn-primary hideme" onClick="window.print()"><i class="fa fa-print"></i></button>
<a href="finish.php" class="btn btn-danger hideme"><i class="fa fa-sign-out"></i></a>
</div>
<div class="clearfix"></div>
</div>
<div class="widget-content">
<div class="padd" style="height:650px">
<div class="alert alert-success">
<b>Reminder: Please print your reservation summary and take note of your reservation code for reservation inquiry.</b>
</div>
<h3 style="text-align:center">Alton's Catering Services</h3>
<h4 style="text-align:center">Kabankalan City</h4>
<h4 style="text-align:center">Phone No. : 09460524472</h4>
<h4 style="text-align:center">Gmail : [email protected]</h4>
<h4 style="text-align:center">Facebook : facebook.com/Alton Restobar</h4>
<hr>
<table style="width:100%">
<?php
include('includes/dbcon.php');
$rcode=$_REQUEST['rcode'];
$query=mysqli_query($con,"select * from reservation left join team on reservation.team_id=team.team_id natural join combo where r_code='$rcode'")or die(mysqli_error($con));
$row=mysqli_fetch_array($query);
$rcode=$row['r_code'];
$first=$row['r_first'];
$last=$row['r_last'];
$contact=$row['r_contact'];
$address=$row['r_address'];
$date=$row['r_date'];
$venue=$row['r_venue'];
$balance=$row['balance'];
$payable=$row['payable'];
$ocassion=$row['r_ocassion'];
$team=$row['team_name'];
$status=$row['r_status'];
$motif=$row['r_motif'];
$time=$row['r_time'];
$time=$row['r_time'];
$type=$row['r_type'];
$cid=$row['combo_id'];
?>
<tr>
<td>RCode: </td>
<td><?php echo $rcode;?></td>
<td>Event Date: </td>
<td><?php echo date("M d, Y",strtotime($date));?></td>
</tr>
<tr>
<td>Name: </td>
<td><?php echo $last." ,".$first;?></td>
<td>Time: </td>
<td><?php echo date("h:i a",strtotime($time));?></td>
</tr>
<tr>
<td>Contact #: </td>
<td><?php echo $contact;?></td>
<td>Venue: </td>
<td><?php echo $venue;?></td>
</tr>
<tr>
<td>Address: </td>
<td><?php echo $address;?></td>
<td>Motif: </td>
<td><?php echo $motif;?></td>
</tr>
<tr>
<td>Status:</td>
<th><?php echo $row['r_status'];?></th>
<td>Occasion: </td>
<td><?php echo $ocassion;?></td>
</tr>
<tr>
<td></td>
<td></td>
<td>Type: </td>
<td><?php echo $type;?></td>
</tr>
<tr>
<td></td>
<td></td>
<td>No. of Pax: </td>
<td><?php echo $row['pax'];?></td>
</tr>
<tr>
<td></td>
<td></td>
<td>Payable: </td>
<td>P <?php echo number_format($payable,2);?></td>
</tr>
<tr>
<td></td>
<td></td>
<td>Mode of Payment: </td>
<td><?php echo $row['modeofpayment'];?></td>
</tr>
</table>
<br>
<div style="width:50%;float:left">
<h4><?php echo $row['combo_name'];?></h4>
<span>No. of persons: <?php echo $row['pax'];?> * <?php echo $row['price'];?> = <?php echo $row['payable'];?></span>
<ul>
<?php
$query1=mysqli_query($con,"select * from combo_details natural join menu where combo_id='$cid'")or die(mysqli_error($con));
while($row1=mysqli_fetch_array($query1))
{
?>
<li><?php echo $row1['menu_name'];?></li>
<?php }?>
</div>
</div><!--pad-->
</div>
</div><!--widget-->
</div><!--col 9-->
<?php include('right-sidebar.php');?>
</div>
</div>
<?php include 'footer.php';?>
<?php include 'script.php';?>
<script>
$(function () {
//Initialize Select2 Elements
$(".select2").select2();
})
</script>
</body>
</html>