帝国首页调用全站最新5条评论

 

代码如下:

<ul>
[e:loop={"select * from {$dbtbpre}enewspl_1 order by saytime limit 5",0,24,0}]
<?php
$myid=$bqr['userid'];
$myid2=$bqr['id'];
$member=$empire->fetch1("select userpic from phome_enewsmemberadd where userid='$myid'");
$mytitle=$empire->fetch1("select titleurl,title from phome_ecms_news where id='$myid2'");
?>
     <li class="clr">
           <div class="top">
                  <div class="img">
                          <a  href="<?=$bqr['newsurl']?>e/space/?userid=<?=$bqr[userid]?>" target="_blank">
                          <img src="<?=$member['userpic']?$member['userpic']:'/style/images/nopic.gif' ?>" width="46" height="46" />
                          </a>
                  </div>
                  <div class="word">
                          <div class="name">
                          <?=$bqr['username']?>&nbsp;&nbsp;在&nbsp;&nbsp;<a  href="<?=$bqsr[classurl]?>"  target="_blank"><?=$bqsr[classname]?></a>&nbsp;&nbsp; 栏目&nbsp;&nbsp;<span>评论文章:</span>
                          </div>
                          <div class="title">
                          <a href="<?=$mytitle['titleurl']?>" target="_blank"><?=$mytitle['title']?></a>
                          </div>
                  </div>
         </div>
         <div class="btm">
                 <i class="pre"></i><?=$bqr['saytext']?><i class="nxt"></i>
         </div>
   </li>
[/e:loop]

本文摘自网络,不代表短经典网立场 https://www.duanjingdian.com/1088.html

上一篇 2024 年 9 月 19 日
下一篇 2024 年 9 月 23 日

相关推荐