2809 |
rexy |
1 |
<?php
|
|
|
2 |
/* Smarty version 3.1.34-dev-7, created on 2020-04-11 17:23:34
|
|
|
3 |
from '/var/www/html/acc/manager/vnstat/templates/module_table.tpl' */
|
|
|
4 |
|
|
|
5 |
/* @var Smarty_Internal_Template $_smarty_tpl */
|
|
|
6 |
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
|
|
7 |
'version' => '3.1.34-dev-7',
|
|
|
8 |
'unifunc' => 'content_5e91ef0683e7a5_23211614',
|
|
|
9 |
'has_nocache_code' => false,
|
|
|
10 |
'file_dependency' =>
|
|
|
11 |
array (
|
|
|
12 |
'2f5e32e2f04fabdfea23a29aa98d7ff7e7a2fbf4' =>
|
|
|
13 |
array (
|
|
|
14 |
|
|
|
15 |
1 => 1586598464,
|
|
|
16 |
2 => 'file',
|
|
|
17 |
),
|
|
|
18 |
),
|
|
|
19 |
'includes' =>
|
|
|
20 |
array (
|
|
|
21 |
),
|
|
|
22 |
),false)) {
|
|
|
23 |
function content_5e91ef0683e7a5_23211614 (Smarty_Internal_Template $_smarty_tpl) {
|
|
|
24 |
?> <div class="container">
|
|
|
25 |
<ul class="nav nav-tabs" id="tableTab" role="tablist">
|
|
|
26 |
<li class="nav-item">
|
|
|
27 |
<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>
|
|
|
28 |
</li>
|
|
|
29 |
<li class="nav-item">
|
|
|
30 |
<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>
|
|
|
31 |
</li>
|
|
|
32 |
<li class="nav-item">
|
|
|
33 |
<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>
|
|
|
34 |
</li>
|
|
|
35 |
<li class="nav-item">
|
|
|
36 |
<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>
|
|
|
37 |
</li>
|
|
|
38 |
</ul>
|
|
|
39 |
|
|
|
40 |
<div class="tab-content" id="tableTabContent">
|
|
|
41 |
<div class="tab-pane fade show active" id="hourly-table" role="tabpanel" aria-labelledby="hourly-table-tab">
|
|
|
42 |
<table class="table table-bordered">
|
|
|
43 |
<thead>
|
|
|
44 |
<tr>
|
|
|
45 |
<th>Hour</th>
|
|
|
46 |
<th>Received</th>
|
|
|
47 |
<th>Sent</th>
|
|
|
48 |
<th>Total</th>
|
|
|
49 |
</tr>
|
|
|
50 |
</thead>
|
|
|
51 |
<tbody>
|
|
|
52 |
<?php
|
|
|
53 |
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['hourlyTableData']->value, 'value', false, 'key');
|
|
|
54 |
$_smarty_tpl->tpl_vars['value']->do_else = true;
|
|
|
55 |
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['value']->value) {
|
|
|
56 |
$_smarty_tpl->tpl_vars['value']->do_else = false;
|
|
|
57 |
?>
|
|
|
58 |
<tr>
|
|
|
59 |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['label'];?>
|
|
|
60 |
</td>
|
|
|
61 |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['rx'];?>
|
|
|
62 |
</td>
|
|
|
63 |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['tx'];?>
|
|
|
64 |
</td>
|
|
|
65 |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['total'];?>
|
|
|
66 |
</td>
|
|
|
67 |
</tr>
|
|
|
68 |
<?php
|
|
|
69 |
}
|
|
|
70 |
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
|
|
71 |
</tbody>
|
|
|
72 |
</table>
|
|
|
73 |
</div>
|
|
|
74 |
|
|
|
75 |
<div class="tab-pane fade" id="daily-table" role="tabpanel" aria-labelledby="daily-table-tab">
|
|
|
76 |
<table class="table table-bordered">
|
|
|
77 |
<thead>
|
|
|
78 |
<tr>
|
|
|
79 |
<th>Day</th>
|
|
|
80 |
<th>Received</th>
|
|
|
81 |
<th>Sent</th>
|
|
|
82 |
<th>Total</th>
|
|
|
83 |
</tr>
|
|
|
84 |
</thead>
|
|
|
85 |
<tbody>
|
|
|
86 |
<?php
|
|
|
87 |
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['dailyTableData']->value, 'value', false, 'key');
|
|
|
88 |
$_smarty_tpl->tpl_vars['value']->do_else = true;
|
|
|
89 |
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['value']->value) {
|
|
|
90 |
$_smarty_tpl->tpl_vars['value']->do_else = false;
|
|
|
91 |
?>
|
|
|
92 |
<tr>
|
|
|
93 |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['label'];?>
|
|
|
94 |
</td>
|
|
|
95 |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['rx'];?>
|
|
|
96 |
</td>
|
|
|
97 |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['tx'];?>
|
|
|
98 |
</td>
|
|
|
99 |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['total'];?>
|
|
|
100 |
</td>
|
|
|
101 |
</tr>
|
|
|
102 |
<?php
|
|
|
103 |
}
|
|
|
104 |
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
|
|
105 |
</tbody>
|
|
|
106 |
</table>
|
|
|
107 |
</div>
|
|
|
108 |
|
|
|
109 |
<div class="tab-pane fade" id="monthly-table" role="tabpanel" aria-labelledby="monthly-table-tab">
|
|
|
110 |
<table class="table table-bordered">
|
|
|
111 |
<thead>
|
|
|
112 |
<tr>
|
|
|
113 |
<th>Month</th>
|
|
|
114 |
<th>Received</th>
|
|
|
115 |
<th>Sent</th>
|
|
|
116 |
<th>Total</th>
|
|
|
117 |
</tr>
|
|
|
118 |
</thead>
|
|
|
119 |
<tbody>
|
|
|
120 |
<?php
|
|
|
121 |
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['monthlyTableData']->value, 'value', false, 'key');
|
|
|
122 |
$_smarty_tpl->tpl_vars['value']->do_else = true;
|
|
|
123 |
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['value']->value) {
|
|
|
124 |
$_smarty_tpl->tpl_vars['value']->do_else = false;
|
|
|
125 |
?>
|
|
|
126 |
<tr>
|
|
|
127 |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['label'];?>
|
|
|
128 |
</td>
|
|
|
129 |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['rx'];?>
|
|
|
130 |
</td>
|
|
|
131 |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['tx'];?>
|
|
|
132 |
</td>
|
|
|
133 |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['total'];?>
|
|
|
134 |
</td>
|
|
|
135 |
</tr>
|
|
|
136 |
<?php
|
|
|
137 |
}
|
|
|
138 |
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
|
|
139 |
</tbody>
|
|
|
140 |
</table>
|
|
|
141 |
</div>
|
|
|
142 |
|
|
|
143 |
<div class="tab-pane fade" id="top10-table" role="tabpanel" aria-labelledby="top10-table-tab">
|
|
|
144 |
<table class="table table-bordered">
|
|
|
145 |
<thead>
|
|
|
146 |
<tr>
|
|
|
147 |
<th>Day</th>
|
|
|
148 |
<th>Received</th>
|
|
|
149 |
<th>Sent</th>
|
|
|
150 |
<th>Total</th>
|
|
|
151 |
</tr>
|
|
|
152 |
</thead>
|
|
|
153 |
<tbody>
|
|
|
154 |
<?php
|
|
|
155 |
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['top10TableData']->value, 'value', false, 'key');
|
|
|
156 |
$_smarty_tpl->tpl_vars['value']->do_else = true;
|
|
|
157 |
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['value']->value) {
|
|
|
158 |
$_smarty_tpl->tpl_vars['value']->do_else = false;
|
|
|
159 |
?>
|
|
|
160 |
<tr>
|
|
|
161 |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['label'];?>
|
|
|
162 |
</td>
|
|
|
163 |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['rx'];?>
|
|
|
164 |
</td>
|
|
|
165 |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['tx'];?>
|
|
|
166 |
</td>
|
|
|
167 |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['total'];?>
|
|
|
168 |
</td>
|
|
|
169 |
</tr>
|
|
|
170 |
<?php
|
|
|
171 |
}
|
|
|
172 |
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
|
|
173 |
</tbody>
|
|
|
174 |
</table>
|
|
|
175 |
</div>
|
|
|
176 |
</div>
|
|
|
177 |
</div>
|
|
|
178 |
<?php }
|
|
|
179 |
}
|