init
This commit is contained in:
235
app/us/view/product/catelists.phtml
Executable file
235
app/us/view/product/catelists.phtml
Executable file
@@ -0,0 +1,235 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
{include file="include/head-seo" /}
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript" src="__PUBLIC__/web/scripts/jquery.nicescroll.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/scripts/bxslider/jquery.bxslider-list.css">
|
||||
<script type="text/javascript" src="__PUBLIC__/web/scripts/bxslider/jquery.bxslider.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<!--top-->
|
||||
<header class="header-PC header-Index">
|
||||
<div id="header">
|
||||
{include file="include/top" /}
|
||||
{include file="include/top-header" /}
|
||||
</div>
|
||||
</header>
|
||||
<!--top End-->
|
||||
|
||||
{include file="include/catbanner" /}
|
||||
|
||||
<!--if($hotproducts[0]['product_img']=='')-->
|
||||
|
||||
<?php if (!empty($oneLevelCategory[7])): ?>
|
||||
<div class="lj_index_img_02">
|
||||
<div class="lj_its_img">
|
||||
<ul>
|
||||
<?php foreach ($oneLevelCategory as $k1 => $pc1): ?>
|
||||
|
||||
<li>
|
||||
<div class="lj-port-1 effect-1">
|
||||
<div class="image-box"> <a href="__ORICOROOT__<?php echo url_rewrite('productsub', ['id' => $pc1['id']]); ?>"><img src="<?php echo $pc1['image']; ?>" >
|
||||
<div class="groups_a"><?php echo $pc1['name']; ?></div>
|
||||
</a></div>
|
||||
<div class="text-desc"> <a href="__ORICOROOT__<?php echo url_rewrite('productsub', ['id' => $pc1['id']]); ?>"> <img src="<?php echo getImage($pc1['picture']); ?>" alt=""/> </a></div>
|
||||
</div>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
var pl_length = $(".lj_its_img li").length
|
||||
var pl_slier_width = $(".lj_its_img").width();
|
||||
//var pl_li_width = pl_slier_width * 0.1429;
|
||||
if(pl_slier_width>960){
|
||||
var pl_li_width = pl_slier_width * 0.125;
|
||||
}else if(pl_slier_width<640){
|
||||
var pl_li_width = pl_slier_width * 0.25;
|
||||
}else{
|
||||
var pl_li_width = pl_slier_width * 0.2;
|
||||
}
|
||||
if((pl_li_width * pl_length)>pl_slier_width){
|
||||
$(document).ready(function(){
|
||||
$('.lj_index_img_02 ul').bxSlider({
|
||||
slideWidth: pl_li_width,
|
||||
minSlides: 1,
|
||||
maxSlides: 8,
|
||||
moveSlides: 1,
|
||||
slideMargin: 0,
|
||||
auto:true,
|
||||
controls:true,
|
||||
pager:false,
|
||||
infiniteLoop:false
|
||||
});
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<?php else: ?>
|
||||
<div class="lj_index_img">
|
||||
<div class="lj_its_img">
|
||||
<ul>
|
||||
<?php foreach ($oneLevelCategory as $k1 => $pc1): ?>
|
||||
|
||||
<li class="">
|
||||
<div class="lj-port-1 effect-1">
|
||||
<div class="image-box"> <a href="__ORICOROOT__<?php echo url_rewrite('productsub', ['id' => $pc1['id']]); ?>"><img src="<?php echo $pc1['image']; ?>" >
|
||||
<div class="groups_a"><?php echo $pc1['name']; ?></div>
|
||||
</a></div>
|
||||
<div class="text-desc"> <a href="__ORICOROOT__<?php echo url_rewrite('productsub', ['id' => $pc1['id']]); ?>"> <img src="<?php echo getImage($pc1['picture']); ?>" alt=""/> </a></div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<?php endforeach; ?>
|
||||
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
var pl_length = $(".lj_its_img li").length
|
||||
var pl_slier_width = $(".lj_its_img").width();
|
||||
//var pl_li_width = pl_slier_width * 0.1429;
|
||||
if(pl_slier_width>960){
|
||||
var pl_li_width = pl_slier_width * 0.125;
|
||||
}else if(pl_slier_width<640){
|
||||
var pl_li_width = pl_slier_width * 0.25;
|
||||
}else{
|
||||
var pl_li_width = pl_slier_width * 0.2;
|
||||
}
|
||||
if((pl_li_width * pl_length)>pl_slier_width){
|
||||
$(document).ready(function(){
|
||||
$('.lj_index_img ul').bxSlider({
|
||||
slideWidth: pl_li_width,
|
||||
minSlides: 1,
|
||||
maxSlides: 8,
|
||||
moveSlides: 1,
|
||||
slideMargin: 0,
|
||||
auto:true,
|
||||
controls:true,
|
||||
pager:false,
|
||||
infiniteLoop:false
|
||||
});
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
|
||||
<!-- top 内容 s -->
|
||||
<div class="indexbox-list-white">
|
||||
<div class="swt-Container">
|
||||
<!-- 电源产品 s -->
|
||||
<?php if (empty($oneLevelCategory)){}else{?>
|
||||
<?php if (!empty($oneLevelCategory)): ?>
|
||||
<!-- 产品列表 s -->
|
||||
<ul class="dcp">
|
||||
<script src="<?php echo url('us/ad/tagsli', ['tags' => 'top_category_id_' . ($category['id']), 'num' => 4]); ?>" type="text/javascript"></script>
|
||||
<div class="clear"></div>
|
||||
</ul>
|
||||
<!-- 产品列表 e -->
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
$products = getCateProduct($category['id'], 6, ['p.ishot' => 1], true);
|
||||
//dump($products);die;
|
||||
if ($products):
|
||||
?>
|
||||
<!-- 热门产品 s -->
|
||||
<div class="rmBox">
|
||||
<div class="rmtit rmtit1">Hot products</div>
|
||||
<ul>
|
||||
<script src="<?php echo url('us/ad/tagsli', ['tags' => 'hot_category_id_' . ($category['id']), 'num' => 4]); ?>" type="text/javascript"></script>
|
||||
<div class="clear"></div>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- 热门产品 e -->
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php }?>
|
||||
</div>
|
||||
<!-- top 内容 e -->
|
||||
|
||||
<!-- 背景灰色 内容区 s -->
|
||||
<div class="indexbox-list cdbox">
|
||||
<div class="swt-Container">
|
||||
<?php if (!empty($oneLevelCategory)): ?>
|
||||
<?php foreach ($oneLevelCategory as $k1 => $pc1): ?>
|
||||
<div class="daily">
|
||||
<div class="datit">
|
||||
<p class="da1"><?php echo $pc1['name']; ?></p>
|
||||
<p class="da2"><a href="__ORICOROOT__<?php echo url_rewrite('productsub', ['id' => $pc1['id']]); ?>" target="_blank">View all<i></i></a></p>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div class="dafl">
|
||||
<script src="<?php echo url('us/ad/tags', ['tags' => 'category_left_' . ($pc1['id'])]); ?>" type="text/javascript"></script>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$products = getCateoneProduct($pc1['id'], 5, [], true);
|
||||
//print_r($products);die;
|
||||
if ($products):
|
||||
?>
|
||||
<ul class="darh">
|
||||
<?php foreach ($products as $product): ?>
|
||||
<li>
|
||||
<a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $product['id']]); ?>" target="_blank">
|
||||
<div class="daimg"><img src="<?php echo getImage($product['list_bk_img']); ?>"></div>
|
||||
<div class="datext">
|
||||
<p class="dat1"><?php echo $product['name']; ?></p>
|
||||
<p class="dat2"><?php echo $product['brand_id']; ?></p>
|
||||
</div>
|
||||
<?php if ($product['isnew']): ?><div class="newcp">New</div><?php endif; ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
<div class="clear"></div>
|
||||
<!--底部广告图<div class="hwban">
|
||||
<script src="<?php echo url('us/ad/tags', ['tags' => 'category_bottom_' . ($pc1['id'])]); ?>" type="text/javascript"></script>
|
||||
</div>-->
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- 背景灰色 内容区 e -->
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$(".hd ul li").hover(
|
||||
function() {
|
||||
$(this).children(".bds").stop(true, true).show();
|
||||
},
|
||||
function() {
|
||||
$(this).children(".bds").stop(true, true).hide();
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
/*轮播滚动条*/
|
||||
$('.hd').niceScroll({
|
||||
cursorcolor: "transparent",//#CC0071 光标颜色
|
||||
cursoropacitymax: 1, //改变不透明度非常光标处于活动状态(scrollabar“可见”状态),范围从1到0
|
||||
touchbehavior: false, //使光标拖动滚动像在台式电脑触摸设备
|
||||
cursorwidth: "5px", //像素光标的宽度
|
||||
cursorborder: "0", // 游标边框css定义
|
||||
cursorborderradius: "5px",//以像素为光标边界半径
|
||||
autohidemode: false //是否隐藏滚动条
|
||||
});
|
||||
</script>
|
||||
<!-- bottom s -->
|
||||
{include file="include/bottom" /}
|
||||
<!-- bottom e -->
|
||||
</body>
|
||||
</html>
|
||||
1430
app/us/view/product/detail.phtml
Executable file
1430
app/us/view/product/detail.phtml
Executable file
File diff suppressed because it is too large
Load Diff
98
app/us/view/product/new.phtml
Executable file
98
app/us/view/product/new.phtml
Executable file
@@ -0,0 +1,98 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
{include file="include/head-seo" /}
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript" src="__PUBLIC__/web/scripts/jquery.nicescroll.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/web/scripts/bxslider/jquery.bxslider-list.css">
|
||||
<script type="text/javascript" src="__PUBLIC__/web/scripts/bxslider/jquery.bxslider.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<!--top-->
|
||||
<header class="header-PC header-Index">
|
||||
<div id="header" class="theme-white">
|
||||
{include file="include/top" /}
|
||||
{include file="include/top-header" /}
|
||||
</div>
|
||||
</header>
|
||||
<!--top End-->
|
||||
{include file="include/newbanner" /}
|
||||
|
||||
|
||||
<!-- 背景灰色 内容区 s -->
|
||||
<div class="indexbox-list cdbox">
|
||||
<div class="swt-Container">
|
||||
<?php
|
||||
if (!empty($newProduct)):
|
||||
foreach ($newProduct as $k1 => $pc1): ?>
|
||||
<div class="daily">
|
||||
<div class="datit">
|
||||
<p class="da1"><?php echo $pc1['category_name']; ?></p>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
$products = $pc1['list'];
|
||||
|
||||
if ($products):
|
||||
?>
|
||||
<ul class="darh">
|
||||
<?php foreach ($products as $product): ?>
|
||||
<li>
|
||||
<a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $product['id']]); ?>" target="_blank">
|
||||
<div class="daimg"><img src="<?php echo getImage($product['list_bk_img']); ?>"></div>
|
||||
<div class="datext">
|
||||
<p class="dat1"><?php echo $product['name']; ?></p>
|
||||
<p class="dat2"><?php echo $product['brand_id']; ?></p>
|
||||
</div>
|
||||
<?php if ($product['isnew']): ?><div class="newcp">New</div><?php endif; ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
<div class="clear"></div>
|
||||
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- 背景灰色 内容区 e -->
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$(".hd ul li").hover(
|
||||
function() {
|
||||
$(this).children(".bds").stop(true, true).show();
|
||||
},
|
||||
function() {
|
||||
$(this).children(".bds").stop(true, true).hide();
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
/*轮播滚动条*/
|
||||
$('.hd').niceScroll({
|
||||
cursorcolor: "transparent",//#CC0071 光标颜色
|
||||
cursoropacitymax: 1, //改变不透明度非常光标处于活动状态(scrollabar“可见”状态),范围从1到0
|
||||
touchbehavior: false, //使光标拖动滚动像在台式电脑触摸设备
|
||||
cursorwidth: "5px", //像素光标的宽度
|
||||
cursorborder: "0", // 游标边框css定义
|
||||
cursorborderradius: "5px",//以像素为光标边界半径
|
||||
autohidemode: false //是否隐藏滚动条
|
||||
});
|
||||
</script>
|
||||
<!-- bottom s -->
|
||||
{include file="include/bottom" /}
|
||||
<!-- bottom e -->
|
||||
</body>
|
||||
</html>
|
||||
219
app/us/view/product/subcatelists.phtml
Executable file
219
app/us/view/product/subcatelists.phtml
Executable file
@@ -0,0 +1,219 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
{include file="include/head-seo" /}
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<!--top-->
|
||||
<header class="header-PC header-Index">
|
||||
<div id="header">
|
||||
{include file="include/top" /}
|
||||
{include file="include/top-header" /}
|
||||
</div>
|
||||
</header>
|
||||
<!--top End-->
|
||||
{include file="include/catbanner" /}
|
||||
|
||||
<div class="ejbox">
|
||||
<?php
|
||||
$num = 1;
|
||||
if(empty($subproductCategory)){
|
||||
$hotproducts = getCategoryProduct($pid, 5);//dump($hotproducts);die;
|
||||
?>
|
||||
|
||||
|
||||
<div class="swt-Container day">
|
||||
<div class="daytit"><?php echo $category['name']; ?></div>
|
||||
<?php
|
||||
$products = getCateColor($category['id'], 100, [], true,'sort');//dump($products);die;
|
||||
if ($products):
|
||||
?>
|
||||
<dl class="ejul">
|
||||
<?php foreach ($products as $product): ?>
|
||||
<dd class="ej<?php echo $num; ?>">
|
||||
<div class="ejimg bd">
|
||||
<ul>
|
||||
<?php foreach ($product['product_two_img'] as $v){ ?>
|
||||
<li>
|
||||
<a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $v['product_id']]); ?>" target="_blank">
|
||||
|
||||
<img src="<?php echo getImage($v['image_url']); ?>">
|
||||
</a>
|
||||
</li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="ejtext">
|
||||
<div class="text1">
|
||||
<p><a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $product['id']]); ?>"><?php echo $product['name']; ?></a></p>
|
||||
<p><a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $product['id']]); ?>"><?php echo $product['brand_id']; ?></a></p>
|
||||
</div>
|
||||
<div class="hd">
|
||||
<ul>
|
||||
<?php foreach ($product['product_two_img'] as $imglist){?>
|
||||
<?php
|
||||
if(!$imglist['image_color']==''){
|
||||
if(strlen($imglist['image_color']) == 2){
|
||||
$colorImg = '/uploads/product/'.trim($imglist['image_color']).'.jpg';
|
||||
}else{
|
||||
$colorImg = $imglist['image_color'];
|
||||
}
|
||||
?>
|
||||
<li class=" S-small-img">
|
||||
<div class="cricle">
|
||||
<img src="<?php echo $colorImg; ?>" alt="" class="S-Cricle-Bg">
|
||||
</div>
|
||||
</li>
|
||||
<?php }};?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(".ej<?php echo $num; ?>").slide({mainCell: ".bd ul", trigger: "click"});
|
||||
</script>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
</dd>
|
||||
<?php
|
||||
$num++;
|
||||
endforeach;
|
||||
?>
|
||||
<div class="clear"></div>
|
||||
|
||||
</dl>
|
||||
<dl class="ejul ejul-show">
|
||||
<?php $products = getCateColor($category['id'], ('4,100'), [], true);?>
|
||||
<?php foreach ($products as $product): ?>
|
||||
<dd class="ej<?php echo $num; ?>">
|
||||
<div class="ejimg bd">
|
||||
<ul>
|
||||
<?php foreach ($product['product_two_img'] as $v){ ?>
|
||||
<li>
|
||||
<a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $v['product_id']]); ?>" target="_blank">
|
||||
|
||||
<img src="<?php echo getImage($v['image_url']); ?>">
|
||||
</a>
|
||||
</li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="ejtext">
|
||||
<div class="text1">
|
||||
<p><a href="<__ORICOROOT__?php echo url_rewrite('productdetail', ['id' => $product['id']]); ?>"><?php echo $product['name']; ?></a></p>
|
||||
<p><a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $product['id']]); ?>"><?php echo $product['brand_id']; ?></a></p>
|
||||
</div>
|
||||
<div class="hd">
|
||||
<ul>
|
||||
<?php foreach ($product['product_two_img'] as $imglist){?>
|
||||
<?php
|
||||
if(!$imglist['image_color']==''){
|
||||
if(strlen($imglist['image_color']) == 2){
|
||||
$colorImg = '/uploads/product/'.trim($imglist['image_color']).'.jpg';
|
||||
}else{
|
||||
$colorImg = $imglist['image_color'];
|
||||
}
|
||||
?>
|
||||
<li class="img-responsive S-small-img">
|
||||
<div class="cricle">
|
||||
<img src="<?php echo $colorImg; ?>" alt="" class="S-Cricle-Bg">
|
||||
</div>
|
||||
</li>
|
||||
<?php }};?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(".ej<?php echo $num; ?>").slide({mainCell: ".bd ul", trigger: "click"});
|
||||
</script>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
</dd>
|
||||
<?php
|
||||
$num++;
|
||||
endforeach;
|
||||
?>
|
||||
<div class="clear"></div>
|
||||
|
||||
</dl>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
}else{
|
||||
$hotproducts = getSonCategoryProduct($subproductCategory[0]['pid'], 5);
|
||||
?>
|
||||
|
||||
|
||||
<?php foreach ($subproductCategory as $spc) { ?>
|
||||
<div class="swt-Container day">
|
||||
<div class="daytit"><?php echo $spc['name']; ?></div>
|
||||
<?php
|
||||
$products = getCateColor($spc['id'], 100, [], true);//dump($products);die;
|
||||
if ($products):
|
||||
?>
|
||||
<dl class="ejul">
|
||||
<?php foreach ($products as $product): ?>
|
||||
<dd class="ej<?php echo $num; ?>">
|
||||
<div class="ejimg bd">
|
||||
<ul>
|
||||
<?php foreach ($product['product_two_img'] as $v){ ?>
|
||||
<li>
|
||||
<a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $v['product_id']]); ?>" target="_blank">
|
||||
|
||||
<img src="<?php echo getImage($v['image_url']); ?>">
|
||||
</a>
|
||||
</li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="ejtext">
|
||||
<div class="text1">
|
||||
<p><a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $product['id']]); ?>"><?php echo $product['name']; ?></a></p>
|
||||
<p><a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $product['id']]); ?>"><?php echo $product['brand_id']; ?></a></p>
|
||||
</div>
|
||||
<div class="hd">
|
||||
<ul>
|
||||
<?php foreach ($product['product_two_img'] as $imglist){?>
|
||||
<?php if($imglist['image_color']==''){ }else{?>
|
||||
<li class="img-responsive S-small-img">
|
||||
<div class="cricle">
|
||||
<img src="<?php echo $imglist['image_color']; ?>" alt="" class="S-Cricle-Bg">
|
||||
</div>
|
||||
</li>
|
||||
<?php }};?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(".ej<?php echo $num; ?>").slide({mainCell: ".bd ul", trigger: "click"});
|
||||
</script>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
</dd>
|
||||
<?php
|
||||
$num++;
|
||||
endforeach;
|
||||
?>
|
||||
<div class="clear"></div>
|
||||
|
||||
</dl>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<!-- bottom s -->
|
||||
{include file="include/bottom" /}
|
||||
<!-- bottom e -->
|
||||
</body>
|
||||
</html>
|
||||
269
app/us/view/product/subcatelists20190826.phtml
Executable file
269
app/us/view/product/subcatelists20190826.phtml
Executable file
@@ -0,0 +1,269 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
{include file="include/head-seo" /}
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<!--top-->
|
||||
<header class="header-PC header-Index">
|
||||
<div id="header">
|
||||
{include file="include/top" /}
|
||||
{include file="include/top-header" /}
|
||||
</div>
|
||||
</header>
|
||||
<!--top End-->
|
||||
{include file="include/catbanner" /}
|
||||
|
||||
<div class="ejbox">
|
||||
<?php
|
||||
$num = 1;
|
||||
if(empty($subproductCategory)){
|
||||
$hotproducts = getCategoryProduct($pid, 5);//dump($hotproducts);die;
|
||||
?>
|
||||
|
||||
|
||||
<div class="swt-Container day">
|
||||
<div class="daytit"><?php echo $category['name']; ?></div>
|
||||
<?php
|
||||
$products = getCateColor($category['id'], 4, [], true,'sort');//dump($products);die;
|
||||
if ($products):
|
||||
?>
|
||||
<dl class="ejul">
|
||||
<?php foreach ($products as $product): ?>
|
||||
<dd class="ej<?php echo $num; ?>">
|
||||
<div class="ejimg bd">
|
||||
<ul>
|
||||
<?php foreach ($product['product_two_img'] as $v){ ?>
|
||||
<li>
|
||||
<a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $v['product_id']]); ?>" target="_blank">
|
||||
|
||||
<img src="<?php echo getImage($v['image_url']); ?>">
|
||||
</a>
|
||||
</li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="ejtext">
|
||||
<div class="text1">
|
||||
<p><a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $product['id']]); ?>"><?php echo $product['name']; ?></a></p>
|
||||
<p><a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $product['id']]); ?>"><?php echo $product['brand_id']; ?></a></p>
|
||||
</div>
|
||||
<div class="hd">
|
||||
<ul>
|
||||
<?php foreach ($product['product_two_img'] as $imglist){?>
|
||||
<?php if($imglist['image_color']==''){ }else{?>
|
||||
<li class="img-responsive S-small-img">
|
||||
<div class="cricle">
|
||||
<img src="<?php echo $imglist['image_color']; ?>" alt="" class="S-Cricle-Bg">
|
||||
</div>
|
||||
</li>
|
||||
<?php }};?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(".ej<?php echo $num; ?>").slide({mainCell: ".bd ul", trigger: "click"});
|
||||
</script>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
</dd>
|
||||
<?php
|
||||
$num++;
|
||||
endforeach;
|
||||
?>
|
||||
<div class="clear"></div>
|
||||
|
||||
</dl>
|
||||
<dl class="ejul ejul-show">
|
||||
<?php $products = getCateColor($category['id'], ('4,100'), [], true);?>
|
||||
<?php foreach ($products as $product): ?>
|
||||
<dd class="ej<?php echo $num; ?>">
|
||||
<div class="ejimg bd">
|
||||
<ul>
|
||||
<?php foreach ($product['product_two_img'] as $v){ ?>
|
||||
<li>
|
||||
<a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $v['product_id']]); ?>" target="_blank">
|
||||
|
||||
<img src="<?php echo getImage($v['image_url']); ?>">
|
||||
</a>
|
||||
</li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="ejtext">
|
||||
<div class="text1">
|
||||
<p><a href="<__ORICOROOT__?php echo url_rewrite('productdetail', ['id' => $product['id']]); ?>"><?php echo $product['name']; ?></a></p>
|
||||
<p><a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $product['id']]); ?>"><?php echo $product['brand_id']; ?></a></p>
|
||||
</div>
|
||||
<div class="hd">
|
||||
<ul>
|
||||
<?php foreach ($product['product_two_img'] as $imglist){?>
|
||||
<?php if($imglist['image_color']==''){ }else{?>
|
||||
<li class="img-responsive S-small-img">
|
||||
<div class="cricle">
|
||||
<img src="<?php echo $imglist['image_color']; ?>" alt="" class="S-Cricle-Bg">
|
||||
</div>
|
||||
</li>
|
||||
<?php }};?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(".ej<?php echo $num; ?>").slide({mainCell: ".bd ul", trigger: "click"});
|
||||
</script>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
</dd>
|
||||
<?php
|
||||
$num++;
|
||||
endforeach;
|
||||
?>
|
||||
<div class="clear"></div>
|
||||
|
||||
</dl>
|
||||
<?php $products = getCateColor($category['id'], null, [], true); if(count($products)<=4){?>
|
||||
|
||||
<?php }else{?>
|
||||
<div class="ejmore">Click to expand</div>
|
||||
<?php }?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
}else{
|
||||
$hotproducts = getSonCategoryProduct($subproductCategory[0]['pid'], 5);
|
||||
?>
|
||||
|
||||
|
||||
<?php foreach ($subproductCategory as $spc) { ?>
|
||||
<div class="swt-Container day">
|
||||
<div class="daytit"><?php echo $spc['name']; ?></div>
|
||||
<?php
|
||||
$products = getCateColor($spc['id'], 4, [], true);//dump($products);die;
|
||||
if ($products):
|
||||
?>
|
||||
<dl class="ejul">
|
||||
<?php foreach ($products as $product): ?>
|
||||
<dd class="ej<?php echo $num; ?>">
|
||||
<div class="ejimg bd">
|
||||
<ul>
|
||||
<?php foreach ($product['product_two_img'] as $v){ ?>
|
||||
<li>
|
||||
<a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $v['product_id']]); ?>" target="_blank">
|
||||
|
||||
<img src="<?php echo getImage($v['image_url']); ?>">
|
||||
</a>
|
||||
</li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="ejtext">
|
||||
<div class="text1">
|
||||
<p><a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $product['id']]); ?>"><?php echo $product['name']; ?></a></p>
|
||||
<p><a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $product['id']]); ?>"><?php echo $product['brand_id']; ?></a></p>
|
||||
</div>
|
||||
<div class="hd">
|
||||
<ul>
|
||||
<?php foreach ($product['product_two_img'] as $imglist){?>
|
||||
<?php if($imglist['image_color']==''){ }else{?>
|
||||
<li class="img-responsive S-small-img">
|
||||
<div class="cricle">
|
||||
<img src="<?php echo $imglist['image_color']; ?>" alt="" class="S-Cricle-Bg">
|
||||
</div>
|
||||
</li>
|
||||
<?php }};?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(".ej<?php echo $num; ?>").slide({mainCell: ".bd ul", trigger: "click"});
|
||||
</script>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
</dd>
|
||||
<?php
|
||||
$num++;
|
||||
endforeach;
|
||||
?>
|
||||
<div class="clear"></div>
|
||||
|
||||
</dl>
|
||||
<dl class="ejul ejul-show">
|
||||
<?php $products = getCateColor($spc['id'], ('4,100'), [], true);?>
|
||||
<?php foreach ($products as $product): ?>
|
||||
<dd class="ej<?php echo $num; ?>">
|
||||
<div class="ejimg bd">
|
||||
<ul>
|
||||
<?php foreach ($product['product_two_img'] as $v){ ?>
|
||||
<li>
|
||||
<a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $v['product_id']]); ?>" target="_blank">
|
||||
|
||||
<img src="<?php echo getImage($v['image_url']); ?>">
|
||||
</a>
|
||||
</li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="ejtext">
|
||||
<div class="text1">
|
||||
<p><a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $product['id']]); ?>"><?php echo $product['name']; ?></a></p>
|
||||
<p><a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $product['id']]); ?>"><?php echo $product['brand_id']; ?></a></p>
|
||||
</div>
|
||||
<div class="hd">
|
||||
<ul>
|
||||
<?php foreach ($product['product_two_img'] as $imglist){?>
|
||||
<?php if($imglist['image_color']==''){ }else{?>
|
||||
<li class="img-responsive S-small-img">
|
||||
<div class="cricle">
|
||||
<img src="<?php echo $imglist['image_color']; ?>" alt="" class="S-Cricle-Bg">
|
||||
</div>
|
||||
</li>
|
||||
<?php }};?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(".ej<?php echo $num; ?>").slide({mainCell: ".bd ul", trigger: "click"});
|
||||
</script>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
</dd>
|
||||
<?php
|
||||
$num++;
|
||||
endforeach;
|
||||
?>
|
||||
<div class="clear"></div>
|
||||
|
||||
</dl>
|
||||
<?php $products = getCateColor($spc['id'], null, [], true); if(count($products)<=4){?>
|
||||
|
||||
<?php }else{?>
|
||||
<div class="ejmore">Click to expand</div>
|
||||
<?php }?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<script>
|
||||
$(function () {
|
||||
$(".ejmore").click(function(){
|
||||
$(this).siblings(".ejul-show").show();
|
||||
$(this).hide();
|
||||
})
|
||||
});
|
||||
</script>
|
||||
<!-- bottom s -->
|
||||
{include file="include/bottom" /}
|
||||
<!-- bottom e -->
|
||||
</body>
|
||||
</html>
|
||||
209
app/us/view/product/subcatelists20190910.phtml
Executable file
209
app/us/view/product/subcatelists20190910.phtml
Executable file
@@ -0,0 +1,209 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
{include file="include/head-seo" /}
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<!--top-->
|
||||
<header class="header-PC header-Index">
|
||||
<div id="header">
|
||||
{include file="include/top" /}
|
||||
{include file="include/top-header" /}
|
||||
</div>
|
||||
</header>
|
||||
<!--top End-->
|
||||
{include file="include/catbanner" /}
|
||||
|
||||
<div class="ejbox">
|
||||
<?php
|
||||
$num = 1;
|
||||
if(empty($subproductCategory)){
|
||||
$hotproducts = getCategoryProduct($pid, 5);//dump($hotproducts);die;
|
||||
?>
|
||||
|
||||
|
||||
<div class="swt-Container day">
|
||||
<div class="daytit"><?php echo $category['name']; ?></div>
|
||||
<?php
|
||||
$products = getCateColor($category['id'], 4, [], true,'sort');//dump($products);die;
|
||||
if ($products):
|
||||
?>
|
||||
<dl class="ejul">
|
||||
<?php foreach ($products as $product): ?>
|
||||
<dd class="ej<?php echo $num; ?>">
|
||||
<div class="ejimg bd">
|
||||
<ul>
|
||||
<?php foreach ($product['product_two_img'] as $v){ ?>
|
||||
<li>
|
||||
<a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $v['product_id']]); ?>" target="_blank">
|
||||
|
||||
<img src="<?php echo getImage($v['image_url']); ?>">
|
||||
</a>
|
||||
</li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="ejtext">
|
||||
<div class="text1">
|
||||
<p><a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $product['id']]); ?>"><?php echo $product['name']; ?></a></p>
|
||||
<p><a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $product['id']]); ?>"><?php echo $product['brand_id']; ?></a></p>
|
||||
</div>
|
||||
<div class="hd">
|
||||
<ul>
|
||||
<?php foreach ($product['product_two_img'] as $imglist){?>
|
||||
<?php if($imglist['image_color']==''){ }else{?>
|
||||
<li class="img-responsive S-small-img">
|
||||
<div class="cricle">
|
||||
<img src="<?php echo $imglist['image_color']; ?>" alt="" class="S-Cricle-Bg">
|
||||
</div>
|
||||
</li>
|
||||
<?php }};?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(".ej<?php echo $num; ?>").slide({mainCell: ".bd ul", trigger: "click"});
|
||||
</script>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
</dd>
|
||||
<?php
|
||||
$num++;
|
||||
endforeach;
|
||||
?>
|
||||
<div class="clear"></div>
|
||||
|
||||
</dl>
|
||||
<dl class="ejul ejul-show">
|
||||
<?php $products = getCateColor($category['id'], ('4,100'), [], true);?>
|
||||
<?php foreach ($products as $product): ?>
|
||||
<dd class="ej<?php echo $num; ?>">
|
||||
<div class="ejimg bd">
|
||||
<ul>
|
||||
<?php foreach ($product['product_two_img'] as $v){ ?>
|
||||
<li>
|
||||
<a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $v['product_id']]); ?>" target="_blank">
|
||||
|
||||
<img src="<?php echo getImage($v['image_url']); ?>">
|
||||
</a>
|
||||
</li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="ejtext">
|
||||
<div class="text1">
|
||||
<p><a href="<__ORICOROOT__?php echo url_rewrite('productdetail', ['id' => $product['id']]); ?>"><?php echo $product['name']; ?></a></p>
|
||||
<p><a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $product['id']]); ?>"><?php echo $product['brand_id']; ?></a></p>
|
||||
</div>
|
||||
<div class="hd">
|
||||
<ul>
|
||||
<?php foreach ($product['product_two_img'] as $imglist){?>
|
||||
<?php if($imglist['image_color']==''){ }else{?>
|
||||
<li class="img-responsive S-small-img">
|
||||
<div class="cricle">
|
||||
<img src="<?php echo $imglist['image_color']; ?>" alt="" class="S-Cricle-Bg">
|
||||
</div>
|
||||
</li>
|
||||
<?php }};?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(".ej<?php echo $num; ?>").slide({mainCell: ".bd ul", trigger: "click"});
|
||||
</script>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
</dd>
|
||||
<?php
|
||||
$num++;
|
||||
endforeach;
|
||||
?>
|
||||
<div class="clear"></div>
|
||||
|
||||
</dl>
|
||||
<?php $products = getCateColor($category['id'], null, [], true); if(count($products)<=4){?>
|
||||
|
||||
<?php }else{?>
|
||||
<div class="ejmore">Click to expand</div>
|
||||
<?php }?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
}else{
|
||||
$hotproducts = getSonCategoryProduct($subproductCategory[0]['pid'], 5);
|
||||
?>
|
||||
|
||||
|
||||
<?php foreach ($subproductCategory as $spc) { ?>
|
||||
<div class="swt-Container day">
|
||||
<div class="daytit"><?php echo $spc['name']; ?></div>
|
||||
<?php
|
||||
$products = getCateColor($spc['id'], 100, [], true);//dump($products);die;
|
||||
if ($products):
|
||||
?>
|
||||
<dl class="ejul">
|
||||
<?php foreach ($products as $product): ?>
|
||||
<dd class="ej<?php echo $num; ?>">
|
||||
<div class="ejimg bd">
|
||||
<ul>
|
||||
<?php foreach ($product['product_two_img'] as $v){ ?>
|
||||
<li>
|
||||
<a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $v['product_id']]); ?>" target="_blank">
|
||||
|
||||
<img src="<?php echo getImage($v['image_url']); ?>">
|
||||
</a>
|
||||
</li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="ejtext">
|
||||
<div class="text1">
|
||||
<p><a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $product['id']]); ?>"><?php echo $product['name']; ?></a></p>
|
||||
<p><a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $product['id']]); ?>"><?php echo $product['brand_id']; ?></a></p>
|
||||
</div>
|
||||
<div class="hd">
|
||||
<ul>
|
||||
<?php foreach ($product['product_two_img'] as $imglist){?>
|
||||
<?php if($imglist['image_color']==''){ }else{?>
|
||||
<li class="img-responsive S-small-img">
|
||||
<div class="cricle">
|
||||
<img src="<?php echo $imglist['image_color']; ?>" alt="" class="S-Cricle-Bg">
|
||||
</div>
|
||||
</li>
|
||||
<?php }};?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(".ej<?php echo $num; ?>").slide({mainCell: ".bd ul", trigger: "click"});
|
||||
</script>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
</dd>
|
||||
<?php
|
||||
$num++;
|
||||
endforeach;
|
||||
?>
|
||||
<div class="clear"></div>
|
||||
|
||||
</dl>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<!-- bottom s -->
|
||||
{include file="include/bottom" /}
|
||||
<!-- bottom e -->
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user