-
Notifications
You must be signed in to change notification settings - Fork 0
/
myorders(customer).php
218 lines (188 loc) · 6.1 KB
/
myorders(customer).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
<?php session_start();
include("includes/connection.php");
include("customer-account.php");
?>
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
.textbox{
border-radius: 8px;
box-shadow: 1px 1.732px 5px 0px rgb( 55, 52, 52 );
border: 2px solid steelblue;
background-color: white;
position: inherit;
left: 200px;
top: 10px;
width: 170px;
height: 25px;
}
.head-order {
font-size: 30px;
font-family: "Yu Gothic UI";
color: rgb( 45, 112, 213 );
position: absolute;
left: 50px;
top: 275px;
width: 215px;
height: 35px;
z-index: 19;
}
.head-summary{
font-size: 30px;
font-family: "Yu Gothic UI";
color: rgb( 00, 00, 00 );
position: absolute;
left:155px;
top: 275px;
width: 215px;
height: 35px;
z-index: 19;
}
.fsize-title{
margin: 10px 50px 10px 350px;
font-size: 16px;
font-weight: bold;
}
.fsize{
margin: 10px 50px 10px 450px;
font-size: 13px;
}
.inputbar{
font-family: "Yu Gothic UI";
color: white;
font-size: 15px;
margin-bottom: 30px;
background-color: #43b353;
position: absolute;
right: 150px;
width: 200px;
height: 35px;
}
.fsize-special{
margin: 10px 30px 10px 50px;
font-size: 15px;
}
.image{
position: absolute;
top: 500px;
left: 50px;
height: 100px;
width: 100px;
}
.head-title{
margin-top: 105px;
font-size: 30px;
font-family: "MingLiU_HKSCS-ExtB";
color: #2d70d5;
position: absolute;
left: 200px;
top: 400px;
width: 1000px;
height: 35px;
z-index: 3;
}
.qty{
margin-top: 105px;
font-size: 16px;
font-family: "MingLiU_HKSCS-ExtB";
color: #333333;
position: absolute;
left: 220px;
top: 450px;
width: 1000px;
height: 35px;
z-index: 3;
}
.delivery{
margin-top: 105px;
font-size: 16px;
font-family: "MingLiU_HKSCS-ExtB";
font-weight: bold;
color: #333333;
position: absolute;
left: 570px;
top: 420px;
width: 1000px;
height: 35px;
z-index: 3;
}
.price{
margin-top: 105px;
font-size: 16px;
font-family: "MingLiU_HKSCS-ExtB";
color: #333333;
position: absolute;
left: 1070px;
top: 420px;
width: 1000px;
height: 35px;
z-index: 3;
}
.total{
margin-top: 105px;
font-size: 16px;
font-family: "MingLiU_HKSCS-ExtB";
font-weight: bold;
color: #333333;
position: absolute;
left: 1000px;
top: 580px;
width: 1000px;
height: 35px;
z-index: 3;
}
.inputbar{
font-family: "Yu Gothic UI";
color: white;
font-size: 15px;
margin-bottom: 30px;
background-color: #43b353;
position: absolute;
right: 50px;
width: 200px;
height: 35px;
}
</style>
<title></title>
</head>
<body><?php $id = $_SESSION['USER_ID'];
$query_category12="SELECT shipping_brgy,shipping_street,shipping_municipal,courier_contact,shipping_province,courier_name FROM buy_transaction WHERE user_id = '$id'";
$result_category12 = mysqli_query($conn,$query_category12);
while($row3=mysqli_fetch_array($result_category12)){
$brgy = $row3['shipping_brgy'];
$street = $row3['shipping_street'];
$municipal = $row3['shipping_municipal'];
$province = $row3['shipping_province'];
$contact = $row3['courier_contact'];
$name = $row3['courier_name'];
}
?>
<?php
// query displaying orders from a customer
$query_category="SELECT art_work.art_id, art_work.art_title,art_work.art_price, user.user_fname, user.user_mname,user.user_lname,art_work.art_description,art_work.art_imagepath,art_work.art_width,art_work.art_height,art_work.art_media,art_work.art_category,user.user_contact,art_work.art_thickness
FROM art_work,user,buy_transaction
where buy_transaction.art_id = art_work.art_id AND buy_transaction.user_id = user.user_id AND
buy_transaction.user_id = '$id'";
$result_category = mysqli_query($conn,$query_category);
while($row=mysqli_fetch_array($result_category)){
echo '<a href= "pictures/arts/'.$row['art_imagepath'].'"> <img class="image" src="pictures/arts/'.$row['art_imagepath'].'" ></a><br />'.'<p class = "head-title">'.$row['art_title'].'</p>';
$price = $row['art_price'];
echo '<br><br><br><br><br><br>';
}
?>
<p class="qty">Quantity - 1</p>
<p class="delivery"><?php
$today = getdate();
$day = $today['weekday'];
$month = $today['month'];
$day1 = $today['mday'];
$year =$today['year'];
echo $day.' '.$month.' '.$day1.' '.$year;
?> --- <?php $today="$day-$month-$day1-$year";
$nextday=strftime("$year-$month-$day1-$year", strtotime("$today +1 $"));
echo $nextday;?></p>
<p class="price">Php <?php echo $price;?> <br><br><br><br><br>Subtotal Php<?php echo $price;?><br> Shipping Fee: Free<br><br></p>
<p class="total">Total(Tax included) Php <?php echo $price;?></p>
</body>
</html>