-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathartworks(sold).php
168 lines (136 loc) · 5.21 KB
/
artworks(sold).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
<?php include("includes/head.php"); ?>
<!DOCTYPE html>
<html>
<head>
<title>Artworks</title>
<style>
select {
border-radius: 5px;
box-shadow: 1px 1.732px 5px 0px rgb( 55, 52, 52 );
border: 1px solid steelblue;
background-color: white;
font-family: "Yu Gothic UI Light";
position: relative;
left: 200px;
top: 80px;
width: 250px;
height: 40px;
}
input{
border-radius: 5px;
box-shadow: 1px 1.732px 5px 0px rgb( 55, 52, 52 );
border: 1px solid rgb(33,33,33);
font-weight: bold;
background-color: #234;
font-family: "Yu Gothic UI Light";
color: white;
position: relative;
left: 200px;
top: 80px;
width: 150px;
height: 40px;
}
.photo {
display: block;
margin-left: auto;
margin-right: auto;
width: 50%;
position: relative ;
width: 300px;
height : 250px;
}
.desc-title{
color:#2a8048;
font-variant: small-caps;
font-family: "Yu Gothic UI Light";
font-size: 29px;
position: relative;
top: 0px;
left: 0px;
text-decoration: none;
}
.desc-content{
position: relative;
font-size: 18px;
font-family: "Yu Gothic UI Light";
top: 0px;
}
.desc-content2{
position: relative;
font-size: 18px;
font-family: "Yu Gothic UI Light";
top: -20px;
}
.pic-table{
border: 8px solid black;
box-shadow: 0px 6px 20px 0px rgba(0, 0, 0, 0.2);
background-color: #fafafa;
border-collapse: collapse;
float: left;
overflow: auto;
margin: 100px 50px 100px 40px;
}
.space{
margin-top: 120px;
position: relative;
left:130px;
}
</style>
</head>
<body>
<form action="searchart.php" method="POST">
<select id="Category" name="Category">
<option value="">CATEGORY</option>
<option value="Painting">Paintings</option>
<option value="Sculpture">Sculpture</option>
<option value="Photography">Photography</option>
<option value="Drawing">Drawings</option>
</select>
<select id="medium" name="Medium">
<option value="">MEDIUM</option>
<option value="Sculpture">Sculpture</option>
<option value="Photography">Photography</option>
<option value="Drawing">Drawings</option>
</select>
<select id="Price" name="Price">
<option value="">PRICE</option>
<option value="5001">less than 5,000 pesos</option>
<option value="10001">less than 10,000 pesos</option>
<option value="50001">less than 50,000 pesos</option>
<option value="500001">less than 500,000 pesos</option>
</select>
<input type="submit" name="submit" value="SEARCH">
</form>
<?php
$query_category1="SELECT art_work.art_imagepath,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_status,art_work.art_category
FROM art_work,user
where art_work.user_id = user.user_id AND art_work.art_status = 'sold' ORDER BY art_work.art_title ASC";
$result_category1 = mysqli_query($conn,$query_category1);
if(mysqli_num_rows($result_category1) <=0)
{
echo '<br><br><br><br><br><br><br><br><br><br><br><h1 align="Center">No Sold Artworks </h1>';
}
else{
while($row1 = mysqli_fetch_array($result_category1))
{
echo ' <div class="space">
<table class="pic-table">
<tr>
<td>
<img class="photo" src="pictures/arts/'.$row1['art_imagepath'].'" > <br>'.
'<a href=info_art.php?id='.$row1['art_id'].' class="desc-title"> '.$row1['art_title'].' </a>
<p class="desc-content">'.$row1['art_category'].'</p>
<p class="desc-content" style="float: right;">Rs'.$row1['art_price'].'.00</p> <br>
<p class="desc-content2">'.$row1['user_fname'].' '.$row1['user_mname'].' '.$row1['user_lname'].'</p>
</td>
</tr>
</table>
</div>';
}
echo "<br><br>";
}
?>
</div>
<?php
include("includes/footer.php");
?>