PHPCMS中栏目主页显示出下级栏目和下级栏目的文章

Tags: css html
{php $j=1;}

{loop subcat($catid) $v}

{php if($v['type']!=0) continue;}

<div class="col">

<div id="pistion"><h2>{$v[catname]}</h2><a href="{$v[url]}">更多>></a></div>

<ul class="ilist">

{pc:content action="lists" catid="$v[catid]" num="4"}

{loop $data $r}

<li><a href="{$r[url]}" target="_blank"><img src="{$r[thumb]}" alt="{$r[title]}" /></a><strong><a href="{$r[url]}" target="_blank">{$r[title]}</a></strong><p>{str_cut($r[description],20,'')}<br />时间:{date('Y-m-d',$v[inputtime])}</p></li>

{/loop}

{/pc}

</ul>

</div>

{php $j++}

{/loop}

本文链接:http://www.4byte.cn/learning/38521.html