{dede:include filename="head.htm"/}
{dede:list titlelen='20' pagesize='25'}
[field:title/]
[field:pubdate runphp='yes'] $ntime = time(); $oneday = 3600 * 24; $twoday = 3600 * 48; $threeday = 3600 * 72; $ytime = $ntime - @me ; $ztime = substr( intval($ytime / 3600),0,2) . ""; $etime = substr( intval($ytime / 60),0,2) . ""; if($ytime < 3600 ){ @me=''.strftime($etime).'分钟前创建';} elseif($ytime < $oneday ){ @me=''.strftime($ztime).'小时前创建';} elseif($ytime < $twoday ){ @me='昨天创建';} elseif($ytime < $threeday ){ @me='前天创建';} else @me="以前创建"; [/field:pubdate]
{/dede:list}

{dede:pagelist listitem="end,pre,next,pageno" listsize="5"/}

#### 活跃会员

{dede:memberlist row=20 orderby = 'scores' }

- [field:userid/] [field:logintime runphp='yes'] $ntime = time(); $oneday = 3600 * 24; $twoday = 3600 * 48; $threeday = 3600 * 72; $ytime = $ntime - @me ; $ztime = substr( intval($ytime / 3600),0,2) . ""; $etime = substr( intval($ytime / 60),0,2) . ""; if($ytime < 3600 ){ @me=''.strftime($etime).'分钟前';} elseif($ytime < $oneday ){ @me=''.strftime($ztime).'小时前';} elseif($ytime < $twoday ){ @me='昨天';} elseif($ytime < $threeday ){ @me='前天';} else @me="以前"; [/field:logintime]登陆了 留个脚印
- 金币[field:money/]个 积分[field:scores/]

{/dede:memberlist}