-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpayment.php
116 lines (97 loc) · 4.31 KB
/
payment.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
<?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">Payment Details</div>
<div class="widget-icons pull-right">
<a href="#" class="wminimize"><i class="fa fa-chevron-up"></i></a>
<a href="#" class="wclose"><i class="fa fa-times"></i></a>
</div>
<div class="clearfix"></div>
</div>
<div class="widget-content">
<div class="padd">
<br>
<!-- Form starts. -->
<form class="form-horizontal" role="form" action="payment_save.php" method="post">
<div class="form-group">
<label class="col-lg-2 control-label">Package Details</label>
<div class="col-lg-5">
<?php
include('includes/dbcon.php');
$id = $_SESSION['id'];
$query = mysqli_query($con, "SELECT * FROM reservation natural join combo WHERE rid='$id'");
$row=mysqli_fetch_array($query);
$cid=$row['combo_id'];
echo "<b>".$row['combo_name']."</b>";
$query1 = mysqli_query($con, "SELECT * FROM combo_details natural join menu WHERE combo_id='$cid'");
while($row1=mysqli_fetch_array($query1))
{
?>
<?php
echo "<br>";
echo $row1['menu_name'];
?>
<?php }?>
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">Payment Details</label>
<div class="col-lg-5">
<h4>
<?php
echo $row['pax'];
echo " x ";
echo number_format($row['price'],2);
echo " = ";
echo number_format($row['payable'],2);
?>
</h4>
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">Mode of Payment</label>
<div class="col-lg-5">
<select class="form-control select2 " id="exampleSelect1" name="mode" placeholder="Select occasion" required>
<option>Cash</option>
</select>
</div>
</div>
<div class="form-group">
<div class="col-lg-offset-2 col-lg-6">
<button type="reset" class="btn btn-sm btn-default">Clear</button>
<button type="submit" class="btn btn-sm btn-primary">Next</button>
</div>
</div>
</form>
</div>
</div>
<div class="widget-foot">
<!-- Footer goes here -->
</div>
</div>
</div>
<?php include('right-sidebar.php');?>
</div>
</div>
<?php include 'footer.php';?>
<?php include 'script.php';?>
<script>
$(function () {
//Initialize Select2 Elements
$(".select2").select2();
})
$( "#datepicker" ).datepicker({ minDate: 0});
</script>
</body>
</html>