易仿帝国yfdiguo.com

您当前的位置:首页 > 问题库

帝国CMS列表模板或标签模板中调用副表字段内容的方法

zcmcss发表于2017-12-11问题库
列表模板中要调用副表字段内容需要采用“list.var支持程序代码”。
下面以读取新闻副表中的newstext字段为例的list.var模板代码:
$fr=$empire->fetch1("select newstext from {$dbtbpre}ecms_news_data_{$r[stb]} where id='$r[id]'");
$listtemp='<a href="[!---titleurl--]">[!---title--]</a> <br>副表内容字段:'.$fr[newstext].'<br><br>';

热门问题

©2017 易仿帝国yfdiguo.com


友情链接: 阿里云优惠网| 阿里云推荐码| 阿里云教程| 莫愁博客|
♥ www.yfdiguo.com
联系作者QQ: