PHPCMS V9用get标签调用全站月排行

admin 发表于 [PHP] 分类,标签: phpcms
0
{pc:get sql="SELECT h.`monthviews`,n.`title`,n.`url`,n.`style` FROM `phpcms_hits` AS h,`phpcms_news` AS n WHERE substring_index(h.`hitsid`, '-', -1)=n.`id` AND n.`status`=99 ORDER BY h.`monthviews` DESC" num="20" cache="3600"}
{loop $data $v}
	<li><span>{number_format($v['monthviews'])}</span><a href="{$v['url']}"{title_style($v['style'])} class="title" title="{$v['title']}">{str_cut($v['title'],56,'...')}</a></li>
{/loop}
{/pc}

发表我的评论