-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetails.php
247 lines (212 loc) · 14.5 KB
/
details.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
<?
include "./include/inc_base.php";
$item_info = get_iteminfo_by_url(mysql_real_escape_string(htmlentities($_GET['data1'])));
$item_info[item_title] = ucwords(strtolower($item_info[item_title]));
$userfile1 = "<img src='"._WEB_BASE_DIR."/upload/".$item_info[userfile1]."'>";
$main_img = "<img class=\"my-foto-container\" src='"._WEB_BASE_DIR."/upload/".$item_info[userfile1]."' data-large='"._WEB_BASE_DIR."/upload/".$item_info[userfile1]."' data-title=\"Your Product Name\" data-help=\"Your Product Name\" title=\"Your Product Name\" />";
if($item_info[userfile1])
{
$userfile1 = "<img class=\"zoom\" src='"._WEB_BASE_DIR."/upload/".$item_info[userfile1]."' data-large='"._WEB_BASE_DIR."/upload/".$item_info[userfile1]."' data-title=\"Your Product Name\" data-help=\"Your Product Name\" title=\"Your Product Name\">";
}
if($item_info[userfile2])
{
$userfile2 = "<img class=\"zoom\" src='"._WEB_BASE_DIR."/upload/".$item_info[userfile2]."' data-large='"._WEB_BASE_DIR."/upload/".$item_info[userfile2]."' data-title=\"Your Product Name\" data-help=\"Your Product Name\" title=\"Your Product Name\">";
}
if($item_info[userfile3])
{
$userfile3 = "<img class=\"zoom\" src='"._WEB_BASE_DIR."/upload/".$item_info[userfile3]."' data-large='"._WEB_BASE_DIR."/upload/".$item_info[userfile3]."' data-title=\"Your Product Name\" data-help=\"Your Product Name\" title=\"Your Product Name\">";
}
if($_SESSION['member_id'])
{
if($item_info[item_price2]>0)
{
// ¼¼ÀÏ ÇÑ´Ù¸é..
$price = "$$item_info[item_price2]";
$old_price = "$$item_info[item_price1]";
}
else
{
// Á¤°¡
$price = "$$item_info[item_price1]";
}
}
else
{
$price = "login to see price";
$price2 = "";
}
include _BASE_DIR ."/include/inc_top.php";
?>
<div id="maincontainer">
<section id="product">
<div class="container">
<!-- Product Details-->
<div class="row">
<!-- Left Image-->
<div class="col-lg-5 col-md-5 col-xs-12 col-sm-12 span5">
<ul class="thumbnails mainimage clearfix">
<li class="col-lg-12 col-md-12 col-xs-12 col-sm-12 span5"> <?= $main_img ?></li>
</ul>
<div class="m5">Mouse move on Image to zoom</div>
<ul class="thumbnails mainimage clearfix">
<li class="producthtumb col-lg-4 col-md-4 col-xs-4 col-sm-4"> <?= $userfile1 ?></li>
<li class="producthtumb col-lg-4 col-md-4 col-xs-4 col-sm-4"> <?= $userfile2 ?></li>
<li class="producthtumb col-lg-4 col-md-4 col-xs-4 col-sm-4"> <?= $userfile3 ?></li>
</ul>
</div>
<!-- Right Details-->
<div class="col-lg-7 col-md-7 col-xs-12 col-sm-12 span7">
<div class="row">
<div class="span7">
<h1 class="productname"><span class="bgnone"><?= $item_info[item_title] ?></span></h1>
<? if($_SESSION['member_id']): ?>
<div class="productprice">
<div class="productpageprice"> <span class="spiral"></span><?= $price ?></div>
<? if($_SESSION['member_id'] && $item_info[item_price2]>0): ?>
<div class="productpageoldprice">Old price : <?= $old_price ?></div>
<? endif; ?>
</div>
<div class="controls">
<select id="item_quantity" class="col-lg-9 col-md-9 col-xs-9 col-sm-9">
<option>Select Quantity</option>
<?
for($i=1; $i<$item_info[stock_cnt]; $i++):
?>
<option value="<?= $item_info[item_code] ?>^<?= $i ?>"><?= $i ?></option>
<?
endfor;
?>
</select>
</div>
<div class="productbtn">
<? if($_SESSION['member_id'] && $item_info[stock_cnt]>0): ?>
<button class="btn btn-orange tooltip-test" data-original-title="Cart" onClick="javascript:addToCart('cart')"> <i class="icon-shopping-cart icon-white"></i> Add to Cart</button>
<button class="btn btn-orange btn-small tooltip-test" data-original-title="Wishlist" onClick="javascript:addToCart('wish')"> <i class="icon-heart icon-white"></i> Add to Wishlist </button>
<? endif; ?>
</div>
<span id="item_msg"></span>
<? else: ?>
Sign in to view price
<? endif; ?>
<!-- Product Description tab & comments-->
<div class="productdesc">
<ul class="nav nav-tabs" id="myTab">
<li class="active"><a href="#description">Description</a> </li>
<li><a href="#specification">Specification</a> </li>
<li><a href="#producttag">Tags</a> </li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="description">
<?= $item_info[item_description] ?>
</div>
<div class="tab-pane " id="specification">
<ul class="productinfo">
<li> <span class="productinfoleft"> Product Code:</span> <?= $item_info[model_no] ?> </li>
<li> <span class="productinfoleft"> Availability: </span><?= $item_info[stock_cnt] ?> </li>
</ul>
</div>
<div class="tab-pane" id="producttag">
<p>
</p>
<ul class="tags">
<?
$item_icon = explode(",",$item_info[item_icon]);
for($k=0; $k<count($item_icon); $k++):
?>
<li><a href="#"><i class="icon-tag"></i> <?= $item_icon[$k] ?></a> </li>
<?
endfor;
?>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Related Products-->
<!-- <section id="related" class="row mt40">
<div class="container">
<h1 class="heading1"><span class="maintext">Related Products</span></h1>
<ul class="thumbnails">
<li class="col-lg-3 col-md-3 col-xs-12 col-sm-6 span3"> <a class="prdocutname" href="product.html">My First Product</a>
<div class="thumbnail"> <a href="#"><img alt="" src="img/product2a.jpg"></a>
<div class="shortlinks">
<button data-original-title="Cart" class="btn btn-orange tooltip-test"> <i class="icon-shopping-cart icon-white"></i> </button>
<button data-original-title="Wishlist" class="btn btn-orange btn-small tooltip-test"> <i class="icon-heart icon-white"></i> </button>
<button data-original-title="Compare" class="btn btn-orange btn-small tooltip-test"> <i class="icon-refresh icon-white"></i> </button>
</div>
<div class="price">
<div class="pricenew">$4459.00</div>
<div class="priceold">$5000.00</div>
<div class="ratingstar"> <i class="icon-star orange"> </i><i class="icon-star orange"> </i><i class="icon-star orange"> </i> <i class="icon-star-empty"></i> <i class="icon-star-empty"></i></div>
</div>
<a class="btn btn-orange btn-small addtocartbutton">Add to Cart</a> </div>
</li>
<li class="col-lg-3 col-md-3 col-xs-12 col-sm-6 span3"> <a class="prdocutname" href="product.html">My First Product</a>
<div class="thumbnail"> <span class="new tooltip-test"><i class="icon-lightbulb font24"></i> <br>
New</span> <a href="#"><img alt="" src="img/product1a.jpg"></a>
<div class="shortlinks">
<button data-original-title="Cart" class="btn btn-orange tooltip-test"> <i class="icon-shopping-cart icon-white"></i> </button>
<button data-original-title="Wishlist" class="btn btn-orange btn-small tooltip-test"> <i class="icon-heart icon-white"></i> </button>
<button data-original-title="Compare" class="btn btn-orange btn-small tooltip-test"> <i class="icon-refresh icon-white"></i> </button>
</div>
<div class="price">
<div class="pricenew">$4459.00</div>
<div class="priceold">$5000.00</div>
<div class="ratingstar"> <i class="icon-star orange"> </i><i class="icon-star orange"> </i><i class="icon-star"> </i> <i class="icon-star-empty"></i> <i class="icon-star-empty"></i></div>
</div>
<a class="btn btn-orange btn-small addtocartbutton">Add to Cart</a> </div>
</li>
<li class="col-lg-3 col-md-3 col-xs-12 col-sm-6 span3"> <a class="prdocutname" href="product.html">My First Product</a>
<div class="thumbnail"> <a href="#"><img alt="" src="img/product2a.jpg"></a>
<div class="shortlinks">
<button data-original-title="Cart" class="btn btn-orange tooltip-test"> <i class="icon-shopping-cart icon-white"></i> </button>
<button data-original-title="Wishlist" class="btn btn-orange btn-small tooltip-test"> <i class="icon-heart icon-white"></i> </button>
<button data-original-title="Compare" class="btn btn-orange btn-small tooltip-test"> <i class="icon-refresh icon-white"></i> </button>
</div>
<div class="price">
<div class="pricenew">$4459.00</div>
<div class="priceold">$5000.00</div>
<div class="ratingstar"> <i class="icon-star orange"> </i><i class="icon-star orange"> </i><i class="icon-star"> </i> <i class="icon-star-empty"></i> <i class="icon-star-empty"></i></div>
</div>
<a class="btn btn-orange btn-small addtocartbutton">Add to Cart</a> </div>
</li>
<li class="col-lg-3 col-md-3 col-xs-12 col-sm-6 span3"> <a class="prdocutname" href="product.html">My First Product</a>
<div class="thumbnail"> <a href="#"><img alt="" src="img/product2a.jpg"></a>
<div class="shortlinks">
<button data-original-title="Cart" class="btn btn-orange tooltip-test"> <i class="icon-shopping-cart icon-white"></i> </button>
<button data-original-title="Wishlist" class="btn btn-orange btn-small tooltip-test"> <i class="icon-heart icon-white"></i> </button>
<button data-original-title="Compare" class="btn btn-orange btn-small tooltip-test"> <i class="icon-refresh icon-white"></i> </button>
</div>
<div class="price">
<div class="pricenew">$4459.00</div>
<div class="priceold">$5000.00</div>
<div class="ratingstar"> <i class="icon-star orange"> </i><i class="icon-star orange"> </i><i class="icon-star"> </i> <i class="icon-star-empty"></i> <i class="icon-star-empty"></i></div>
</div>
<a class="btn btn-orange btn-small addtocartbutton">Add to Cart</a> </div>
</li>
<li class="col-lg-3 col-md-3 col-xs-12 col-sm-6 span3"> <a class="prdocutname" href="product.html">My First Product</a>
<div class="thumbnail"> <a href="#"><img alt="" src="img/product2a.jpg"></a>
<div class="shortlinks">
<button data-original-title="Cart" class="btn btn-orange tooltip-test"> <i class="icon-shopping-cart icon-white"></i> </button>
<button data-original-title="Wishlist" class="btn btn-orange btn-small tooltip-test"> <i class="icon-heart icon-white"></i> </button>
<button data-original-title="Compare" class="btn btn-orange btn-small tooltip-test"> <i class="icon-refresh icon-white"></i> </button>
</div>
<div class="price">
<div class="pricenew">$4459.00</div>
<div class="priceold">$5000.00</div>
<div class="ratingstar"> <i class="icon-star orange"> </i><i class="icon-star orange"> </i><i class="icon-star"> </i> <i class="icon-star-empty"></i> <i class="icon-star-empty"></i></div>
</div>
<a class="btn btn-orange btn-small addtocartbutton">Add to Cart</a> </div>
</li>
</ul>
</div>
</section> -->
</div>
<?
include _BASE_DIR ."/include/inc_bottom.php";
?>