-
{php
$start = mktime(0, 0, 0, date('m'), 1, date('Y'));
$end = mktime(23, 59, 59, date('m'), date('t'), date('Y'));
$tgcs = getCache('tgcs');
if(!$tgcs){
$sql=" SELECT member_id,count(*) as sum FROM jz_article WHERE member_id!=0 AND addtime>=".$start." AND addtime<=".$end." GROUP by member_id ORDER BY sum desc LIMIT 50";
$tgcs = M()->findSql($sql);
setCache('tgcs',$tgcs,86400*10);
}
/}
{foreach $tgcs as $v}
{php
$u = memberInfo($v['member_id']);
/}
-
{$u['username']}
投稿次数:{$v['sum']}次
{/foreach}
-
{php
$hzsl = getCache('hzsl');
if(!$hzsl){
$hzsl = M('member')->findAll("username!='jzcustomer' and isshow=1",'zan desc',null,50);
setCache('hzsl',$hzsl,86400);
}
/}
{foreach $hzsl as $v}
{php
$u = memberInfo($v['id']);
/}
-
{$u['username']}
获得点赞:{$v['zan']}次
{/foreach}
-
{php
$zshy = getCache('zshy');
if(!$zshy){
$zshy = M('member')->findAll("username!='jzcustomer' and isshow=1",'hits desc',null,50);
setCache('zshy',$zshy,86400);
}
/}
{foreach $zshy as $v}
{php
$u = memberInfo($v['id']);
/}
-
{$u['username']}
获得人气:{$v['hits']}次
{/foreach}