
<!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">
      	<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"><?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>
        <tr> 
          <td height="194" valign="top"><strong><br>
            用户喜好文档：</strong></td>
          <td align="left" valign="top">
<table width="560" border="0" cellpadding="0" cellspacing="0">
              <tr valign="top"> 
                <td height="10" colspan="2"></td>
              </tr>
              <tr valign="top"> 
                <td width="280" height="201"> 
                  <table width="95%" border="0" cellpadding="2" cellspacing="1" bgcolor="#996666">
                    <tr> 
                      <td align="center" bgcolor="#F3ECDA"><strong>最热前二十篇文档</strong></td>
                    </tr>
                    <tr> 
                      <td height="200" align="right" valign="top" bgcolor="#FFFFFF"> 
                        <table width="98%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td align="left">
                              <?php GetArchives($dsql,'Hot')?>                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
                <td width="280"> 
                  <table width="95%" border="0" cellpadding="2" cellspacing="1" bgcolor="#996666">
                    <tr> 
                      <td align="center" bgcolor="#F3ECDA"><strong>最多评论前二十篇文档</strong></td>
                    </tr>
                    <tr> 
                      <td height="200" align="right" valign="top" bgcolor="#FFFFFF"> 
                        <table width="98%" border="0" cellspacing="0" cellpadding="0">
                          <tr> 
                            <td align="left">
                              <?php GetArchives($dsql,'Feedback')?>                            </td>
                          </tr>
                        </table> </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
            <table width="560" border="0" cellpadding="0" cellspacing="0">
              <tr valign="top"> 
                <td height="10" colspan="2"></td>
              </tr>
              <tr valign="top"> 
                <td width="280" height="201"> 
                  <table width="95%" border="0" cellpadding="2" cellspacing="1" bgcolor="#996666">
                    <tr> 
                      <td align="center" bgcolor="#E8E6D7"><strong>一个月内最热前二十篇文档</strong></td>
                    </tr>
                    <tr> 
                      <td height="200" align="right" valign="top" bgcolor="#FFFFFF"> 
                        <table width="98%" border="0" cellspacing="0" cellpadding="0">
                          <tr> 
                            <td align="left">
                              <?php GetArchives($dsql,'monthHot')?>                            </td>
                          </tr>
                        </table> </td>
                    </tr>
                  </table>
                </td>
                <td width="280"> 
                  <table width="95%" border="0" cellpadding="2" cellspacing="1" bgcolor="#996666">
                    <tr> 
                      <td align="center" bgcolor="#E8E6D7"><strong>一个月内最多评论前二十篇文档</strong></td>
                    </tr>
                    <tr> 
                      <td height="200" align="right" valign="top" bgcolor="#FFFFFF"> 
                        <table width="98%" border="0" cellspacing="0" cellpadding="0">
                          <tr> 
                            <td align="left">
                              <?php GetArchives($dsql,'monthFeedback')?>                            </td>
                          </tr>
                        </table> </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </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>