帝国CMS二次开发完成后效果
$totalquery="select count(*) as total from {$dbtbpre}enewspl_1".$a; $num=$empire->gettotal($totalquery); $query="select * from {$dbtbpre}enewspl_1".$a; $query.=" order by plid desc limit $offset,$line"; $sql=$empire->query($query); $returnpage=page1($num,$line,$page_line,$start,$page,$search);
<?php while($r=$empire->fetch($sql)){ $t1=$empire->query("select * from {$dbtbpre}ecms_news where id='$r[id]' and classid='$r[classid]' and userid='$user[userid]' order by '$sql1[saytime]' desc limit 8"); while($r11=$empire->fetch($t1)){ ?> <tr bgcolor="#FFFFFF"> <td height="25"> <p align="left"><a class="key_word" href="[!--news.url--]e/space/?userid=<?=$r[userid]?>" target="_blank"><?=$r[username]?></a> : <?=$r[saytext]?></p></td> <td height="25"> <p align="center"> <a class="key_word" href="<?=$r11[titleurl]?>" target="_blank"><?=$r11[title]?></a></p></td> <td height="25"> <p align="center"><?=date('Y-m-d H:i:s',$r[saytime])?></p></td> </tr> <?php }} ?>
版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!
转载请注明: 帝国CMS二次开发调用评论我的列表