-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetails2.php
205 lines (187 loc) · 8.13 KB
/
details2.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
<?php
//include("function/session.php");
include("db/dbconn.php");
include("function/cash.php");
include("function/paypal.php");
?>
<!DOCTYPE html>
<html>
<head>
<title>Online Shoe Store</title>
<link rel="icon" href="img/logo.jpg" />
<link rel = "stylesheet" type = "text/css" href="css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<script src="js/bootstrap.js"></script>
<script src="js/jquery-1.7.2.min.js"></script>
<script src="js/carousel.js"></script>
<script src="js/button.js"></script>
<script src="js/dropdown.js"></script>
<script src="js/tab.js"></script>
<script src="js/tooltip.js"></script>
<script src="js/popover.js"></script>
<script src="js/collapse.js"></script>
<script src="js/modal.js"></script>
<script src="js/scrollspy.js"></script>
<script src="js/alert.js"></script>
<script src="js/transition.js"></script>
<script src="js/bootstrap.min.js"></script>
</head>
<body>
<div id="header">
<img src="img/logo.jpg">
<label>Online Shoe Store</label>
<?php
//$id = (int) $_SESSION['id'];
//$query = $conn->query ("SELECT * FROM customer WHERE customerid = '$id' ") or die (mysqli_error());
//$fetch = $query->fetch_array ($query);
?>
<ul>
<li><a href="#signup" data-toggle="modal">Sign Up</a></li>
<li><a href="#login" data-toggle="modal">Login</a></li>
</ul>
</div>
<div id="profile" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="width:700px;">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
<h3 id="myModalLabel">My Account</h3>
</div>
<div class="modal-body">
<?php
$id = (int) $_SESSION['id'];
$query = $conn->query ("SELECT * FROM customer WHERE customerid = '$id' ") or die (mysqli_error());
$fetch = $query->fetch_array ();
?>
<center>
<form method="post">
<center>
<table>
<tr>
<td class="profile">Name:</td><td class="profile"><?php echo $fetch['firstname'];?> <?php echo $fetch['mi'];?> <?php echo $fetch['lastname'];?></td>
</tr>
<tr>
<td class="profile">Address:</td><td class="profile"><?php echo $fetch['address'];?></td>
</tr>
<tr>
<td class="profile">Country:</td><td class="profile"><?php echo $fetch['country'];?></td>
</tr>
<tr>
<td class="profile">ZIP Code:</td><td class="profile"><?php echo $fetch['zipcode'];?></td>
</tr>
<tr>
<td class="profile">Mobile Number:</td><td class="profile"><?php echo $fetch['mobile'];?></td>
</tr>
<tr>
<td class="profile">Telephone Number:</td><td class="profile"><?php echo $fetch['telephone'];?></td>
</tr>
<tr>
<td class="profile">Email:</td><td class="profile"><?php echo $fetch['email'];?></td>
</tr>
</table>
</center>
</div>
<div class="modal-footer">
<a href="account.php?id=<?php echo $fetch['customerid']; ?>"><input type="button" class="btn btn-success" name="edit" value="Edit Account"></a>
<button class="btn btn-danger" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
</form>
</div>
<br>
<div id="container">
<div class="nav">
<ul>
<li><a href="home.php"> <i class="icon-home"></i>Home</a></li>
<li><a href="product.php"> <i class="icon-th-list"></i>Product</a></li>
<li><a href="aboutus.php"> <i class="icon-bookmark"></i>About Us</a></li>
</ul>
</div>
<?php
if(isset($_GET['id'])){
$id = $_GET['id'];
$query = $conn->query("SELECT * FROM product WHERE product_id = '$id' ");
$row = $query->fetch_array();
?>
<div>
<center>
<img class="img-polaroid" style="width:400px; height:350px;" src="photo/<?php echo $row['product_image']; ?>">
<h2 class="text-uppercase bg-primary"><?php echo $row['product_name']?></h2>
<h3 class="text-uppercase">Rs <?php echo $row['product_price']?></h3>
<h3 class="text-uppercase">Size: <?php echo $row['product_size']?></h3>
<?php echo "<a href='cart2.php?id=".$id."&action=add'><input type='submit' class='btn btn-inverse' name='add' value='Add to Cart'></a> <a href='product.php'><button class='btn btn-inverse'>Back</button></a> " ?>
</center>
</div>
<?php }?>
<div id="purchase" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="width:400px;">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
<h3 id="myModalLabel">Mode Of Payment</h3>
</div>
<div class="modal-body">
<form method="post">
<center>
<input type="hidden" name="product_price" value="<?php echo $row['product_price']?>">
<input type="hidden" name="product_name" value="<?php echo $row['product_name']?>">
<input type="hidden" value="<?php echo $fetch['firstname'];?> <?php echo $fetch['lastname'];?>" name="customer">
<textarea name="destination" placeholder="Destination" style="height:100px; width:250px;" required></textarea>
<select name="size" required style="width:150px;">
<option value="">---------Size----------</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
</select>
<br />
<h4>Total: Rs <?php echo $row['product_price']; ?> </h4>
<br />
<input type="checkbox" required> I Agree the <a href="#terms" data-toggle="modal"> Terms and Condition</a> of Online Shoe Store Inc.
</center>
</div>
<div class="modal-footer">
<center>
<input type="image" src="images/button.jpg" border="0" name="paypal" alt="Make payments with PayPal - it's fast, free and secure!" />
<input type="submit" name="cash" value="Cash" class="btn btn-lg">
</center>
<button class="btn btn-danger btn-mini" data-dismiss="modal" aria-hidden="true">Cancel</button>
</form>
</div>
</div>
<div id="terms" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="width:400px;">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
<h3 id="myModalLabel">Online Shoe Store Inc. Terms and Condition</h3>
</div>
<div class="modal-body">
<ul>
<li>You are guaranteed that your product will be deliver 2-3 days upon ordering.</li>
<li>Guaranteed time maybe suspended depending on the weather conditions for the safety of our delivery personnel.</li>
<li>All prices quoted are in Philippine pesos. Price and availability information is subject to change without notice.</li>
<li>Mode of payment are as follows:customers with paypal account can pay through paypal otherwise Cash on Delivery(COD).</li>
<li>Upon receiving your product we will charge for delivering for only 150 pesos, depending on the location.</li>
</ul>
</div>
<div class="modal-footer">
<button class="btn btn-danger" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
</div>
</div>
<br />
</div>
<br />
<div id="footer">
<div class="foot">
<label style="font-size:17px;"> Copyrght © </label>
<p style="font-size:25px;">Online Shoe Store Inc. 2017 Brought To You by <a href="https://code-projects.org/">Code-Projects</a></p>
</div>
<div id="foot">
<h4>Links</h4>
<ul>
<a href="http://www.facebook.com/OnlineShoeStore"><li>Facebook</li></a>
<a href="http://www.twitter.com/OnlineShoeStore"><li>Twitter</li></a>
<a href="http://www.pinterest.com/OnlineShoeStore"><li>Pinterest</li></a>
<a href="http://www.tumblr.com/OnlineShoeStore"><li>Tumblr</li></a>
</ul>
</div>
</div>
</body>
</html>