Skip to content

Commit 415e20d

Browse files
final changes
1 parent 129c1d6 commit 415e20d

14 files changed

+115
-24
lines changed

address.php

+20-20
Original file line numberDiff line numberDiff line change
@@ -40,26 +40,26 @@
4040
<h2>Total Cost : $<?php echo $_SESSION['final_cost']; ?></h2>
4141
<hr>
4242
</div>
43-
44-
<!-- <div class="cart-items" style="margin-left:0;width:50%;" > -->
45-
<div style="display:block; float:left; width:60%">
46-
<span style="margin-left:200px;">ENTER DELIVERY ADDRESS</span> <br> <br>
47-
<textarea name="" id="" cols="60" rows="15" style="margin-left:200px;border:solid pink;"></textarea>
48-
</div>
49-
<!-- <div class="cart-sum" style="margin-right=0;width:50%;float:right;"> -->
50-
<div style="display:block;float:right;width:15%; margin-right:20%; margin-bottom:40px;line-height:40px;border-left:1px solid black;padding: 30px">
51-
<span style="color:grey;">CHOOSE DELIVERY SPEED</span>
52-
<div class="delivery" style="line-height:20px; background-color:rgba(255, 51, 153, 0.3);padding:10px">
53-
<input type="radio" name="delivery_type" id="standard" value=0 checked="checked"><b>Standard Delivery</b> <br>
54-
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size:14px">Get it in 7 Days</span>
55-
</div>
56-
<div class="delivery" style="line-height:20px; background-color:rgba(255, 51, 153, 0.3);padding:10px">
57-
<input type="radio" name="delivery_type" id="express" value=50><b>Express Delivery</b> <br>
58-
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size:14px">Get it in 2 Days&nbsp;&nbsp;&nbsp;+$25</span>
59-
</div>
60-
<a href=""><button style="width:100%;height:40px;" id="place_order"><b>PLACE ORDER</b></button></a>
61-
</div>
62-
43+
<form action="payment.php" method="POST">
44+
<!-- <div class="cart-items" style="margin-left:0;width:50%;" > -->
45+
<div style="display:block; float:left; width:60%">
46+
<span style="margin-left:200px;">ENTER DELIVERY ADDRESS</span> <br> <br>
47+
<textarea name="address" id="address" cols="50" rows="12" style="margin-left:200px;border:solid pink;"></textarea>
48+
</div>
49+
<!-- <div class="cart-sum" style="margin-right=0;width:50%;float:right;"> -->
50+
<div style="display:block;float:right;width:15%; margin-right:20%; margin-bottom:40px;line-height:40px;border-left:1px solid black;padding: 30px">
51+
<span style="color:grey;">CHOOSE DELIVERY SPEED</span>
52+
<div class="delivery" style="line-height:20px; background-color:rgba(255, 51, 153, 0.3);padding:10px">
53+
<input type="radio" name="delivery_type" id="standard" value=0 checked="checked"><b>Standard Delivery</b> <br>
54+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size:14px">Get it in 7 Days</span>
55+
</div>
56+
<div class="delivery" style="line-height:20px; background-color:rgba(255, 51, 153, 0.3);padding:10px">
57+
<input type="radio" name="delivery_type" id="express" value=50><b>Express Delivery</b> <br>
58+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size:14px">Get it in 2 Days&nbsp;&nbsp;&nbsp;+$25</span>
59+
</div>
60+
<button type="submit" style="width:100%;height:40px;" id="place_order"><b>PLACE ORDER</b></button>
61+
</div>
62+
</form>
6363
<style>
6464
#place_order:hover{
6565
transition: .3s;

cart.inc.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
$price = $row[4];
1717
$rating = $row[3];
1818
$discount = $row[5];
19+
$gender = $row[10];
1920
}
2021

2122
mysqli_close($conn);
@@ -25,7 +26,7 @@
2526
<div class="list-wrapper">
2627
<div class = "list-item" style="padding-left:5%;margin-left:18%;margin-right:0;width:50%;height:100px;margin-bottom:40px;padding-top:20px;padding-bottom: 20px;">
2728
<div class="list-image" style="width:100px;height:100px;float:left;border: none !important;">
28-
<?php echo '<img src="images/Shoes/Men/'.$p_id.'.jpg" style="width:100px;height:100px;">'; ?>
29+
<?php echo '<img src="images/Shoes/'.$gender.'/'.$p_id.'.jpg" style="width:100px;height:100px;">'; ?>
2930
</div>
3031

3132
<div class="list-desc" style="float:left;margin-right:0px;padding-left:80px;text-align:left;width:60%;height:100px;border: none !important;">

images/Shoes/F/nike_dia.jpg

140 KB
Loading

images/Shoes/F/nike_royale.jpg

140 KB
Loading

images/Shoes/F/puma_apex.jpg

72.2 KB
Loading
File renamed without changes.
File renamed without changes.

images/Shoes/M/jordan_liftoff.jpg

162 KB
Loading
File renamed without changes.

images/Shoes/Men/jordan_liftoff.jpg

-7.46 KB
Binary file not shown.

