首页  :: 新随笔  :: 管理

帝国CMS 列表模版显示新闻正文

Posted on 2011-09-23 11:27  季枫  阅读(1536)  评论(0编辑  收藏  举报

页面模板内容(*):

 

        <!----新闻内容 ---------->
        <div class="content ">
         [!--empirenews.listtemp--]
                <!--list.var1-->

        [!--empirenews.listtemp--]  
              <!----新闻内容 ---------->

 

列表内容模板(list.var) (*):

 

$fr=$empire->fetch1("select newstext from ".$dbtbpre."ecms_news_data_{$r[stb]} where id='$r[id]'"); 
$listtemp='<div class="ico_title">[!--title--]</div><BR/>  [!--smalltext--]  <br/> '.$fr[newstext];

 

详见:帝国CMS 6.0功能解密之模板list.var支持程序代码
智读 | 成都会领科技有限公司官网 | 智读App下载 | 每天听本书的博客 | |