Tag 2.6.6

这个提交包含在:
Peter Goodhall 2024-03-06 15:26:21 +00:00 提交者 GitHub
当前提交 9273c2c610
找不到此签名对应的密钥
GPG 密钥 ID: B5690EEEBB952194
共有 32 个文件被更改,包括 2773 次插入2428 次删除

查看文件

@ -22,7 +22,7 @@ $config['migration_enabled'] = TRUE;
| |
*/ */
$config['migration_version'] = 172; $config['migration_version'] = 173;
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------

查看文件

@ -124,6 +124,8 @@ $lang['gen_hamradio_suffix'] = "Suffix";
$lang['gen_hamradio_de'] = 'De'; $lang['gen_hamradio_de'] = 'De';
$lang['gen_hamradio_dx'] = 'Dx'; $lang['gen_hamradio_dx'] = 'Dx';
$lang['gen_hamradio_mode'] = 'Режим'; $lang['gen_hamradio_mode'] = 'Режим';
$lang['gen_hamradio_ant_az'] = 'Antenna Azimuth';
$lang['gen_hamradio_ant_el'] = 'Antenna Elevation';
$lang['gen_hamradio_rst_sent'] = 'Sent'; $lang['gen_hamradio_rst_sent'] = 'Sent';
$lang['gen_hamradio_rst_rcvd'] = 'Recv\'d'; $lang['gen_hamradio_rst_rcvd'] = 'Recv\'d';
$lang['gen_hamradio_band'] = 'Обхват'; $lang['gen_hamradio_band'] = 'Обхват';

查看文件

@ -122,6 +122,8 @@ $lang['gen_hamradio_callsign'] = '呼号';
$lang['gen_hamradio_prefix'] = "前缀"; $lang['gen_hamradio_prefix'] = "前缀";
$lang['gen_hamradio_suffix'] = "后缀"; $lang['gen_hamradio_suffix'] = "后缀";
$lang['gen_hamradio_mode'] = '模式'; $lang['gen_hamradio_mode'] = '模式';
$lang['gen_hamradio_ant_az'] = 'Antenna Azimuth';
$lang['gen_hamradio_ant_el'] = 'Antenna Elevation';
$lang['gen_hamradio_de'] = '本台呼号(De)'; $lang['gen_hamradio_de'] = '本台呼号(De)';
$lang['gen_hamradio_dx'] = '对方呼号(Dx)'; $lang['gen_hamradio_dx'] = '对方呼号(Dx)';
$lang['gen_hamradio_rst_sent'] = '发送 信号报告RST'; $lang['gen_hamradio_rst_sent'] = '发送 信号报告RST';

查看文件

@ -124,6 +124,8 @@ $lang['gen_hamradio_suffix'] = "Suffix";
$lang['gen_hamradio_de'] = 'De'; $lang['gen_hamradio_de'] = 'De';
$lang['gen_hamradio_dx'] = 'Dx'; $lang['gen_hamradio_dx'] = 'Dx';
$lang['gen_hamradio_mode'] = 'Režim'; $lang['gen_hamradio_mode'] = 'Režim';
$lang['gen_hamradio_ant_az'] = 'Antenna Azimuth';
$lang['gen_hamradio_ant_el'] = 'Antenna Elevation';
$lang['gen_hamradio_rst_sent'] = 'Odesláno'; $lang['gen_hamradio_rst_sent'] = 'Odesláno';
$lang['gen_hamradio_rst_rcvd'] = 'Přijato'; $lang['gen_hamradio_rst_rcvd'] = 'Přijato';
$lang['gen_hamradio_band'] = 'Pásmo'; $lang['gen_hamradio_band'] = 'Pásmo';

查看文件

@ -124,6 +124,8 @@ $lang['gen_hamradio_suffix'] = "Suffix";
$lang['gen_hamradio_de'] = 'De'; $lang['gen_hamradio_de'] = 'De';
$lang['gen_hamradio_dx'] = 'Dx'; $lang['gen_hamradio_dx'] = 'Dx';
$lang['gen_hamradio_mode'] = 'Mode'; $lang['gen_hamradio_mode'] = 'Mode';
$lang['gen_hamradio_ant_az'] = 'Antenna Azimuth';
$lang['gen_hamradio_ant_el'] = 'Antenna Elevation';
$lang['gen_hamradio_rst_sent'] = 'Verzonden'; $lang['gen_hamradio_rst_sent'] = 'Verzonden';
$lang['gen_hamradio_rst_rcvd'] = 'Ontvangen'; $lang['gen_hamradio_rst_rcvd'] = 'Ontvangen';
$lang['gen_hamradio_band'] = 'Band'; $lang['gen_hamradio_band'] = 'Band';

查看文件

@ -124,6 +124,8 @@ $lang['gen_hamradio_suffix'] = "Suffix";
$lang['gen_hamradio_de'] = 'De'; $lang['gen_hamradio_de'] = 'De';
$lang['gen_hamradio_dx'] = 'Dx'; $lang['gen_hamradio_dx'] = 'Dx';
$lang['gen_hamradio_mode'] = 'Mode'; $lang['gen_hamradio_mode'] = 'Mode';
$lang['gen_hamradio_ant_az'] = 'Antenna Azimuth';
$lang['gen_hamradio_ant_el'] = 'Antenna Elevation';
$lang['gen_hamradio_rst_sent'] = 'Sent'; $lang['gen_hamradio_rst_sent'] = 'Sent';
$lang['gen_hamradio_rst_rcvd'] = 'Recv\'d'; $lang['gen_hamradio_rst_rcvd'] = 'Recv\'d';
$lang['gen_hamradio_band'] = 'Band'; $lang['gen_hamradio_band'] = 'Band';

查看文件

@ -124,6 +124,8 @@ $lang['gen_hamradio_suffix'] = "Suffix";
$lang['gen_hamradio_de'] = 'De'; $lang['gen_hamradio_de'] = 'De';
$lang['gen_hamradio_dx'] = 'Dx'; $lang['gen_hamradio_dx'] = 'Dx';
$lang['gen_hamradio_mode'] = 'Lähetelaji'; $lang['gen_hamradio_mode'] = 'Lähetelaji';
$lang['gen_hamradio_ant_az'] = 'Antenna Azimuth';
$lang['gen_hamradio_ant_el'] = 'Antenna Elevation';
$lang['gen_hamradio_rst_sent'] = 'Annettu raportti'; $lang['gen_hamradio_rst_sent'] = 'Annettu raportti';
$lang['gen_hamradio_rst_rcvd'] = 'Saatu raportti'; $lang['gen_hamradio_rst_rcvd'] = 'Saatu raportti';
$lang['gen_hamradio_band'] = 'Bandi'; $lang['gen_hamradio_band'] = 'Bandi';

查看文件

@ -124,6 +124,8 @@ $lang['gen_hamradio_suffix'] = "Suffix";
$lang['gen_hamradio_de'] = "De"; $lang['gen_hamradio_de'] = "De";
$lang['gen_hamradio_dx'] = "Dx"; $lang['gen_hamradio_dx'] = "Dx";
$lang['gen_hamradio_mode'] = "Mode"; $lang['gen_hamradio_mode'] = "Mode";
$lang['gen_hamradio_ant_az'] = 'Antenna Azimuth';
$lang['gen_hamradio_ant_el'] = 'Antenna Elevation';
$lang['gen_hamradio_rst_sent'] = "Envoyé"; $lang['gen_hamradio_rst_sent'] = "Envoyé";
$lang['gen_hamradio_rst_rcvd'] = "Reçu"; $lang['gen_hamradio_rst_rcvd'] = "Reçu";
$lang['gen_hamradio_band'] = "Bande"; $lang['gen_hamradio_band'] = "Bande";

查看文件

@ -124,6 +124,8 @@ $lang['gen_hamradio_suffix'] = "Suffix";
$lang['gen_hamradio_de'] = 'De'; $lang['gen_hamradio_de'] = 'De';
$lang['gen_hamradio_dx'] = 'Dx'; $lang['gen_hamradio_dx'] = 'Dx';
$lang['gen_hamradio_mode'] = 'Mode'; $lang['gen_hamradio_mode'] = 'Mode';
$lang['gen_hamradio_ant_az'] = 'Antennenazimut';
$lang['gen_hamradio_ant_el'] = 'Antennenelevation';
$lang['gen_hamradio_rst_sent'] = 'Gegeben'; $lang['gen_hamradio_rst_sent'] = 'Gegeben';
$lang['gen_hamradio_rst_rcvd'] = 'Erhalten'; $lang['gen_hamradio_rst_rcvd'] = 'Erhalten';
$lang['gen_hamradio_band'] = 'Band'; $lang['gen_hamradio_band'] = 'Band';

查看文件

