帝国CMS灵动标签调用 标题+图片+摘要+时间+来源 的写法如下,具体样式与html结构请根据自身情况处理:

[e:loop={0,10,3,1,'','newstime DESC'}]
<?php
$fr=$empire->fetch1("select befrom from {$dbtbpre}ecms_news_data_{$bqr[stb]} where id='$bqr[id]'");
?>
<h1><a href="<?=$bqsr['titleurl']?>"><?=esub($bqr[title],48)?></a></h1>
<h2><a href="<?=$bqsr['titleurl']?>"><img src="<?=$bqr[titlepic]?>" alt="<?=$bqr['title']?>" /></a></h2>
<h3><?=esub($bqr[smalltext],160)?>...</h3>
<h4><?=date('Y-m-d',$bqr[newstime])?></h4>
<h5><?=$fr[befrom]?></h5>
[/e:loop]

觉得上面的内容有用吗?快来点个赞吧!

点赞() 我要打赏

温馨提示 : 本站内容来自会员投稿以及互联网,所有源码及教程均为作者总结编辑,请大家在使用过程中提前做好备份,以免发生无法预知的错误,源码类教程请勿直接用于生产环境!

 可能感兴趣的文章