<!--{if !empty($cat['scat']) && count($cat['scat']) > 1}-->
<h3 class="title">按类别</h3>
<div class="filter">
    <a href="{url:'@%s' , $cat['sname']}" title="{$cat['name']}" class="filter_a {:empty($subcat)? 'filter_active' : ''}">不限</a>
    <!--{foreach $cat['scat'] $ck $cv}-->
    <!--{if $cv['id'] != $cat['id']}-->
        <!--{if empty($year) && empty($reg)}-->
        <a href="{url:'@%s-list-cat-%s' , $cat['sname'] , $cv['sname'] }" title="{$cv['name']}" class="filter_a {$cv['id'] == $subcat['id'] ? 'filter_active' : ''}">{$cv['name']}</a>
        <!--{elseif  empty($reg) && !empty($year)}-->
        <a href="{url:'@%s-list-cat-%s-year-%d' , $cat['sname'] , $cv['sname'] ,  $year ? $year : 'null'}" title="{$cv['name']}" class="filter_a {$cv['id'] == $subcat['id'] ? 'filter_active' : ''}">{$cv['name']}</a>
        <!--{elseif !empty($reg) && empty($year)}-->
        <a href="{url:'@%s-list-cat-%s-region-%s' , $cat['sname'] , $cv['sname'] ,   $reg ? $reg['sname'] : 'null'}" title="{$cv['name']}" class="filter_a {$cv['id'] == $subcat['id'] ? 'filter_active' : ''}">{$cv['name']}</a>
        <!--{elseif !empty($reg) && !empty($year)}-->
        <a href="{url:'@%s-list-cat-%s-region-%s-year-%d' , $cat['sname'] , $cv['sname'] , $reg ? $reg['sname'] : 'null' ,  $year ? $year : 'null'}" title="{$cv['name']}" class="filter_a {$cv['id'] == $subcat['id'] ? 'filter_active' : ''}">{$cv['name']}</a>
        <!--{/if}-->
    <!--{/if}-->
    <!--{/foreach}-->
    <br class="clear"/>
</div>
<br class="clear"/>
<!--{/if}-->

<h3 class="title">按年份</h3>
<div class="filter">
    <a href="{url:'@%s' , $cat['sname']}" title="{$cat['name']}" class="filter_a {:empty($year)? 'filter_active' : ''}">不限</a>
    <!--{for $x in range(0,7)}-->
        <!--{if empty($reg) && empty($subcat)}-->
    <a href="{url:'@%s-list-year-%d' , $cat['sname'] , 2013 - $x }" class="filter_a {$year == (2013 - $x) ? 'filter_active' : ''}">{:(2013 - $x)}</a>
        <!--{elseif empty($reg) && !empty($subcat)}-->
    <a href="{url:'@%s-list-cat-%s-year-%d' , $cat['sname'] , $subcat ? $subcat['sname'] : 'null' , 2013 - $x }" class="filter_a {$year == (2013 - $x) ? 'filter_active' : ''}">{:(2013 - $x)}</a>
        <!--{elseif empty($subcat) && !empty($reg)}-->
    <a href="{url:'@%s-list-region-%s-year-%d' , $cat['sname'] , $reg ? $reg['sname'] : 'null' , 2013 - $x }" class="filter_a {$year == (2013 - $x) ? 'filter_active' : ''}">{:(2013 - $x)}</a>
        <!--{elseif !empty($subcat) && !empty($reg)}-->
    <a href="{url:'@%s-list-cat-%s-region-%s-year-%d' , $cat['sname'] , $subcat ? $subcat['sname'] : 'null' , $reg ? $reg['sname'] : 'null' , 2013 - $x }" class="filter_a {$year == (2013 - $x) ? 'filter_active' : ''}">{:(2013 - $x)}</a>
        <!--{/if}-->
    <!--{/for}-->
    <br class="clear"/>
</div>
<!--{if $cat['ctype'] != '3'}-->
<br class="clear"/>
<h3 class="title">按地区</h3>
<div class="filter">
    <a href="{url:'@%s' , $cat['sname']}" title="{$cat['name']}" class="filter_a {:empty($reg)? 'filter_active' : ''}">不限</a>
    <!--{foreach $region $ck $cv}-->
        <!--{if empty($year) && empty($subcat)}-->
        <a href="{url:'@%s-list-region-%s' , $cat['sname'] , $cv['sname']}" class="filter_a {$cv['id'] == $reg['id']? 'filter_active' : ''}">{$cv['name']}</a>
        <!--{elseif !empty($year) && empty($subcat)}-->
        <a href="{url:'@%s-list-region-%s-year-%d' , $cat['sname'] , $cv['sname'] , $year ? $year : 'null'}" class="filter_a {$cv['id'] == $reg['id']? 'filter_active' : ''}">{$cv['name']}</a>
        <!--{elseif empty($year) && !empty($subcat)}-->
        <a href="{url:'@%s-list-cat-%s-region-%s' , $cat['sname']  , $subcat ? $subcat['sname'] : 'null' , $cv['sname']}" class="filter_a {$cv['id'] == $reg['id']? 'filter_active' : ''}">{$cv['name']}</a>
        <!--{elseif !empty($year) && !empty($subcat)}-->
        <a href="{url:'@%s-list-cat-%s-region-%s-year-%d' , $cat['sname'] , $subcat ? $subcat['sname'] : 'null' , $cv['sname'] , $year ? $year : 'null'}" class="filter_a {$cv['id'] == $reg['id']? 'filter_active' : ''}">{$cv['name']}</a>
        <!--{/if}-->
    <!--{/foreach}-->
    <br class="clear"/>
</div>
<!--{/if}-->
<br class="clear"/>
<h3 class="title">最近更新</h3>
<ul class="list_ul">
<!--{foreach $lastupdate $k $v}-->
    <li class="{$k_index % 2 === 0 ? 'li_bg' : ''}">
        <span class="number {if $k_index <= 3} red{/if}">{$k_index}</span>&nbsp;
        <a href="{url:'@view-%s' , $v['sname']}" title="{$v['key']}" target="_blank">{$v['name']|12}</a>
        <span class="fr more">{:date('m-d' , $v['udate'])}&nbsp;</span>
    </li>
<!--{/foreach}-->
</ul>
<br class="clear"/>
<h3 class="title">热播影片</h3>
<ul class="list_ul">
<!--{foreach $hotlist $k $v}-->
    <li class="{$k_index % 2 === 0 ? 'li_bg' : ''}">
        <span class="number {if $k_index <= 3} red{/if}">{$k_index}</span>&nbsp;
        <a href="{url:'@view-%s' , $v['sname']}" title="{$v['key']}" target="_blank">{$v['name']|12}</a>
        <span class="fr more">{$v['views']} ℃&nbsp;</span>
    </li>
<!--{/foreach}-->
</ul>
<br class="clear"/>


<h3 class="title">推荐影片</h3>
<ul class="list_ul">
<!--{foreach $toplist $k $v}-->
    <li class="{$k_index % 2 === 0 ? 'li_bg' : ''}">
        <span class="number {if $k_index <= 3} red{/if}">{$k_index}</span>&nbsp;
        <a href="{url:'@view-%s' , $v['sname']}" title="{$v['key']}" target="_blank">{$v['name']|12}</a>
    </li>
<!--{/foreach}-->
</ul>
<br/>