您现在的位置是:首页 > 教程 > 帝国CMS教程帝国CMS教程

帝国CMS首页调用评论表信息用PHP以及灵动标签的方法

智烨2023-02-01 23:40:58帝国CMS教程已有人查阅

导读1、帝国CMS模板php调用评论时间+评论内容+文章地址,2、帝国CMS模板灵动标签调用评论时间+评论内容+文章地址,3、帝国CMS模板灵动标签调用评论时间+评论内容+评论地址

1、帝国CMS模板php调用评论时间+评论内容+文章地址

<?php$sql=$empire->query("select * from {$dbtbpre}enewspl_1 order by saytime limit 10"); while($r=$empire->fetch($sql))   //循环获取查询记录{echo "<li><span class='time'>".date('m-d',$r[saytime])."</span><a target=_blank href='/e/action/ShowInfo.php?classid=".$r['classid']."&id=".$r['id']."'>".$r['saytext']."</a></li>";}?>

2、帝国CMS模板灵动标签调用评论时间+评论内容+文章地址

[e:loop={"select * from {$dbtbpre}enewspl_1 order by saytime limit 10",0,24,0}]<li><span><?=date('Y-m-d',$bqr[saytime])?></span><a href="<?=$public_r[newsurl]?>e/action/ShowInfo.php?classid=<?=$bqr['classid']?>&id=<?=$bqr['id']?>" target="_blank"><?=$bqr['saytext']?></a> </li>[/e:loop]

3、帝国CMS模板灵动标签调用评论时间+评论内容+评论地址

[e:loop={"select * from {$dbtbpre}enewspl_1 order by saytime limit 10",0,24,0}]<li><span><?=date('Y-m-d',$bqr[saytime])?></span><a href="<?=$public_r[newsurl]?>e/pl/?classid=<?=$bqr['classid']?>&id=<?=$bqr['id']?>" target="_blank"><?=$bqr['saytext']?></a> </li>[/e:loop]

本文标签:

很赞哦! ()

留言与评论 (共有 条评论)
验证码:

相关标签