3.6 应用举例 调用父栏目


avatar
pcwnas 2022-10-04 214

调用父栏目 自定义字段

[e:loop={"select * from [!db.pre!]enewsclass where bclassid = '".$class_r[$GLOBALS[navclassid]][bclassid]."' order by classid desc limit 1",1,24,0}]
<a href="<?=ReturnClassAddField($bqr[bclassid],mblink)?>" target="_blank">
[/e:loop][!--bclass.name--]</a>

调用上级父栏目简介

[e:loop={"select * from   [!db.pre!]enewsclass where classid='".$class_r[$GLOBALS[navclassid]][bclassid]."'",1,24,0}]
<div class="node-logo"><img src="<?=$bqr[classimg]?>"></div>
<div class="node-desc">
<div class="node-head">[!--bclass.name--]</div>
<div class="node-body"><?=$bqr[intro]?></div>
</div>
[/e:loop]

暂无评论

当前仅支持登录后发布评论