-
Notifications
You must be signed in to change notification settings - Fork 0
/
shipping.php
189 lines (152 loc) · 6.53 KB
/
shipping.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
<?php session_start();
include("functions.php");
if(!isset($_SESSION['USER_ID'])){
redirect_to("login_form.php");
}
$user_id = $_SESSION['USER_ID'];
$art_id = $_SESSION['art_id'];
include("includes/head.php");
include("includes/connection.php");
$query_category11="SELECT art_work.user_id
FROM art_work,user
where art_work.user_id = user.user_id AND
art_id = '$art_id'";
$result_category11 = mysqli_query($conn,$query_category11);
while($row11=mysqli_fetch_array($result_category11)){
if($user_id == $row11['user_id']){
echo "<script type=\"text/javascript\">window.alert('You cant buy your own ArtWork');window.location.href = 'info_art.php?id=$art_id';</script>";
}
else{
}
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Shipping</title>
<style type="text/css">
#content{
margin: 70px 0px 0px 50px;
}
.head-shipping {
font-size: 30px;
font-family: "Yu Gothic UI Light";
color: rgb( 45, 112, 213 );
position: absolute;
left: 70px;
top: 100;
width: 215px;
height: 35px;
z-index: 19;
}
.head-address{
font-size: 30px;
font-family: "Yu Gothic UI Light";
color: rgb( 00, 00, 00 );
position: absolute;
left:195px;
top: 100;
width: 215px;
height: 35px;
z-index: 19;
}
.hr{
position: relative;
border: 1px solid #2d70d5;
top: -57px;
width: 1050px;
left: -64px;
}
.fsize-title{
margin: 10px 50px 10px 350px;
font-size: 16px;
font-weight: bold;
}
.fsize{
position: relative;
top: -50px;
left: 330px;
font-size: 17px;
}
.textbox{
border-radius: 5px;
box-shadow: 1px 1.732px 5px 0px rgb( 55, 52, 52 );
border: 1px solid steelblue;
background-color: white;
position: relative;
left: 50px;
top: 0px;
width: 250px;
height: 30px;
}
.fsize-special{
margin: 10px 30px 10px 375px;
font-size: 15px;
}
.inputbar{
cursor: pointer;
border-radius: 10px;
font-family: "Yu Gothic UI";
color: white;
font-size: 20px;
margin-top: -50px;
margin-bottom: 0px;
border: 1px solid;
background-color: #43b353;
position: relative;
top:-50px;
left: 850px;
width: 200px;
height: 45px;
}
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>
</head>
<body>
<div id="content">
<form action = "order-summary.php" method="POST" ><br><br><br><br>
<p >
<h2 class="head-shipping">Shipping </h2>
<h2 class="head-address">Address</h2><br> <hr class="hr" style="border-bottom: 2px solid #2d70d5;">
</p>
<!--Values from Database -->
<p class="fsize">Full Name: <input class="textbox" type="text" id ="" required name="name"> <br></p>
<p class="fsize" >House number: <input class="textbox" type="text" id="" required name="house_num"> <br></p>
<p class="fsize" >Street: <input class="textbox" type="text" id="" required name="street"> <br></p>
<p class="fsize" >Barangay: <input class="textbox" type="text" id="" required name="brgy"> <br></p>
<p class="fsize" >City/Municipality: <input class="textbox" type="text" id="" required name="municipal"> <br></p>
<p class="fsize" >Province: <input class="textbox" type="text" id="" required name="province"> <br></p>
<p class="fsize" >Zip Code: <input class="textbox" type="text" id="" name="zipcode"> <br></p>
<p class="fsize" >Area:
<select id="area" name="area" class="textbox">
<option value="luzon">Luzon</option>
<option value="visayas">Visayas</option>
<option value="mindanao">Mindanao</option>
</select> <br></p>
<p class="fsize" >Mobile Number: <input class="textbox" type="text" id="" required name="contact"> <br><br></p>
<?php
if($_SESSION['cat'] == 'Sculpture'){
echo '<p class="fsize" >Quantity: <input class="textbox" type="text" id="" required name="items"> Max Amount: '.$_SESSION['art_stock'].' <br><br><br> </p>';
}
?>
<input class = "inputbar"type="submit" name="next" value="Next ❱❱">
</form>
</div>
</body>
</html>