Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 1341

Přidáno uživatelem Michal Kliment před více než 12 roky(ů)

Commit snad milionu veci. Prepsano zobrazeni provozu clena/clenu/ip adres i samotne ziskavani dat - vse resi jedina MySQL funkce, kterou vola primo ulogd server, Freenetis jiz nic nepocita. Pridana podpora lokalnich podsiti pro mereni spotrebu lokalni (tj. ceske) a zahranicni konektivity. Pridana platebni kalkulacka. Vylepseny filtry, pridana moznost jednoduchych OR podminek a moznost ukladat dotazy. Pridana podpora popup jQuery dialogu ve snaze zprijemnit praci se systemem.

Zobrazit rozdíly:

freenetis/branches/testing/application/views/ulogd/show_all.php
<h2><?php echo $headline ?></h2>
<ul class="tabs">
<?php foreach ($this->sections as $section => $name): ?>
<li<?php echo ($current == $section) ? ' class="current"' : '' ?>><a href="<?php echo url_lang::base().'ulogd/'.$section ?>"><?php echo $name ?></a></li>
<?php endforeach; ?>
</ul>
<?php echo (isset($text)) ? "$text<br /><br />" : "" ?>
<?php echo $grid ?>
freenetis/branches/testing/application/views/ulogd/show_by_member.php
<script type="text/javascript"><!--
<?php if ($total_traffics > 1): ?>
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(function ()
{
var data = new google.visualization.DataTable();
data.addColumn("string", "Traffic");
data.addColumn("number", "Upload (<?php echo __('in') ?> <?php echo Ulogd_Controller::$units[$current_unit_id] ?>)");
data.addColumn("number", "Download (<?php echo __('in') ?> <?php echo Ulogd_Controller::$units[$current_unit_id] ?>)");
data.addRows([<?php echo $js_data_array_str ?>]);
var chart = new google.visualization.AreaChart(document.getElementById("chart"));
chart.draw(data, {
width: 700,
height: 640,
title: "<?php echo __('Graph of transmitted data of member') ?>",
hAxis: {title: "<?php echo htmlspecialchars($title) ?>"},
vAxis: {title: "Data (<?php echo __('in') ?> <?php echo Ulogd_Controller::$units[$current_unit_id] ?>)", format:"#,###"}
});
});
<?php endif ?>
$(document).ready(function()
{
$("#type").parent().parent().parent().parent().parent().children("button").hide();
$("#type").change(function()
{
$("#type").parent().parent().parent().parent().parent().submit();
});
});
--></script>
<h2><?php echo __('Traffic of member') ?> <?php echo $member->name ?></h2><br />
<div id="chart"></div>
<?php echo $form ?><br />
<?php echo $grid ?><br /><br />
freenetis/branches/testing/application/views/traffic/show.php
<h2><?php echo $headline ?></h2>
<ul class="tabs">
<?php foreach ($this->sections as $url => $name): ?>
<li<?php echo ($url == url_lang::base().url_lang::current(2)) ? ' class="current"' : '' ?>><a href="<?php echo $url ?>"><?php echo $name ?></a></li>
<?php endforeach; ?>
</ul>
<div class="clear"></div>
<?php echo (isset($text)) ? "$text<br /><br />" : "" ?>
<?php echo $grid ?>
freenetis/branches/testing/application/views/traffic/show_by_member.php
<script type="text/javascript"><!--
<?php if ($total_traffics > 1): ?>
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(function ()
{
var data = new google.visualization.DataTable();
data.addColumn("string", "Traffic");
data.addColumn("number", "<?php echo __('Total upload') ?> (<?php echo __('in') ?> <?php echo Traffic_Controller::$units[$current_unit_id] ?>)");
data.addColumn("number", "<?php echo __('Total download') ?> (<?php echo __('in') ?> <?php echo Traffic_Controller::$units[$current_unit_id] ?>)");
data.addColumn("number", "<?php echo __('Local upload') ?> (<?php echo __('in') ?> <?php echo Traffic_Controller::$units[$current_unit_id] ?>)");
data.addColumn("number", "<?php echo __('Local download') ?> (<?php echo __('in') ?> <?php echo Traffic_Controller::$units[$current_unit_id] ?>)");
data.addColumn("number", "<?php echo __('Foreign upload') ?> (<?php echo __('in') ?> <?php echo Traffic_Controller::$units[$current_unit_id] ?>)");
data.addColumn("number", "<?php echo __('Foreign download') ?> (<?php echo __('in') ?> <?php echo Traffic_Controller::$units[$current_unit_id] ?>)");
data.addRows([<?php echo $js_data_array_str ?>]);
var chart = new google.visualization.AreaChart(document.getElementById("chart"));
chart.draw(data, {
width: 700,
height: 640,
title: "<?php echo __('Graph of transmitted data of member') ?>",
hAxis: {title: "<?php echo htmlspecialchars($title) ?>"},
vAxis: {title: "Data (<?php echo __('in') ?> <?php echo Traffic_Controller::$units[$current_unit_id] ?>)", format:"#,###"}
});
});
<?php endif ?>
$(document).ready(function()
{
$("#type").parent().parent().parent().parent().parent().children("button").hide();
$("#type").change(function()
{
$("#type").parent().parent().parent().parent().parent().submit();
});
});
--></script>
<h2><?php echo __('Traffic of member') ?> <?php echo $member->name ?></h2><br />
<div id="chart"></div>
<?php echo $form ?><br />
<?php echo $grid ?><br /><br />
freenetis/branches/testing/application/views/traffic/show_all.php
<script type="text/javascript"><!--
<?php if ($total_traffics > 1): ?>
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(function ()
{
var data = new google.visualization.DataTable();
data.addColumn("string", "Traffic");
data.addColumn("number", "<?php echo __('Total upload') ?> (<?php echo __('in') ?> <?php echo Traffic_Controller::$units[$current_unit_id] ?>)");
data.addColumn("number", "<?php echo __('Total download') ?> (<?php echo __('in') ?> <?php echo Traffic_Controller::$units[$current_unit_id] ?>)");
data.addColumn("number", "<?php echo __('Local upload') ?> (<?php echo __('in') ?> <?php echo Traffic_Controller::$units[$current_unit_id] ?>)");
data.addColumn("number", "<?php echo __('Local download') ?> (<?php echo __('in') ?> <?php echo Traffic_Controller::$units[$current_unit_id] ?>)");
data.addColumn("number", "<?php echo __('Foreign upload') ?> (<?php echo __('in') ?> <?php echo Traffic_Controller::$units[$current_unit_id] ?>)");
data.addColumn("number", "<?php echo __('Foreign download') ?> (<?php echo __('in') ?> <?php echo Traffic_Controller::$units[$current_unit_id] ?>)");
data.addRows([<?php echo $total_js_data_array_str ?>]);
var total_chart = new google.visualization.AreaChart(document.getElementById("total_chart"));
total_chart.draw(data, {
width: 700,
height: 640,
title: "<?php echo __('Graph of transmitted data of all members') ?>",
hAxis: {title: "<?php echo htmlspecialchars($title) ?>"},
vAxis: {title: "Data (<?php echo __('in') ?> <?php echo Traffic_Controller::$units[$current_unit_id] ?>)", format:"#,###"}
});
});
<?php endif ?>
--></script>
<h2><?php echo $title ?></h2><br />
<ul class="tabs">
<?php foreach ($this->sections as $url => $name): ?>
<li<?php echo ($url == url_lang::base().url_lang::current(2)) ? ' class="current"' : '' ?>><a href="<?php echo $url ?>"><?php echo $name ?></a></li>
<?php endforeach; ?>
</ul>
<div class="clear"></div>
<div id="total_chart"></div>
<?php echo $form ?><br />
<?php echo $grid ?><br /><br />

Také k dispozici: Unified diff