-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorder_history.php
242 lines (210 loc) · 4.88 KB
/
order_history.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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
<?php
session_start();
include('header.php');
include('Config.php');
$cursor = $pro->find();
$i=1;
?>
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<title>CodePen - Animated folding (notifications concept)</title>
<style>
.cards_wrapper {
font-family: "Roboto", sans-serif;
}
.card {
width: 80%;
margin: 0 auto 5px;
cursor: pointer;
}
.card .card_description {
border-radius: 5px;
height: 60px;
display: flex;
justify-content: flex-start;
align-items: center;
transition: border-radius 0.6s ease-in-out;
box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.2);
}
.card .card_description .date,
.card .card_description .title {
color: rgba(255, 255, 255, 0.8);
font-size: 20px;
}
.card .card_description .date {
margin: 0 40px 0 20px;
}
.card.today .card_description {
background-color:#8080ff;
}
.card.tomorrow .card_description {
background-color: #EF6C00;
}
.card.unfolded .top {
animation: unfold_top 0.6s ease-in-out;
}
.card.unfolded .bottom {
animation: unfold_bottom 0.6s ease-in-out;
}
.card.unfolded .card_description {
border-radius: 5px 5px 0 0;
}
.card.folded .top {
animation: fold_top 0.6s forwards ease-in-out;
}
.card.folded .bottom {
animation: fold_bottom 0.6s forwards ease-in-out;
}
.top,
.bottom {
position: relative;
overflow: hidden;
height: 50px;
background-color: #fff;
box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.2);
}
.bottom {
border-radius: 0 0 5px 5px;
}
.alarm_item {
display: flex;
align-items: center;
}
.alarm_item .time_block {
margin-left: 20px;
}
.alarm_item .day_part {
font-size: 10px;
margin: 0 25px 0 5px;
color: #798384;
}
.alarm_item .time {
padding: 10px;
border-radius: 3px;
color: #fff;
background-color: #03a9f4;
}
.alarm_item .alarm_item_description {
color: #798384;
}
@keyframes fold_top {
100% {
transform-origin: top;
transform: perspective(100px) rotateX(-10deg);
height: 0;
}
}
@keyframes fold_bottom {
100% {
transform-origin: bottom;
transform: perspective(100px) rotateX(10deg);
height: 0;
}
}
@keyframes unfold_top {
0% {
transform-origin: top;
height: 0;
transform: perspective(100px) rotateX(-10deg);
}
100% {
transform: perspective(100px) rotateX(0deg);
height: 40px;
}
}
@keyframes unfold_bottom {
0% {
transform-origin: bottom;
height: 0;
transform: perspective(100px) rotateX(10deg);
}
100% {
transform: perspective(100px) rotateX(0deg);
height: 40px;
}
}
</style>
</head>
<body translate="no" >
</div>
<div class="special">
<div class="container">
<h3>Order Details</h3>
</div></div>
<center>
<table class="table" style="width:80%; ">
<tr >
<th >SR.NO</th>
<th >Order ID</th>
<th >Date</th>
<th >Amount</th>
<th >Status</th>
<th >Print Bill</th>
</tr>
</table>
</center>
<?php
foreach ($cursor as $key) {
if($key['Order']){
if($key['Order']['U_name']==$_SESSION['U_name']||($key['Order']['customer']==$_SESSION['U_name'])){
$j=1;
?>
<div class="cards_wrapper">
<div class="card folded today">
<div class="card_description">
<div class="date" ><?php echo $i++ ?></div>
<div class="title" style="padding:0px 0px 0px 75px; "><?php echo $key['Order']['order_no'] ?></div>
<div class="title" style="padding:0px 0px 0px 75px; "><?php echo $key['Order']['date'] ?></div>
<div class="title" style="padding:0px 70px; " >₹ <?php echo $key['Order']['total_bill'] ?></div>
<div class="title" style="padding:0px 40px; " ><?php echo $key['Order']['status'] ?></div>
<?php if($key['Order']['status']=="unpaid")
{ ?>
<div class="title" style="padding:0px 40px; " >Unavailabe</div>
<?php
}
else
{
?>
<div class="title" style="padding:0px 40px; " ><a href="invoice.php?oid=<?php echo $key['Order']['order_no']?>">Generate Invoice</a></div>
<?php
}
?>
</div>
<?php
$prod=$key['Order']['products'];
foreach ($prod as $temp) {
?>
<div class="alarm_item bottom">
<div class="time_block">
<div class="time"><?php echo $j++ ?></div>
</div>
<div class="alarm_item_description" style="padding:0px 0px 0px 55px; "><?php echo $temp['pro_name'] ?></div>
<div class="alarm_item_description" style="padding:0px 0px 0px 55px; ">Price each ₹ <?php echo $temp['price'] ?></div>
<div class="alarm_item_description" style="padding:0px 0px 0px 55px; ">Qty : <?php echo $temp['quantity'] ?></div>
</div>
<?php
}
?>
</div>
</div>
<?php
}
}}
?>
<script>
'use strict';
$('.card').on('click', function (e) {
$(this).toggleClass('folded unfolded');
});
//# sourceURL=pen.js
</script>
<br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br>
<?php
include 'footer.php'
?>
</body>
</html>