帝国扩展main.php 添加未审核信息和未审核评论的统计

本文介绍了一个用于统计网站中未审核的信息和评论数量的系统。该系统通过查询数据库获取待审核的文章总数及评论数,并将其展示在后台管理界面,以便管理员进行后续审核工作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

帝国扩展main.php 添加未审核信息和未审核评论的统计 - 加菲 - 加菲猫

 

效果图

<tr>
<td height=20>
</td>
</tr>
<tr>
<td>

 <?
 //未审核信息
 $noshnum = 0;
 $tbsql=$empire->query("select tid,tbname,tname from {$dbtbpre}enewstable");
 while($tbr=$empire->fetch($tbsql))
 {
         $num =$empire->fetch1("select count(*) as total from {$dbtbpre}ecms_$tbr[tbname] where checked=0");
         $noshnum +=$num[total];
 }
 
 ?>


 <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
 <tr class="header">
 <td height="30">未审核信息(扩展此处 main.php 2012-05-29 23:13)</td>
 </tr>
 <tr>
 <td bgcolor="#FFFFFF">
  <table border="0" width="100%" id="table2">
  <tr>
  <td width="80" height="30">未审核信息:</td>
  <td align="left"><a href="ListAllInfo.php?showspecial=4&sear=1"><font color="#FF0000"><strong><?=$noshnum?></strong></font></a> 条</td>
  </tr>
  <?
  //未审核评论
  $num111=0;
         $num111 =$empire->gettotal("select count(*) as total from {$dbtbpre}enewspl where checked=1");
  ?>
  <tr>
  <td height="30">未审核评论:</td>
  <td align="left"><a href="pl/ListAllPl.php"><font color="#FF0000"><strong><?=$num111?></strong></font></a> 条</td>
  </tr>
  </table>
 </td>
 </tr>
 </table>

</td>
</tr>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值