查字典范文网 >> 2023年phpcms频道首页调用所有一级二级栏目名称模板

2023年phpcms频道首页调用所有一级二级栏目名称模板

小编:zdfb

每个人都曾试图在平淡的学习、工作和生活中写一篇文章。写作是培养人的观察、联想、想象、思维和记忆的重要手段。那么我们该如何写一篇较为完美的范文呢?下面是小编帮大家整理的优质范文,仅供参考,大家一起来看看吧。

phpcms频道首页调用所有一级二级栏目名称篇一

学习是要持之以恒的一件事,坚持就是胜利!以下百分网小编整理的关于phpcms频道首页调用所有一级二级栏目的方法,希望对大家有所帮助,更多信息请关注应届毕业生网!
你会看到:
code: [copy to clipboard] <!--自定义栏目开始-->
<table width="100%" cellspacing="0" cellpadding="0">
{loop $childcats $i $cat}
{if $i%2==0}<tr>{/if}
<td valign="top" style="padding:0 5px;">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="titlebar" width="100">{$cat[catname]}</td>
<td width="10" height="25"><img src="{$skindir}/images/"></td>
<td width="225" align="right" class="bg_titlebar"><a >
<td width="36"><img src="{$skindir}/images/"></td>
</tr>
</table>
{$articlelist(0,$channelid,$cat[catid],1,0,0,10,30,0,0,0,$cat[ordertype],2,1,0,0,$cat[target],1)}
</td>
{if $i%2==1}</tr>{/if}
{/loop}
</table>
code: [copy to clipboard] <!--自定义栏目开始-->
<table width="100%" cellspacing="0" cellpadding="0">
{loop $childcats $i $cat}
{if $i%2==0}<tr>{/if}
<td valign="top" style="padding:0 5px;">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="titlebar" width="100">{$cat[catname]}</td>
<td width="10" height="25"><img src="{$skindir}/images/"></td>
<td width="225" align="right" class="bg_titlebar"><a >
<td width="36"><img src="{$skindir}/images/"></td>
</tr>
</table>
{loop get_childcat($channelid,$cat[catid]) $childid}
&nbsp;&nbsp;<a >
{$articlelist(0,$channelid,$childid[catid],1,0,0,10,36,0,0,0,$childcat[itemordertype],2,0,0,0,1,1)}
{/loop}
</td>
{if $i%2==1}</tr>{/if}
{/loop}
</table>
<!--自定义栏目结束--> 具体怎么做的美观点大家自由发挥了~~
s("content_relate");

【phpcms频道首页调用所有一级二级栏目】相关文章:

1.phpcms内容页支持javascript的修改方法2.如何调用其他ppt3.汇编调用c函数4.java调用的几个方法5.java远程方法调用rmi6.php调用父类方法7.c语言调用系统命令8.网站设计首页注意事项9.初二语文试题栏目

上一篇:2023年会计从业会计基础考试真题及答案解析通用

下一篇:真香省钱