{pc:content action="lists" catid="$catid" num="10" moreinfo="1" order="id DESC" page="$page"} 
         
        
    {loop $data $r} {php $db = pc_base::load_model('hits_model'); $_r = $db->get_one(array('hitsid'=>'c-'.$modelid.'-'.$r[id])); $views = $_r213 views; } {php $comment_tag = pc_base::load_app_class("comment_tag", "comment"); $comment_total = $comment_tag->count(array('commentid'=>'content_'.$catid.'-'.$r[id].'-'.$modelid));}
  • 阅读:{$views} | 评论:{if $comment_total}{$comment_total} {else}0{/if}[{date('Y-m-d',$r[inputtime])}]{$r[title]}
  • {if $n%5 ==0}
  • {/if} {/loop}
{/pc}

,

{pc:content action="lists" catid="$catid" num="10" moreinfo="1" order="id DESC" page="$page"} 
         
        
    {loop $data $r} {php $db = pc_base::load_model('hits_model'); $_r = $db->get_one(array('hitsid'=>'c-'.$modelid.'-'.$r[id])); $views = $_r213 views; } {php $comment_tag = pc_base::load_app_class("comment_tag", "comment"); $comment_total = $comment_tag->count(array('commentid'=>'content_'.$catid.'-'.$r[id].'-'.$modelid));}
  • 阅读:{$views} | 评论:{if $comment_total}{$comment_total} {else}0{/if}[{date('Y-m-d',$r[inputtime])}]{$r[title]}
  • {if $n%5 ==0}
  • {/if} {/loop}
{/pc}
最后修改:2025 年 09 月 10 日
如果觉得我的文章对你有用,请随意夸赞