phpcms配置列表页以及获得文章发布时间

<div class="moocConDetail">
{pc:content action="lists" catid="11" order="id DESC" num="10" moreinfo="1"}
<ul>
{loop $data $key $val}
{php list($copyfrom) = explode('|', $val['copyfrom'])}
<li>
<a href="{$val['url']}">{$val['title']}</a>
<span class="source">{$copyfrom}</span>
<span class="acTime">{date('Y-m-d',$val[inputtime])}</span>
</li>
{/loop}
</ul>
{/pc}
</div>

调用一级栏目名称跟二级栏目名称:

{$CATEGORYS[$CAT[parentid]][catname]}
{$CATEGORYS[$CAT[catid]][catname]}
上一篇:(转)SQL Server创建索引


下一篇:剑指Offer-字符流中第一个不重复的字符