mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Some cosmetics in DB tools UI
This commit is contained in:
@@ -31,12 +31,13 @@ function check_missing_distance($result) { ?>
|
||||
<?= __("Update all QSOs with the distance based on your gridsquare set in the station profile, and the gridsquare of the QSO partner. Distance will be calculated based on if short path or long path is set."); ?>
|
||||
<?= __("This is useful if you have imported QSOs without distance information."); ?><br /><br />
|
||||
<?= __("Update will only set the distance for QSOs where the distance is empty."); ?>
|
||||
<?php if ($result[0]->count > 0) { ?>
|
||||
<br />
|
||||
<button type="button" class="mt-2 btn btn-sm btn-primary ld-ext-right" id="updateDistanceButton" onclick="runUpdateDistancesFix('')">
|
||||
<?= __("Update now") ?><div class="ld ld-ring ld-spin"></div>
|
||||
</button>
|
||||
|
||||
<?php }
|
||||
<?php }
|
||||
}
|
||||
|
||||
function check_qsos_missing_continent($result) { ?>
|
||||
<h5><?= __("Continent Check Results") ?></h5>
|
||||
@@ -46,40 +47,47 @@ function check_qsos_missing_continent($result) { ?>
|
||||
<?= __("Update all QSOs with the continent based on the DXCC country of the QSO."); ?>
|
||||
<?= __("This is useful if you have imported QSOs without continent information."); ?><br /><br />
|
||||
<?= __("Update will only set the continent for QSOs where the continent is empty."); ?>
|
||||
<?php if ($result[0]->count > 0) { ?>
|
||||
<br />
|
||||
<button type="button" class="mt-2 btn btn-sm btn-primary ld-ext-right" id="updateContinentButton" onclick="runContinentFix('')">
|
||||
<?= __("Update now") ?><div class="ld ld-ring ld-spin"></div>
|
||||
</button>
|
||||
<?php }
|
||||
<?php }
|
||||
}
|
||||
|
||||
function check_missing_dxcc($result) { ?>
|
||||
<h5><?= __("DXCC Check Results") ?></h5>
|
||||
<?= __("QSOs to update found:"); ?> <?php echo $result[0]->count; ?>
|
||||
<?php if ($result[0]->count > 0) { ?>
|
||||
<br/>
|
||||
<button type="button" class="mt-2 btn btn-sm btn-primary ld-ext-right" id="fixMissingDxccBtn" onclick="fixMissingDxcc(false)">
|
||||
<?= __("Run fix") ?><div class="ld ld-ring ld-spin"></div>
|
||||
</button>
|
||||
<button id="openMissingDxccListBtn" onclick="openMissingDxccList()" class="btn btn-sm btn-success mt-2 btn btn-sm ld-ext-right"><i class="fas fa-search"></i><div class="ld ld-ring ld-spin"></div></button>
|
||||
<?php }
|
||||
<?php }
|
||||
}
|
||||
|
||||
function check_missing_cq_zones($result) { ?>
|
||||
<h5></h5><?= __("CQ Zone Check Results") ?></h5>
|
||||
<?= __("QSOs to update found:"); ?> <?php echo $result[0]->count; ?>
|
||||
<?php if ($result[0]->count > 0) { ?>
|
||||
<br/>
|
||||
<button type="button" class="mt-2 btn btn-sm btn-primary ld-ext-right" id="updateCqZonesBtn" onclick="fixMissingCqZones()">
|
||||
<?= __("Update now") ?><div class="ld ld-ring ld-spin"></div>
|
||||
</button>
|
||||
<?php }
|
||||
<?php }
|
||||
}
|
||||
|
||||
function check_missing_itu_zones($result) { ?>
|
||||
<h5><?= __("ITU Zone Check Results") ?></h5>
|
||||
<?= __("QSOs to update found:"); ?> <?php echo $result[0]->count; ?>
|
||||
<?php if ($result[0]->count > 0) { ?>
|
||||
<br/>
|
||||
<button type="button" class="mt-2 btn btn-sm btn-primary ld-ext-right" id="updateItuZonesBtn" onclick="fixMissingItuZones()">
|
||||
<?= __("Update now") ?><div class="ld ld-ring ld-spin"></div>
|
||||
</button>
|
||||
<?php }
|
||||
|
||||
<?php }
|
||||
}
|
||||
|
||||
function check_missing_grids($result) { ?>
|
||||
<h5><?= __("Gridsquare Check Results") ?></h5>
|
||||
|
||||
@@ -31,20 +31,19 @@ function showDxccUpdateResult($result, $all) {
|
||||
echo '<h5>' . __("Results for DXCC update:") . '</h5>';
|
||||
if ($result['count'] == 0) {
|
||||
if ($all == 'false') {
|
||||
echo '<div class="alert alert-danger" role="alert">' . __("The number of QSOs updated for missing DXCC IDs was") .' ' . $result['count'] . '</div>';
|
||||
echo '<div class="alert alert-danger" role="alert">' . __("The number of QSOs updated for missing DXCC IDs was") .': ' . $result['count'] . '</div>';
|
||||
} else {
|
||||
echo '<div class="alert alert-danger" role="alert">' . __("The number of QSOs re-checked for DXCC was") .' ' . $result['count'] . '</div>';
|
||||
echo '<div class="alert alert-danger" role="alert">' . __("The number of QSOs re-checked for DXCC was") .': ' . $result['count'] . '</div>';
|
||||
}
|
||||
} else {
|
||||
if ($all == 'false') {
|
||||
echo '<div class="alert alert-success" role="alert">' . __("The number of QSOs updated for missing DXCC IDs was") .' ' . $result['count'] . '</div>';
|
||||
echo '<div class="alert alert-success" role="alert">' . __("The number of QSOs updated for missing DXCC IDs was") .': ' . $result['count'] . '</div>';
|
||||
} else {
|
||||
echo '<div class="alert alert-success" role="alert">' . __("The number of QSOs re-checked for DXCC was") .' ' . $result['count'] . '</div>';
|
||||
echo '<div class="alert alert-success" role="alert">' . __("The number of QSOs re-checked for DXCC was") .': ' . $result['count'] . '</div>';
|
||||
}
|
||||
}
|
||||
|
||||
if ($result) {
|
||||
echo __("These QSOs could not be updated:");
|
||||
$details = [];
|
||||
foreach ($result as $r) {
|
||||
if (is_array($r)) {
|
||||
@@ -53,6 +52,7 @@ function showDxccUpdateResult($result, $all) {
|
||||
}
|
||||
|
||||
if (!empty($details)) { ?>
|
||||
<?= echo __("These QSOs could not be updated:"); ?>
|
||||
<div class="table-responsive mt-3">
|
||||
<table class="table table-sm table-striped table-hover">
|
||||
<thead>
|
||||
@@ -82,13 +82,12 @@ function showDxccUpdateResult($result, $all) {
|
||||
function showStateUpdateResult($result, $country) {
|
||||
echo '<h5>' . __("Results for state update:") . '</h5>';
|
||||
if ($result['count'] == 0) {
|
||||
echo '<div class="alert alert-danger" role="alert">' . __("The number of QSOs updated for state/province in") . ' ' . $country . ' : ' . $result['count'] . '</div>';
|
||||
echo '<div class="alert alert-danger" role="alert">' . __("The number of QSOs updated for state/province in") . ' ' . $country . ': ' . $result['count'] . '</div>';
|
||||
} else {
|
||||
echo '<div class="alert alert-success" role="alert">' . __("The number of QSOs updated for state/province in") . ' ' . $country . ' : ' . $result['count'] . '</div>';
|
||||
echo '<div class="alert alert-success" role="alert">' . __("The number of QSOs updated for state/province in") . ' ' . $country . ': ' . $result['count'] . '</div>';
|
||||
}
|
||||
|
||||
if ($result) {
|
||||
echo __("These QSOs could not be updated:");
|
||||
$details = [];
|
||||
foreach ($result as $r) {
|
||||
if (is_array($r)) {
|
||||
@@ -97,6 +96,7 @@ function showStateUpdateResult($result, $country) {
|
||||
}
|
||||
|
||||
if (!empty($details)) { ?>
|
||||
<?= __("These QSOs could not be updated:"); ?>
|
||||
<div class="table-responsive mt-3">
|
||||
<table class="table table-sm table-striped table-hover">
|
||||
<thead>
|
||||
@@ -128,25 +128,25 @@ function showStateUpdateResult($result, $country) {
|
||||
|
||||
function showContinentUpdateResult($result) {
|
||||
echo '<h5>' . __("Results for continent update:") . '</h5>';
|
||||
echo '<div class="alert alert-' . ($result == 0 ? 'danger' : 'success') . '" role="alert">' . sprintf(__("The number of QSOs updated for continent is") . ' : %d', $result) . '</div>';
|
||||
echo '<div class="alert alert-' . ($result == 0 ? 'danger' : 'success') . '" role="alert">' . sprintf(__("The number of QSOs updated for continent is") . ': %d', $result) . '</div>';
|
||||
}
|
||||
|
||||
function showDistanceUpdateResult($result) {
|
||||
echo '<h5>' . __("Results for distance update:") . '</h5>';
|
||||
echo '<div class="alert alert-' . ($result == 0 ? 'danger' : 'success') . '" role="alert">' . sprintf(__("The number of QSOs updated for distance is") . ' : %d', $result) . '</div>';
|
||||
echo '<div class="alert alert-' . ($result == 0 ? 'danger' : 'success') . '" role="alert">' . sprintf(__("The number of QSOs updated for distance is") . ': %d', $result) . '</div>';
|
||||
}
|
||||
|
||||
function showCqzoneUpdateResult($result) {
|
||||
echo '<h5>' . __("Results for CQ zone update:") . '</h5>';
|
||||
echo '<div class="alert alert-' . ($result == 0 ? 'danger' : 'success') . '" role="alert">' . sprintf(__("The number of QSOs updated for CQ zone is") . ' : %d', $result) . '</div>';
|
||||
echo '<div class="alert alert-' . ($result == 0 ? 'danger' : 'success') . '" role="alert">' . sprintf(__("The number of QSOs updated for CQ zone is") . ': %d', $result) . '</div>';
|
||||
}
|
||||
|
||||
function showItuzoneUpdateResult($result) {
|
||||
echo '<h5>' . __("Results for ITU zone update:") . '</h5>';
|
||||
echo '<div class="alert alert-' . ($result == 0 ? 'danger' : 'success') . '" role="alert">' . sprintf(__("The number of QSOs updated for ITU zone is") . ' : %d', $result) . '</div>';
|
||||
echo '<div class="alert alert-' . ($result == 0 ? 'danger' : 'success') . '" role="alert">' . sprintf(__("The number of QSOs updated for ITU zone is") . ': %d', $result) . '</div>';
|
||||
}
|
||||
|
||||
function showGridUpdateResult($result) {
|
||||
echo '<h5>' . __("Results for gridsquare update:") . '</h5>';
|
||||
echo '<div class="alert alert-' . ($result == 0 ? 'danger' : 'success') . '" role="alert">' . sprintf(__("The number of QSOs updated for gridsquare is") . ' : %d', $result) . '</div>';
|
||||
echo '<div class="alert alert-' . ($result == 0 ? 'danger' : 'success') . '" role="alert">' . sprintf(__("The number of QSOs updated for gridsquare is") . ': %d', $result) . '</div>';
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php if (isset($result) && is_array($result) && count($result) > 0): ?>
|
||||
<div class="col-md-12 result">
|
||||
<h5><?= __("State Check Results"); ?></h5>
|
||||
<p><?= __("QSOs with missing state and gridsquares with 6 or more characters found for the following DXCC's:"); ?></p>
|
||||
<p><?= __("QSOs with missing state and gridsquares with 6 or more characters found for the following DXCCs:"); ?></p>
|
||||
|
||||
<div class="table-responsive" style="max-height:50vh; overflow:auto;">
|
||||
<table class="table table-sm table-striped table-bordered table-condensed mb-0">
|
||||
|
||||
Reference in New Issue
Block a user