-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpayment.php
More file actions
98 lines (90 loc) · 4.28 KB
/
payment.php
File metadata and controls
98 lines (90 loc) · 4.28 KB
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
<?php include "includes/db.php"; ?>
<?php include "includes/header.php"; ?>
<!-- Navigation -->
<?php include "includes/navigation.php"; ?>
<?php
$query = "SELECT cost FROM orders";
$query = mysqli_query($connection,$query);
while($row = mysqli_fetch_assoc($query)) {
$cost = $row['cost'];
}
?>
<!-- <link rel="stylesheet" href="bootstrap-4.0.0-dist/css/bootstrap.min.css"/>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<script src="https://code.jquery.com/jquery-3.1.0.min.js"></script> -->
<script src="js/bootstrap.min.js"></script>
<script>
function myFunction() {
alert("Payment successful! Your tickets are booked.");
window.location= "index.php";
}
</script>
<div class="container" style="margin-bottom: 30px; margin-top: 3%; width: 300px; align-content: center;">
<div class="cost">
<h3>Total Cost: Rs. <?php echo $cost; ?></h3>
</div>
<div class="payment_mode" style="margin-top: 40px; align-content: center;">
<h3 style="text-align: center; align-self: center;">Select payment mode</h3>
<br>
<div class="form-check" style="text">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios1" value="option1">
<label class="form-check-label" for="exampleRadios1">
Cash on Delivery
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios1" value="option1">
<label class="form-check-label" for="exampleRadios1">
Debit/Credit Card
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios1" value="option1">
<label class="form-check-label" for="exampleRadios1">
Net Banking
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios1" value="option1">
<label class="form-check-label" for="exampleRadios1">
UPI
</label>
</div>
</div>
</div>
<div class="container" style="margin-bottom: 30px; width: 400px; align-content: center;">
<div class="card-details" style="margin-top: 40px; text-align: center;">
<h3 style="text-align: left; align-self: center;"> Enter card details</h3>
<br>
<form>
<div class="form-group row">
<label for="card-number" class="col-sm-4 col-form-label">Card Number</label>
<div class="col-sm-8">
<input type="text" class="form-control" id="card-number">
</div>
</div>
<div class="form-group row">
<label for="card-name" class="col-sm-4 col-form-label">Card Holder's Name</label>
<div class="col-sm-8">
<input type="text" class="form-control" id="card-name">
</div>
</div>
<div class="form-group row">
<label for="expiry" class="col-sm-4 col-form-label">Expiry Date</label>
<div class="col-sm-3">
<input type="text" class="form-control" id="expiry">
</div>
</div>
<div class="form-group row">
<label for="cvv" class="col-sm-4 col-form-label">CVV</label>
<div class="col-sm-3">
<input type="password" class="form-control" id="cvv">
</div>
</div>
</form>
<br>
<button type="button" onclick="myFunction()" class="btn btn-outline-success btn-lg" data-toggle="modal" data-target="#otpModal">Proceed to Payment</button>
</div>
</div>
<!-- </div> -->
<?php include "includes/footer.php"; ?>