Subversion Repositories ALCASAR

Rev

Rev 2809 | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
2809 rexy 1
    <div class="container">
2
        <ul class="nav nav-tabs" id="tableTab" role="tablist">
3106 rexy 3
            {if $jsonVersion gt 1}
4
                <li class="nav-item">
5
                    <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>
6
                </li> 
7
                <li class="nav-item">
8
                    <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>
9
                </li>
10
                {else}
11
                <li class="nav-item">
12
                    <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>
13
                </li>
14
            {/if}
2809 rexy 15
            <li class="nav-item">
16
                <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>
17
            </li>
18
            <li class="nav-item">
19
                <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>
20
            </li>
21
            <li class="nav-item">
22
                <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>
23
            </li>
24
        </ul>
25
 
26
        <div class="tab-content" id="tableTabContent">
3106 rexy 27
            {if $jsonVersion gt 1}
28
            <div class="tab-pane fade show active" id="five-table" role="tabpanel" aria-labelledby="five-table-tab">
29
                <table class="table table-bordered">
30
                    <thead>
31
                        <tr>
32
                            <th>Time</th>
33
                            <th>Received</th>
34
                            <th>Sent</th>
35
                            <th>Total</th>
36
                        </tr>
37
                    </thead>
38
                    <tbody>
39
{foreach from=$fiveTableData key=key item=value}
40
                        <tr>
41
                            <td>{$value.label}</td>
42
                            <td>{$value.rx}</td>
43
                            <td>{$value.tx}</td>
44
                            <td>{$value.total}</td>
45
                        </tr>
46
{/foreach}
47
                    </tbody>
48
                </table>
49
            </div>
50
 
51
            <div class="tab-pane fade" id="hourly-table" role="tabpanel" aria-labelledby="hourly-table-tab">
52
            {else}
2809 rexy 53
            <div class="tab-pane fade show active" id="hourly-table" role="tabpanel" aria-labelledby="hourly-table-tab">
3106 rexy 54
            {/if}
2809 rexy 55
                <table class="table table-bordered">
56
                    <thead>
57
                        <tr>
58
                            <th>Hour</th>
59
                            <th>Received</th>
60
                            <th>Sent</th>
61
                            <th>Total</th>
62
                        </tr>
63
                    </thead>
64
                    <tbody>
65
{foreach from=$hourlyTableData key=key item=value}
66
                        <tr>
67
                            <td>{$value.label}</td>
68
                            <td>{$value.rx}</td>
69
                            <td>{$value.tx}</td>
70
                            <td>{$value.total}</td>
71
                        </tr>
72
{/foreach}
73
                    </tbody>
74
                </table>
75
            </div>
76
 
77
            <div class="tab-pane fade" id="daily-table" role="tabpanel" aria-labelledby="daily-table-tab">
78
                <table class="table table-bordered">
79
                    <thead>
80
                        <tr>
81
                            <th>Day</th>
82
                            <th>Received</th>
83
                            <th>Sent</th>
84
                            <th>Total</th>
85
                        </tr>
86
                    </thead>
87
                    <tbody>
88
{foreach from=$dailyTableData key=key item=value}
89
                        <tr>
90
                            <td>{$value.label}</td>
91
                            <td>{$value.rx}</td>
92
                            <td>{$value.tx}</td>
93
                            <td>{$value.total}</td>
94
                        </tr>
95
{/foreach}
96
                    </tbody>
97
                </table>
98
            </div>
99
 
100
            <div class="tab-pane fade" id="monthly-table" role="tabpanel" aria-labelledby="monthly-table-tab">
101
                <table class="table table-bordered">
102
                    <thead>
103
                        <tr>
104
                            <th>Month</th>
105
                            <th>Received</th>
106
                            <th>Sent</th>
107
                            <th>Total</th>
108
                        </tr>
109
                    </thead>
110
                    <tbody>
111
{foreach from=$monthlyTableData key=key item=value}
112
                        <tr>
113
                            <td>{$value.label}</td>
114
                            <td>{$value.rx}</td>
115
                            <td>{$value.tx}</td>
116
                            <td>{$value.total}</td>
117
                        </tr>
118
{/foreach}
119
                    </tbody>
120
                </table>
121
            </div>
122
 
123
            <div class="tab-pane fade" id="top10-table" role="tabpanel" aria-labelledby="top10-table-tab">
124
                <table class="table table-bordered">
125
                    <thead>
126
                        <tr>
127
                            <th>Day</th>
128
                            <th>Received</th>
129
                            <th>Sent</th>
130
                            <th>Total</th>
131
                        </tr>
132
                    </thead>
133
                    <tbody>
134
{foreach from=$top10TableData key=key item=value}
135
                        <tr>
136
                            <td>{$value.label}</td>
137
                            <td>{$value.rx}</td>
138
                            <td>{$value.tx}</td>
139
                            <td>{$value.total}</td>
140
                        </tr>
141
{/foreach}
142
                    </tbody>
143
                </table>
144
            </div>
145
        </div>
146
    </div>