@ -124,6 +124,8 @@ $lang['gen_hamradio_suffix'] = "Suffix";
$lang['gen_hamradio_de'] = 'De'; $lang['gen_hamradio_de'] = 'De';
$lang['gen_hamradio_dx'] = 'Dx'; $lang['gen_hamradio_dx'] = 'Dx';
$lang['gen_hamradio_mode'] = 'Τρόπος'; $lang['gen_hamradio_mode'] = 'Τρόπος';
$lang['gen_hamradio_ant_az'] = 'Antenna Azimuth';
$lang['gen_hamradio_ant_el'] = 'Antenna Elevation';
$lang['gen_hamradio_rst_sent'] = 'Απεσταλμένα'; $lang['gen_hamradio_rst_sent'] = 'Απεσταλμένα';
$lang['gen_hamradio_rst_rcvd'] = 'Ελήφθη\'d'; $lang['gen_hamradio_rst_rcvd'] = 'Ελήφθη\'d';
$lang['gen_hamradio_band'] = 'Ζώνη'; $lang['gen_hamradio_band'] = 'Ζώνη';

查看文件

@ -124,6 +124,8 @@ $lang['gen_hamradio_suffix'] = "Suffix";
$lang['gen_hamradio_de'] = 'De'; $lang['gen_hamradio_de'] = 'De';
$lang['gen_hamradio_dx'] = 'Dx'; $lang['gen_hamradio_dx'] = 'Dx';
$lang['gen_hamradio_mode'] = 'Modo'; $lang['gen_hamradio_mode'] = 'Modo';
$lang['gen_hamradio_ant_az'] = 'Antenna Azimuth';
$lang['gen_hamradio_ant_el'] = 'Antenna Elevation';
$lang['gen_hamradio_rst_sent'] = 'Inviato'; $lang['gen_hamradio_rst_sent'] = 'Inviato';
$lang['gen_hamradio_rst_rcvd'] = 'Ricevuto'; $lang['gen_hamradio_rst_rcvd'] = 'Ricevuto';
$lang['gen_hamradio_band'] = 'Banda'; $lang['gen_hamradio_band'] = 'Banda';

查看文件

@ -124,6 +124,8 @@ $lang['gen_hamradio_suffix'] = "Suffix";
$lang['gen_hamradio_de'] = 'De'; $lang['gen_hamradio_de'] = 'De';
$lang['gen_hamradio_dx'] = 'Dx'; $lang['gen_hamradio_dx'] = 'Dx';
$lang['gen_hamradio_mode'] = 'Modulacja'; $lang['gen_hamradio_mode'] = 'Modulacja';
$lang['gen_hamradio_ant_az'] = 'Antenna Azimuth';
$lang['gen_hamradio_ant_el'] = 'Antenna Elevation';
$lang['gen_hamradio_rst_sent'] = 'Wysłany'; $lang['gen_hamradio_rst_sent'] = 'Wysłany';
$lang['gen_hamradio_rst_rcvd'] = 'Odebrany\'d'; $lang['gen_hamradio_rst_rcvd'] = 'Odebrany\'d';
$lang['gen_hamradio_band'] = 'Pasmo'; $lang['gen_hamradio_band'] = 'Pasmo';

查看文件

@ -125,6 +125,8 @@ $lang['gen_hamradio_callsign'] = 'Позывной';
$lang['gen_hamradio_de'] = 'от'; $lang['gen_hamradio_de'] = 'от';
$lang['gen_hamradio_dx'] = 'DX'; $lang['gen_hamradio_dx'] = 'DX';
$lang['gen_hamradio_mode'] = 'Вид модуляции'; $lang['gen_hamradio_mode'] = 'Вид модуляции';
$lang['gen_hamradio_ant_az'] = 'Antenna Azimuth';
$lang['gen_hamradio_ant_el'] = 'Antenna Elevation';
$lang['gen_hamradio_rst_sent'] = 'Отправлено'; $lang['gen_hamradio_rst_sent'] = 'Отправлено';
$lang['gen_hamradio_rst_rcvd'] = 'Получено'; $lang['gen_hamradio_rst_rcvd'] = 'Получено';
$lang['gen_hamradio_bandgroup'] = "Bandgroup"; $lang['gen_hamradio_bandgroup'] = "Bandgroup";

查看文件

@ -125,6 +125,8 @@ $lang['gen_hamradio_suffix'] = "Sufijo";
$lang['gen_hamradio_de'] = 'De'; $lang['gen_hamradio_de'] = 'De';
$lang['gen_hamradio_dx'] = 'Dx'; $lang['gen_hamradio_dx'] = 'Dx';
$lang['gen_hamradio_mode'] = 'Modo'; $lang['gen_hamradio_mode'] = 'Modo';
$lang['gen_hamradio_ant_az'] = 'Antenna Azimuth';
$lang['gen_hamradio_ant_el'] = 'Antenna Elevation';
$lang['gen_hamradio_rst_sent'] = 'Enviado'; $lang['gen_hamradio_rst_sent'] = 'Enviado';
$lang['gen_hamradio_rst_rcvd'] = 'Recibido'; $lang['gen_hamradio_rst_rcvd'] = 'Recibido';
$lang['gen_hamradio_band'] = 'Banda'; $lang['gen_hamradio_band'] = 'Banda';

查看文件

@ -125,6 +125,8 @@ $lang['gen_hamradio_callsign'] = 'Signal';
$lang['gen_hamradio_de'] = 'De'; $lang['gen_hamradio_de'] = 'De';
$lang['gen_hamradio_dx'] = 'Dx'; $lang['gen_hamradio_dx'] = 'Dx';
$lang['gen_hamradio_mode'] = 'Mode'; $lang['gen_hamradio_mode'] = 'Mode';
$lang['gen_hamradio_ant_az'] = 'Antenna Azimuth';
$lang['gen_hamradio_ant_el'] = 'Antenna Elevation';
$lang['gen_hamradio_rst_sent'] = 'Skickat'; $lang['gen_hamradio_rst_sent'] = 'Skickat';
$lang['gen_hamradio_rst_rcvd'] = 'Mottagen\'d'; $lang['gen_hamradio_rst_rcvd'] = 'Mottagen\'d';
$lang['gen_hamradio_band'] = 'Band'; $lang['gen_hamradio_band'] = 'Band';

查看文件

@ -124,6 +124,8 @@ $lang['gen_hamradio_suffix'] = "Suffix";
$lang['gen_hamradio_de'] = 'De'; $lang['gen_hamradio_de'] = 'De';
$lang['gen_hamradio_dx'] = 'Dx'; $lang['gen_hamradio_dx'] = 'Dx';
$lang['gen_hamradio_mode'] = 'Mod'; $lang['gen_hamradio_mode'] = 'Mod';
$lang['gen_hamradio_ant_az'] = 'Antenna Azimuth';
$lang['gen_hamradio_ant_el'] = 'Antenna Elevation';
$lang['gen_hamradio_rst_sent'] = 'Gönderilen'; $lang['gen_hamradio_rst_sent'] = 'Gönderilen';
$lang['gen_hamradio_rst_rcvd'] = 'Alınan'; $lang['gen_hamradio_rst_rcvd'] = 'Alınan';
$lang['gen_hamradio_band'] = 'Bant'; $lang['gen_hamradio_band'] = 'Bant';

查看文件

