{template "content","left_nav"}
热门应用
-
{pc:content action="hits" catid="$catid" num="10" order="monthviews DESC" where="`thumb`!='' AND `status`=99" moreinfo="1" return="info"}
{php $categorys = getcache('category_content_'.$siteid,'commons');}
{loop $info $v}
{php $category = $categorys[$v[catid]];}
{php $modelid = $category['modelid'];}
{php $db = pc_base::load_model('hits_model'); $_r = $db->get_one(array('hitsid'=>'c-'.$modelid.'-'.$v[id])); $views = $_r[views]; }
{php $comment_tag = pc_base::load_app_class("comment_tag", "comment"); $comment_total = $comment_tag->count(array('commentid'=>'content_'.$v[catid].'-'.$v[id].'-'.$modelid));}
-
{$v['name']}
{$views}次浏览 {if $comment_total}{$comment_total}{else}0{/if}个评论{$v['title']}{$v['description']}
{/loop}
{/pc}
最新应用
-
{pc:content action="lists" catid="$catid" num="10" order="id DESC" moreinfo="1" return="info"}
{php $categorys = getcache('category_content_'.$siteid,'commons');}
{loop $info $v}
{php $category = $categorys[$v[catid]];}
{php $modelid = $category['modelid'];}
{php $db = pc_base::load_model('hits_model'); $_r = $db->get_one(array('hitsid'=>'c-'.$modelid.'-'.$v[id])); $views = $_r[views]; }
{php $comment_tag = pc_base::load_app_class("comment_tag", "comment"); $comment_total = $comment_tag->count(array('commentid'=>'content_'.$v[catid].'-'.$v[id].'-'.$modelid));}
-
{$v['name']}
{$views}次浏览 {if $comment_total}{$comment_total}{else}0{/if}个评论{$v['title']}{$v['description']}
{/loop}
{/pc}
推荐应用
-
{pc:content action="position" catid="$catid" posid="2" order="listorder DESC" num="10" thumb="1" moreinfo="1" return="info"}
{php $categorys = getcache('category_content_'.$siteid,'commons');}
{loop $info $v}
{php $category = $categorys[$v[catid]];}
{php $modelid = $category['modelid'];}
{php $db = pc_base::load_model('hits_model'); $_r = $db->get_one(array('hitsid'=>'c-'.$modelid.'-'.$v[id])); $views = $_r[views]; }
{php $comment_tag = pc_base::load_app_class("comment_tag", "comment"); $comment_total = $comment_tag->count(array('commentid'=>'content_'.$v[catid].'-'.$v[id].'-'.$modelid));}
-
{$v['name']}
{$views}次浏览 {if $comment_total}{$comment_total}{else}0{/if}个评论{$v['title']}{$v['description']}
{/loop}
{/pc}
应用 TOP 10
-
{pc:content action="hits" catid="$catid" num="10" order="views DESC" where="`thumb`!='' AND `status`=99" moreinfo="1" return="info"}
{php $categorys = getcache('category_content_'.$siteid,'commons');}
{loop $info $v}
{php $category = $categorys[$v[catid]];}
{php $modelid = $category['modelid'];}
{php $db = pc_base::load_model('hits_model'); $_r = $db->get_one(array('hitsid'=>'c-'.$modelid.'-'.$v[id])); $views = $_r[views]; }
{php $comment_tag = pc_base::load_app_class("comment_tag", "comment"); $comment_total = $comment_tag->count(array('commentid'=>'content_'.$v[catid].'-'.$v[id].'-'.$modelid));}
-
{$v['name']}
{$views}次浏览 {if $comment_total}{$comment_total}{else}0{/if}个评论{$v['title']}{$v['description']}
{/loop}
{/pc}
最新下载
-
{pc:get sql="select * from v9_apk a,v9_apk_data b where a.id=b.id and a.thumb!='' AND a.`status`=99 order by a.downloadtime desc,a.id desc" num="10"}
{php $categorys = getcache('category_content_'.$siteid,'commons');}
{loop $data $v}
{php $category = $categorys[$v[catid]];}
{php $modelid = $category['modelid'];}
{php $db = pc_base::load_model('hits_model'); $_r = $db->get_one(array('hitsid'=>'c-'.$modelid.'-'.$v[id])); $views = $_r[views]; }
{php $comment_tag = pc_base::load_app_class("comment_tag", "comment"); $comment_total = $comment_tag->count(array('commentid'=>'content_'.$v[catid].'-'.$v[id].'-'.$modelid));}
-
{$v['name']}
{$views}次浏览 {if $comment_total}{$comment_total}{else}0{/if}个评论{$v['title']}{$v['description']}
{/loop}
{/pc}