`{pc:content action="lists" catid="6" num="8" order="inputtime DESC" }
`
`{loop $data $r}
`
`<li><span class="date">({date('Y/m/d H:m:s',$r[inputtime])})</span><a href="{$r[url]}" target="_blank" title="{$r[title]}">{str_cut($r[title],'28')}</a></li>
`
`{str_cut($r['description'],80)}`
`{/loop}
`
`{/pc}`
不在导航栏显示的栏目调用:
`{pc:get sql="SELECT * FROM `v9_category` WHERE ismenu=0 ORDER BY listorder ASC" num="6"}
`
`{loop $data $r}
`
`{/loop}
`
`{/pc}
`
例子:`{pc:get sql="SELECT * FROM `v9_category` WHERE ismenu=0 ORDER BY listorder ASC" num="6"}
`
`<ul class="list">
`
`{loop $data $r}
`
`{php $i++}
`
` <li>
`
`<span class="icon"><img src="{IMG_PATH}{$i}.png"></span>
`
` <div class="text">
`
`<h2><a href="{$r[url]}">{$r[catname]}</a></h2>
`
` </div>
`
` </li>
`
` {/loop}
`
`{/pc}`
## 调取不同栏目的列表:
`{pc:get sql="select * from V9_news where catid in(26,13) order by id desc" num="10" return="data"}`