/
product.php
262 lines (248 loc) · 8.72 KB
/
product.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
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<?php
include_once 'config.php';
include_once INC_PATH.'headleader.php';
require_once INC_PATH.'aunav.php';
// echo $_SERVER['REMOTE_ADDR'];
// echo $_SERVER['HTTP_HOST'];
?>
<title>商品列表 | <?php echo PROJECT; ?></title>
<?php
// -------------------------------
// SEO
// CSS
// Script in the HEAD
// -------------------------------
include_once INC_PATH.'head.php';
?>
<?php
//app
include_once INC_PATH.'social.php';
?>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body class="pdt_page">
<?php include IMG_PATH.'svg-defs.svg'; ?>
<?php
// -------------------------------
// header.php inclube fb code
// -------------------------------
include_once INC_PATH.'header.php';
?>
<main class="pdt_page-main">
<section class="small_banner container">
<div class="row">
<div class="pic"><img src="<?php path_au('img', 'banner_s.jpg'); ?>" alt=""></div>
</div>
</section>
<section class="page_path container">
<div class="icons-home2 ib"></div> >
商品分類 >
戶外用品
</section>
<div class="container">
<aside class="pdt_page-aside">
<?php include_once INC_PATH.'pdt_page_aside.php'; ?>
</aside>
<section class="pdt_page-list">
<div class="pdt_page-list-wrap">
<div class="pdt_page-item col ">
<figure><a href="product_cnt.php">
<div class="pdt_item-pic pic">
<img src="<?php path_au('tmp', 'tmp-pdt-2.jpg'); ?>" alt="(文字很多的情況)韓國Parklon帕龍 - 無毒四色地墊(遊戲墊) 經典馬卡龍色系款 原廠正品韓國Parklon帕龍 - 無毒四色地墊(遊戲墊) 經典馬卡龍色系款 原廠正品韓國Parklon帕龍 - 無毒四色地墊(遊戲墊)">
<div class="pdt_item-pic-hover">
<div class="iconTxt-more_info hide_txt">詳細資訊</div>
<div class="iconTxt-add_cart3 hide_txt">快點來看看</div>
</div>
</div>
<figcaption>
<div class="pdt_item-name">(文字很多的情況)韓國Parklon帕龍 - 無毒四色地墊(遊戲墊) 經典馬卡龍色系款 原廠正品韓國Parklon帕龍 - 無毒四色地墊(遊戲墊) 經典馬卡龍色系款 原廠正品韓國Parklon帕龍 - 無毒四色地墊(遊戲墊) </div>
<div class="pdt_item-price">
<span class="txt-price1 tdlt">$33,500</span>
<span class="txt-price2_1 "><b>$26,800</b></span>
</div>
</figcaption>
</a></figure>
</div>
<div class="pdt_page-item col ">
<figure><a href="product_cnt.php">
<div class="pdt_item-pic pic">
<img src="<?php path_au('tmp', 'tmp-pdt-4.jpg'); ?>" alt="Proby波比 - PE無毒地墊(遊戲墊) 英語動物園 S">
<div class="pdt_item-pic-hover">
<div class="iconTxt-more_info hide_txt">詳細資訊</div>
<div class="iconTxt-add_cart3 hide_txt">快點來看看</div>
</div>
</div>
<figcaption>
<div class="pdt_item-name">Proby波比 - PE無毒地墊(遊戲墊) 英語動物園 S </div>
<div class="pdt_item-price">
<span class="txt-price1 tdlt">$33,500</span>
<span class="txt-price2_1 "><b>$26,800</b></span>
</div>
</figcaption>
</a></figure>
</div>
<div class="pdt_page-item col ">
<figure><a href="product_cnt.php">
<div class="pdt_item-pic pic">
<img src="<?php path_au('tmp', 'tmp-pdt-3.jpg'); ?>" alt="ViVi Baby - Disney迪士尼小熊維尼學步車">
<div class="pdt_item-pic-hover">
<div class="iconTxt-more_info hide_txt">詳細資訊</div>
<div class="iconTxt-add_cart3 hide_txt">快點來看看</div>
</div>
</div>
<figcaption>
<div class="pdt_item-name">ViVi Baby - Disney迪士尼小熊維尼學步車 </div>
<div class="pdt_item-price">
<span class="txt-price1 tdlt">$33,500</span>
<span class="txt-price2_1 "><b>$26,800</b></span>
</div>
</figcaption>
</a></figure>
</div>
<div class="pdt_page-item col ">
<figure><a href="product_cnt.php">
<div class="pdt_item-pic pic">
<img src="<?php path_au('tmp', 'tmp-pdt-3.jpg'); ?>" alt="ViVi Baby - Disney迪士尼小熊維尼學步車">
<div class="pdt_item-pic-hover">
<div class="iconTxt-more_info hide_txt">詳細資訊</div>
<div class="iconTxt-add_cart3 hide_txt">快點來看看</div>
</div>
</div>
<figcaption>
<div class="pdt_item-name">ViVi Baby - Disney迪士尼小熊維尼學步車 </div>
<div class="pdt_item-price">
<span class="txt-price1 tdlt">$33,500</span>
<span class="txt-price2_1 "><b>$26,800</b></span>
</div>
</figcaption>
</a></figure>
</div>
<div class="pdt_page-item col ">
<figure><a href="product_cnt.php">
<div class="pdt_item-pic pic">
<img src="<?php path_au('tmp', 'tmp-pdt-4.jpg'); ?>" alt="Proby波比 - PE無毒地墊(遊戲墊) 英語動物園 S">
<div class="pdt_item-pic-hover">
<div class="iconTxt-more_info hide_txt">詳細資訊</div>
<div class="iconTxt-add_cart3 hide_txt">快點來看看</div>
</div>
</div>
<figcaption>
<div class="pdt_item-name">Proby波比 - PE無毒地墊(遊戲墊) 英語動物園 S </div>
<div class="pdt_item-price">
<span class="txt-price1 tdlt">$33,500</span>
<span class="txt-price2_1 "><b>$26,800</b></span>
</div>
</figcaption>
</a></figure>
</div>
<div class="pdt_page-item col ">
<figure><a href="product_cnt.php">
<div class="pdt_item-pic pic">
<img src="<?php path_au('tmp', 'tmp-pdt-2.jpg'); ?>" alt="(文字很多的情況)韓國Parklon帕龍 - 無毒四色地墊(遊戲墊) 經典馬卡龍色系款 原廠正品韓國Parklon帕龍 - 無毒四色地墊(遊戲墊) 經典馬卡龍色系款 原廠正品韓國Parklon帕龍 - 無毒四色地墊(遊戲墊)">
<div class="pdt_item-pic-hover">
<div class="iconTxt-more_info hide_txt">詳細資訊</div>
<div class="iconTxt-add_cart3 hide_txt">快點來看看</div>
</div>
</div>
<figcaption>
<div class="pdt_item-name">(文字很多的情況)韓國Parklon帕龍 - 無毒四色地墊(遊戲墊) 經典馬卡龍色系款 原廠正品韓國Parklon帕龍 - 無毒四色地墊(遊戲墊) 經典馬卡龍色系款 原廠正品韓國Parklon帕龍 - 無毒四色地墊(遊戲墊) </div>
<div class="pdt_item-price">
<span class="txt-price1 tdlt">$33,500</span>
<span class="txt-price2_1 "><b>$26,800</b></span>
</div>
</figcaption>
</a></figure>
</div>
</div>
<div class="pdt_page-list-pages">
<div class="pages_btn">
<ul class="cf">
<li class="prev"><a href="">
<span class="txt ib">Prev</span>
<i class="icon ib">
<svg class="icon svg_icon-tri_prev">
<use xlink:href="#shape-tri_prev"></use>
</svg>
</i>
</a></li><!-- 在第一頁時不顯示 -->
<li class="number active"><a href="">1</a></li>
<li class="number"><a href="">2</a></li>
<li class="number"><a href="">3</a></li>
<li class="number"><a href="">4</a></li>
<li class="number"><a href="">5</a></li>
<li class="next"><a href="">
<i class="icon ib">
<svg class="icon svg_icon-tri_next">
<use xlink:href="#shape-tri_next"></use>
</svg>
</i>
<span class="txt ib">Next</span>
</a></li><!-- 在最後一頁時不顯示 -->
</ul>
</div>
</div>
</section>
</div>
</main>
<?php
// -------------------------------
// Footer
// -------------------------------
include_once INC_PATH.'footer.php';
?>
<?php
// -------------------------------
// Script in the FOOT
// -------------------------------
include_once INC_PATH.'scriptfoot.php';
?>
<script>
$(function() {
var star = "<i class=\"fa fa-star\"></i>";
var staro = "<i class=\"fa fa-star-o\"></i>";
var star0 = staro+staro+staro+staro+staro;
var star1 = star+staro+staro+staro+staro;
var star2 = star+star+staro+staro+staro;
var star3 = star+star+star+staro+staro;
var star4 = star+star+star+star+staro;
var star5 = star+star+star+star+star;
$('.js-stars').each(function(){
var starNum = $(this).data('star');
// console.log(starNum);
switch(starNum){
case "stars-0":
$(this).append(star0);
break;
case "stars-1":
$(this).append(star1);
break;
case "stars-2":
$(this).append(star2);
break;
case "stars-3":
$(this).append(star3);
break;
case "stars-4":
$(this).append(star4);
break;
case "stars-5":
$(this).append(star5);
break;
default:
$(this).append(star5);
break;
}
});
});
</script>
<?php
// -------------------------------
// google analytics
// -------------------------------
include_once INC_PATH.'ga.php';
?>
</body>
</html>