帝国CMS 灵动标签调用当前栏目下的所有子栏目

admin 2024年1月16日16:45:05帝国cms技巧评论1,186 次浏览阅读模式

内容摘要

<? $bclassid = $class_r[$GLOBALS[navclassid]][bclassid]; //获取当前父栏目ID ?>
[e:loop={"select classid,classname,classpath from [!db.pre!]enewsclass where bcla

文章正文

<? $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]

代码注释

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2024年1月16日16:45:05
  • 转载请务必保留本文链接:https://anyun.org/a/webtips/ecmstips/2024/0116/17886.html

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: