<?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_SCREEN_RESOLUTION; ?></h3>
</div>
<?php
require "./menu.php";
function transCk ($value)
{
if ($value == 'x')
return ST_MSG_UNKNOWN;
else
return $value;
}
$report = readDatabaseII("report-screen.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_SCREEN_RESOLUTION_TODAY; ?></td></tr>
<tr><td class="tdhead"><?php echo ST_MSG_RESOLUTION; ?></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;
$total = $total / 100;
foreach ($report["day"] as $item => $value)
{
$i++;
if ($i % 2 == 0)
echo '<tr class="tr2">';
else
echo '<tr class="tr1">';
$content2 [$i-1]['name']=transCk($item);
$content2 [$i-1]['value']= round($value/$total,2);
$content2 [$i-1]['color']= $color[($i-1) % 16][0];
if ($item=="x")
$item = ST_MSG_UNKNOWN;
echo '<td class="tdfield">'.transCk($item). '</td><td align="center">'.$value.'</td><td align="center">'.round($value/$total,2).'%</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:30px;\">".ChartPie($content2, 100,'','','')."</td></tr>";
}
?>
</table>
</td>
</tr>
</table>
<table>
<tr>
<td>
<table class="tableresume" width="600">
<tr><td colspan="3" class="tdheadslow"><?php echo ST_MSG_SCREEN_RESOLUTION_MONTH; ?></td></tr>
<?php echo '<tr><td>'.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_SCREEN_RESOLUTION_TOTALS; ?></td></tr>
<?php echo '<tr><td>'.VP_UPGRADE.'</td></tr>'; ?>
</table>
</td>
</tr>
</table>
<?php } ?>
</div>