这篇文章主要为大家详细介绍了帝国CMS 灵动标签调用当前栏目下的所有子栏目的简单示例,具有一定的参考价值,可以用来参考一下。
<?
$bclassid = $class_r[$GLOBALS[navclassid]][bclassid]; //获取当前父栏目ID
?>
[e:loop={"select classid,classname,classpath from [!db.pre!]enewsclass where bclassid = '$bclassid' order by classid",0,24,0}]
<?
$bqno%2==0?$style="style=background:#E8E8E8;":$style="";
?>
<tr>
<td width="346" height="25" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" style="padding-left:10px" <?=$style?>>
<tr>
<td width="346" height="25" valign="middle" style="padding-left:10px">第<?=$bqno?>版:<a href="/<?=$class_r[$GLOBALS[navclassid]][classpath]?>"><?=$bqr[classname]?></a></td>
</tr>
</table></td>
</tr>
[/e:loop]
本文来自:http://www.q1010.com/185/8152-0.html
注:关于帝国CMS 灵动标签调用当前栏目下的所有子栏目的简单示例的内容就先介绍到这里,更多相关文章的可以留意四海网的其他信息。
关键词:
四海网收集整理一些常用的php代码,JS代码,数据库mysql等技术文章。