{template "content","header"} {php $c = isset($_GET['b'])?$_GET['b']:1;}

##### 分类检索

{php $nums = count(subcat($CATEGORYS[$catid]['parentid'],0,0,$siteid));} {loop subcat($CATEGORYS[$catid]['parentid'],0,0,$siteid) $r} {php $num++}
- {$r[catname]}
{/loop}

本页共有{$items}个符合条件的内容

##### {$catname}

- 按画质： {loop video_filters('vision',$modelid,$vision_rang) $r} {$r[menu]} {/loop}

- 最近更新
- 最近热播
- 最热评论

{if $c==1}

{php $urlrule = video_makeurlrule();} {php $sql = video_filters_sql($modelid,$catid);$y=1;$listorder = array(1=>'price ASC', 'price DESC', 'updatetime ASC', 'updatetime DESC');} {pc:content action="lists" where="$sql" catid="$catid" num="15" order=" listorder desc,id DESC" moreinfo="1" page="$page" urlrule="$urlrule"} {php $nums=count($data)} {loop $data $v} {php $video_info = get_vid($v[id], $v[catid], $isspecial = 0);}
- {dataformat($video_info['timelen'])}
  {str_cut($v[title],16,false)}
  播放数：{get_views('c-'.$CATEGORYS[$v[catid]][modelid].'-'.$v['id'])}评论：{get_comments(id_encode("content_$v[catid]",$v[id],$siteid))}
{/loop} {/pc}

{if $pages}
{$pages}
{/if}
{/if} {if $c==2}

{php $urlrule = video_makeurlrule();} {php $sql = video_filters_sql($modelid,$catid);$y=1;$listorder = array(1=>'price ASC', 'price DESC', 'updatetime ASC', 'updatetime DESC');} {pc:content action="hits" catid="$catid" num="15" order="views DESC" page="$page" urlrule="$urlrule"} {php $nums=count($data)} {loop $data $v} {php $video_info = get_vid($v[id], $v[catid], $isspecial = 0);}
- {dataformat($video_info['timelen'])}
  {str_cut($v[title],16,false)}
  播放数：{get_views('c-'.$CATEGORYS[$v[catid]][modelid].'-'.$v['id'])}评论：{get_comments(id_encode("content_$v[catid]",$v[id],$siteid))}
{/loop} {/pc}

{if $pages}
{$pages}
{/if}
{/if} {if $c==3}

{php $urlrule = video_makeurlrule();} {php $sql = video_filters_sql($modelid,$catid);$y=1;$listorder = array(1=>'price ASC', 'price DESC', 'updatetime ASC', 'updatetime DESC');} {pc:comment action="bang" num="15" cache="0"} {php $nums=count($data)} {loop $data $v} {php $com_arr = explode('_',$v['commentid']);$id_arr = explode('-',$com_arr[1]); $video_array =get_pic($id_arr[1],$id_arr[0]); } {php $video_info = get_vid($id_arr[1], $id_arr[0], $isspecial = 0);}
- {dataformat($video_info['timelen'])}
  {str_cut($v[title],16,false)}
  播放数：{get_views('c-'.$CATEGORYS[$id_arr[0]][modelid].'-'.$id_arr[1])}评论：{get_comments(id_encode("content_$id_arr[0]",$id,$siteid))}
{/loop} {/pc}

{if $pages}
{$pages}
{/if}
{/if}
{template "content","footer"}