-
Notifications
You must be signed in to change notification settings - Fork 0
/
artwork_post.php
248 lines (218 loc) · 10.5 KB
/
artwork_post.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
242
243
244
245
246
247
248
<?php include("account.php"); ?>
<!DOCTYPE html>
<html>
<head>
</head>
<style>
.headt1 {
font-size: 30px;
font-family: "Yu Gothic UI Light";
color: rgb( 45, 112, 213 );
position: absolute;
left: 70px;
top: 100px;
z-index: 19;
}
.headt2{
font-size: 30px;
font-family: "Yu Gothic UI Light";
color: rgb( 00, 00, 00 );
position: absolute;
left:153px;
top: 100px;
z-index: 19;
}
.hr{
position:absolute;
border: 1px solid #2d70d5;
top:150px;
width: 1090px;
left:71px;
}
.table{
position: relative;
top: -50px;
left: 380px;
}
.fsize-title{
margin: 200px 50px 10px 100px;
font-size: 15px;
}
.fsize-img{
margin: 0px 50px 10px 200px;
font-size: 14px;
}
.fsize-text{
margin: 10px 50px 10px -280px;
font-size: 15px;
}
.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: 30px;
}
.inputbar{
font-family: "Yu Gothic UI";
color: white;
font-size: 15px;
margin-bottom: 30px;
background-color: #43b353;
position: absolute;
right: 540px;
width: 200px;
height: 35px;
}
.body{
margin: 0 0 100px 160px;
}
input[type=text],
textarea,
fieldset {
/* required to properly style form
elements on WebKit based browsers */
-webkit-appearance: none;
font-family: inherit;
font-size: 90%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
input:invalid {
box-shadow: 0 0 5px 1px red;
}
input:focus:invalid {
outline: none;
}
</style>
<body>
<p>
<h1 class="headt1"> Post A</h1>
<h1 class="headt2">n Artwork </h1> <hr class="hr">
</p>
<div class="body">
<p class="fsize-title">Artwork Image:<br><br>
<?php
if(!empty($message)) {
echo "<p>{$message}</p>";
}
?>
</p>
<p class="fsize-img">
<form class="table" action="action_artwork.php" enctype="multipart/form-data" method="post">
<table style="border-collapse: collapse; font: 12px Tahoma;" border="1" cellspacing="5" cellpadding="5">
<tbody>
<tr>
<td>
<input type="hidden" name="MAX_FILE_SIZE" value="1000000" />
<input type="file" required name="file_upload" />
</td>
</tr>
</tbody>
</table> <br><br>
</p>
<p class="fsize-text">
Title: <input class="textbox" type="text" id="Fname" required name="title"> <br><br>
Width: <input class="textbox" type="text" id="Mname" required name="width"> in.
Height: <input class="textbox" type="text" id="Lname" required name="height"> in.
Thickness: <input class="textbox" type="text" id="gender" required name="thickness"> in.<br><br>
Description: <input class="textbox" type="text" id="bday" required name="description"><br><br>
Category: <?php $art_category = $_GET['art_category'];
$_SESSION['art_category'] = $art_category;
echo ' '. $art_category;
?>
<br><br>
<?php
if($art_category == "Painting"){
echo 'Media: <select class="textbox" id="media" name="media">
<option value="Airbrush">Airbrush</option>
<option value="Enamel">Enamel</option>
<option value="Gouache">Gouache</option>
<option value="Acrylic">Acrylic</option>
<option value="Oil">Oil</option>
<option value="Spray Paint">Spray Paint</option>
<option value="Tempera">Tempera</option>
<option value="Watercolor">Watercolor</option>
<option value="Ink">Ink</option>
<option value="Gesso">Gesso</option>
</select><br><br>
Stock: 1<br><br>';
}
else if($art_category == "Sculpture"){
echo 'Media: <select class="textbox" id="media" name="media">
<option value="Ceramic">Ceramic</option>
<option value="Clay">Clay</option>
<option value="Digital">Digital</option>
<option value="Fiberglass">Fiberglass</option>
<option value="Pottery">Pottery</option>
<option value="Fabric">Fabric</option>
<option value="Neon">Neon</option>
<option value="Glass">Glass</option>
<option value="Interactive">Interactive</option>
<option value="Latex">Latex</option>
<option value="Leather">Leather</option>
<option value="LED">LED</option>
<option value="Metal">Metal</option>
<option value="Mosaic">Mosaic</option>
<option value="Paint">Paint</option>
<option value="Paper">Paper</option>
<option value="Paper Mache">Paper Mache</option>
<option value="Plastic">Plastic</option>
<option value="Rubber">Rubber</option>
<option value="Stone">Stone</option>
<option value="Wax">Wax</option>
<option value="Wood">Wood</option>
<option value="Steel">Steel</option>
<option value="Bronze">Bronze</option>
<option value="Granite">Granite</option>
<option value="Marble">Marble</option>
</select><br><br>
Stock: <input class="textbox" type="text" id="bday" required name="stock"><br><br>';
}
if($art_category == "Drawing"){
echo 'Media: <select class="textbox" id="media" name="media">
<option value="Ballpoint Pen">Ballpoint Pen</option>
<option value="Chalk">Chalk</option>
<option value="Charcoal">Charcoal</option>
<option value="Digital">Digital</option>
<option value="Graphite">Graphite</option>
<option value="Ink">Ink</option>
<option value="Marker">Marker</option>
<option value="Pastel">Pastel</option>
<option value="Pencil">Pencil</option>
</select><br><br>
Stock: 1<br><br>';
}
if($art_category == "Photography"){
echo 'Media: <select class="textbox" id="media" name="media">
<option value="Polaroid">Polaroid</option>
<option value="Color">Color</option>
<option value="Digital">Digital</option>
<option value="C-type">C-type</option>
<option value="Black & White">Black & White</option>
<option value="Photogram">Photogram</option>
<option value="Platinum">Platinum</option>
<option value="Gelatin">Gelatin</option>
<option value="Manipulated">Manipulated</option>
</select><br><br>
Stock: 1<br><br>';
}
$today = getdate();
$day = $today['weekday'];
$month = $today['mon'];
$day1 = $today['mday'];
$year =$today['year'];
$cc= $year.'-'.$month.'-'.$day1;
$_SESSION['current_date'] = $cc;
?>
Price: <input class="textbox" type="text" id="Street" required name="price"><br><br>
<input class="inputbar" type="submit" name="submit" value="Post">
</form>
</p>
</body>
</html>
<?php include("includes/footer.php"); ?>