Location: PHPKode > projects > D4WStatsLittle - Web Stats System > d4wstatslittle-web-stats-system/Install Without Using Dreamweaver/d4wstatslittle/report/reportes/paginas-mas-visitadas.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_REPORTS_MORE_VISITS; ?></h3>
</div>
<?php
 require "./menu.php";
 function backTrunc($url)
 {
     $uri = ''; // getStatsURI ();
    // $url = substr($url, strpos($url, $uri)+strlen($uri),500);
     if (strlen($url) > 50)
       $url = substr($url,0,50)."...";
     if ($url == "")
         $url = "/";
     return $url;
 }
 
 $report = readDatabaseII("report-pages.php");
 
 if ($report != '')
 { 

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

<table>
 <tr>
  <td>
   <table class="tableresume" width="600">
   <tr><td colspan="3" class="tdheadslow"><?php echo ST_MSG_FIRST_PAGE_MORE_HITS; ?></td></tr>
   <tr><td class="tdhead"><?php echo ST_MSG_PAGE; ?></td><td class="tdhead"><?php echo ST_MSG_PAGES; ?></td><td class="tdhead">%</td></tr>
   <?php
     $i = 0;
     $total = $report["day_h"];
     $total = $total / 100;
       
     foreach ($report["day"] as $item => $value)
     { 
         $i++;
         if ($i % 2 == 0)
             echo '<tr class="tr2">';
         else  
             echo '<tr class="tr1">';
         $item = /** 'http://'.getStatsURI ()."/". */ $item;
         echo '<td class="tdfield"><a rel="external"  href="'.($item).'">'.htmlentities(backTrunc($item)). '</a></td><td align="center">'.$value.'</td><td align="center">'.round($value/$total,2).'%</td></tr>';
     }
   
   ?>   
   </table>
  </td>
 </tr>  
</table> 

<table>
 <tr>
  <td>
   <table class="tableresume" width="600">
   <tr><td colspan="3" class="tdheadslow"><?php echo ST_MSG_FIRST_PAGE_MORE_HITS_MONTH; ?></td></tr>
   <tr><td><?php echo VP_UPGRADE; ?></td></tr>
   </table>
  </td>
 </tr>  
</table> 


<table>
 <tr>
  <td>
   <table class="tableresume" width="600">
   <tr><td colspan="3" class="tdheadslow"><?php echo ST_MSG_FIRST_PAGE_MORE_TOTALS; ?></td></tr>
   <tr><td><?php echo VP_UPGRADE; ?></td></tr>
   </table>
  </td>
 </tr>  
</table> 

<?php }  ?> 

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