-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpaid.php
129 lines (91 loc) · 3.2 KB
/
paid.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!-- Important to make website responsive -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Restaurant Website</title>
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> -->
<!-- Link our CSS file -->
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- Navbar Section Starts Here --><div>Thank You</div>
<?php require('navbar.php'); ?>
<!-- Navbar Section Ends Here -->
<!-- fOOD sEARCH Section Starts Here -->
<section class="food-search text-center">
<div class="container">
<h1>Paid</h1>
</div>
</section>
<!-- fOOD sEARCH Section Ends Here -->
<!-------------------------------------------------------------------------------------------------------------------------->
<!-------------------------------------- MAIN BODY ------------------------------------------------------------------------->
<!-------------------------------------------------------------------------------------------------------------------------->
<!-------------------------------------------------------------------------------------------------------------------------->
<!-- MAIN CODE TO ACCESS AND OUTPUT EACH ITEM -->
<!-- fOOD cart Section Starts Here -->
<section class="food-menu">
<div class="container">
<h2 class="text-center"></h2>
</div>
<div class="clearfix"></div>
</div>
</section>
<div>
<?php
include 'connect.php';
session_start();
// // if(isset($_SESSION["cart"])){
// // print_r('HIII');
// // } else {
// // echo '<script>window.location="cart.php"</script>';
// }
// } else {
?>
<!-- fOOD cart Section Ends Here -->
<?php
if(isset($_POST["pay"]))
{
if(isset($_POST['savedpay']) ? $_POST['savedpay'] : false)
{$sql=
"UPDATE orders
SET
isPaid = 1,
pid=".$_POST["savedpay"].",
CDid=".$_POST["savedadd"]."
WHERE
oid =".$_SESSION['oid'].";";
$db->query($sql);
// unset($_SESSION['uid']);
// unset($_SESSION['oid']);
}
}
?>
<!-- social Section Starts Here -->
<section class="social">
<div class="container text-center">
<ul>
<li>
<a href="#"><img src="https://img.icons8.com/fluent/50/000000/facebook-new.png"/></a>
</li>
<li>
<a href="#"><img src="https://img.icons8.com/fluent/48/000000/instagram-new.png"/></a>
</li>
<li>
<a href="#"><img src="https://img.icons8.com/fluent/48/000000/twitter.png"/></a>
</li>
</ul>
</div>
</section>
<!-- social Section Ends Here -->
<!-- footer Section Starts Here -->
<section class="footer">
<div class="container text-center">
<p>All rights reserved. work done By <a href="#">Keerat Tanwar</a></p>
</div>
</section>
<!-- footer Section Ends Here -->
</body>
</html>