Phpcms v9操作GET标签挪用全站内容月排行

Phpcms v9实现全站内容月排行要领代码如下:

{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=http://down.chinaz.com/"{$v['url']}"{title_style($v['style'])} class="title" title=http://down.chinaz.com/"{$v['title']}">{str_cut($v['title'],56,'...')}</a></li>
{/loop}
{/pc}

PHPCMS v9.6.0 GBK下载

Phpcms v9操纵GET标签调用全站内容月排行

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/10222.html