Location: PHPKode > projects > D4WStatsLittle - Web Stats System > d4wstatslittle-web-stats-system/Install Without Using Dreamweaver/d4wstatslittle/report/reportes/navegadores.inc.php
<?php
/*
+--------------------------------------------------------------------------
|   D4WStatsLittle v1.1.2 - Developers4Web Web Stats Software
|   ==========================================================
|   by Developers4Web.com
|	D4WStatsLittle is a Trade Mark of Developers4Web
|   Copyright Developers4Web 2005 - 2006. All rights reserved.
|   English:
|       http://stats-service.developers4web.com
|   Español:
|       http://www.developers4web.com
|   ========================================
|   optimized by Trio Solutions
|   Dreamweaver Extensions and Web Development Components 
|   English:
|       http://components.developers4web.com
|   Español:
|       http://componentes.developers4web.com
|   ========================================
|   Web: http://www.d4wstats.com
|   Date: Tuesday, February 20, 2006
|   Email: info (at) developers4web (dot) com
|	License Type: D4WSTATSLITTLE is NOT Open Source Software and Limitations Apply 
|   Licence Info: /d4wstatslittle/license.txt
+--------------------------------------------------------------------------
*/
?>
<div>
<div style="margin-bottom: 2px;color: #666666;">
<h3><?php echo ST_MSG_REPORT_BROWSERS; ?></h3>
</div>
<?php
 require "./menu.php";
 $report = readDatabaseII("report-browsers.php");
 if ($report != '')
 {

 arsort($report["day"]);
 arsort($report["month"]);
 arsort($report["total"]);
   
?>

<table>
 <tr>
  <td>
   <table class="tableresume" width="300">
   <tr><td colspan="4" class="tdheadslow"><?php echo ST_MSG_BROWSERS_HITS; ?></td></tr>
   <tr><td class="tdhead" colspan="2"><?php echo ST_MSG_BROWSERS; ?></td><td class="tdhead"><?php echo ST_MSG_PAGES; ?></td><td class="tdhead">%</td></tr>
   <?php
     $i = 0;
     $total = 0;
     foreach ($report["day"] as $item => $value)
         $total += $value['h'];
     $total = $total / 100;    
     foreach ($report["day"] as $item => $value)
     { 
         $i++;
         if ($i % 2 == 0)
             echo '<tr class="tr2">';
         else  
             echo '<tr class="tr1">';
         $percent = round($value['h']/$total,2);
         $content3 [$i-1]['name']= $item;
         $content3 [$i-1]['value']= $percent;
         $content3 [$i-1]['color']= $color[($i-1) % 16][0];    
         echo '<td width="1%" bgcolor="#'.$color[($i-1) % 16][0].'">&nbsp;</td><td class="tdfield">'.$item. '</td><td align="center">'.$value['h'].'</td><td align="center">'.$percent.'%</td></tr>';
     }
     if ($i!=0)
     {
         echo "<tr ><td colspan=\"4\" class=\"tdhead\" >".ST_MSG_GRAPHIC."</td></tr>";
         echo "<tr class=\"tr1\"><td colspan=\"4\"  style=\"padding-left:80px;\">".ChartPie($content3, 100,'','','')."</td></tr>";
     }
   ?>   
   </table>
  </td>
  <td valign="top"> 
 <table class="tableresume" width="300">
   <tr><td colspan="4" class="tdheadslow"><?php echo ST_MSG_BROWSERS_VISITS_TODAY; ?></td></tr>
   <tr><td class="tdhead" colspan="2"><?php echo ST_MSG_BROWSERS; ?></td><td class="tdhead"><?php echo ST_MSG_VISITS; ?></td><td class="tdhead">%</td></tr>
   <?php
     $i = 0;
     $total = 0;
     foreach ($report["day"] as $item => $value)
         $total += $value['vr'];
     $total = $total / 100;    
     foreach ($report["day"] as $item => $value)
     { 
         $i++;
         if ($i % 2 == 0)
             echo '<tr class="tr2">';
         else  
             echo '<tr class="tr1">';
         $percent = round($value['vr']/$total,2);
         $content3 [$i-1]['name']= $item;
         $content3 [$i-1]['value']= $percent;
         $content3 [$i-1]['color']= $color[($i-1) % 16][0];    
         echo '<td width="1%" bgcolor="#'.$color[($i-1) % 16][0].'">&nbsp;</td><td class="tdfield">'.$item. '</td><td align="center">'.$value['vr'].'</td><td align="center">'.$percent.'%</td></tr>';
     }
     if ($i!=0)
     {
         echo "<tr ><td colspan=\"4\" class=\"tdhead\" >".ST_MSG_GRAPHIC."</td></tr>";
         echo "<tr class=\"tr1\"><td colspan=\"4\"  style=\"padding-left:80px;\">".ChartPie($content3, 100,'','','')."</td></tr>";
     }
   ?>  
   </table>
  </td>
 </tr>  
</table> 

<table>
 <tr>
  <td>
   <table class="tableresume" width="300">
   <tr><td colspan="4" class="tdheadslow"><?php echo ST_MSG_BROWSERS_HITS_MONTH; ?></td></tr>
   <?php echo '<tr><td>'.VP_UPGRADE.'</td></tr>'; ?>
   </table>
  </td>
  <td valign="top"> 
 <table class="tableresume" width="300">
   <tr><td colspan="4" class="tdheadslow"><?php echo ST_MSG_BROWSERS_VISITS_MONTH; ?></td></tr>
   <?php echo '<tr><td>'.VP_UPGRADE.'</td></tr>'; ?>
   </table>
  </td>
 </tr>  
</table> 


<table>
 <tr>
  <td>
   <table class="tableresume" width="300">
   <tr><td colspan="4" class="tdheadslow"><?php echo ST_MSG_BROWSERS_HITS_TOTALS; ?></td></tr>
   <?php echo '<tr><td>'.VP_UPGRADE.'</td></tr>'; ?>
   </table>
  </td>
  <td valign="top"> 
 <table class="tableresume" width="300">
   <tr><td colspan="4" class="tdheadslow"><?php echo ST_MSG_BROWSERS_VISITS_TOTALS; ?></td></tr>
   <?php echo '<tr><td>'.VP_UPGRADE.'</td></tr>'; ?>
   </table>
  </td>
 </tr>  
</table> 

<?php }  ?> 

 </div>
Return current item: D4WStatsLittle - Web Stats System