147 lines
6.1 KiB
Smarty
147 lines
6.1 KiB
Smarty
<div class="container">
|
|
<ul class="nav nav-tabs" id="tableTab" role="tablist">
|
|
{if $jsonVersion gt 1}
|
|
<li class="nav-item">
|
|
<a class="nav-link active" id="five-table-tab" data-toggle="tab" href="#five-table" role="tab" aria-controls="five-table" aria-selected="true">Five Minute</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" id="hourly-table-tab" data-toggle="tab" href="#hourly-table" role="tab" aria-controls="hourly-table" aria-selected="false">Hourly</a>
|
|
</li>
|
|
{else}
|
|
<li class="nav-item">
|
|
<a class="nav-link active" id="hourly-table-tab" data-toggle="tab" href="#hourly-table" role="tab" aria-controls="hourly-table" aria-selected="true">Hourly</a>
|
|
</li>
|
|
{/if}
|
|
<li class="nav-item">
|
|
<a class="nav-link" id="daily-table-tab" data-toggle="tab" href="#daily-table" role="tab" aria-controls="daily-table" aria-selected="false">Daily</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" id="monthly-table-tab" data-toggle="tab" href="#monthly-table" role="tab" aria-controls="monthly-table" aria-selected="false">Monthly</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" id="top10-table-tab" data-toggle="tab" href="#top10-table" role="tab" aria-controls="top10-table" aria-selected="false">Top 10</a>
|
|
</li>
|
|
</ul>
|
|
|
|
<div class="tab-content" id="tableTabContent">
|
|
{if $jsonVersion gt 1}
|
|
<div class="tab-pane fade show active" id="five-table" role="tabpanel" aria-labelledby="five-table-tab">
|
|
<table class="table table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>Time</th>
|
|
<th>Received</th>
|
|
<th>Sent</th>
|
|
<th>Total</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{foreach from=$fiveTableData key=key item=value}
|
|
<tr>
|
|
<td>{$value.label}</td>
|
|
<td>{$value.rx}</td>
|
|
<td>{$value.tx}</td>
|
|
<td>{$value.total}</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tab-pane fade" id="hourly-table" role="tabpanel" aria-labelledby="hourly-table-tab">
|
|
{else}
|
|
<div class="tab-pane fade show active" id="hourly-table" role="tabpanel" aria-labelledby="hourly-table-tab">
|
|
{/if}
|
|
<table class="table table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>Hour</th>
|
|
<th>Received</th>
|
|
<th>Sent</th>
|
|
<th>Total</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{foreach from=$hourlyTableData key=key item=value}
|
|
<tr>
|
|
<td>{$value.label}</td>
|
|
<td>{$value.rx}</td>
|
|
<td>{$value.tx}</td>
|
|
<td>{$value.total}</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tab-pane fade" id="daily-table" role="tabpanel" aria-labelledby="daily-table-tab">
|
|
<table class="table table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>Day</th>
|
|
<th>Received</th>
|
|
<th>Sent</th>
|
|
<th>Total</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{foreach from=$dailyTableData key=key item=value}
|
|
<tr>
|
|
<td>{$value.label}</td>
|
|
<td>{$value.rx}</td>
|
|
<td>{$value.tx}</td>
|
|
<td>{$value.total}</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tab-pane fade" id="monthly-table" role="tabpanel" aria-labelledby="monthly-table-tab">
|
|
<table class="table table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>Month</th>
|
|
<th>Received</th>
|
|
<th>Sent</th>
|
|
<th>Total</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{foreach from=$monthlyTableData key=key item=value}
|
|
<tr>
|
|
<td>{$value.label}</td>
|
|
<td>{$value.rx}</td>
|
|
<td>{$value.tx}</td>
|
|
<td>{$value.total}</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tab-pane fade" id="top10-table" role="tabpanel" aria-labelledby="top10-table-tab">
|
|
<table class="table table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>Day</th>
|
|
<th>Received</th>
|
|
<th>Sent</th>
|
|
<th>Total</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{foreach from=$top10TableData key=key item=value}
|
|
<tr>
|
|
<td>{$value.label}</td>
|
|
<td>{$value.rx}</td>
|
|
<td>{$value.tx}</td>
|
|
<td>{$value.total}</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|