Added counter in award table for WAS and CQ.

pull/576/head
Andreas 2020-08-16 20:31:07 +02:00
rodzic 03b25d00d5
commit 1f224d20e8
2 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -143,11 +143,13 @@
</fieldset>
</form>
<?php
$i = 1;
if ($cq_array) {
echo '
<table class="table table-bordered table-hover table-striped table-condensed text-center">
<thead>
<tr>
<td>#</td>
<td>CQ Zone</td>';
foreach($bands as $band) {
echo '<td>' . $band . '</td>';
@ -157,6 +159,7 @@
<tbody>';
foreach ($cq_array as $cq => $value) { // Fills the table with the data
echo '<tr>
<td>' . $i++ . '</td>
<td>'. $cq .'</td>';
foreach ($value as $key) {
echo '<td style="text-align: center">' . $key . '</td>';

Wyświetl plik

@ -69,10 +69,12 @@
</form>
<?php
if ($was_array) {
$i = 1;
echo '
<table class="table table-bordered table-hover table-striped table-condensed text-center">
<thead>
<tr>
<td>#</td>
<td>State</td>';
foreach($bands as $band) {
echo '<td>' . $band . '</td>';
@ -80,8 +82,10 @@
echo '</tr>
</thead>
<tbody>';
foreach ($was_array as $was => $value) { // Fills the table with the data
echo '<tr>
<td>' . $i++ . '</td>
<td>'. $was .'</td>';
foreach ($value as $key) {
echo '<td style="text-align: center">' . $key . '</td>';