|
|
<!DOCTYPE html>
|
|
|
<html lang="zh-TW">
|
|
|
<head>
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
<meta name="Keywords" content="{$keywords}" />
|
|
|
<meta name="Description" content="{$description}" />
|
|
|
|
|
|
<!-- TemplateBeginEditable name="doctitle" -->
|
|
|
<title>{$page_title}</title>
|
|
|
<!-- TemplateEndEditable -->
|
|
|
|
|
|
<!-- TemplateBeginEditable name="head" -->
|
|
|
<!-- TemplateEndEditable -->
|
|
|
<link rel="shortcut icon" href="favicon.ico" />
|
|
|
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
|
|
|
|
|
|
<link href="https://dev.iconly.io/public/qATtCZcnimPR/iconly.css" rel="stylesheet"/>
|
|
|
<link href="{$ecs_css_path}" rel="stylesheet" type="text/css" />
|
|
|
<link href="category.css" rel="stylesheet" type="text/css" />
|
|
|
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" />
|
|
|
<link href="css/templatemo.css" rel="stylesheet" type="text/css" />
|
|
|
<link href="css/custom.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
|
<!-- Load fonts style after rendering the layout styles -->
|
|
|
<link href="css/css2.css" rel="stylesheet" type="text/css" />
|
|
|
<link href="css/fontawesome.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
|
{* 包含腳本文件 *}
|
|
|
{insert_scripts files='jquery-1.9.1.min.js,jquery.json.js'}
|
|
|
<script type="text/javascript" src="js/common.js?v=17"></script>
|
|
|
{insert_scripts files='global.js,compare.js,easydialog.min.js'}
|
|
|
</head>
|
|
|
<body>
|
|
|
<!-- #BeginLibraryItem "/library/page_header.lbi" --><!-- #EndLibraryItem -->
|
|
|
{insert_scripts files='lizi_category.js'}
|
|
|
<div id="wrapper">
|
|
|
<!-- 頁面主體部分開始 -->
|
|
|
<!-- #BeginLibraryItem "/library/ur_here.lbi" --><!-- #EndLibraryItem -->
|
|
|
<div class="main cle">
|
|
|
<div class="maincon">
|
|
|
<?php
|
|
|
$category = $GLOBALS['smarty']->_var['category'];
|
|
|
?>
|
|
|
<!--{if $brand_id || (($price_max > $price_min) && $price_max > 0) || $price_max || $filter_attr_sum > 0}-->
|
|
|
<div class="search-selected"> <span>您已選擇:</span>
|
|
|
<!--{if $filter_attr_sum > 0}-->
|
|
|
<!--{foreach from=$filter_attr_list item=filter_attr}-->
|
|
|
<!--{foreach from=$filter_attr.attr_list item=attr key=key}-->
|
|
|
<!-- {if $attr.selected && $key > 0} -->
|
|
|
<a href="{$attr.del_url}" class="item">{$attr.attr_value}</a>
|
|
|
<!-- {/if} -->
|
|
|
<!--{/foreach}-->
|
|
|
<!--{/foreach}-->
|
|
|
<!--{/if}-->
|
|
|
|
|
|
<!--{if $brands.1}-->
|
|
|
<!--{foreach from=$brands item=brand key=key}-->
|
|
|
<!-- {if $brand.selected && $key > 0} -->
|
|
|
<a href="{$brands.0.url}" class="item">{$brand.brand_name}</a>
|
|
|
<!-- {/if} -->
|
|
|
<!--{/foreach}-->
|
|
|
<!--{/if}-->
|
|
|
|
|
|
<!--{if ($price_max > $price_min) && $price_max > 0}-->
|
|
|
<a href="{$price_grade.0.url}" class="item">{$price_min} - {$price_max}</a>
|
|
|
<!--{/if}-->
|
|
|
</div>
|
|
|
<!--{/if}-->
|
|
|
|
|
|
<!--組合搜索 開始-->
|
|
|
|
|
|
<div class="search-options" id="search-options">
|
|
|
<div class="bd">
|
|
|
<dl>
|
|
|
<dt>分類:</dt>
|
|
|
<dd>
|
|
|
<div class="items cle">
|
|
|
<!--{foreach from=get_children_tree($category) item=cat}-->
|
|
|
<!--{foreach from=$cat.children item=child name=child key=key}-->
|
|
|
<!--{if $key > 0}-->
|
|
|
<div class="link"> <a href="{$child.url}" class="item">{$child.name|escape:html}</a> </div>
|
|
|
<!--{/if}-->
|
|
|
<!--{/foreach}-->
|
|
|
<!--{/foreach}-->
|
|
|
</div>
|
|
|
</dd>
|
|
|
</dl>
|
|
|
|
|
|
<!--{if $brands.1 || $price_grade.1 || $filter_attr_list}-->
|
|
|
<!--{if $brands.1 && !$brand_id}-->
|
|
|
<dl>
|
|
|
<dt>{$lang.brand}:</dt>
|
|
|
<dd>
|
|
|
<div class="items cle">
|
|
|
<!--{foreach from=$brands item=brand key=key}-->
|
|
|
<!--{if $key > 0}-->
|
|
|
<div class="link"> <a href="{$brand.url}" class="item">{$brand.brand_name}</a> </div>
|
|
|
<!--{/if}-->
|
|
|
<!--{/foreach}-->
|
|
|
</div>
|
|
|
</dd>
|
|
|
</dl>
|
|
|
<!--{/if}-->
|
|
|
|
|
|
<!--{foreach from=$filter_attr_list item=filter_attr}-->
|
|
|
|
|
|
<!-- {if !$filter_attr.selected} -->
|
|
|
<dl>
|
|
|
<dt>{$filter_attr.filter_attr_name|escape:html}:</dt>
|
|
|
<dd>
|
|
|
<div class="items cle">
|
|
|
<!--{foreach from=$filter_attr.attr_list item=attr key=key}-->
|
|
|
<!-- {if $key > 0} -->
|
|
|
<div class="link"> <a href="{$attr.url}" class="item">{$attr.attr_value}</a> </div>
|
|
|
<!--{/if}-->
|
|
|
<!--{/foreach}-->
|
|
|
</div>
|
|
|
</dd>
|
|
|
</dl>
|
|
|
<!--{/if}-->
|
|
|
<!--{/foreach}-->
|
|
|
|
|
|
<!--{if $price_grade.1 && !$price_min && !$price_max}-->
|
|
|
<dl>
|
|
|
<dt>{$lang.price}:</dt>
|
|
|
<dd class="dd-price">
|
|
|
<div class="items cle w500">
|
|
|
<!--{foreach from=$price_grade item=grade key=key}-->
|
|
|
<!--{if $key > 0}-->
|
|
|
<div class="link"> <a href="{$grade.url}" class="item">{$grade.price_range}</a> </div>
|
|
|
<!--{/if}-->
|
|
|
<!--{/foreach}-->
|
|
|
</div>
|
|
|
<div class="priceform" id="priceform">
|
|
|
<div class="form-bg">
|
|
|
<form action="{$price_grade.0.url}" method="post" id="freepriceform" >
|
|
|
<span class="rmb"></span>
|
|
|
<input type="text" value="" name="price_min" id="pricemin">
|
|
|
<span class="rmb rmb2"></span>
|
|
|
<input type="text" value="" name="price_max" id="pricemax">
|
|
|
<p>
|
|
|
<input type="submit" value="確定" onclick="return makeUri();" class="submit">
|
|
|
</p>
|
|
|
</form>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="cle"></div>
|
|
|
</dd>
|
|
|
</dl>
|
|
|
<!--{/if}-->
|
|
|
<!-- {/if} -->
|
|
|
</div>
|
|
|
</div>
|
|
|
<!--組合搜索 結束-->
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
function makeUri() {
|
|
|
// 開始價格 pricemin
|
|
|
var v1 = document.getElementById("pricemin").value;
|
|
|
// 截止價格 pricemax
|
|
|
var v2 = document.getElementById("pricemax").value;
|
|
|
if(v1 == '' || v2 == '' || !$.isNumeric(v1) || !$.isNumeric(v2) || parseInt(v1) > parseInt(v2)){
|
|
|
alert('請輸入正確的價格區間');
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
<!-- #BeginLibraryItem "/library/goods_list.lbi" --><!-- #EndLibraryItem --> <!-- #BeginLibraryItem "/library/pages.lbi" --><!-- #EndLibraryItem --> </div>
|
|
|
</div>
|
|
|
<!-- 頁面主體部分結束 -->
|
|
|
|
|
|
</div>
|
|
|
<div class="add_ok" id="cart_show">
|
|
|
<div class="tip">
|
|
|
<i class="iconfont"></i>商品已成功加入購物車
|
|
|
</div>
|
|
|
<div class="go">
|
|
|
<a href="javascript:easyDialog.close();" class="back"><<繼續購物</a>
|
|
|
<a href="flow.php" class="btn">去結算</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<!-- #BeginLibraryItem "/library/page_footer.lbi" --><!-- #EndLibraryItem -->
|
|
|
</body>
|
|
|
</html> |