-
Notifications
You must be signed in to change notification settings - Fork 17
/
verify.php
143 lines (123 loc) · 5.32 KB
/
verify.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
<?php
include "connection.php";
session_start();
// variables
$fname = $_POST['fName'];
$lname = $_POST['lName'];
$email = $_POST['email'];
$mobile = $_POST['pNumber'];
$theatre = $_POST['theatre'];
$type = $_POST['type'];
$date = $_POST['date'];
$time = $_POST['hour'];
$movieid = $_POST['movie_id'];
$order = "ARVR" . rand(10000, 99999999);
$cust = "CUST" . rand(1000, 999999);
//sessions
// $_SESSION['ORDERID'] = $order;
//conditions
if ((!$_POST['submit'])) {
echo "<script>alert('You are Not Suppose to come Here Directly');window.location.href='index.php';</script>";
}
if (isset($_POST['submit'])) {
$qry = "INSERT INTO bookingtable(`movieID`, `bookingTheatre`, `bookingType`, `bookingDate`, `bookingTime`, `bookingFName`, `bookingLName`, `bookingPNumber`, `bookingEmail`,`amount`, `ORDERID`)VALUES ('$movieid','$theatre','$type','$date','$time','$fname','$lname','$mobile','$email','Not Paid','$order')";
$result = mysqli_query($con, $qry);
}
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<title>Aman_Sharma</title>
<script src="_.js "></script>
</head>
<body>
<center>
<br><br>
<h1>Proceed for Payment </h1>
<br><br>
<form method="post" action="pgRedirect.php">
<table border="1" style="text-align: center;">
<tbody>
<tr>
<th>S.No</th>
<th>Label</th>
<th>Value</th>
</tr>
<tr>
<td>1</td>
<td><label>ORDER_ID::*</label></td>
<td><?php echo $order; ?>
<input type="hidden" name="ORDER_ID" value="<?php echo $order; ?>">
</td>
</tr>
<tr>
<td>2</td>
<td><label>Name</label></td>
<td><?php echo $_POST['fName'] . " " . $_POST['lName']; ?></td>
</tr>
<tr>
<td>3</td>
<td><label>Website ::*</label></td>
<td>
<?php echo "ARVRcinemas"; ?>
</td>
</tr>
<tr>
<td>4</td>
<td><label>THEATRE ::*</label></td>
<td>
<?php echo $_POST['theatre']; ?>
</td>
</tr>
<tr>
<td>5</td>
<td><label>TYPE ::*</label></td>
<td>
<?php echo $_POST['type']; ?>
</td>
</tr>
<tr>
<td>6</td>
<td><label>txnAmount*</label></td>
<td>
<?php
if ($theatre == "main-hall") {
$ta = 200;
}
if ($theatre == "vip-hall") {
$ta = 500;
}
if ($theatre == "private-hall") {
$ta = 900;
}
?>
<input type="text" name="TXN_AMOUNT" value="<?php echo $ta; ?>" readonly>
<input type="hidden" name="CUST_ID" value="<?php echo $cust; ?>">
<input type="hidden" name="INDUSTRY_TYPE_ID" value="retail">
<input type="hidden" name="CHANNEL_ID" value="WEB">
</td>
</tr>
<tr>
<td></td>
<td></td>
<td>
<button value="Book Now!" type="submit" onclick="" type="button" class="btn btn-danger">Pay Now!</button>
<!-- <input value="CheckOut" type="submit" onclick=""></td> -->
</tr>
</tbody>
</table>
* - Mandatory Fields
</form>
</center>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</body>
</html>