码库记事本

码库记事本

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

小诸哥 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}
    <</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}

标签: cms 标签 调用 内容