Files
wavelog/application/views/statistics/satqsotable.php
2024-06-06 15:41:03 +02:00

31 lines
998 B
PHP

<?php
if ($qsoarray) {
echo '<br />
<table style="width:100%" class="satuniquetable table-sm table table-bordered table-hover table-striped table-condensed text-center">
<thead>';
echo '<tr><th></th>';
foreach($modes as $mode) {
echo '<th>' . $mode . '</th>';
}
echo '<th>'.__("Total").'</th>';
echo '</tr>
</thead>
<tbody>';
foreach ($qsoarray as $sat => $mode) {
echo '<tr><th>'. $sat .'</th>';
foreach ($mode as $singlemode) {
echo '<td>'.$singlemode.'</td>';
}
echo '<th>' . $sattotal[$sat] . '</th>';
echo '</tr>';
}
echo '</tbody><tfoot><tr><th>'.__("Total").'</th>';
$grandtotal=0;
foreach($modes as $mode) {
echo '<th>' . $modetotal[$mode] . '</th>';
$grandtotal += $modetotal[$mode];
}
echo '<th>' . $grandtotal . '</th>';
echo '</tr></tfoot></table>';
}