@ -2,7 +2,14 @@
class AdifHelper { class AdifHelper {
public function getAdifLine($qso) { /**
* Generates an ADIF line for a QSO record.
*
* @param object $qso The QSO record.
* @param bool $satellite_remap Flag indicating whether to remap satellite names.
* @return string The ADIF line.
*/
public function getAdifLine($qso, $satellite_remap = false) {
$normalFields = array( $normalFields = array(
'ADDRESS', 'ADDRESS',
'AGE', 'AGE',
@ -80,7 +87,6 @@ class AdifHelper {
'RST_SENT', 'RST_SENT',
'RX_PWR', 'RX_PWR',
'SAT_MODE', 'SAT_MODE',
'SAT_NAME',
'SFI', 'SFI',
'SILENT_KEY', 'SILENT_KEY',
'SKCC', 'SKCC',
@ -183,11 +189,23 @@ class AdifHelper {
$line .= $this->getAdifFieldLine("MY_GRIDSQUARE", $qso->station_gridsquare); $line .= $this->getAdifFieldLine("MY_GRIDSQUARE", $qso->station_gridsquare);
} }
if($qso->COL_SAT_NAME) {
if($satellite_remap === true) {
$satname = $this->lotw_satellite_map($qso->COL_SAT_NAME);
if($satname) {
$line .= $this->getAdifFieldLine("SAT_NAME", $satname);
} else {
$line .= $this->getAdifFieldLine("SAT_NAME", $qso->COL_SAT_NAME);
}
} else {
$line .= $this->getAdifFieldLine("SAT_NAME", $qso->COL_SAT_NAME);
}
}
$line .= $this->getAdifFieldLine("MY_IOTA", $qso->station_iota); $line .= $this->getAdifFieldLine("MY_IOTA", $qso->station_iota);
$line .= $this->getAdifFieldLine("MY_SOTA_REF", $qso->station_sota); $line .= $this->getAdifFieldLine("MY_SOTA_REF", $qso->station_sota);
$line .= $this->getAdifFieldLine("MY_POTA_REF", $qso->station_pota); $line .= $this->getAdifFieldLine("MY_POTA_REF", $qso->station_pota);
$line .= $this->getAdifFieldLine("MY_CQ_ZONE", $qso->station_cq); $line .= $this->getAdifFieldLine("MY_CQ_ZONE", $qso->station_cq);
@ -258,4 +276,36 @@ class AdifHelper {
return ""; return "";
} }
} }
/*
| Function: lotw_satellite_map
| Requires: OSCAR Satellite name $satname
|
| Outputs if LoTW uses a different satellite name
|
*/
function lotw_satellite_map($satname) {
$arr = array(
"ARISS" => "ISS",
"UKUBE1" => "UKUBE-1",
"KEDR" => "ARISSAT-1",
"TO-108" => "CAS-6",
"TAURUS" => "TAURUS-1",
"AISAT1" => "AISAT-1",
'UVSQ' => "UVSQ-SAT",
'CAS-3H' => "LILACSAT-2",
'IO-117' => "GREENCUBE",
"TEVEL1" => "TEVEL-1",
"TEVEL2" => "TEVEL-2",
"TEVEL3" => "TEVEL-3",
"TEVEL4" => "TEVEL-4",
"TEVEL5" => "TEVEL-5",
"TEVEL6" => "TEVEL-6",
"TEVEL7" => "TEVEL-7",
"TEVEL8" => "TEVEL-8",
"INSPR7" => "INSPIRE-SAT 7",
);
return array_search(strtoupper($satname),$arr,true);
}
} }

查看文件

@ -0,0 +1,30 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
* Tag Cloudlog as 2.6.6
*/
class Migration_tag_2_6_6 extends CI_Migration {
public function up()
{
// Tag Cloudlog 2.6.3
$this->db->where('option_name', 'version');
$this->db->update('options', array('option_value' => '2.6.6'));
// Trigger Version Info Dialog
$this->db->where('option_type', 'version_dialog');
$this->db->where('option_name', 'confirmed');
$this->db->update('user_options', array('option_value' => 'false'));
}
public function down()
{
$this->db->where('option_name', 'version');
$this->db->update('options', array('option_value' => '2.6.5'));
}
}

查看文件

@ -2984,7 +2984,8 @@ class Logbook_model extends CI_Model
} }
/* Used to check if the qso is already in the database */ /* Used to check if the qso is already in the database */
function import_check($datetime, $callsign, $band, $mode, $station_callsign, $station_id = null) { function import_check($datetime, $callsign, $band, $mode, $station_callsign, $station_id = null)
{
$mode = $this->get_main_mode_from_mode($mode); $mode = $this->get_main_mode_from_mode($mode);
$this->db->select('COL_PRIMARY_KEY, COL_TIME_ON, COL_CALL, COL_BAND'); $this->db->select('COL_PRIMARY_KEY, COL_TIME_ON, COL_CALL, COL_BAND');
@ -3412,8 +3413,15 @@ class Logbook_model extends CI_Model
// Check if RX_PWR is "K" which N1MM+ uses to indicate 1000W // Check if RX_PWR is "K" which N1MM+ uses to indicate 1000W
if ($record['rx_pwr'] == "K") { if ($record['rx_pwr'] == "K") {
$rx_pwr = 1000; $rx_pwr = 1000;
} elseif ($record['rx_pwr'] == "KW") {
$rx_pwr = 1000;
} else { } else {
$rx_pwr = filter_var($record['rx_pwr'], FILTER_VALIDATE_FLOAT); if (isset($record['rx_pwr']) && is_numeric($record['rx_pwr'])) {
$rx_pwr = $record['rx_pwr'];
} else {
$rx_pwr = null;
$my_error .= "Error QSO: Date: " . $time_on . " Callsign: " . $record['call'] . " RX_PWR (".$record['rx_pwr'].") is not a number<br>";
}
} }
} else { } else {
$rx_pwr = NULL; $rx_pwr = NULL;
@ -3432,13 +3440,15 @@ class Logbook_model extends CI_Model
} }
if (isset($record['ant_az'])) { if (isset($record['ant_az'])) {
$input_ant_az = filter_var($record['ant_az'], FILTER_SANITIZE_NUMBER_INT); $input_ant_az = filter_var($record['ant_az'], FILTER_VALIDATE_FLOAT);
$input_ant_az = fmod($input_ant_az, 360);
} else { } else {
$input_ant_az = NULL; $input_ant_az = NULL;
} }
if (isset($record['ant_el'])) { if (isset($record['ant_el'])) {
$input_ant_el = filter_var($record['ant_el'], FILTER_SANITIZE_NUMBER_INT); $input_ant_el = filter_var($record['ant_el'], FILTER_VALIDATE_FLOAT);
$input_ant_el = fmod($input_ant_el, 90);
} else { } else {
$input_ant_el = NULL; $input_ant_el = NULL;
} }

查看文件

@ -9,5 +9,5 @@ $CI =& get_instance();
$CI->load->library('AdifHelper'); $CI->load->library('AdifHelper');
foreach ($qsos->result() as $qso) { foreach ($qsos->result() as $qso) {
echo $CI->adifhelper->getAdifLine($qso); echo $CI->adifhelper->getAdifLine($qso, $satellite_remap = true);
} }

查看文件

@ -1,15 +1,15 @@
<table class="table table-striped border-top"> <table id="upcoming_dxccs_component" class="table table-striped border-top">
<tr class="titles"> <tr class="titles">
<td colspan="3"><i class="fas fa-chart-bar"></i> DXPeditions (This Week)</td> <td colspan="3"><i class="fas fa-chart-bar"></i> DXPeditions (This Week)</td>
</tr> </tr>
<?php <?php
foreach ($thisWeekRecords as $record) { foreach ($thisWeekRecords as $record) {
$color = $record['workedBefore'] == 1 ? '#ddffdd' : '#ffdddd'; $name = $record['workedBefore'] == 1 ? 'worked_before' : 'not_worked_before';
echo '<tr>'; echo '<tr>';
echo '<td style="background-color: ' . $color . ';" width="33%">' . $record['daysLeft'] . '</td>'; // Date echo '<td id="' . $name . '">' . $record['daysLeft'] . '</td>'; // Date
echo '<td style="background-color: ' . $color . ';" width="33%">' . '<a href="#" data-bs-toggle="tooltip" data-bs-title="'.$record['6'].'">'.$record['callsign'] . '</a>'. '</td>'; // Callsign echo '<td id="' . $name . '">' . '<a target="_blank" href="https://dxheat.com/db/'.$record['callsign'].'" data-bs-toggle="tooltip" data-bs-title="'.$record['6'].'">'.$record['callsign'] . '</a>'. '</td>'; // Callsign
echo '<td style="background-color: ' . $color . ';" width="33%">' . $record['2'] . '</td>'; // Country echo '<td id="' . $name . '">' . $record['2'] . '</td>'; // Country
echo '</tr>'; echo '</tr>';
} }
?> ?>

查看文件

