(1)單網(wǎng)頁:
{loop $arrchild_arr $cid}<!--只適應用單網(wǎng)頁-->
<li {if $catid==$cid}class="cur_link"{/if}><a href="{$CATEGORYS[$cid][url]}/">{$CATEGORYS[$cid][catname]}</a></li>
{/loop}
(2)模型列表頁:
{pc:content action="category" catid="$parentid" num="25" siteid="$siteid" order="listorder ASC"}
<ul>
{loop $data $r}
<li {if $catid==$r[catid]}class="cur_link"{/if}><a href="{$r[url]}/">{$r[catname]}</a></li>
{/loop}
</ul>
{/pc}
(3)內容頁:
{pc:content action="category" catid="$top_parentid" num="25" siteid="$siteid" order="listorder ASC"}
<ul>
{loop $data $r}
<li {if $catid==$r[catid]}class="cur_link"{/if}><a href="{$r[url]}/">{$r[catname]}</a></li>
{/loop}
</ul>
{/pc}
{loop $arrchild_arr $cid}<!--只適應用單網(wǎng)頁-->
<li {if $catid==$cid}class="cur_link"{/if}><a href="{$CATEGORYS[$cid][url]}/">{$CATEGORYS[$cid][catname]}</a></li>
{/loop}
(2)模型列表頁:
{pc:content action="category" catid="$parentid" num="25" siteid="$siteid" order="listorder ASC"}
<ul>
{loop $data $r}
<li {if $catid==$r[catid]}class="cur_link"{/if}><a href="{$r[url]}/">{$r[catname]}</a></li>
{/loop}
</ul>
{/pc}
(3)內容頁:
{pc:content action="category" catid="$top_parentid" num="25" siteid="$siteid" order="listorder ASC"}
<ul>
{loop $data $r}
<li {if $catid==$r[catid]}class="cur_link"{/if}><a href="{$r[url]}/">{$r[catname]}</a></li>
{/loop}
</ul>
{/pc}