kopia lustrzana https://github.com/magicbug/Cloudlog
Station DXCC Deleted Warning
rodzic
ab75d5807d
commit
2fe5720da9
|
@ -31,6 +31,7 @@ $lang['station_location_confirm_del_stationlocation'] = 'Are you sure you want d
|
|||
$lang['station_location_confirm_del_stationlocation_qso'] = 'This will delete all QSOs within this station profile?';
|
||||
$lang['station_location_dxcc'] = 'Station DXCC';
|
||||
$lang['station_location_dxcc_hint'] = 'Station DXCC entity. For example: Scotland';
|
||||
$lang['station_location_dxcc_warning'] = "Stop here for a Moment. Your chosen DXCC is outdated and not valid anymore. Check which DXCC for this particular location is the correct one. A updated list of all DXCC you can find href='https://www.arrl.org/files/file/DXCC/2022_Current_Deleted.txt'>here</a>";
|
||||
$lang['station_location_city'] = 'Station City';
|
||||
$lang['station_location_city_hint'] = 'Station city. For example: Inverness';
|
||||
$lang['station_location_state'] = 'Station State';
|
||||
|
|
|
@ -31,6 +31,7 @@ $lang['station_location_confirm_del_stationlocation'] = 'Are you sure you want d
|
|||
$lang['station_location_confirm_del_stationlocation_qso'] = 'This will delete all QSOs within this station profile?';
|
||||
$lang['station_location_dxcc'] = 'Station DXCC';
|
||||
$lang['station_location_dxcc_hint'] = 'Station DXCC entity. For example: Scotland';
|
||||
$lang['station_location_dxcc_warning'] = "Stop here for a Moment. Your chosen DXCC is outdated and not valid anymore. Check which DXCC for this particular location is the correct one. A updated list of all DXCC you can find href='https://www.arrl.org/files/file/DXCC/2022_Current_Deleted.txt'>here</a>";
|
||||
$lang['station_location_city'] = 'Station City';
|
||||
$lang['station_location_city_hint'] = 'Station city. For example: Inverness';
|
||||
$lang['station_location_state'] = 'Station State';
|
||||
|
|
|
@ -31,6 +31,7 @@ $lang['station_location_confirm_del_stationlocation'] = 'Are you sure you want d
|
|||
$lang['station_location_confirm_del_stationlocation_qso'] = 'This will delete all QSOs within this station profile?';
|
||||
$lang['station_location_dxcc'] = 'Station DXCC';
|
||||
$lang['station_location_dxcc_hint'] = 'Station DXCC entity. For example: Scotland';
|
||||
$lang['station_location_dxcc_warning'] = "Stop here for a Moment. Your chosen DXCC is outdated and not valid anymore. Check which DXCC for this particular location is the correct one. A updated list of all DXCC you can find href='https://www.arrl.org/files/file/DXCC/2022_Current_Deleted.txt'>here</a>";
|
||||
$lang['station_location_city'] = 'Station City';
|
||||
$lang['station_location_city_hint'] = 'Station city. For example: Inverness';
|
||||
$lang['station_location_state'] = 'Station State';
|
||||
|
|
|
@ -31,6 +31,7 @@ $lang['station_location_confirm_del_stationlocation'] = 'Are you sure you want d
|
|||
$lang['station_location_confirm_del_stationlocation_qso'] = 'This will delete all QSOs within this station profile?';
|
||||
$lang['station_location_dxcc'] = 'Station DXCC';
|
||||
$lang['station_location_dxcc_hint'] = 'Station DXCC entity. For example: Scotland';
|
||||
$lang['station_location_dxcc_warning'] = "Stop here for a Moment. Your chosen DXCC is outdated and not valid anymore. Check which DXCC for this particular location is the correct one. A updated list of all DXCC you can find href='https://www.arrl.org/files/file/DXCC/2022_Current_Deleted.txt'>here</a>";
|
||||
$lang['station_location_city'] = 'Station City';
|
||||
$lang['station_location_city_hint'] = 'Station city. For example: Inverness';
|
||||
$lang['station_location_state'] = 'Station State';
|
||||
|
|
|
@ -31,6 +31,7 @@ $lang['station_location_confirm_del_stationlocation'] = 'Are you sure you want d
|
|||
$lang['station_location_confirm_del_stationlocation_qso'] = 'This will delete all QSOs within this station profile?';
|
||||
$lang['station_location_dxcc'] = 'Station DXCC';
|
||||
$lang['station_location_dxcc_hint'] = 'Station DXCC entity. For example: Scotland';
|
||||
$lang['station_location_dxcc_warning'] = "Stop here for a Moment. Your chosen DXCC is outdated and not valid anymore. Check which DXCC for this particular location is the correct one.";
|
||||
$lang['station_location_city'] = 'Station City';
|
||||
$lang['station_location_city_hint'] = 'Station city. For example: Inverness';
|
||||
$lang['station_location_state'] = 'Station State';
|
||||
|
|
|
@ -31,6 +31,7 @@ $lang['station_location_confirm_del_stationlocation'] = 'Are you sure you want d
|
|||
$lang['station_location_confirm_del_stationlocation_qso'] = 'This will delete all QSOs within this station profile?';
|
||||
$lang['station_location_dxcc'] = 'Station DXCC';
|
||||
$lang['station_location_dxcc_hint'] = 'Station DXCC entity. For example: Scotland';
|
||||
$lang['station_location_dxcc_warning'] = "Stop here for a Moment. Your chosen DXCC is outdated and not valid anymore. Check which DXCC for this particular location is the correct one. A updated list of all DXCC you can find href='https://www.arrl.org/files/file/DXCC/2022_Current_Deleted.txt'>here</a>";
|
||||
$lang['station_location_city'] = 'Station City';
|
||||
$lang['station_location_city_hint'] = 'Station city. For example: Inverness';
|
||||
$lang['station_location_state'] = 'Station State';
|
||||
|
|
|
@ -31,6 +31,7 @@ $lang['station_location_confirm_del_stationlocation'] = 'Are you sure you want d
|
|||
$lang['station_location_confirm_del_stationlocation_qso'] = 'This will delete all QSOs within this station profile?';
|
||||
$lang['station_location_dxcc'] = 'Station DXCC';
|
||||
$lang['station_location_dxcc_hint'] = 'Station DXCC entity. For example: Scotland';
|
||||
$lang['station_location_dxcc_warning'] = "Stop here for a Moment. Your chosen DXCC is outdated and not valid anymore. Check which DXCC for this particular location is the correct one. A updated list of all DXCC you can find href='https://www.arrl.org/files/file/DXCC/2022_Current_Deleted.txt'>here</a>";
|
||||
$lang['station_location_city'] = 'Station City';
|
||||
$lang['station_location_city_hint'] = 'Station city. For example: Inverness';
|
||||
$lang['station_location_state'] = 'Station State';
|
||||
|
|
|
@ -31,6 +31,7 @@ $lang['station_location_confirm_del_stationlocation'] = 'Bist du sicher, dass du
|
|||
$lang['station_location_confirm_del_stationlocation_qso'] = 'Es werden alle QSO an diesem Stationsstandort gelöscht!';
|
||||
$lang['station_location_dxcc'] = 'Station DXCC';
|
||||
$lang['station_location_dxcc_hint'] = "Station DXCC Einteilung. Zum Beispiel: 'Federal Republic of Germany'";
|
||||
$lang['station_location_dxcc_warning'] = "Stoppe hier für einen Moment. Das von dir gewählte DXCC ist abgelaufen und nicht mehr gültig. Überprüfe, welches das richtige DXCC für den Standort der Station ist. Als Beispiel: Deutschland ist nicht mehr \'Germany\' sondern \'Federal Republic of Germany\'";
|
||||
$lang['station_location_city'] = 'Station Stadt';
|
||||
$lang['station_location_city_hint'] = 'Station Stadt. Zum Beispiel: Berlin';
|
||||
$lang['station_location_state'] = 'Station Staat';
|
||||
|
|
|
@ -31,6 +31,7 @@ $lang['station_location_confirm_del_stationlocation'] = 'Are you sure you want d
|
|||
$lang['station_location_confirm_del_stationlocation_qso'] = 'This will delete all QSOs within this station profile?';
|
||||
$lang['station_location_dxcc'] = 'Station DXCC';
|
||||
$lang['station_location_dxcc_hint'] = 'Station DXCC entity. For example: Scotland';
|
||||
$lang['station_location_dxcc_warning'] = "Stop here for a Moment. Your chosen DXCC is outdated and not valid anymore. Check which DXCC for this particular location is the correct one. A updated list of all DXCC you can find href='https://www.arrl.org/files/file/DXCC/2022_Current_Deleted.txt'>here</a>";
|
||||
$lang['station_location_city'] = 'Station City';
|
||||
$lang['station_location_city_hint'] = 'Station city. For example: Inverness';
|
||||
$lang['station_location_state'] = 'Station State';
|
||||
|
|
|
@ -31,6 +31,7 @@ $lang['station_location_confirm_del_stationlocation'] = 'Are you sure you want d
|
|||
$lang['station_location_confirm_del_stationlocation_qso'] = 'This will delete all QSOs within this station profile?';
|
||||
$lang['station_location_dxcc'] = 'Station DXCC';
|
||||
$lang['station_location_dxcc_hint'] = 'Station DXCC entity. For example: Scotland';
|
||||
$lang['station_location_dxcc_warning'] = "Stop here for a Moment. Your chosen DXCC is outdated and not valid anymore. Check which DXCC for this particular location is the correct one. A updated list of all DXCC you can find href='https://www.arrl.org/files/file/DXCC/2022_Current_Deleted.txt'>here</a>";
|
||||
$lang['station_location_city'] = 'Station City';
|
||||
$lang['station_location_city_hint'] = 'Station city. For example: Inverness';
|
||||
$lang['station_location_state'] = 'Station State';
|
||||
|
|
|
@ -31,6 +31,7 @@ $lang['station_location_confirm_del_stationlocation'] = 'Are you sure you want d
|
|||
$lang['station_location_confirm_del_stationlocation_qso'] = 'This will delete all QSOs within this station profile?';
|
||||
$lang['station_location_dxcc'] = 'Station DXCC';
|
||||
$lang['station_location_dxcc_hint'] = 'Station DXCC entity. For example: Scotland';
|
||||
$lang['station_location_dxcc_warning'] = "Stop here for a Moment. Your chosen DXCC is outdated and not valid anymore. Check which DXCC for this particular location is the correct one. A updated list of all DXCC you can find href='https://www.arrl.org/files/file/DXCC/2022_Current_Deleted.txt'>here</a>";
|
||||
$lang['station_location_city'] = 'Station City';
|
||||
$lang['station_location_city_hint'] = 'Station city. For example: Inverness';
|
||||
$lang['station_location_state'] = 'Station State';
|
||||
|
|
|
@ -31,6 +31,7 @@ $lang['station_location_confirm_del_stationlocation'] = 'Are you sure you want d
|
|||
$lang['station_location_confirm_del_stationlocation_qso'] = 'This will delete all QSOs within this station profile?';
|
||||
$lang['station_location_dxcc'] = 'Station DXCC';
|
||||
$lang['station_location_dxcc_hint'] = 'Station DXCC entity. For example: Scotland';
|
||||
$lang['station_location_dxcc_warning'] = "Stop here for a Moment. Your chosen DXCC is outdated and not valid anymore. Check which DXCC for this particular location is the correct one. A updated list of all DXCC you can find href='https://www.arrl.org/files/file/DXCC/2022_Current_Deleted.txt'>here</a>";
|
||||
$lang['station_location_city'] = 'Station City';
|
||||
$lang['station_location_city_hint'] = 'Station city. For example: Inverness';
|
||||
$lang['station_location_state'] = 'Station State';
|
||||
|
|
|
@ -31,6 +31,7 @@ $lang['station_location_confirm_del_stationlocation'] = 'Are you sure you want d
|
|||
$lang['station_location_confirm_del_stationlocation_qso'] = 'This will delete all QSOs within this station profile?';
|
||||
$lang['station_location_dxcc'] = 'Station DXCC';
|
||||
$lang['station_location_dxcc_hint'] = 'Station DXCC entity. For example: Scotland';
|
||||
$lang['station_location_dxcc_warning'] = "Stop here for a Moment. Your chosen DXCC is outdated and not valid anymore. Check which DXCC for this particular location is the correct one. A updated list of all DXCC you can find href='https://www.arrl.org/files/file/DXCC/2022_Current_Deleted.txt'>here</a>";
|
||||
$lang['station_location_city'] = 'Station City';
|
||||
$lang['station_location_city_hint'] = 'Station city. For example: Inverness';
|
||||
$lang['station_location_state'] = 'Station State';
|
||||
|
|
|
@ -31,6 +31,7 @@ $lang['station_location_confirm_del_stationlocation'] = 'Are you sure you want d
|
|||
$lang['station_location_confirm_del_stationlocation_qso'] = 'This will delete all QSOs within this station profile?';
|
||||
$lang['station_location_dxcc'] = 'Station DXCC';
|
||||
$lang['station_location_dxcc_hint'] = 'Station DXCC entity. For example: Scotland';
|
||||
$lang['station_location_dxcc_warning'] = "Stop here for a Moment. Your chosen DXCC is outdated and not valid anymore. Check which DXCC for this particular location is the correct one. A updated list of all DXCC you can find href='https://www.arrl.org/files/file/DXCC/2022_Current_Deleted.txt'>here</a>";
|
||||
$lang['station_location_city'] = 'Station City';
|
||||
$lang['station_location_city_hint'] = 'Station city. For example: Inverness';
|
||||
$lang['station_location_state'] = 'Station State';
|
||||
|
|
|
@ -31,6 +31,7 @@ $lang['station_location_confirm_del_stationlocation'] = 'Are you sure you want d
|
|||
$lang['station_location_confirm_del_stationlocation_qso'] = 'This will delete all QSOs within this station profile?';
|
||||
$lang['station_location_dxcc'] = 'Station DXCC';
|
||||
$lang['station_location_dxcc_hint'] = 'Station DXCC entity. For example: Scotland';
|
||||
$lang['station_location_dxcc_warning'] = "Stop here for a Moment. Your chosen DXCC is outdated and not valid anymore. Check which DXCC for this particular location is the correct one. A updated list of all DXCC you can find href='https://www.arrl.org/files/file/DXCC/2022_Current_Deleted.txt'>here</a>";
|
||||
$lang['station_location_city'] = 'Station City';
|
||||
$lang['station_location_city_hint'] = 'Station city. For example: Inverness';
|
||||
$lang['station_location_state'] = 'Station State';
|
||||
|
|
|
@ -58,7 +58,26 @@
|
|||
</select>
|
||||
<?php } ?>
|
||||
<small id="stationDXCCInputHelp" class="form-text text-muted"><?php echo lang("station_location_dxcc_hint"); ?></small>
|
||||
<div id="warningMessage" style="color: red;"></div>
|
||||
</div>
|
||||
<!-- DXCC Deleted Warning -->
|
||||
<script>
|
||||
var lang_station_location_dxcc_warning = '<?php echo lang('station_location_dxcc_warning'); ?>';
|
||||
</script>
|
||||
<script>
|
||||
document.getElementById('dxcc_select').addEventListener('change', function() {
|
||||
var selectedOption = this.options[this.selectedIndex];
|
||||
var isDeleted = selectedOption.textContent.includes('<?php echo lang('gen_hamradio_deleted_dxcc'); ?>');
|
||||
|
||||
if (isDeleted) {
|
||||
this.style.border = '2px solid red';
|
||||
warningMessage.innerText = lang_station_location_dxcc_warning;
|
||||
} else {
|
||||
this.style.border = '';
|
||||
warningMessage.innerText = "";
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="stationCityInput"><?php echo lang("station_location_city"); ?></label>
|
||||
|
|
|
@ -64,20 +64,46 @@
|
|||
<div class="card">
|
||||
<div class="card-header"><?php echo lang("general_word_location"); ?></div>
|
||||
<div class="card-body">
|
||||
|
||||
<!-- DXCC -->
|
||||
<div class="form-group">
|
||||
<label for="stationDXCCInput"><?php echo lang("station_location_dxcc"); ?></label>
|
||||
<?php if ($dxcc_list->num_rows() > 0) { ?>
|
||||
<select class="form-control" id="dxcc_select" name="dxcc" aria-describedby="stationCallsignInputHelp">
|
||||
<option value="0" <?php if($my_station_profile->station_dxcc == "0") { ?>selected<?php } ?>><?php echo "- " . lang('general_word_none') . " -"; ?></option>
|
||||
<?php foreach ($dxcc_list->result() as $dxcc) { ?>
|
||||
<option value="<?php echo $dxcc->adif; ?>" <?php if($my_station_profile->station_dxcc == $dxcc->adif) { ?>selected<?php } ?>><?php echo ucwords(strtolower($dxcc->name)) . ' - ' . $dxcc->prefix; if ($dxcc->end != NULL) echo ' ('.lang('gen_hamradio_deleted_dxcc').')';?>
|
||||
</option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<?php } ?>
|
||||
<small id="stationDXCCInputHelp" class="form-text text-muted"><?php echo lang("station_location_dxcc_hint"); ?></small>
|
||||
<label for="stationDXCCInput"><?php echo lang("station_location_dxcc"); ?></label>
|
||||
<?php if ($dxcc_list->num_rows() > 0) { ?>
|
||||
<select class="form-control" id="dxcc_select" name="dxcc" aria-describedby="stationCallsignInputHelp">
|
||||
<option value="0" <?php if($my_station_profile->station_dxcc == "0") { ?>selected<?php } ?>><?php echo "- " . lang('general_word_none') . " -"; ?></option>
|
||||
<?php foreach ($dxcc_list->result() as $dxcc) { ?>
|
||||
<?php $isDeleted = $dxcc->end !== NULL; ?>
|
||||
<option value="<?php echo $dxcc->adif; ?>" <?php if($my_station_profile->station_dxcc == $dxcc->adif) { ?>selected<?php } ?>>
|
||||
<?php echo ucwords(strtolower($dxcc->name)) . ' - ' . $dxcc->prefix;
|
||||
if ($isDeleted) {
|
||||
echo ' (' . lang('gen_hamradio_deleted_dxcc') . ')';
|
||||
}
|
||||
?>
|
||||
</option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<?php } ?>
|
||||
<small id="stationDXCCInputHelp" class="form-text text-muted"><?php echo lang("station_location_dxcc_hint"); ?></small>
|
||||
<div id="warningMessage" style="color: red;"></div>
|
||||
</div>
|
||||
<!-- DXCC Deleted Warning -->
|
||||
<script>
|
||||
var lang_station_location_dxcc_warning = '<?php echo lang('station_location_dxcc_warning'); ?>';
|
||||
</script>
|
||||
<script>
|
||||
document.getElementById('dxcc_select').addEventListener('change', function() {
|
||||
var selectedOption = this.options[this.selectedIndex];
|
||||
var isDeleted = selectedOption.textContent.includes('<?php echo lang('gen_hamradio_deleted_dxcc'); ?>');
|
||||
|
||||
if (isDeleted) {
|
||||
this.style.border = '2px solid red';
|
||||
warningMessage.innerText = lang_station_location_dxcc_warning;
|
||||
} else {
|
||||
this.style.border = '';
|
||||
warningMessage.innerText = "";
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- City -->
|
||||
<div class="form-group">
|
||||
|
|
Ładowanie…
Reference in New Issue