
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>文档信息统计</title>
<link href="css_body.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="bodytitle">
	<div class="bodytitleleft"></div>
	<div class="bodytitletxt">文档维护</div>
</div>
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="	background:#E2F5BC;">
    <tr> 
      <td height="20" colspan="2" bgcolor="#EDF9D5">
      	<strong>　◆文档信息统计：</strong>      </td>
  </tr>
    <tr> 
      
    <td height="250" colspan="2" align="center" valign="top" bgcolor="#FFFFFF">
	 <table width="98%" border="0" cellspacing="0" cellpadding="0">
        <tr><td height="10"></td></tr>
      </table>
      <table width="98%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td><strong>综合信息统计：</strong></td>
          <td align="left"><table width="300" border="0" cellpadding="1" cellspacing="1" bgcolor="#996666">
              <tr bgcolor="#FFFFFF"> 
                <td width="140" bgcolor="#F3ECDA">&nbsp;文档总数：</td>
                <td width="152">　［<?php echo $row1['dd']?>］</td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td bgcolor="#F3ECDA">&nbsp;评论总数：</td>
                <td>　［<?php echo $row2['dd']?>］</td>
              </tr>
              <tr bgcolor="#FFFFFF"> 
                <td bgcolor="#F3ECDA">&nbsp;会员总数：</td>
                <td>　［<?php echo $row3['dd']?>］</td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td width="13%" height="80"><strong>频道信息统计：</strong></td>
          <td width="87%" align="left"><table width="98%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="10"></td>
              </tr>
            </table>
            <table width="300" border="0" cellpadding="1" cellspacing="1" bgcolor="#996666">
              <tr align="center" bgcolor="#E8E6D7"> 
                <td width="140" bgcolor="#E8E6D7">频道名称</td>
                <td>文档总数</td>
              </tr>
              <?php 
              $dsql->SetQuery("Select ID,typename From #@__channeltype");
              $dsql->Execute();
              while($row = $dsql->GetObject()){
              ?>
              <tr align="center" bgcolor="#FFFFFF"> 
                <td align="left">&nbsp;<?php echo $row->typename?></td>
                <td align="left">
                ［<?php 
                $row1 = $dsql->GetOne("Select count(*) as dd From #@__archives where channel='{$row->ID}'");
                echo $row1['dd'];
                ?>］                </td>
              </tr>
              <?php  } ?>
            </table></td>
        </tr>
      </table> 
      <table width="98%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="10"></td>
        </tr>
      </table></td>
    </tr>
    <tr> 
      
    <td height="20" colspan="2" bgcolor="#DFE9C0"></td>
    </tr>
</table>
</body>
</html>