首页 > CMS > PhpCMS > 正文

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

2024-09-10 07:15:00
字体:
来源:转载
供稿:网友
{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}
    <</SPAN>li><</SPAN>span>{number_format($v['monthviews'])}</</SPAN>span><</SPAN>a href="{$v['url']}"{title_style($v['style'])} class="title" title="{$v['title']}">{str_cut($v['title'],56,'...')}</</SPAN>a></</SPAN>li>
{/loop}
{/pc}

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表