Added counter in award table for WAS and CQ.

这个提交包含在:
Andreas 2020-08-16 20:31:07 +02:00
父节点 03b25d00d5
当前提交 1f224d20e8
共有 2 个文件被更改,包括 7 次插入0 次删除

查看文件

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

查看文件

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