item.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
$p_size = explode(",",$row['p_size']);
2121
$p_details = $row['p_details'];
2222
$p_material = $row['p_material'];
23-
$p_specification = $row['p_specification'];
23+
$p_specification = $row['p_specification'];
24+
$p_gender = $row['p_gender'];
2425
}
2526
// else{
2627
// header("Location: index.php");
@@ -46,7 +47,7 @@
4647
<div class="wrap" style="padding:20px">
4748
<div class="wrap-inner">
4849
<div class="item-image">
49-
<?php echo '<img src="images/Shoes/Men/'.$_GET['p_id'].'.jpg" style="margin-left:80px;width:500px;height:500px;align=center">'; ?>
50+
<?php echo '<img src="images/Shoes/'.$p_gender.'/'.$_GET['p_id'].'.jpg" style="margin-left:80px;width:500px;height:500px;align=center">'; ?>
5051
</div>
5152
<form class="item-description" action="cart.php" method="GET">
5253
<input type="hidden" name="p_id" value=<?php echo $p_id ;?>>

list.inc.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<div class="list-wrapper">
2626
<div class = "list-item" style="padding-left:5%;padding-right:5%;margin-left:18%;width:50%;height:200px;margin-bottom:40px;padding-top: 20px;padding-bottom: 20px;">
2727
<div class="list-image" style="width:200px;height:200px;float:left;border: none !important;">
28-
<?php echo '<img src="images/Shoes/Men/'.$p_id.'.jpg" style="width:200px;height:200px;">'; ?>
28+
<?php echo '<img src="images/Shoes/'.$gender.'/'.$p_id.'.jpg" style="width:200px;height:200px;">'; ?>
2929
</div>
3030

3131
<div class="list-desc" style="float:left;padding-left:80px;text-align:left;width:400px;height:200px;border: none !important;">

payment.php

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<?php
2+
3+
session_start();
4+
if(!isset($_SESSION['user'])){
5+
header("Location: login.php");
6+
}
7+
else{
8+
$_SESSION['address'] = $_POST['address'];
9+
}
10+
11+
?>
12+
13+
14+
<!DOCTYPE html>
15+
<html lang="en" dir="ltr">
16+
17+
<head>
18+
<meta charset="utf-8">
19+
<link rel="stylesheet" href="login_style.css">
20+
<link rel="stylesheet" href="style_list.css">
21+
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
22+
<title>VELASCA</title>
23+
</head>
24+
25+
<body>
26+
<div id="wrapper" >
27+
<style>
28+
nav{
29+
position: fixed;
30+
}
31+
nav #logo{
32+
color: black;
33+
}
34+
</style>
35+
<?php
36+
include 'navbar.php'
37+
?>
38+
39+
<div style="margin-left:120px;margin-right:120px;margin-top:120px;margin-bottom:50px;">
40+
<!-- <div> -->
41+
<h1><?php echo $_SESSION['user']; ?>'s Cart</h1>
42+
<h2>Total Cost : $<?php echo $_SESSION['final_cost']; ?></h2>
43+
<hr>
44+
</div>
45+
<form action="payment.php" method="POST">
46+
<!-- <div class="cart-items" style="margin-left:0;width:50%;" > -->
47+
<div style="display:block; float:left; width:60%">
48+
<span style="margin-left:200px;">ENTER DELIVERY ADDRESS</span> <br> <br>
49+
<textarea name="address" id="address" cols="50" rows="12" style="margin-left:200px;border:solid pink;"></textarea>
50+
</div>
51+
<!-- <div class="cart-sum" style="margin-right=0;width:50%;float:right;"> -->
52+
<div style="display:block;float:right;width:15%; margin-right:20%; margin-bottom:40px;line-height:40px;border-left:1px solid black;padding: 30px">
53+
<span style="color:grey;">CHOOSE DELIVERY SPEED</span>
54+
<div class="delivery" style="line-height:20px; background-color:rgba(255, 51, 153, 0.3);padding:10px">
55+
<input type="radio" name="delivery_type" id="standard" value=0 checked="checked"><b>Standard Delivery</b> <br>
56+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size:14px">Get it in 7 Days</span>
57+
</div>
58+
<div class="delivery" style="line-height:20px; background-color:rgba(255, 51, 153, 0.3);padding:10px">
59+
<input type="radio" name="delivery_type" id="express" value=50><b>Express Delivery</b> <br>
60+
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size:14px">Get it in 2 Days&nbsp;&nbsp;&nbsp;+$25</span>
61+
</div>
62+
<button type="submit" style="width:100%;height:40px;" id="place_order"><b>PLACE ORDER</b></button>
63+
</div>
64+
</form>
65+
<style>
66+
#place_order:hover{
67+
transition: .3s;
68+
font-size: 14px;
69+
}
70+
.delivery:hover{
71+
border: solid purple 1px;
72+
}
73+
</style>
74+
75+
<?php
76+
include 'footer.php'
77+
?>
78+
79+
80+
</div>
81+
82+
83+
</body>
84+
<script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
85+
crossorigin="anonymous"></script>
86+
<script src="list_script.js"></script>
87+
<link href="https://fonts.googleapis.com/css?family=Cedarville+Cursive|Karla|Bad+Script|Handlee" rel="stylesheet">
88+
89+
</html>

0 commit comments

Comments
 (0)