@ -94,7 +94,6 @@ if($this->session->userdata('user_id') != null) {
type: 'POST', type: 'POST',
}); });
}); });
</script> </script>
<?php } ?> <?php } ?>
@ -164,6 +163,7 @@ if($this->session->userdata('user_id') != null) {
<script src="<?php echo base_url(); ?>assets/js/sections/station_locations.js"></script> <script src="<?php echo base_url(); ?>assets/js/sections/station_locations.js"></script>
<script> <script>
var position; var position;
function getLocation() { function getLocation() {
if (navigator.geolocation) { if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition); navigator.geolocation.getCurrentPosition(showPosition);
@ -187,8 +187,7 @@ if($this->session->userdata('user_id') != null) {
<script type="text/javascript"> <script type="text/javascript">
function copyURL(url) { function copyURL(url) {
var urlField = $('#baseUrl'); var urlField = $('#baseUrl');
navigator.clipboard.writeText(url).then(function() { navigator.clipboard.writeText(url).then(function() {});
});
urlField.addClass('flash-copy') urlField.addClass('flash-copy')
.delay('1000').queue(function() { .delay('1000').queue(function() {
urlField.removeClass('flash-copy').dequeue(); urlField.removeClass('flash-copy').dequeue();
@ -196,7 +195,13 @@ function copyURL(url) {
} }
$(function() { $(function() {
$('[data-bs-toggle="tooltip"]').tooltip({'delay': { show: 500, hide: 0 }, 'placement': 'right'}); $('[data-bs-toggle="tooltip"]').tooltip({
'delay': {
show: 500,
hide: 0
},
'placement': 'right'
});
}); });
</script> </script>
<?php } ?> <?php } ?>
@ -205,8 +210,7 @@ $(function () {
<script type="text/javascript"> <script type="text/javascript">
function copyApiKey(apiKey) { function copyApiKey(apiKey) {
var apiKeyField = $('#' + apiKey); var apiKeyField = $('#' + apiKey);
navigator.clipboard.writeText(apiKey).then(function() { navigator.clipboard.writeText(apiKey).then(function() {});
});
apiKeyField.addClass('flash-copy') apiKeyField.addClass('flash-copy')
.delay('1000').queue(function() { .delay('1000').queue(function() {
apiKeyField.removeClass('flash-copy').dequeue(); apiKeyField.removeClass('flash-copy').dequeue();
@ -215,8 +219,7 @@ function copyApiKey(apiKey) {
function copyApiUrl() { function copyApiUrl() {
var apiUrlField = $('#apiUrl'); var apiUrlField = $('#apiUrl');
navigator.clipboard.writeText("<?php echo base_url(); ?>").then(function() { navigator.clipboard.writeText("<?php echo base_url(); ?>").then(function() {});
});
apiUrlField.addClass('flash-copy') apiUrlField.addClass('flash-copy')
.delay('1000').queue(function() { .delay('1000').queue(function() {
apiUrlField.removeClass('flash-copy').dequeue(); apiUrlField.removeClass('flash-copy').dequeue();
@ -224,7 +227,13 @@ function copyApiUrl() {
} }
$(function() { $(function() {
$('[data-bs-toggle="tooltip"]').tooltip({'delay': { show: 500, hide: 0 }, 'placement': 'right'}); $('[data-bs-toggle="tooltip"]').tooltip({
'delay': {
show: 500,
hide: 0
},
'placement': 'right'
});
}); });
</script> </script>
<?php } ?> <?php } ?>
@ -660,7 +669,11 @@ function newpath(latlng1, latlng2, locator1, locator2) {
var osmUrl = '<?php echo $this->optionslib->get_option('option_map_tile_server'); ?>'; var osmUrl = '<?php echo $this->optionslib->get_option('option_map_tile_server'); ?>';
var osmAttrib = 'Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors'; var osmAttrib = 'Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors';
var osm = new L.TileLayer(osmUrl, {minZoom: 1, maxZoom: 12, attribution: osmAttrib}); var osm = new L.TileLayer(osmUrl, {
minZoom: 1,
maxZoom: 12,
attribution: osmAttrib
});
var redIcon = L.icon({ var redIcon = L.icon({
iconUrl: icon_dot_url, iconUrl: icon_dot_url,
@ -669,9 +682,15 @@ function newpath(latlng1, latlng2, locator1, locator2) {
map.addLayer(osm); map.addLayer(osm);
var marker = L.marker([latlng1[0], latlng1[1]], {closeOnClick: false, autoClose: false}).addTo(map).bindPopup(locator1); var marker = L.marker([latlng1[0], latlng1[1]], {
closeOnClick: false,
autoClose: false
}).addTo(map).bindPopup(locator1);
var marker2 = L.marker([latlng2[0], latlng2[1]], {closeOnClick: false, autoClose: false}).addTo(map).bindPopup(locator2); var marker2 = L.marker([latlng2[0], latlng2[1]], {
closeOnClick: false,
autoClose: false
}).addTo(map).bindPopup(locator2);
const multiplelines = []; const multiplelines = [];
multiplelines.push( multiplelines.push(
@ -714,11 +733,14 @@ function showActivatorsMap(call, count, grids) {
var osmUrl = '<?php echo $this->optionslib->get_option('option_map_tile_server'); ?>'; var osmUrl = '<?php echo $this->optionslib->get_option('option_map_tile_server'); ?>';
var osmAttrib = 'Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors'; var osmAttrib = 'Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors';
var osm = new L.TileLayer(osmUrl, {minZoom: 1, maxZoom: 12, attribution: osmAttrib}); var osm = new L.TileLayer(osmUrl, {
minZoom: 1,
maxZoom: 12,
attribution: osmAttrib
});
map.addLayer(osm); map.addLayer(osm);
} }
</script> </script>
<?php if ($this->uri->segment(1) == "map" && $this->uri->segment(2) == "custom") { ?> <?php if ($this->uri->segment(1) == "map" && $this->uri->segment(2) == "custom") { ?>
@ -746,7 +768,9 @@ function showActivatorsMap(call, count, grids) {
<?php } else { ?> <?php } else { ?>
var grid = "No"; var grid = "No";
<?php } ?> <?php } ?>
initmap(grid, 'custommap', {'initmap_only':true}); initmap(grid, 'custommap', {
'initmap_only': true
});
// Check and change date if to < from // // Check and change date if to < from //
$('.custom-map-QSOs input[name="to"]').off('change').on('change', function() { $('.custom-map-QSOs input[name="to"]').off('change').on('change', function() {
if ($('.custom-map-QSOs input[name="to"]').val().replaceAll('-', '') < $('.custom-map-QSOs input[name="from"]').val().replaceAll('-', '')) { if ($('.custom-map-QSOs input[name="to"]').val().replaceAll('-', '') < $('.custom-map-QSOs input[name="from"]').val().replaceAll('-', '')) {
@ -760,9 +784,17 @@ function showActivatorsMap(call, count, grids) {
}); });
// Form "submit" // // Form "submit" //
$('.custom-map-QSOs .btn_submit_map_custom').off('click').on('click', function() { $('.custom-map-QSOs .btn_submit_map_custom').off('click').on('click', function() {
var customdata = {'dataPost':{'date_from': $('.custom-map-QSOs input[name="from"]').val(), 'date_to': $('.custom-map-QSOs input[name="to"]').val(), var customdata = {
'band': $('.custom-map-QSOs select[name="band"]').val(), 'mode': $('.custom-map-QSOs select[name="mode"]').val(), 'dataPost': {
'prop_mode': $('.custom-map-QSOs select[name="prop_mode"]').val(), 'isCustom':true }, 'map_id':'#custommap'}; 'date_from': $('.custom-map-QSOs input[name="from"]').val(),
'date_to': $('.custom-map-QSOs input[name="to"]').val(),
'band': $('.custom-map-QSOs select[name="band"]').val(),
'mode': $('.custom-map-QSOs select[name="mode"]').val(),
'prop_mode': $('.custom-map-QSOs select[name="prop_mode"]').val(),
'isCustom': true
},
'map_id': '#custommap'
};
initplot(qso_loc, customdata); initplot(qso_loc, customdata);
}) })
@ -797,7 +829,11 @@ function showActivatorsMap(call, count, grids) {
<?php } else { ?> <?php } else { ?>
var grid = "No"; var grid = "No";
<?php } ?> <?php } ?>
initmap(grid,'map',{'dataPost':{'nb_qso':'18'}}); initmap(grid, 'map', {
'dataPost': {
'nb_qso': '18'
}
});
}); });
</script> </script>
@ -973,8 +1009,12 @@ $($('#callsign')).on('keypress',function(e) {
<?php } else { ?> <?php } else { ?>
var grid = "No"; var grid = "No";
<?php } ?> <?php } ?>
initmap(grid,'map',{'dataPost':{'nb_qso':'25','offset':'<?php echo $this->uri->segment(3); ?>'}}); initmap(grid, 'map', {
'dataPost': {
'nb_qso': '25',
'offset': '<?php echo $this->uri->segment(3); ?>'
}
});
</script> </script>
<?php } ?> <?php } ?>
@ -990,7 +1030,11 @@ $($('#callsign')).on('keypress',function(e) {
var dxcluster_provider = '<?php echo base_url(); ?>index.php/dxcluster'; var dxcluster_provider = '<?php echo base_url(); ?>index.php/dxcluster';
$(document).ready(function() { $(document).ready(function() {
$("#check_cluster").on("click", function() { $("#check_cluster").on("click", function() {
$.ajax({ url: dxcluster_provider+"/qrg_lookup/"+$("#frequency").val()/1000, cache: false, dataType: "json" }).done( $.ajax({
url: dxcluster_provider + "/qrg_lookup/" + $("#frequency").val() / 1000,
cache: false,
dataType: "json"
}).done(
function(dxspot) { function(dxspot) {
reset_fields(); reset_fields();
$("#callsign").val(dxspot.spotted); $("#callsign").val(dxspot.spotted);
@ -1042,8 +1086,7 @@ $($('#callsign')).on('keypress',function(e) {
pos = result; pos = result;
} }
}, },
error: function() { error: function() {},
},
}); });
L.tileLayer('<?php echo $this->optionslib->get_option('option_map_tile_server'); ?>', { L.tileLayer('<?php echo $this->optionslib->get_option('option_map_tile_server'); ?>', {
@ -1051,11 +1094,9 @@ $($('#callsign')).on('keypress',function(e) {
attribution: '<?php echo $this->optionslib->get_option('option_map_tile_server_copyright'); ?>', attribution: '<?php echo $this->optionslib->get_option('option_map_tile_server_copyright'); ?>',
id: 'mapbox.streets' id: 'mapbox.streets'
}).addTo(mymap); }).addTo(mymap);
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
var manual = <?php echo $_GET['manual']; ?>; var manual = <?php echo $_GET['manual']; ?>;
$(document).ready(function() { $(document).ready(function() {
@ -1149,6 +1190,10 @@ $($('#callsign')).on('keypress',function(e) {
} }
$('#callsign').val(""); $('#callsign').val("");
$("#callsign").focus(); $("#callsign").focus();
updateFromCAT();
if (document.querySelector('#radio').value != '0') {
updateFromCAT();
}
} }
}); });
}); });
@ -1160,7 +1205,9 @@ $($('#callsign')).on('keypress',function(e) {
$.ajax({ $.ajax({
url: base_url + 'index.php/qso/get_sota_info', url: base_url + 'index.php/qso/get_sota_info',
type: 'post', type: 'post',
data: {'sota': sota}, data: {
'sota': sota
},
success: function(res) { success: function(res) {
$('#qth').val(res.name); $('#qth').val(res.name);
$('#locator').val(res.locator); $('#locator').val(res.locator);
@ -1181,7 +1228,9 @@ $($('#callsign')).on('keypress',function(e) {
$.ajax({ $.ajax({
url: base_url + 'index.php/qso/get_wwff_info', url: base_url + 'index.php/qso/get_wwff_info',
type: 'post', type: 'post',
data: {'wwff': wwff}, data: {
'wwff': wwff
},
success: function(res) { success: function(res) {
$('#qth').val(res.name); $('#qth').val(res.name);
$('#locator').val(res.locator); $('#locator').val(res.locator);
@ -1202,7 +1251,9 @@ $($('#callsign')).on('keypress',function(e) {
$.ajax({ $.ajax({
url: base_url + 'index.php/qso/get_pota_info', url: base_url + 'index.php/qso/get_pota_info',
type: 'post', type: 'post',
data: {'pota': pota}, data: {
'pota': pota
},
success: function(res) { success: function(res) {
$('#qth').val(res.name); $('#qth').val(res.name);
$('#locator').val(res.grid6); $('#locator').val(res.grid6);
@ -1221,7 +1272,9 @@ $($('#callsign')).on('keypress',function(e) {
$.ajax({ $.ajax({
url: base_url + 'index.php/qso/get_station_power', url: base_url + 'index.php/qso/get_station_power',
type: 'post', type: 'post',
data: {'stationProfile': stationProfile}, data: {
'stationProfile': stationProfile
},
success: function(res) { success: function(res) {
$('#transmit_power').val(res.station_power); $('#transmit_power').val(res.station_power);
}, },
@ -1287,7 +1340,8 @@ $($('#callsign')).on('keypress',function(e) {
ydiv = ydiv_arr[yk]; ydiv = ydiv_arr[yk];
yres = ycalc[yi] / ydiv; yres = ycalc[yi] / ydiv;
ycalc[yi] = yres; ycalc[yi] = yres;
if (ycalc[yi] > 0) ylp = Math.floor(yres); else ylp = Math.ceil(yres); if (ycalc[yi] > 0) ylp = Math.floor(yres);
else ylp = Math.ceil(yres);
ycalc[yi] = (ycalc[yi] - ylp) * ydiv; ycalc[yi] = (ycalc[yi] - ylp) * ydiv;
yn[2 * yk + yi] = ylp; yn[2 * yk + yi] = ylp;
} }
@ -1302,7 +1356,6 @@ $($('#callsign')).on('keypress',function(e) {
return qthloc; return qthloc;
} }
<?php } ?> <?php } ?>
</script> </script>
<?php } ?> <?php } ?>
@ -1310,7 +1363,6 @@ $($('#callsign')).on('keypress',function(e) {
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/moment.min.js"></script> <script type="text/javascript" src="<?php echo base_url(); ?>assets/js/moment.min.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/datetime-moment.js"></script> <script type="text/javascript" src="<?php echo base_url(); ?>assets/js/datetime-moment.js"></script>
<script> <script>
$('#notice-alerts').delay(1000).fadeOut(5000); $('#notice-alerts').delay(1000).fadeOut(5000);
function setRst(mode) { function setRst(mode) {
@ -1342,7 +1394,6 @@ $($('#callsign')).on('keypress',function(e) {
var utc = localTime + (now.getTimezoneOffset() * 60000); var utc = localTime + (now.getTimezoneOffset() * 60000);
$(el).attr('value', ("0" + now.getUTCDate()).slice(-2) + '-' + ("0" + (now.getUTCMonth() + 1)).slice(-2) + '-' + now.getUTCFullYear()); $(el).attr('value', ("0" + now.getUTCDate()).slice(-2) + '-' + ("0" + (now.getUTCMonth() + 1)).slice(-2) + '-' + now.getUTCFullYear());
} }
</script> </script>
<script> <script>
@ -1361,7 +1412,9 @@ $($('#callsign')).on('keypress',function(e) {
if (ui.data('catValue') != cat) { if (ui.data('catValue') != cat) {
ui.val(cat); ui.val(cat);
ui.data('catValue', cat); ui.data('catValue', cat);
if (typeof callback_on_update === 'function') { callback_on_update(cat); } if (typeof callback_on_update === 'function') {
callback_on_update(cat);
}
} }
} }
@ -1390,9 +1443,15 @@ $($('#callsign')).on('keypress',function(e) {
if ($('.radio_login_error').length != 0) { if ($('.radio_login_error').length != 0) {
$(".radio_login_error").remove(); $(".radio_login_error").remove();
} }
cat2UI($('#frequency'),data.frequency,false,true,function(d){$("#band").val(frequencyToBand(d))}); cat2UI($('#frequency'), data.frequency, false, true, function(d) {
cat2UI($('#frequency_rx'),data.frequency_rx,false,true,function(d){$("#band_rx").val(frequencyToBand(d))}); $("#band").val(frequencyToBand(d))
cat2UI($('.mode'),data.mode,false,false,function(d){setRst($(".mode").val())}); });
cat2UI($('#frequency_rx'), data.frequency_rx, false, true, function(d) {
$("#band_rx").val(frequencyToBand(d))
});
cat2UI($('.mode'), data.mode, false, false, function(d) {
setRst($(".mode").val())
});
cat2UI($('#sat_name'), data.satname, false, false); cat2UI($('#sat_name'), data.satname, false, false);
cat2UI($('#sat_mode'), data.satmode, false, false); cat2UI($('#sat_mode'), data.satmode, false, false);
cat2UI($('#transmit_power'), data.power, false, false); cat2UI($('#transmit_power'), data.power, false, false);
@ -1427,7 +1486,9 @@ $($('#callsign')).on('keypress',function(e) {
if (data.frequency_rx != null && data.frequency_rx != 0) { if (data.frequency_rx != null && data.frequency_rx != 0) {
ptext = ptext + '<span style="margin-left:10px"></span><b>RX:</b> ' + (Math.round(parseInt(data.frequency_rx) / 1000) / 1000).toFixed(3) + ' MHz'; ptext = ptext + '<span style="margin-left:10px"></span><b>RX:</b> ' + (Math.round(parseInt(data.frequency_rx) / 1000) / 1000).toFixed(3) + ' MHz';
} }
if( ptext != '') { text = text + '<span style="margin-left:10px"></span>(' + ptext + ')';} if (ptext != '') {
text = text + '<span style="margin-left:10px"></span>(' + ptext + ')';
}
if (!$('#radio_cat_state').length) { if (!$('#radio_cat_state').length) {
$('#radio_status').prepend('<div aria-hidden="true"><div id="radio_cat_state" class="alert alert-success radio_cat_state" role="alert">' + text + '</div></div>'); $('#radio_status').prepend('<div aria-hidden="true"><div id="radio_cat_state" class="alert alert-success radio_cat_state" role="alert">' + text + '</div></div>');
} else { } else {
@ -1463,7 +1524,6 @@ $($('#callsign')).on('keypress',function(e) {
<?php if ($this->uri->segment(1) == "logbook" && $this->uri->segment(2) == "view") { ?> <?php if ($this->uri->segment(1) == "logbook" && $this->uri->segment(2) == "view") { ?>
<script> <script>
var mymap = L.map('map').setView([lat, long], 5); var mymap = L.map('map').setView([lat, long], 5);
L.tileLayer('<?php echo $this->optionslib->get_option('option_map_tile_server'); ?>', { L.tileLayer('<?php echo $this->optionslib->get_option('option_map_tile_server'); ?>', {
@ -1487,11 +1547,12 @@ $($('#callsign')).on('keypress',function(e) {
iconSize: [18, 18], // size of the icon iconSize: [18, 18], // size of the icon
}); });
L.marker([lat,long], {icon: redIcon}).addTo(mymap) L.marker([lat, long], {
icon: redIcon
}).addTo(mymap)
.bindPopup(callsign); .bindPopup(callsign);
mymap.on('click', onMapClick); mymap.on('click', onMapClick);
</script> </script>
<?php } ?> <?php } ?>
@ -1500,9 +1561,12 @@ $($('#callsign')).on('keypress',function(e) {
$(document).ready(function() { $(document).ready(function() {
$('#btn_update_dxcc').bind('click', function() { $('#btn_update_dxcc').bind('click', function() {
$('#dxcc_update_status').show(); $('#dxcc_update_status').show();
$.ajax({url:"update/dxcc"}); $.ajax({
url: "update/dxcc"
});
setTimeout(update_stats, 5000); setTimeout(update_stats, 5000);
}); });
function update_stats() { function update_stats() {
$('#dxcc_update_status').load('<?php echo base_url() ?>updates/status.html', function(val) { $('#dxcc_update_status').load('<?php echo base_url() ?>updates/status.html', function(val) {
$('#dxcc_update_staus').html(val); $('#dxcc_update_staus').html(val);
@ -1520,11 +1584,12 @@ $(document).ready(function(){
<?php } ?> <?php } ?>
<?php if ($this->uri->segment(1) == "gridsquares" && !empty($this->uri->segment(2))) { ?> <?php if ($this->uri->segment(1) == "gridsquares" && !empty($this->uri->segment(2))) { ?>
<script>var gridsquaremap = true;</script> <script>
var gridsquaremap = true;
</script>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/leaflet/L.MaidenheadColoured.js"></script> <script type="text/javascript" src="<?php echo base_url(); ?>assets/js/leaflet/L.MaidenheadColoured.js"></script>
<script> <script>
var layer = L.tileLayer('<?php echo $this->optionslib->get_option('option_map_tile_server'); ?>', { var layer = L.tileLayer('<?php echo $this->optionslib->get_option('option_map_tile_server'); ?>', {
maxZoom: 18, maxZoom: 18,
attribution: '<?php echo $this->optionslib->get_option('option_map_tile_server_copyright'); ?>', attribution: '<?php echo $this->optionslib->get_option('option_map_tile_server_copyright'); ?>',
@ -1629,7 +1694,9 @@ $(document).ready(function(){
if (count > 0) { if (count > 0) {
$('#square_number').text(loc_4char); $('#square_number').text(loc_4char);
$('#exampleModal').modal('show'); $('#exampleModal').modal('show');
$('[data-bs-toggle="tooltip"]').tooltip({ boundary: 'window' }); $('[data-bs-toggle="tooltip"]').tooltip({
boundary: 'window'
});
} }
$('.table-responsive .dropdown-toggle').off('mouseenter').on('mouseenter', function() { $('.table-responsive .dropdown-toggle').off('mouseenter').on('mouseenter', function() {
showQsoActionsMenu($(this).closest('.dropdown')); showQsoActionsMenu($(this).closest('.dropdown'));
@ -1667,7 +1734,6 @@ $(document).ready(function(){
}); });
}); });
<?php } ?> <?php } ?>
</script> </script>
<?php } ?> <?php } ?>
@ -1766,7 +1832,9 @@ $(document).ready(function(){
if (count > 0) { if (count > 0) {
$('#square_number').text(loc_4char); $('#square_number').text(loc_4char);
$('#exampleModal').modal('show'); $('#exampleModal').modal('show');
$('[data-bs-toggle="tooltip"]').tooltip({ boundary: 'window' }); $('[data-bs-toggle="tooltip"]').tooltip({
boundary: 'window'
});
} }
$('.table-responsive .dropdown-toggle').off('mouseenter').on('mouseenter', function() { $('.table-responsive .dropdown-toggle').off('mouseenter').on('mouseenter', function() {
showQsoActionsMenu($(this).closest('.dropdown')); showQsoActionsMenu($(this).closest('.dropdown'));
@ -1806,7 +1874,6 @@ $(document).ready(function(){
}); });
}); });
<?php } ?> <?php } ?>
</script> </script>
<?php } ?> <?php } ?>
@ -1874,7 +1941,9 @@ $(document).ready(function(){
iconSize: [18, 18], // size of the icon iconSize: [18, 18], // size of the icon
}); });
L.marker([lat,long], {icon: redIcon}).addTo(mymap) L.marker([lat, long], {
icon: redIcon
}).addTo(mymap)
.bindPopup(callsign); .bindPopup(callsign);
}, },
@ -1994,7 +2063,6 @@ $(document).ready(function(){
<?php if ($this->uri->segment(2) == "iota") { ?> <?php if ($this->uri->segment(2) == "iota") { ?>
<script> <script>
$('.tableiota').DataTable({ $('.tableiota').DataTable({
"pageLength": 25, "pageLength": 25,
responsive: false, responsive: false,
@ -2115,7 +2183,6 @@ $(document).ready(function(){
<?php } ?> <?php } ?>
<script> <script>
function selectize_usa_county() { function selectize_usa_county() {
var baseURL = "<?php echo base_url(); ?>"; var baseURL = "<?php echo base_url(); ?>";
$('#stationCntyInputEdit').selectize({ $('#stationCntyInputEdit').selectize({
@ -2165,7 +2232,8 @@ $(document).ready(function(){
success: function(dataofconfirm) { success: function(dataofconfirm) {
$(".edit-dialog").modal('hide'); $(".edit-dialog").modal('hide');
$(".qso-dialog").modal('hide'); $(".qso-dialog").modal('hide');
<?php if ($this->uri->segment(1) != "search" && $this->uri->segment(2) != "filter" && $this->uri->segment(1) != "qso" && $this->uri->segment(1) != "logbookadvanced") { ?>location.reload();<?php } ?> <?php if ($this->uri->segment(1) != "search" && $this->uri->segment(2) != "filter" && $this->uri->segment(1) != "qso" && $this->uri->segment(1) != "logbookadvanced") { ?>location.reload();
<?php } ?>
}, },
error: function(xhr, status, error) { error: function(xhr, status, error) {
console.log(xhr.responseText); console.log(xhr.responseText);
@ -2202,7 +2270,8 @@ $(document).ready(function(){
$.ajax({ $.ajax({
url: baseURL + 'index.php/timeline/details', url: baseURL + 'index.php/timeline/details',
type: 'post', type: 'post',
data: {'Querystring': querystring, data: {
'Querystring': querystring,
'Band': band, 'Band': band,
'Mode': mode, 'Mode': mode,
'Type': type 'Type': type
@ -2257,10 +2326,8 @@ $(document).ready(function(){
} }
$(document).ready(function() { $(document).ready(function() {
$('#band').change(function() $('#band').change(function() {
{ if ($(this).val() == "SAT") {
if($(this).val() == "SAT")
{
$('#leogeo').show(); $('#leogeo').show();
} else { } else {
$('#leogeo').hide(); $('#leogeo').hide();
@ -2270,12 +2337,14 @@ $(document).ready(function(){
$('#leogeo').hide(); $('#leogeo').hide();
<?php } ?> <?php } ?>
}); });
function displayActivatorsContacts(call, band, leogeo) { function displayActivatorsContacts(call, band, leogeo) {
var baseURL = "<?php echo base_url(); ?>"; var baseURL = "<?php echo base_url(); ?>";
$.ajax({ $.ajax({
url: baseURL + 'index.php/activators/details', url: baseURL + 'index.php/activators/details',
type: 'post', type: 'post',
data: {'Callsign': call, data: {
'Callsign': call,
'Band': band, 'Band': band,
'LeoGeo': leogeo 'LeoGeo': leogeo
}, },
@ -2334,15 +2403,33 @@ $(document).ready(function(){
} }
switch ($custom_date_format) { switch ($custom_date_format) {
case 'd/m/y': $usethisformat = 'D/MM/YY';break; case 'd/m/y':
case 'd/m/Y': $usethisformat = 'D/MM/YYYY';break; $usethisformat = 'D/MM/YY';
case 'm/d/y': $usethisformat = 'MM/D/YY';break; break;
case 'm/d/Y': $usethisformat = 'MM/D/YYYY';break; case 'd/m/Y':
case 'd.m.Y': $usethisformat = 'D.MM.YYYY';break; $usethisformat = 'D/MM/YYYY';
case 'y/m/d': $usethisformat = 'YY/MM/D';break; break;
case 'Y-m-d': $usethisformat = 'YYYY-MM-D';break; case 'm/d/y':
case 'M d, Y': $usethisformat = 'MMM D, YYYY';break; $usethisformat = 'MM/D/YY';
case 'M d, y': $usethisformat = 'MMM D, YY';break; break;
case 'm/d/Y':
$usethisformat = 'MM/D/YYYY';
break;
case 'd.m.Y':
$usethisformat = 'D.MM.YYYY';
break;
case 'y/m/d':
$usethisformat = 'YY/MM/D';
break;
case 'Y-m-d':
$usethisformat = 'YYYY-MM-D';
break;
case 'M d, Y':
$usethisformat = 'MMM D, YYYY';
break;
case 'M d, y':
$usethisformat = 'MMM D, YY';
break;
} }
?> ?>
@ -2360,8 +2447,7 @@ $(document).ready(function(){
$('.qsltable').DataTable({ $('.qsltable').DataTable({
<?php } else if ($this->uri->segment(1) == "eqsl") { ?> <?php } else if ($this->uri->segment(1) == "eqsl") { ?>
$('.eqsltable').DataTable({ $('.eqsltable').DataTable({
<?php } ?> <?php } ?> "pageLength": 25,
"pageLength": 25,
responsive: false, responsive: false,
ordering: true, ordering: true,
"scrollY": "500px", "scrollY": "500px",
@ -2373,18 +2459,15 @@ $(document).ready(function(){
}, },
"order": [2, 'desc'], "order": [2, 'desc'],
dom: 'Bfrtip', dom: 'Bfrtip',
buttons: [ buttons: [{
{
extend: 'clear', extend: 'clear',
text: 'Clear' text: 'Clear'
} }]
]
}); });
// change color of csv-button if dark mode is chosen // change color of csv-button if dark mode is chosen
if (isDarkModeTheme()) { if (isDarkModeTheme()) {
$('[class*="buttons"]').css("color", "white"); $('[class*="buttons"]').css("color", "white");
} }
</script> </script>
<?php } ?> <?php } ?>
@ -2429,7 +2512,8 @@ function deleteQsl(id) {
$.ajax({ $.ajax({
url: baseURL + 'index.php/qsl/delete', url: baseURL + 'index.php/qsl/delete',
type: 'post', type: 'post',
data: {'id': id data: {
'id': id
}, },
success: function(data) { success: function(data) {
$("#" + id).parent("tr:first").remove(); // removes qsl from table $("#" + id).parent("tr:first").remove(); // removes qsl from table
@ -2602,6 +2686,7 @@ function viewEqsl(picture, callsign) {
} }
}); });
} }
function uploadQsl() { function uploadQsl() {
var baseURL = "<?php echo base_url(); ?>"; var baseURL = "<?php echo base_url(); ?>";
var formdata = new FormData(document.getElementById("fileinfo")); var formdata = new FormData(document.getElementById("fileinfo"));
@ -2624,8 +2709,7 @@ function viewEqsl(picture, callsign) {
$(".carousel-indicators").append('<li data-bs-target="#carouselExampleIndicators" data-bs-slide-to="' + quantity + '"></li>'); $(".carousel-indicators").append('<li data-bs-target="#carouselExampleIndicators" data-bs-slide-to="' + quantity + '"></li>');
$(".carousel-inner").append('<center><div class="carousel-item carouselimageid_' + data.status.front.insertid + '"><img class="img-fluid w-qsl" src="' + baseURL + '/assets/qslcard/' + data.status.front.filename + '" alt="QSL picture #' + (quantity + 1) + '"></div></center>'); $(".carousel-inner").append('<center><div class="carousel-item carouselimageid_' + data.status.front.insertid + '"><img class="img-fluid w-qsl" src="' + baseURL + '/assets/qslcard/' + data.status.front.filename + '" alt="QSL picture #' + (quantity + 1) + '"></div></center>');
$("#qslcardfront").val(null); $("#qslcardfront").val(null);
} } else {
else {
$("#qslupload").prepend('<table style="width:100%" class="qsltable table table-sm table-bordered table-hover table-striped table-condensed">' + $("#qslupload").prepend('<table style="width:100%" class="qsltable table table-sm table-bordered table-hover table-striped table-condensed">' +
'<thead>' + '<thead>' +
'<tr>' + '<tr>' +
@ -2663,8 +2747,7 @@ function viewEqsl(picture, callsign) {
$(".carousel-indicators").append('<li data-bs-target="#carouselExampleIndicators" data-bs-slide-to="' + quantity + '"></li>'); $(".carousel-indicators").append('<li data-bs-target="#carouselExampleIndicators" data-bs-slide-to="' + quantity + '"></li>');
$(".carousel-inner").append('<center><div class="carousel-item carouselimageid_' + data.status.back.insertid + '"><img class="img-fluid w-qsl" src="' + baseURL + '/assets/qslcard/' + data.status.back.filename + '" alt="QSL picture #' + (quantity + 1) + '"></div></center>'); $(".carousel-inner").append('<center><div class="carousel-item carouselimageid_' + data.status.back.insertid + '"><img class="img-fluid w-qsl" src="' + baseURL + '/assets/qslcard/' + data.status.back.filename + '" alt="QSL picture #' + (quantity + 1) + '"></div></center>');
$("#qslcardback").val(null); $("#qslcardback").val(null);
} } else {
else {
$("#qslupload").prepend('<table style="width:100%" class="qsltable table table-sm table-bordered table-hover table-striped table-condensed">' + $("#qslupload").prepend('<table style="width:100%" class="qsltable table table-sm table-bordered table-hover table-striped table-condensed">' +
'<thead>' + '<thead>' +
'<tr>' + '<tr>' +
@ -2695,7 +2778,6 @@ function viewEqsl(picture, callsign) {
} }
</script> </script>
<script> <script>
function addQsosToQsl(filename) { function addQsosToQsl(filename) {
var title = 'Add additional QSOs to a QSL Card'; var title = 'Add additional QSOs to a QSL Card';
@ -2703,7 +2785,9 @@ function viewEqsl(picture, callsign) {
$.ajax({ $.ajax({
url: baseURL + 'index.php/qsl/loadSearchForm', url: baseURL + 'index.php/qsl/loadSearchForm',
type: 'post', type: 'post',
data: {'filename': filename}, data: {
'filename': filename
},
success: function(html) { success: function(html) {
BootstrapDialog.show({ BootstrapDialog.show({
title: title, title: title,
@ -2729,7 +2813,10 @@ function viewEqsl(picture, callsign) {
$.ajax({ $.ajax({
url: baseURL + 'index.php/qsl/addQsoToQsl', url: baseURL + 'index.php/qsl/addQsoToQsl',
type: 'post', type: 'post',
data: {'filename': filename, 'qsoid': qsoid}, data: {
'filename': filename,
'qsoid': qsoid
},
success: function(html) { success: function(html) {
if (html.status == 'Success') { if (html.status == 'Success') {
location.reload(); location.reload();
@ -2746,7 +2833,10 @@ function viewEqsl(picture, callsign) {
$.ajax({ $.ajax({
url: baseURL + 'index.php/qsl/searchQsos', url: baseURL + 'index.php/qsl/searchQsos',
type: 'post', type: 'post',
data: {'callsign': $('#callsign').val(), 'filename': filename}, data: {
'callsign': $('#callsign').val(),
'filename': filename
},
success: function(html) { success: function(html) {
$('#searchresult').empty(); $('#searchresult').empty();
$('#searchresult').append(html); $('#searchresult').append(html);
@ -2848,7 +2938,10 @@ function viewEqsl(picture, callsign) {
$.ajax({ $.ajax({
url: baseURL + 'index.php/awards/counties_details_ajax', url: baseURL + 'index.php/awards/counties_details_ajax',
type: 'post', type: 'post',
data: {'State': state, 'County': county }, data: {
'State': state,
'County': county
},
success: function(html) { success: function(html) {
BootstrapDialog.show({ BootstrapDialog.show({
title: lang_general_word_qso_data, title: lang_general_word_qso_data,
@ -2917,7 +3010,8 @@ function viewEqsl(picture, callsign) {
$.ajax({ $.ajax({
url: base_url + 'index.php/themes/delete', url: base_url + 'index.php/themes/delete',
type: 'post', type: 'post',
data: {'id': id data: {
'id': id
}, },
success: function(data) { success: function(data) {
$(".theme_" + id).parent("tr:first").remove(); // removes mode from table $(".theme_" + id).parent("tr:first").remove(); // removes mode from table
@ -2999,15 +3093,33 @@ function viewEqsl(picture, callsign) {
} }
switch ($custom_date_format) { switch ($custom_date_format) {
case 'd/m/y': $usethisformat = 'D/MM/YY';break; case 'd/m/y':
case 'd/m/Y': $usethisformat = 'D/MM/YYYY';break; $usethisformat = 'D/MM/YY';
case 'm/d/y': $usethisformat = 'MM/D/YY';break; break;
case 'm/d/Y': $usethisformat = 'MM/D/YYYY';break; case 'd/m/Y':
case 'd.m.Y': $usethisformat = 'D.MM.YYYY';break; $usethisformat = 'D/MM/YYYY';
case 'y/m/d': $usethisformat = 'YY/MM/D';break; break;
case 'Y-m-d': $usethisformat = 'YYYY-MM-D';break; case 'm/d/y':
case 'M d, Y': $usethisformat = 'MMM D, YYYY';break; $usethisformat = 'MM/D/YY';
case 'M d, y': $usethisformat = 'MMM D, YY';break; break;
case 'm/d/Y':
$usethisformat = 'MM/D/YYYY';
break;
case 'd.m.Y':
$usethisformat = 'D.MM.YYYY';
break;
case 'y/m/d':
$usethisformat = 'YY/MM/D';
break;
case 'Y-m-d':
$usethisformat = 'YYYY-MM-D';
break;
case 'M d, Y':
$usethisformat = 'MMM D, YYYY';
break;
case 'M d, y':
$usethisformat = 'MMM D, YY';
break;
} }
?> ?>
@ -3035,8 +3147,7 @@ function viewEqsl(picture, callsign) {
}, },
"order": [0, 'asc'], "order": [0, 'asc'],
dom: 'Bfrtip', dom: 'Bfrtip',
buttons: [ buttons: [{
{
extend: 'csv' extend: 'csv'
}, },
{ {
@ -3072,8 +3183,7 @@ function viewEqsl(picture, callsign) {
}, },
"order": [0, 'asc'], "order": [0, 'asc'],
dom: 'Bfrtip', dom: 'Bfrtip',
buttons: [ buttons: [{
{
extend: 'csv' extend: 'csv'
}, },
{ {
@ -3107,8 +3217,7 @@ function viewEqsl(picture, callsign) {
url: getDataTablesLanguageUrl(), url: getDataTablesLanguageUrl(),
}, },
dom: 'Bfrtip', dom: 'Bfrtip',
buttons: [ buttons: [{
{
extend: 'csv' extend: 'csv'
}, },
{ {
@ -3131,9 +3240,17 @@ function viewEqsl(picture, callsign) {
$(document).ready(function() { $(document).ready(function() {
$('.icon_selectBox').off('click').on('click', function() { $('.icon_selectBox').off('click').on('click', function() {
var boxcontent = $(this).attr('data-boxcontent'); var boxcontent = $(this).attr('data-boxcontent');
if ($('.icon_selectBox_data[data-boxcontent="'+boxcontent+'"]').is(":hidden")) { $('.icon_selectBox_data[data-boxcontent="'+boxcontent+'"]').show(); } else { $('.icon_selectBox_data[data-boxcontent="'+boxcontent+'"]').hide(); } if ($('.icon_selectBox_data[data-boxcontent="' + boxcontent + '"]').is(":hidden")) {
$('.icon_selectBox_data[data-boxcontent="' + boxcontent + '"]').show();
} else {
$('.icon_selectBox_data[data-boxcontent="' + boxcontent + '"]').hide();
}
});
$('.icon_selectBox_data').off('mouseleave').on('mouseleave', function() {
if ($(this).is(":visible")) {
$(this).hide();
}
}); });
$('.icon_selectBox_data').off('mouseleave').on('mouseleave', function(){ if ($(this).is(":visible")) { $(this).hide(); } });
$('.icon_selectBox_data label').off('click').on('click', function() { $('.icon_selectBox_data label').off('click').on('click', function() {
var boxcontent = $(this).closest('.icon_selectBox_data').attr('data-boxcontent'); var boxcontent = $(this).closest('.icon_selectBox_data').attr('data-boxcontent');
$('input[name="user_map_' + boxcontent + '_icon"]').attr('value', $(this).attr('data-value')); $('input[name="user_map_' + boxcontent + '_icon"]').attr('value', $(this).attr('data-value'));
@ -3152,8 +3269,7 @@ function viewEqsl(picture, callsign) {
var $open = $($(this).data('parent')).find('.collapse.show'); var $open = $($(this).data('parent')).find('.collapse.show');
var additionalOffset = 0; var additionalOffset = 0;
if($card.prevAll().filter($open.closest('.accordion-item')).length !== 0) if ($card.prevAll().filter($open.closest('.accordion-item')).length !== 0) {
{
additionalOffset = $open.height(); additionalOffset = $open.height();
} }
$('html,body').animate({ $('html,body').animate({
@ -3178,4 +3294,5 @@ if (isset($scripts) && is_array($scripts)){
?> ?>
</script> </script>
</body> </body>
</html> </html>

查看文件

@ -34,6 +34,9 @@ body {
<div class="my-2 bg-body rounded-0 shadow-sm card mb-2 shadow-sm"> <div class="my-2 bg-body rounded-0 shadow-sm card mb-2 shadow-sm">
<div class="card-body"> <div class="card-body">
<h3><?php echo lang('account_login_to_cloudlog'); ?></h3> <h3><?php echo lang('account_login_to_cloudlog'); ?></h3>
<?php $this->load->view('layout/messages'); ?>
<form method="post" action="<?php echo site_url('user/login'); ?>" name="users"> <form method="post" action="<?php echo site_url('user/login'); ?>" name="users">
<?php $this->form_validation->set_error_delimiters('', ''); ?> <?php $this->form_validation->set_error_delimiters('', ''); ?>
<input type="hidden" name="id" value="<?php echo $this->uri->segment(3); ?>" /> <input type="hidden" name="id" value="<?php echo $this->uri->segment(3); ?>" />
@ -51,7 +54,6 @@ body {
<div> <div>
<p><small><a class="" href="<?php echo site_url('user/forgot_password'); ?>"><?php echo lang('account_forgot_your_password'); ?></a></small></p> <p><small><a class="" href="<?php echo site_url('user/forgot_password'); ?>"><?php echo lang('account_forgot_your_password'); ?></a></small></p>
</div> </div>
<?php $this->load->view('layout/messages'); ?>
<button class="w-100 btn btn-info" type="submit"><?php echo lang('account_login'); ?> →</button> <button class="w-100 btn btn-info" type="submit"><?php echo lang('account_login'); ?> →</button>
</form> </form>
</div> </div>

查看文件

@ -215,6 +215,21 @@
<td><?php echo (strlen($row->COL_SAT_MODE) == 2 ? (strtoupper($row->COL_SAT_MODE[0]).'/'.strtoupper($row->COL_SAT_MODE[1])) : strtoupper($row->COL_SAT_MODE)); ?></td> <td><?php echo (strlen($row->COL_SAT_MODE) == 2 ? (strtoupper($row->COL_SAT_MODE[0]).'/'.strtoupper($row->COL_SAT_MODE[1])) : strtoupper($row->COL_SAT_MODE)); ?></td>
</tr> </tr>
<?php } ?> <?php } ?>
<?php if($row->COL_ANT_AZ != null) { ?>
<tr>
<td><?php echo lang('gen_hamradio_ant_az'); ?></td>
<td><?php echo $row->COL_ANT_AZ; ?>&deg; <span style="margin-left: 2px; display: inline-block; transform: rotate(<?php echo (-45+$row->COL_ANT_AZ); ?>deg);"><i class="fas fa-location-arrow fa-xs"></i></span></td>
</tr>
<?php } ?>
<?php if($row->COL_ANT_EL != null) { ?>
<tr>
<td><?php echo lang('gen_hamradio_ant_el'); ?></td>
<td><?php echo $row->COL_ANT_EL; ?>&deg; <span style="margin-left: 2px; display: inline-block; transform: rotate(<?php echo (-$row->COL_ANT_EL); ?>deg);"><i class="fas fa-arrow-right fa-xs"></i></span></td>
</tr>
<?php } ?>
<?php if($row->name != null) { ?> <?php if($row->name != null) { ?>
<tr> <tr>
<td><?php echo lang('general_word_country'); ?></td> <td><?php echo lang('general_word_country'); ?></td>

查看文件

@ -192,3 +192,16 @@ path.grid-worked {
.accordion-button.collapsed { .accordion-button.collapsed {
border-bottom: 1px solid var(--bs-body-bg); border-bottom: 1px solid var(--bs-body-bg);
} }
/* CSS for Upcoming DXCC Component */
#upcoming_dxccs_component #worked_before {
background-color: #ddffdd;
width: 33%;
color: #000;
}
#upcoming_dxccs_component #not_worked_before {
background-color: #ffdddd;
width: 33%;
color: #000;
}

查看文件

@ -247,3 +247,16 @@ path.grid-worked {
.accordion-button.collapsed { .accordion-button.collapsed {
border-bottom: 1px solid var(--bs-body-bg); border-bottom: 1px solid var(--bs-body-bg);
} }
/* CSS for Upcoming DXCC Component */
#upcoming_dxccs_component #worked_before {
background-color: #ddffdd;
width: 33%;
color: #000;
}
#upcoming_dxccs_component #not_worked_before {
background-color: #ffdddd;
width: 33%;
color: #000;
}

查看文件

@ -204,4 +204,15 @@ div.alert-danger {
border-bottom:1px solid var(--bs-body-bg); border-bottom:1px solid var(--bs-body-bg);
} }
/* CSS for Upcoming DXCC Component */
#upcoming_dxccs_component #worked_before {
background-color: #ddffdd;
width: 33%;
color: #000;
}
#upcoming_dxccs_component #not_worked_before {
background-color: #ffdddd;
width: 33%;
color: #000;
}

查看文件

@ -259,3 +259,16 @@ div.alert-danger {
.accordion-button.collapsed { .accordion-button.collapsed {
border-bottom:1px solid var(--bs-body-bg); border-bottom:1px solid var(--bs-body-bg);
} }
/* CSS for Upcoming DXCC Component */
#upcoming_dxccs_component #worked_before {
background-color: #ddffdd;
width: 33%;
color: #000;
}
#upcoming_dxccs_component #not_worked_before {
background-color: #ffdddd;
width: 33%;
color: #000;
}

查看文件

@ -783,3 +783,14 @@ label {
background-color: rgb(254 243 199) !important; background-color: rgb(254 243 199) !important;
--bs-badge-color: rgb(217 119 6) !important; --bs-badge-color: rgb(217 119 6) !important;
} }
/* CSS for Upcoming DXCC Component */
#upcoming_dxccs_component #worked_before {
background-color: #ddffdd;
width: 33%;
}
#upcoming_dxccs_component #not_worked_before {
background-color: #ffdddd;
width: 33%;
}

查看文件

@ -195,3 +195,18 @@ div.alert-danger {
.accordion-body { .accordion-body {
border: 1px solid #4e5e6c; border: 1px solid #4e5e6c;
} }
/* CSS for Upcoming DXCC Component */
#upcoming_dxccs_component #worked_before {
background-color: #ddffdd;
width: 33%;
color: #000;
box-shadow: none !important;
}
#upcoming_dxccs_component #not_worked_before {
background-color: #ffdddd !important;
width: 33%;
color: #000;
box-shadow: none !important;
}

查看文件

@ -249,3 +249,18 @@ div.alert-danger {
.accordion-body { .accordion-body {
border: 1px solid #4e5e6c; border: 1px solid #4e5e6c;
} }
/* CSS for Upcoming DXCC Component */
#upcoming_dxccs_component #worked_before {
background-color: #ddffdd;
width: 33%;
color: #000;
box-shadow: none !important;
}
#upcoming_dxccs_component #not_worked_before {
background-color: #ffdddd !important;
width: 33%;
color: #000;
box-shadow: none !important;
}

查看文件

@ -634,5 +634,5 @@ if ($('.table-responsive .dropdown-toggle').length>0) {
} }
function getDataTablesLanguageUrl() { function getDataTablesLanguageUrl() {
return "../assets/json/datatables_languages/" + lang_datatables_language + ".json"; return base_url + "/assets/json/datatables_languages/" + lang_datatables_language + ".json";
} }