122 lines
4.9 KiB
XML

<!DOCTYPE html>
<html><head>
<meta charset="utf-8">
<title>SMEServer Mailstats</title>
<link rel='stylesheet' type='text/css' href='css/mailstats.css' />
<!-- Check links -->
<!--css here-->
</head>
<body>
<div class=maindiv>
<!---Navigation here-->
<div class='linksattop'>
<a class='prevlink' href='http://${SystemName}.${DomainName}/mailstats/mailstats_for_${PreviousDate}.html'>Previous</a>
<div class='divshowindex'><a class='showindex' href='http://${SystemName}.${DomainName}/mailstats/'>Index of files</a></div>
<a class='nextlink' href='http://${SystemName}.${DomainName}/mailstats/mailstats_for_${NextDate}.html'>Next</a></div> <!--format important here - used to insert see in browser for email -->
<br />
<h2>${structure:title}</h2>
<br />
<div class="headerpanel">
<div class = "innerheaderpanel">
<!---Add in header information here -->
</div>
</div>
<br />
<br />
<!--Tabs -->
<div class="tab-container">
<div class="tab tab-active" data-index="0" >Table</div>
<div tal:condition="enable_graphs" class="tab" data-index="1">Line Graph</div>
<div tal:condition="enable_graphs" class="tab" data-index="2">Stacked Bar Graph</div>
<div tal:condition="enable_graphs" class="tab" data-index="3">Scatter Graph</div>
<div tal:condition="enable_graphs" class="tab" data-index="4">Pie Chart</div>
</div>
<div id="tab0" class="tab-content tab-content-active">
<div class = "maintable">
<table class="traffictable">
<thead>
<tr>
<th>Date/Time</th>
<th tal:repeat="header column_headers" tal:content="header">Header</th>
</tr>
</thead>
<tbody>
<tr tal:repeat="row array_2d" tal:attributes="class python: 'row-total' if repeat.row.index == 24 else 'row-percent' if repeat.row.index == 25 else None">
<td tal:condition="repeat.row.index == 24" tal:attributes="class python:'col-total'" tal:content="'TOTALS'">Totals</td>
<td tal:condition="repeat.row.index == 25" tal:attributes="class python:'col-percent'" tal:content="'PERCENT'">Percent</td>
<td tal:condition="repeat.row.index < 24" tal:content="string:${reporting_date}, ${repeat.row.index}">Hour</td>
<td tal:repeat="cell row" tal:attributes="class python: 'col-' + str(repeat.cell.index)">
<!-- Check if 'nolinks' is true. If not, generate links for rows 0 to 23 except 'PERCENT' column -->
<tal:case tal:condition="not: nolinks">
<tal:case tal:condition="repeat.row.index >= 0 and repeat.row.index < 24 and repeat.cell.index != 16">
<a tal:attributes="href string:./showSummaryLogs.php?date=${reporting_date}&hour=${repeat.row.index}">
<!-- Check if cell value is zero and print "" -->
<tal:case tal:condition="cell != 0" tal:content="cell">Cell</tal:case>
<tal:case tal:condition="cell == 0" tal:content="''">-</tal:case>
</a>
</tal:case>
<!-- For 'PERCENT' column or other rows, just display the cell content -->
<tal:case tal:condition="not (repeat.row.index >= 0 and repeat.row.index < 24 and repeat.cell.index != 16)">
<!-- Check if cell value is zero and print "" -->
<tal:case tal:condition="cell != 0" tal:content="cell">Cell</tal:case>
<tal:case tal:condition="cell == 0" tal:content="''">-</tal:case>
</tal:case>
</tal:case>
<tal:case tal:condition="nolinks">
<!-- Display cell content without link if 'nolinks' is true -->
<tal:case tal:condition="cell != 0" tal:content="cell">Cell</tal:case>
<tal:case tal:condition="cell == 0" tal:content="''">-</tal:case>
</tal:case>
</td>
</tr>
</tbody>
</table>
</div>
<div class = "subtables">
<div class="table-container">
<!---Add in sub tables here -->
</div>
</div>
</div>
<!-- Next Tab-->
<div tal:condition="enable_graphs" id="tab1" class="tab-content">
<img src="line_graph_${reporting_date}.png">
</div>
<!-- Next Tab-->
<div tal:condition="enable_graphs" id="tab2" class="tab-content">
<img src="bar_graph_${reporting_date}.png">
</div>
<!-- Next Tab-->
<div tal:condition="enable_graphs" id="tab3" class="tab-content">
<img src="scatter_graph_${reporting_date}.png">
</div>
<!-- Next Tab-->
<div tal:condition="enable_graphs" id="tab4" class="tab-content">
<img src="pie_chart_${reporting_date}.png">
</div>
<br />
<footer class="footer">${version}</footer>
<script type='text/javascript' src='js/mailstats.js' ></script>
<!--
<p class="cssvalid">
<a href="http://jigsaw.w3.org/css-validator/check/referer">
<img style="border:0;width:88px;height:31px"
src="http://jigsaw.w3.org/css-validator/images/vcss"
alt="Valid CSS!" />
</a>
</p>
<p class="htmlvalid">
<a href="https://validator.w3.org/check?uri=referer"><img
src="http://www.w3.org/Icons/valid-xhtml10"
alt="Valid XHTML 1.0!" height="31" width="88" /></a>
</p>
</div>
-->
</body>
</html>