
效果图
<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>