phpcms实现列表页显示文字来源及点击数量的方法
发布时间:2016-12-23 来源:查字典编辑
摘要:{pc:contentaction="lists"catid="$catid"num="25"order="idDESC"page="$pa...
{pc:content action="lists" catid="$catid" num="25" order="id DESC" page="$page" moreinfo="1"}
<ul>
{loop $data $r}
{php list($copyfrom) = explode('|', $r['copyfrom'])}
<li>
<div>
<span><a href="{$r[url]}">{$r[title]}</a></span>
</div>
<p>{str_cut($r[description],300)}...<a href="{$r[url]}">[详细]</a></p><br/>
<p>发表于:{$copyfrom} 点击:{$views}</a></p>
</li>
{/loop}
</ul>
<div id="pages">{$pages}</div>
{/pc}