Welcome to Delicate template
Header
Just another WordPress site
Header

循环子栏目代码 支持内嵌标签

2月 17th, 2014 | Posted by 无 名 in ecms | php

帝国的灵动标签支持嵌套标签。
以循环子栏目为例。

<?php
$bclassid=$GLOBALS&#91;navclassid&#93;; //取得本栏目id
//取得本栏目下的子栏目
?>
[e:loop={"select classid, classname, classpath from [!db.pre!]enewsclass where bclassid='$bclassid' order by classid asc",200,24,0}]
<li class="curr"><a href="<?=$bqsr&#91;classurl&#93;?>"><?=$bqr&#91;classname&#93;?></a></li>
[showclasstemp]$bqr[classid],16,0,0[/showclasstemp]
[ecmsinfo] $bqr[classid] ,14,30,1,0,27,0[/ecmsinfo]
[/e:loop]

循环出子栏目,还可循环子栏目里面的信息。
原出处:http://bbs.phome.net/ShowThread/?threadid=192775&forumid=31

You can follow any responses to this entry through the RSS 2.0 Both comments and pings are currently closed.