Merge pull request #951 from AndreasK79/lba_qrzcom

[Advanced Logbook] Added qrz.com status
This commit is contained in:
Andreas Kristiansen
2024-09-16 08:17:49 +02:00
committed by GitHub
5 changed files with 82 additions and 1 deletions

View File

@@ -51,7 +51,8 @@
\"dok\":{\"show\":\"true\"},
\"wwff\":{\"show\":\"true\"},
\"sig\":{\"show\":\"true\"},
\"continent\":{\"show\":\"true\"}
\"continent\":{\"show\":\"true\"},
\"qrz\":{\"show\":\"true\"}
}";
}
$current_opts = json_decode($options);
@@ -108,6 +109,10 @@
echo "\nvar o_template = { continent: {show: 'true'}};";
echo "\nuser_options={...user_options, ...o_template};";
}
if (!isset($current_opts->qrz)) {
echo "\nvar o_template = { qrz: {show: 'true'}};";
echo "\nuser_options={...user_options, ...o_template};";
}
foreach ($mapoptions as $mo) {
@@ -602,6 +607,9 @@ $options = json_decode($options);
} ?>
<?php if ($this->session->userdata('user_lotw_name') != "" && ($options->lotw->show ?? "true") == "true") {
echo '<th class="lotwconfirmation">LoTW</th>';
} ?>
<?php if (($options->qrz->show ?? "true") == "true") {
echo '<th class="qrz">' . __("QRZ") . '</th>';
} ?>
<?php if (($options->qslmsg->show ?? "true") == "true") {
echo '<th>' . __("QSL Msg") . '</th>';

View File

@@ -142,6 +142,10 @@
<td><?= __("Continent"); ?></td>
<td><div class="form-check"><input class="form-check-input" name="continent" type="checkbox" <?php if (($options->continent->show ?? "true") == "true") { echo 'checked'; } ?>></div></td>
</tr>
<tr>
<td><?= __("QRZ"); ?></td>
<td><div class="form-check"><input class="form-check-input" name="qrz" type="checkbox" <?php if (($options->qrz->show ?? "true") == "true") { echo 'checked'; } ?>></div></td>
</tr>
</tbody>
</table>
</div>