{template 'phpcms','header'}
当前位置:首页Digg首页{if $catid}{$catname}{/if}
今日关注度最高{if $catid}{$catname}{/if}
{get sql="select d.contentid,d.supports,c.catid,c.title,c.style,c.thumb,c.url,c.description,c.inputtime from phpcms_digg d left join phpcms_content c on d.contentid=c.contentid where c.status=99 $where order by d.supports_day desc" rows="15" page="$page"}
{$r[title]}
{$r[supports]}
{if $digg->is_done($r['contentid'])}顶过了{else}顶一下{/if}
{str_cut($r[description], 180, '...')}
发布时间:{date('Y-m-d', $r[inputtime])} 栏目:{$CATEGORY[$r[catid]][catname]}
{/get} {if $pages}

{$pages}

{/if}

本周关注度最高{$catname}

    {get sql="select d.contentid,d.supports,c.title,c.style,c.thumb,c.url,c.inputtime from phpcms_digg d left join phpcms_content c on d.contentid=c.contentid where c.status=99 $where order by d.supports_week desc" rows="10"}
  • {$r[supports]}{str_cut($r[title], 44)}
  • {/get}

本月关注度最高{$catname}

    {get sql="select d.contentid,d.supports,c.title,c.style,c.thumb,c.url,c.inputtime from phpcms_digg d left join phpcms_content c on d.contentid=c.contentid where c.status=99 $where order by d.supports_month desc" rows="10"}
  • {$r[supports]}{str_cut($r[title], 44)}
  • {/get}
{template 'phpcms','footer'}