Work on Service Reports
This commit is contained in:
35
modules/adsl/views/service/admin/adslstat.php
Normal file
35
modules/adsl/views/service/admin/adslstat.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<table class="table table-striped table-condensed table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Speed</th>
|
||||
<th>#</th>
|
||||
<th><small>%</small></th>
|
||||
<?php foreach ($traffic as $i) : ?>
|
||||
<th><?php echo $i; ?></th>
|
||||
<th><small>%</small></th>
|
||||
<?php endforeach ?>
|
||||
<th>Other</th>
|
||||
<th><small>%</small></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php foreach ($stats as $speed => $details) : ?>
|
||||
<tr>
|
||||
<td><?php echo $speed; ?></td>
|
||||
<td><?php echo $details['c']; ?></td>
|
||||
<td><small><?php printf('%2.1f',$details['c']/$ts*100); ?></small></td>
|
||||
|
||||
<?php foreach ($traffic as $i) : ?>
|
||||
<td><?php echo $c=isset($details['d'][$i]) ? $details['d'][$i] : 0; ?></td>
|
||||
<td><small><?php printf('%2.1f',$c/$details['c']*100); ?></small></td>
|
||||
<?php endforeach ?>
|
||||
|
||||
<td><?php echo $c=isset($details['d'][0]) ? $details['d'][0] : 0; ?></td>
|
||||
<td><small><?php printf('%2.1f',$c/$details['c']*100); ?></small></td>
|
||||
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
</tbody>
|
||||
|
||||
</table>
|
@@ -1 +0,0 @@
|
||||
<td><?php echo $count; ?></td><td><?php echo $percent; ?></td>
|
@@ -1 +0,0 @@
|
||||
</tr>
|
@@ -1,4 +0,0 @@
|
||||
<tr class="list-data">
|
||||
<td><?php echo $speed; ?></td>
|
||||
<td><?php echo $count; ?></td>
|
||||
<td><?php echo $percent; ?></td>
|
@@ -1 +0,0 @@
|
||||
</table>
|
@@ -1,3 +0,0 @@
|
||||
<table class="list-box-left">
|
||||
<tr class="list-head">
|
||||
<th><?php echo $name; ?></th>
|
@@ -1 +0,0 @@
|
||||
<th><?php echo $name; ?></th><th>%</th>
|
@@ -1 +0,0 @@
|
||||
</tr>
|
Reference in New Issue
Block a user