做东西出来以后,想在栏目前调用出来栏目;
{loop $data $n $r}
{if $showmode == 1}
<li><span>{get sql="SELECT * FROM phpcms_category where catid = $r[catid] ORDER BY catid DESC" return="b"}
[<a href="{$b[url]}">{$b[catname]}</a>{/get}]</span><a href="{$r[url]}" target="{$target}"title="{$r[title]}">{str_cut($r[title],$titlelen,'')}</a></li>
{/if}
{/loop}