{include file="public/head"} {include file="module/banner"}
{if$obj.parent}{else}

- 按类型
  {empty name="$obj.type_extend.class"} {maccms:foreach name=":explode(',',$obj.parent.type_extend.class)"}
    {$vo}
  {/maccms:foreach} {else /} {maccms:foreach name=":explode(',',$obj.type_extend.class)"}
    {$vo}
  {/maccms:foreach} {/empty}
- 按地区
  {empty name="$obj.type_extend.area"} {maccms:foreach name=":explode(',',$obj.parent.type_extend.area)"}
    {$vo}
  {/maccms:foreach} {else /} {maccms:foreach name=":explode(',',$obj.type_extend.area)"}
    {$vo}
  {/maccms:foreach} {/empty}
- 按年代
  {empty name="$obj.type_extend.year"} {maccms:foreach name=":explode(',',$obj.parent.type_extend.year)"}
    {$vo}
  {/maccms:foreach} {else /} {maccms:foreach name=":explode(',',$obj.type_extend.year)"}
    {$vo}
  {/maccms:foreach} {/empty}

{/if} {include file="ads/ads_all"}
{include file="module/typevbox"} {maccms:type ids="'.$GLOBALS['type_id'].'" order="asc" by="sort" } {maccms:type parent="'.$vo['type_id'].'" order="asc" by="sort" id="vo1" key="key1"}

## {$vo1.type_name}

更多 {maccms:vod num="3" type="'.$vo1['type_id'].'" order="desc" by="hits" id="vo2" key="key2"} {$vo2.vod_name|mac_substring=16} {/maccms:vod}

{maccms:vod num="18" type="'.$vo1['type_id'].'" order="desc" by="time"} {include file="widget/vod_box"} {/maccms:vod}

- ### 热播排行榜

  {php} $num = 0; {/php} {maccms:vod num="20" paging="no" type="'.$vo1['type_id'].'"} {php} $num++; {/php} {/maccms:vod} {php} if($num <= 0){ $status = 1; }elseif($num > 0 && $num <= 18){ $status = 2; }else{ $status = 3; } {/php} {if condition="$status == 1"}
  - 暂无
  {/if} {if condition="$status == 2"} {maccms:vod num="18" paging="no" type="'.$vo1['type_id'].'" order="desc" by="score"} {include file="widget/rank_box_text"} {/maccms:vod} {/if} {if condition="$status == 3"} {maccms:vod num="18" paging="no" type="'.$vo1['type_id'].'" order="desc" by="score"} {include file="widget/rank_box_text"} {/maccms:vod} {if condition="!isset($tplconfig['theme']['rank']['btn']) || $tplconfig['theme']['rank']['btn'] neq '0'"}
  - 更多>
  {/if} {/if}

{maccms:vod num="18" type="'.$vo1['type_id'].'" start="19" order="desc" by="time"} {include file="widget/vod_box"} {/maccms:vod}

{maccms:vod num="18" type="'.$vo1['type_id'].'" start="37" order="desc" by="time"} {include file="widget/vod_box"} {/maccms:vod}

{/maccms:type} {/maccms:type}
{include file="module/banstem"}