易仿帝国yfdiguo.com

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

帝国CMS会员中心首页调用各系统模型内容的方法

zcmcss发表于2017-12-11问题库
本文主要讲解如何利用灵动标签在帝国CMS的会员中心首页调用各系统模型的内容

打开 e/space/template/default/index.temp.php 文件,在需要显示信息的地方加下面代码
 
<?php
$spacesql=$empire->query("select * from phome(表前缀)_ecms_表 where userid='$userid' and ismember=1 order by newstime desc limit 10");
while($spacer=$empire->fetch($spacesql))
{
$titleurl=sys_ReturnBqTitleLink($spacer);//链接
?>
<a href="<?=$titleurl?>"><?=$spacer[title]?></a><br>
<?php
}
?>


注意:表改成要调用的数据表名称,表前缀修改为您数据库的表前缀

热门问题

©2017 易仿帝国yfdiguo.com


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