}
    } else {
        echo "";
    }
    ?>
                <?php 
}
?>
            </ul>

            
            <div class="clear"></div>
            <div id="all_sort" class="all_sort_bar" style="z-index: -1;">
               <div class="all_sort">
                                                     	<?php 
$allsort = IndexModel::I()->getAllSort();
foreach ($allsort["allsort"] as $key => $row) {
    ?>
                                 <ul class="display_cate cate_3_bar">
                                      <li class="catebox cate_3_bar">
                                            <span class="top_cate"><a href="/goods/goodslist/id/<?php 
    echo $row['sort_id'];
    ?>
.html" target="_blank"><?php 
    echo $row["sort_name"];
    ?>
</a></span>
                                                <ul>
                                                <?php 
    if ($allsort["subsort"][$row["sort_id"]]) {
        foreach ($allsort["subsort"][$row["sort_id"]] as $sort_arr) {
    </div>
</div>
<!-- /页头 -->

<!--主体 start-->
<div class="container tc-main" >
    <div class="pg-opt pin">
        <div class="container">
            <h2>
                <a href='<?php 
echo $setting[site_domain];
?>
'>首页</a>
                &nbsp;&nbsp;>>&nbsp;&nbsp;
                <?php 
$parentSort = IndexModel::I()->getSortById($sort['p_id']);
?>
                <?php 
if ($parentSort) {
    ?>
<a href="<?php 
    echo U('article/artlist', array('id' => $parentSort['sort_id']));
    ?>
"><?php 
    echo $parentSort['sort_name'];
    ?>
</a>&nbsp;&nbsp;&gt;&gt;&nbsp;&nbsp;<?php 
}
?>
                <a href='<?php 
echo U("article/artlist", array("id" => $sort[sort_id]));
    </div>
</div>
<!-- /页头 -->

    <!-- 主体 -->
    <div class="main mt20 clear">
        <!-- 面包屑 -->
        <div class="place-show">
            <div class="place-explain fl">当前位置:
                <a href="/"><?php 
echo $setting['site_name'];
?>
</a>
                &gt;
                <?php 
$parentSort = IndexModel::I()->getSortById($goods['p_id']);
?>
                <?php 
if ($parentSort) {
    ?>
<a href="<?php 
    echo U('goods/goodslist', array('id' => $parentSort['sort_id']));
    ?>
"><?php 
    echo $parentSort['sort_name'];
    ?>
 &gt; </a><?php 
}
?>
                <a href="<?php 
echo U('goods/goodslist', array('id' => $goods['sort_id']));