<?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_REFERERS_BY_DOMAINS; ?></h3>
</div>
<?php
require "./menu.php";
$report = readDatabaseII("report-domains.php");
if ($report != '')
{
arsort($report["day"]);
arsort($report["month"]);
arsort($report["total"]);
?>
<table style="margin-left:3px;" class="tableresume" width="604">
<tr><td class="tdhead" colspan="2"><?php echo ST_MSG_FIRSTS_REFERERS_DOMAIN_TODAY; ?></td><td class="tdhead"><?php echo ST_MSG_VISITS; ?></td></tr>
<?php
$i = -1;
foreach ($report["day"] as $item => $value)
{
$i++;
if ($i % 2 != 0)
echo '<tr class="tr2">';
else
echo '<tr class="tr1">';
if ($i==0)
$max = $value;
if ($i<51)
{
$count = $i;
$content [$i]= $value;
}
else
$count = 50;
echo "<td width=\"1%\" bgcolor=\"#".$color[($i) % 16][0]."\"> </td><td><a rel=\"external\" href=\"".($item)."\">".htmlentities(truncStr($item,60)). "</a></td><td align=\"center\">".$value."</td></tr>";
}
$width = $count * 5;
$width = 300;
if ($count>=1)
{
echo "<tr ><td colspan=\"4\" class=\"tdhead\" >".ST_MSG_GRAPHIC."</td></tr>";
echo "<tr class=\"tr1\"><td colspan=\"4\" style=\"padding-left:5px;\">".ChartColumn($content,$max,$count+1)."</td></tr>";
}
?>
</table>
<br /><br />
<table style="margin-left:3px;" class="tableresume" width="604">
<tr><td class="tdhead" colspan="2"><?php echo ST_MSG_FIRSTS_REFERERS_DOMAIN_MONTH; ?></td><td class="tdhead"><?php echo ST_MSG_VISITS; ?></td></tr>
<?php echo '<tr><td>'.VP_UPGRADE.'</td></tr>'; ?>
</table>
<br /><br />
<table style="margin-left:3px;" class="tableresume" width="604">
<tr><td class="tdhead" colspan="2"><?php echo ST_MSG_FIRSTS_REFERERS_DOMAIN_TOTAL; ?></td><td class="tdhead"><?php echo ST_MSG_VISITS; ?></td></tr>
<?php echo '<tr><td>'.VP_UPGRADE.'</td></tr>'; ?>
</table>
<?php } ?>
</div>