<?php if(!defined('IN_SDCMS')) exit;?>{include file="top.php"}
<title>{if !isempty($catetitle)}{$catetitle}{else}{$catename}{/if}_{if $page>1}第{$page}页_{/if}{sdcms[web_name]}</title>
<meta name="keywords" content="{if !isempty($catekey)}{$catekey}{else}{$catename}{/if}">
<meta name="description" content="{if !isempty($catedesc)}{$catedesc}{else}{$catename}{/if}">
</head>

<body>

    {include file="head.php"}
    
    <div class="banner_inner" style="background:url({get_cate_self($mycatepic,$topid,'mycatepic',WEB_ROOT.'theme/20170105/images/b00.jpg')}) no-repeat center;">      
    </div>

    <div class="width container">
    	<div class="lefter">
        	<div class="left_title mts">
            	<h3>{get_catename($topid)}</h3>
                <p>{get_cate_self($mycateename,$topid,'mycateename','')}</p>
            </div>
            <div class="left_border">
                <ul>
                    {sdcms:rp top="0" table="sd_category" where="followid=$topid" order="catenum,cateid"}
                    {rp:eof}<li class="hover"><a href="{cateurl($topid)}">{get_catename($topid)}</a></li>{/rp:eof}
                    {php $sub_sonid=$rp[cateid]}
                    <li{is_active($rp[cateid],$parentid)}><a href="{cateurl($rp[cateid])}" title="{$rp[catename]}"><span class="am-icon-angle-right"></span>{$rp[catename]}</a></li>
                    {sdcms:rs top="0" table="sd_category" where="followid=$sub_sonid" order="catenum,cateid"}
                    <li class="small{is_active($rs[cateid],$parentid,' active')}"><a href="{cateurl($rs[cateid])}" title="{$rs[catename]}"{if $rs[isblank]==1} target="_blank"{/if}><span class="am-icon-angle-right"></span>{$rs[catename]}</a></li>
                    {/sdcms:rs}
                    {/sdcms:rp}
                </ul>
            </div>
            
            <div class="left_title mt20">
            	<h3>联系我们</h3>
                <p>Contact Us</p>
            </div>
            <div class="left_contact">
                {block("page_contact")}
            </div>
            
        </div>
        <div class="righter">
        	<div class="subject">
            	<div class="fl">{$catename}<span>{get_cate_self($mycateename,$topid,'mycateename','')}</span></div>
                <div class="fr">您的当前位置：<a href="{$webroot}">首页</a>{foreach $position as $rs} > <a href="{$rs['url']}" title="{$rs['url']}">{$rs['name']}</a>{/foreach}</div>
            </div>
        	<div class="page_show">
            	<!---->
                {if is_array($piclist)}
                <div class="piclist mt20">
                    <ul id="gallery">
                        {foreach $piclist as $key=>$rs}
                        <li><a href="{$rs['image']}" title="{$rs['desc']}" class="ui-lightbox"><img src="{$rs['image']}" alt="{$rs['desc']}" width="230" /><p>{$rs['desc']}</p></a></li>
                        {/foreach}
                    </ul>
                </div>
                <div class="clear"></div>
                {/if}
                <div class="page_show">
                {$content}
                </div>
                <div class="ui-page ui-page-center ui-page-mid"><ul>{pagelist($page,$pagenum)}</ul></div>
                <!---->
            </div>
        </div>
        <div class="clear"></div>
    </div>
    
    {include file="foot.php"}
    <script src="{WEB_ROOT}public/js/jquery.masonry.min.js"></script>
	<script>
    $(function() {
        $('#gallery img').load(function(){
			$('#gallery').masonry({itemSelector:'li'});
		});
        $('#gallery').masonry({itemSelector:'li'});
    });
    </script>
    
</body>
</html>
