Merge pull request #2744 from abarrau/ans-eqsl-default-qslmsg-v3

[eQSL] Default QSLMSG by station profil (renew)
这个提交包含在:
Peter Goodhall 2023-11-29 22:14:01 +00:00 提交者 GitHub
当前提交 9632dc53c7
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有 43 个文件被更改,包括 192 次插入16 次删除

查看文件

@ -48,6 +48,11 @@ class QSO extends CI_Controller {
$this->form_validation->set_rules('callsign', 'Callsign', 'required');
$this->form_validation->set_rules('locator', 'Locator', 'callback_check_locator');
// [eQSL default msg] GET user options (option_type='eqsl_default_qslmsg'; option_name='key_station_id'; option_key=station_id) //
$this->load->model('user_options_model');
$options_object = $this->user_options_model->get_options('eqsl_default_qslmsg',array('option_name'=>'key_station_id','option_key'=>$data['active_station_profile']))->result();
$data['qslmsg'] = (isset($options_object[0]->option_value))?$options_object[0]->option_value:'';
if ($this->form_validation->run() == FALSE)
{
$data['page_title'] = "Add QSO";

查看文件

@ -55,8 +55,14 @@ class Station extends CI_Controller {
}
else
{
$this->stations->add();
if (($station_id = $this->stations->add()) !== false) {
// [eQSL default msg] ADD to user options (option_type='eqsl_default_qslmsg'; option_name='key_station_id'; option_key=station_id; option_value=value) //
$eqsl_default_qslmsg = xss_clean($this->input->post('eqsl_default_qslmsg', true));
if (!empty(trim($eqsl_default_qslmsg))) {
$this->load->model('user_options_model');
$this->user_options_model->set_option('eqsl_default_qslmsg','key_station_id',array($station_id=>$eqsl_default_qslmsg));
}
}
redirect('station');
}
}
@ -68,11 +74,25 @@ class Station extends CI_Controller {
$data['page_title'] = lang('station_location_edit') . $data['my_station_profile']->station_profile_name;
if ($this->form_validation->run() == FALSE) {
// [eQSL default msg] GET from user options (option_type='eqsl_default_qslmsg'; option_name='key_station_id'; option_key=station_id) //
$this->load->model('user_options_model');
$options_object = $this->user_options_model->get_options('eqsl_default_qslmsg',array('option_name'=>'key_station_id','option_key'=>$id))->result();
$data['eqsl_default_qslmsg'] = (isset($options_object[0]->option_value))?$options_object[0]->option_value:'';
$this->load->view('interface_assets/header', $data);
$this->load->view('station_profile/edit');
$this->load->view('interface_assets/footer');
} else {
$this->stations->edit();
if ($this->stations->edit() !== false) {
// [eQSL default msg] ADD to user options (option_type='eqsl_default_qslmsg'; option_name='key_station_id'; option_key=station_id; option_value=value) //
$eqsl_default_qslmsg = xss_clean($this->input->post('eqsl_default_qslmsg', true));
$this->load->model('user_options_model');
if (!empty(trim($eqsl_default_qslmsg))) {
$this->user_options_model->set_option('eqsl_default_qslmsg','key_station_id',array($id=>$eqsl_default_qslmsg));
} else {
$this->user_options_model->del_option('eqsl_default_qslmsg','key_station_id',array('option_key'=>$id));
}
}
$data['notice'] = lang('station_location') . $this->security->xss_clean($this->input->post('station_profile_name', true)) . " Updated";
@ -163,6 +183,9 @@ class Station extends CI_Controller {
$this->load->model('stations');
if ($this->stations->check_station_is_accessible($id)) {
$this->stations->delete($id);
// [eQSL default msg] DELETE user options //
$this->load->model('user_options_model');
$this->user_options_model->del_option('eqsl_default_qslmsg','key_station_id',array('option_key'=>$id));
}
redirect('station');
}
@ -208,4 +231,18 @@ class Station extends CI_Controller {
echo json_encode($json);
}
// [eQSL default msg] Function return options from this station (but can be general use) //
public function get_options() {
$return_json = array();
$option_type = $this->input->post('option_type');
$option_name = $this->input->post('option_name');
$option_key = $this->input->post('option_key');
if (!empty($option_type) && !empty($option_name) && ($option_key>0)) {
$this->load->model('user_options_model');
$options_object = $this->user_options_model->get_options($option_type,array('option_name'=>$option_name,'option_key'=>$option_key))->result();
$return_json[$option_type] = (isset($options_object[0]->option_value))?$options_object[0]->option_value:'';
}
header('Content-Type: application/json');
echo json_encode($return_json);
}
}

查看文件

@ -26,6 +26,8 @@ $lang['qso_dok_helptext'] = 'Например: Q03';
$lang['qso_notes_helptext'] = 'Съдържанието на бележката се използва само в Cloudlog и не се експортира в други услуги.';
$lang['qsl_notes_helptext'] = 'This note content is exported to QSL services like eqsl.cc.';
$lang['qso_eqsl_qslmsg_helptext'] = "Get the default message for eQSL, for this station.";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Нулирай';

查看文件

@ -94,6 +94,8 @@ $lang['station_location_signature_name_hint'] = "Station Signature (e.g. GMA).."
$lang['station_location_signature_info'] = "Signature Information";
$lang['station_location_signature_info_hint'] = "Station Signature Info (e.g. DA/NW-357).";
$lang['station_location_eqsl_hint'] = 'The QTH Nickname which is configured in your eQSL Profile';
$lang['station_location_eqsl_defaultqslmsg'] = "Default QSLMSG";
$lang['station_location_eqsl_defaultqslmsg_hint'] = "You can define a default message that will be populated and sent for each QSO for this station location. Max length:";
$lang['station_location_qrz_subscription'] = 'Subscription Required';
$lang['station_location_qrz_hint'] = "Find your API key on <a href='https://logbook.qrz.com/logbook' target='_blank'>the QRZ.com Logbook settings page";
$lang['station_location_qrz_realtime_upload'] = 'QRZ.com Logbook Realtime Upload';

查看文件

@ -26,6 +26,8 @@ $lang['qso_dok_helptext'] = '例如: Q03';
$lang['qso_notes_helptext'] = '仅在 Cloudlog 使用而不上传到其他的服务的笔记。';
$lang['qsl_notes_helptext'] = '此笔记内容被导出到QSL服务,如 eqsl.cc。';
$lang['qso_eqsl_qslmsg_helptext'] = "Get the default message for eQSL, for this station.";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = '重置';

查看文件

@ -94,6 +94,8 @@ $lang['station_location_signature_name_hint'] = "Station Signature (e.g. GMA).."
$lang['station_location_signature_info'] = "Signature Information";
$lang['station_location_signature_info_hint'] = "Station Signature Info (e.g. DA/NW-357).";
$lang['station_location_eqsl_hint'] = 'The QTH Nickname which is configured in your eQSL Profile';
$lang['station_location_eqsl_defaultqslmsg'] = "Default QSLMSG";
$lang['station_location_eqsl_defaultqslmsg_hint'] = "You can define a default message that will be populated and sent for each QSO for this station location. Max length:";
$lang['station_location_qrz_subscription'] = 'Subscription Required';
$lang['station_location_qrz_hint'] = "Find your API key on <a href='https://logbook.qrz.com/logbook' target='_blank'>the QRZ.com Logbook settings page";
$lang['station_location_qrz_realtime_upload'] = 'QRZ.com Logbook Realtime Upload';

查看文件

@ -26,6 +26,8 @@ $lang['qso_dok_helptext'] = 'Příklad: Q03';
$lang['qso_notes_helptext'] = 'Obsah je užíván pouze Cloudlogu a není exportován do dalších služeb.';
$lang['qsl_notes_helptext'] = 'This note content is exported to QSL services like eqsl.cc.';
$lang['qso_eqsl_qslmsg_helptext'] = "Get the default message for eQSL, for this station.";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Vymazat';

查看文件

@ -94,6 +94,8 @@ $lang['station_location_signature_name_hint'] = "Station Signature (e.g. GMA).."
$lang['station_location_signature_info'] = "Signature Information";
$lang['station_location_signature_info_hint'] = "Station Signature Info (e.g. DA/NW-357).";
$lang['station_location_eqsl_hint'] = 'The QTH Nickname which is configured in your eQSL Profile';
$lang['station_location_eqsl_defaultqslmsg'] = "Default QSLMSG";
$lang['station_location_eqsl_defaultqslmsg_hint'] = "You can define a default message that will be populated and sent for each QSO for this station location. Max length:";
$lang['station_location_qrz_subscription'] = 'Subscription Required';
$lang['station_location_qrz_hint'] = "Find your API key on <a href='https://logbook.qrz.com/logbook' target='_blank'>the QRZ.com Logbook settings page";
$lang['station_location_qrz_realtime_upload'] = 'QRZ.com Logbook Realtime Upload';

查看文件

@ -26,6 +26,8 @@ $lang['qso_dok_helptext'] = 'Bijvoorbeeld: Q03';
$lang['qso_notes_helptext'] = 'Notities worden alleen in Cloudlog gebruikt en worden niet geexporteerd naar andere diensten.';
$lang['qsl_notes_helptext'] = 'This note content is exported to QSL services like eqsl.cc.';
$lang['qso_eqsl_qslmsg_helptext'] = "Get the default message for eQSL, for this station.";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Wis QSO';

查看文件

@ -94,6 +94,8 @@ $lang['station_location_signature_name_hint'] = "Station Signature (e.g. GMA).."
$lang['station_location_signature_info'] = "Signature Information";
$lang['station_location_signature_info_hint'] = "Station Signature Info (e.g. DA/NW-357).";
$lang['station_location_eqsl_hint'] = 'The QTH Nickname which is configured in your eQSL Profile';
$lang['station_location_eqsl_defaultqslmsg'] = "Default QSLMSG";
$lang['station_location_eqsl_defaultqslmsg_hint'] = "You can define a default message that will be populated and sent for each QSO for this station location. Max length:";
$lang['station_location_qrz_subscription'] = 'Subscription Required';
$lang['station_location_qrz_hint'] = "Find your API key on <a href='https://logbook.qrz.com/logbook' target='_blank'>the QRZ.com Logbook settings page";
$lang['station_location_qrz_realtime_upload'] = 'QRZ.com Logbook Realtime Upload';

查看文件

@ -26,6 +26,8 @@ $lang['qso_dok_helptext'] = 'For example: Q03';
$lang['qso_notes_helptext'] = 'Note content is used within Cloudlog only and is not exported to other services.';
$lang['qsl_notes_helptext'] = 'This note content is exported to QSL services like eqsl.cc.';
$lang['qso_eqsl_qslmsg_helptext'] = "Get the default message for eQSL, for this station.";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Reset';

查看文件

@ -94,6 +94,8 @@ $lang['station_location_signature_name_hint'] = "Station Signature (e.g. GMA).."
$lang['station_location_signature_info'] = "Signature Information";
$lang['station_location_signature_info_hint'] = "Station Signature Info (e.g. DA/NW-357).";
$lang['station_location_eqsl_hint'] = 'The QTH Nickname which is configured in your eQSL Profile';
$lang['station_location_eqsl_defaultqslmsg'] = "Default QSLMSG";
$lang['station_location_eqsl_defaultqslmsg_hint'] = "You can define a default message that will be populated and sent for each QSO for this station location. Max length:";
$lang['station_location_qrz_subscription'] = 'Subscription Required';
$lang['station_location_qrz_hint'] = "Find your API key on <a href='https://logbook.qrz.com/logbook' target='_blank'>the QRZ.com Logbook settings page";
$lang['station_location_qrz_realtime_upload'] = 'QRZ.com Logbook Realtime Upload';

查看文件

@ -26,6 +26,8 @@ $lang['qso_dok_helptext'] = 'Esimerkiksi: Q03';
$lang['qso_notes_helptext'] = 'Muistio tallentuu vain logiin, tähän yhteydeen, eikä siirry eteenpäin muihin palveluihin.';
$lang['qsl_notes_helptext'] = 'Tämä viestisi siirtyy myös QSL-palveluihin, kuten eqsl.cc.';
$lang['qso_eqsl_qslmsg_helptext'] = "Get the default message for eQSL, for this station.";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Tyhjennä';

查看文件

@ -94,6 +94,8 @@ $lang['station_location_signature_name_hint'] = "Station Signature (e.g. GMA).."
$lang['station_location_signature_info'] = "Signature Information";
$lang['station_location_signature_info_hint'] = "Station Signature Info (e.g. DA/NW-357).";
$lang['station_location_eqsl_hint'] = 'The QTH Nickname which is configured in your eQSL Profile';
$lang['station_location_eqsl_defaultqslmsg'] = "Default QSLMSG";
$lang['station_location_eqsl_defaultqslmsg_hint'] = "You can define a default message that will be populated and sent for each QSO for this station location. Max length:";
$lang['station_location_qrz_subscription'] = 'Subscription Required';
$lang['station_location_qrz_hint'] = "Find your API key on <a href='https://logbook.qrz.com/logbook' target='_blank'>the QRZ.com Logbook settings page";
$lang['station_location_qrz_realtime_upload'] = 'QRZ.com Logbook Realtime Upload';

查看文件

@ -26,6 +26,8 @@ $lang['qso_dok_helptext'] = 'Par exemple: Q03';
$lang['qso_notes_helptext'] = 'A noter : le contenu est utilisé par Cloudlog uniquement et n\'est pas exporté vers d\'autre services';
$lang['qsl_notes_helptext'] = 'This note content is exported to QSL services like eqsl.cc.';
$lang['qso_eqsl_qslmsg_helptext'] = "Récupérer le message par défaut pour ce lieu de station.";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Réinitialiser';

查看文件

@ -94,6 +94,8 @@ $lang['station_location_signature_name_hint'] = "Station Signature (e.g. GMA).."
$lang['station_location_signature_info'] = "Signature Information";
$lang['station_location_signature_info_hint'] = "Station Signature Info (e.g. DA/NW-357).";
$lang['station_location_eqsl_hint'] = 'The QTH Nickname which is configured in your eQSL Profile';
$lang['station_location_eqsl_defaultqslmsg'] = "Message (QSLMSG) par défaut";
$lang['station_location_eqsl_defaultqslmsg_hint'] = "Vous pouvez définir un message par défaut qui sera renseigné et envoyé pour chaque QSO pour ce lieu station. Taille max:";
$lang['station_location_qrz_subscription'] = 'Subscription Required';
$lang['station_location_qrz_hint'] = "Find your API key on <a href='https://logbook.qrz.com/logbook' target='_blank'>the QRZ.com Logbook settings page";
$lang['station_location_qrz_realtime_upload'] = 'QRZ.com Logbook Realtime Upload';

查看文件

@ -26,6 +26,8 @@ $lang['qso_dok_helptext'] = 'Zum Beispiel: Q03';
$lang['qso_notes_helptext'] = 'Notizeninhalt wird nur innerhalb von Cloudlog genutzt und nicht an andere Dienste weitergegeben.';
$lang['qsl_notes_helptext'] = 'Dieser Notizeninhalt wird an QSL Services wie eqsl.cc exportiert.';
$lang['qso_eqsl_qslmsg_helptext'] = "Get the default message for eQSL, for this station.";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Zurücksetzen';

查看文件

@ -94,6 +94,8 @@ $lang['station_location_signature_name_hint'] = "Signatur/Referenz der Station (
$lang['station_location_signature_info'] = "Signatur Information";
$lang['station_location_signature_info_hint'] = "Signatur/Referenz Information der Station (z.B. DA/NW-357).";
$lang['station_location_eqsl_hint'] = "Der 'QTH Nickname' wie er in deinem eQSL Profil konfiguriert ist.";
$lang['station_location_eqsl_defaultqslmsg'] = "Default QSLMSG";
$lang['station_location_eqsl_defaultqslmsg_hint'] = "You can define a default message that will be populated and sent for each QSO for this station location. Max length:";
$lang['station_location_qrz_subscription'] = 'Abonnement erforderlich';
$lang['station_location_qrz_hint'] = "Finde deinen 'QRZ Logbook API Key' in den <a href='https://logbook.qrz.com/logbook' target='_blank'>QRZ.com Logbuch Einstellungen";
$lang['station_location_qrz_realtime_upload'] = 'QRZ.com Logbuch Echtzeit Upload';

查看文件

@ -26,6 +26,8 @@ $lang['qso_dok_helptext'] = 'Για παράδειγμα: Q03';
$lang['qso_notes_helptext'] = 'Το περιεχόμενο σημείωσης χρησιμοποιείται μόνο στο Cloudlog και δεν εξάγεται σε άλλες υπηρεσίες.';
$lang['qsl_notes_helptext'] = 'Αυτό το περιεχόμενο σημείωσης εξάγεται σε υπηρεσίες QSL όπως το eqsl.cc.';
$lang['qso_eqsl_qslmsg_helptext'] = "Get the default message for eQSL, for this station.";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Επαναφορά';

查看文件

@ -94,6 +94,8 @@ $lang['station_location_signature_name_hint'] = "Station Signature (e.g. GMA).."
$lang['station_location_signature_info'] = "Signature Information";
$lang['station_location_signature_info_hint'] = "Station Signature Info (e.g. DA/NW-357).";
$lang['station_location_eqsl_hint'] = 'The QTH Nickname which is configured in your eQSL Profile';
$lang['station_location_eqsl_defaultqslmsg'] = "Default QSLMSG";
$lang['station_location_eqsl_defaultqslmsg_hint'] = "You can define a default message that will be populated and sent for each QSO for this station location. Max length:";
$lang['station_location_qrz_subscription'] = 'Subscription Required';
$lang['station_location_qrz_hint'] = "Find your API key on <a href='https://logbook.qrz.com/logbook' target='_blank'>the QRZ.com Logbook settings page";
$lang['station_location_qrz_realtime_upload'] = 'QRZ.com Logbook Realtime Upload';

查看文件

@ -26,6 +26,8 @@ $lang['qso_dok_helptext'] = 'Per esempio: Q03';
$lang['qso_notes_helptext'] = 'Il contenuto della nota viene utilizzato solo all interno di Cloudlog e non viene esportato in altri servizi.';
$lang['qsl_notes_helptext'] = 'Il contenuto di questa nota è esportato a servizi QSL come eqsl.cc.';
$lang['qso_eqsl_qslmsg_helptext'] = "Get the default message for eQSL, for this station.";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Reset';

查看文件

@ -94,6 +94,8 @@ $lang['station_location_signature_name_hint'] = "Station Signature (e.g. GMA).."
$lang['station_location_signature_info'] = "Signature Information";
$lang['station_location_signature_info_hint'] = "Station Signature Info (e.g. DA/NW-357).";
$lang['station_location_eqsl_hint'] = 'The QTH Nickname which is configured in your eQSL Profile';
$lang['station_location_eqsl_defaultqslmsg'] = "Default QSLMSG";
$lang['station_location_eqsl_defaultqslmsg_hint'] = "You can define a default message that will be populated and sent for each QSO for this station location. Max length:";
$lang['station_location_qrz_subscription'] = 'Subscription Required';
$lang['station_location_qrz_hint'] = "Find your API key on <a href='https://logbook.qrz.com/logbook' target='_blank'>the QRZ.com Logbook settings page";
$lang['station_location_qrz_realtime_upload'] = 'QRZ.com Logbook Realtime Upload';

查看文件

@ -26,6 +26,8 @@ $lang['qso_dok_helptext'] = 'Na przykład: Q03';
$lang['qso_notes_helptext'] = 'Notatka jest widoczna tylko w Cloudlog, nie jest wysyłana z potwierdzeniami.';
$lang['qsl_notes_helptext'] = 'This note content is exported to QSL services like eqsl.cc.';
$lang['qso_eqsl_qslmsg_helptext'] = "Get the default message for eQSL, for this station.";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Resetuj';

查看文件

@ -94,6 +94,8 @@ $lang['station_location_signature_name_hint'] = "Station Signature (e.g. GMA).."
$lang['station_location_signature_info'] = "Signature Information";
$lang['station_location_signature_info_hint'] = "Station Signature Info (e.g. DA/NW-357).";
$lang['station_location_eqsl_hint'] = 'The QTH Nickname which is configured in your eQSL Profile';
$lang['station_location_eqsl_defaultqslmsg'] = "Default QSLMSG";
$lang['station_location_eqsl_defaultqslmsg_hint'] = "You can define a default message that will be populated and sent for each QSO for this station location. Max length:";
$lang['station_location_qrz_subscription'] = 'Subscription Required';
$lang['station_location_qrz_hint'] = "Find your API key on <a href='https://logbook.qrz.com/logbook' target='_blank'>the QRZ.com Logbook settings page";
$lang['station_location_qrz_realtime_upload'] = 'QRZ.com Logbook Realtime Upload';

查看文件

@ -26,6 +26,8 @@ $lang['qso_dok_helptext'] = 'Например: Q03';
$lang['qso_notes_helptext'] = 'Содержание заметки используется только Cloudlog и не экспортируется на другие сервисы.';
$lang['qsl_notes_helptext'] = 'СОдержимое этой заметки экспортируется в QSL сервисы, к примеру, eqsl.cc и т.п.';
$lang['qso_eqsl_qslmsg_helptext'] = "Get the default message for eQSL, for this station.";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Сброс';

查看文件

@ -94,6 +94,8 @@ $lang['station_location_signature_name_hint'] = "Подпись станции (
$lang['station_location_signature_info'] = "Информация о подписи";
$lang['station_location_signature_info_hint'] = "Информация о подписис станции (т.е. DA/NW-357).";
$lang['station_location_eqsl_hint'] = 'Название профиля, который сконфигурирован в eQSL для данного QTH';
$lang['station_location_eqsl_defaultqslmsg'] = "Default QSLMSG";
$lang['station_location_eqsl_defaultqslmsg_hint'] = "You can define a default message that will be populated and sent for each QSO for this station location. Max length:";
$lang['station_location_qrz_subscription'] = 'Требуется подписка';
$lang['station_location_qrz_hint'] = "Ваш ключ API находится на <a href='https://logbook.qrz.com/logbook' target='_blank'>странице настроек журнала QRZ.com";
$lang['station_location_qrz_realtime_upload'] = 'Загрузка в журнал QRZ.com в реальном времени';

查看文件

@ -26,6 +26,8 @@ $lang['qso_dok_helptext'] = 'Por ejemplo: Q03';
$lang['qso_notes_helptext'] = 'El contenido es usado solo dentro de Cloudlog y no es exportado a otros servicios.';
$lang['qsl_notes_helptext'] = 'This note content is exported to QSL services like eqsl.cc.';
$lang['qso_eqsl_qslmsg_helptext'] = "Get the default message for eQSL, for this station.";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Resetear';

查看文件

@ -94,6 +94,8 @@ $lang['station_location_signature_name_hint'] = "Station Signature (e.g. GMA).."
$lang['station_location_signature_info'] = "Signature Information";
$lang['station_location_signature_info_hint'] = "Station Signature Info (e.g. DA/NW-357).";
$lang['station_location_eqsl_hint'] = 'The QTH Nickname which is configured in your eQSL Profile';
$lang['station_location_eqsl_defaultqslmsg'] = "Default QSLMSG";
$lang['station_location_eqsl_defaultqslmsg_hint'] = "You can define a default message that will be populated and sent for each QSO for this station location. Max length:";
$lang['station_location_qrz_subscription'] = 'Subscription Required';
$lang['station_location_qrz_hint'] = "Find your API key on <a href='https://logbook.qrz.com/logbook' target='_blank'>the QRZ.com Logbook settings page";
$lang['station_location_qrz_realtime_upload'] = 'QRZ.com Logbook Realtime Upload';

查看文件

@ -26,6 +26,8 @@ $lang['qso_dok_helptext'] = 'Exempel: Q03';
$lang['qso_notes_helptext'] = 'Detta innehåll används bara inom Cloudlog och kommer inte att exporteras.';
$lang['qsl_notes_helptext'] = 'Detta innehåll exporteras till QSL-services som eqsl etc.';
$lang['qso_eqsl_qslmsg_helptext'] = "Get the default message for eQSL, for this station.";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Reset';
@ -71,7 +73,7 @@ $lang['qso_simplefle_error_stationcall'] = "Station Call is not selected";
$lang['qso_simplefle_error_operator'] = "'Operator' Field is empty";
$lang['qso_simplefle_warning_reset'] = "Warning! Do you really want to reset everything?";
$lang['qso_simplefle_warning_missing_band_mode'] = "Warning! You can't log the QSO List, because some QSO don't have band and/or mode defined!";
$lang['qso_simplefle_warning_missing_time'] = "Warning! You can't log the QSO List, because some QSO don't have a time defined!";
$lang['qso_simplefle_warning_missing_time'] = "Warning! You can't log the QSO List, because some QSO don't have a time defined!";
$lang['qso_simplefle_warning_example_data'] = "Attention! The Data Field containes example data. First Clear Logging Session!";
$lang['qso_simplefle_confirm_save_to_log'] = "Are you sure that you want to add these QSO to the Log and clear the session?";
$lang['qso_simplefle_success_save_to_log_header'] = "QSO Logged!";

查看文件

@ -94,6 +94,8 @@ $lang['station_location_signature_name_hint'] = "Station Signature (e.g. GMA).."
$lang['station_location_signature_info'] = "Signature Information";
$lang['station_location_signature_info_hint'] = "Station Signature Info (e.g. DA/NW-357).";
$lang['station_location_eqsl_hint'] = 'The QTH Nickname which is configured in your eQSL Profile';
$lang['station_location_eqsl_defaultqslmsg'] = "Default QSLMSG";
$lang['station_location_eqsl_defaultqslmsg_hint'] = "You can define a default message that will be populated and sent for each QSO for this station location. Max length:";
$lang['station_location_qrz_subscription'] = 'Subscription Required';
$lang['station_location_qrz_hint'] = "Find your API key on <a href='https://logbook.qrz.com/logbook' target='_blank'>the QRZ.com Logbook settings page";
$lang['station_location_qrz_realtime_upload'] = 'QRZ.com Logbook Realtime Upload';

查看文件

@ -26,6 +26,8 @@ $lang['qso_dok_helptext'] = 'Örnek: Q03';
$lang['qso_notes_helptext'] = 'Not içeriği yalnızca Cloudlog içinde kullanılır ve diğer servislere aktarılmaz';
$lang['qsl_notes_helptext'] = 'Bu not içeriği eqsl.cc gibi QSL servislere aktarılır';
$lang['qso_eqsl_qslmsg_helptext'] = "Get the default message for eQSL, for this station.";
// Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Baştan başla';

查看文件

@ -94,6 +94,8 @@ $lang['station_location_signature_name_hint'] = "Station Signature (e.g. GMA).."
$lang['station_location_signature_info'] = "Signature Information";
$lang['station_location_signature_info_hint'] = "Station Signature Info (e.g. DA/NW-357).";
$lang['station_location_eqsl_hint'] = 'The QTH Nickname which is configured in your eQSL Profile';
$lang['station_location_eqsl_defaultqslmsg'] = "Default QSLMSG";
$lang['station_location_eqsl_defaultqslmsg_hint'] = "You can define a default message that will be populated and sent for each QSO for this station location. Max length:";
$lang['station_location_qrz_subscription'] = 'Subscription Required';
$lang['station_location_qrz_hint'] = "Find your API key on <a href='https://logbook.qrz.com/logbook' target='_blank'>the QRZ.com Logbook settings page";
$lang['station_location_qrz_realtime_upload'] = 'QRZ.com Logbook Realtime Upload';

查看文件

@ -260,6 +260,13 @@ class Logbook_model extends CI_Model {
$station = $this->check_station($station_id);
$data['station_id'] = $station_id;
// [eQSL default msg] add info to QSO for Contest or SFLE //
if (empty($data['COL_QSLMSG']) && (($this->input->post('isSFLE')==true) || (!empty($data['COL_CONTEST_ID'])))) {
$this->load->model('user_options_model');
$options_object = $this->user_options_model->get_options('eqsl_default_qslmsg',array('option_name'=>'key_station_id','option_key'=>$station_id))->result();
$data['COL_QSLMSG'] = (isset($options_object[0]->option_value))?$options_object[0]->option_value:'';
}
if (strpos(trim($station['station_gridsquare']), ',') !== false) {
$data['COL_MY_VUCC_GRIDS'] = strtoupper(trim($station['station_gridsquare']));
} else {

查看文件

@ -114,8 +114,13 @@ class Stations extends CI_Model {
'webadifrealtime' => xss_clean($this->input->post('webadifrealtime', true)),
);
// Insert Records
$this->db->insert('station_profile', $data);
// Insert Records & return insert id //
if ($this->db->insert('station_profile', $data)===true) {
$station_user_list = $this->all_of_user()->result();
if ((count($station_user_list)>0) && (isset($station_user_list[intval(count($station_user_list)-1)]->station_id))) {
return $station_user_list[intval(count($station_user_list)-1)]->station_id;
}
}
}
function edit() {

查看文件

@ -16,16 +16,32 @@ class User_options_model extends CI_Model {
}
}
public function get_options($option_type) {
public function get_options($option_type, $option_array=null) {
$uid=$this->session->userdata('user_id');
$sql='select option_name,option_key,option_value from user_options where user_id=? and option_type=?';
return $this->db->query($sql, array($uid, $option_type));
$sql_more = "";
$array_sql_value = array($uid, $option_type);
if (is_array($option_array)) {
foreach ($option_array as $key => $value) {
$sql_more .= ' and '.$key.'=?';
$array_sql_value[] = $value;
}
}
$sql='select option_name,option_key,option_value from user_options where user_id=? and option_type=?'.$sql_more;
return $this->db->query($sql, $array_sql_value);
}
public function del_option($option_type, $option_name) {
public function del_option($option_type, $option_name, $option_array=null) {
$uid=$this->session->userdata('user_id');
$sql='delete from user_options where user_id=? and option_type=? and option_name=?';
return $this->db->query($sql, array($uid, $option_type,$option_name));
$sql_more = "";
$array_sql_value = array($uid, $option_type, $option_name);
if (is_array($option_array)) {
foreach ($option_array as $key => $value) {
$sql_more .= ' and '.$key.'=?';
$array_sql_value[] = $value;
}
}
$sql='delete from user_options where user_id=? and option_type=? and option_name=?'.$sql_more;
return $this->db->query($sql, $array_sql_value);
}
}

查看文件

@ -1238,7 +1238,11 @@ $(document).on('keypress',function(e) {
$('#transmit_power').val('');
},
});
// [eQSL default msg] change value on change station profle //
qso_set_eqsl_qslmsg(stationProfile,false,'.qso_panel');
});
// [eQSL default msg] change value on clic //
$('.qso_panel .qso_eqsl_qslmsg_update').off('click').on('click',function() { qso_set_eqsl_qslmsg($('.qso_panel #stationProfile').val(),true,'.qso_panel'); });
<?php if ($this->session->userdata('user_qth_lookup') == 1) { ?>
$('#qth').focusout(function() {

查看文件

@ -511,13 +511,14 @@
</div>
<div class="mb-3 row">
<div class="col-sm-9">
<label for="qslmsg"><?php echo lang('general_word_notes'); ?></label>
<label for="qslmsg"><?php echo lang('general_word_notes'); ?><span class="qso_eqsl_qslmsg_update" title="<?php echo lang('qso_eqsl_qslmsg_helptext'); ?>"><i class="fas fa-redo-alt"></i></span></label>
<div class="alert alert-info" role="alert">
<span class="badge text-bg-info"><?php echo lang('general_word_info'); ?></span> <?php echo lang('qsl_notes_helptext'); ?>
</div>
</div>
<div class="col-sm-9">
<textarea type="text" class="form-control" id="qslmsg" name="qslmsg" rows="5"><?php echo $qso->COL_QSLMSG; ?></textarea>
<textarea type="text" class="form-control" id="qslmsg" name="qslmsg" rows="5" maxlength="240"><?php echo $qso->COL_QSLMSG; ?></textarea>
<div id="qslmsg_hide" style="display:none;"><?php echo $qso->COL_QSLMSG; ?></div>
</div>
</div>

查看文件

@ -532,8 +532,9 @@
<span class="badge text-bg-info"><?php echo lang('general_word_info'); ?></span> <?php echo lang('qsl_notes_helptext'); ?>
</div>
<div class="mb-3">
<label for="qslmsg"><?php echo lang('general_word_notes'); ?></label>
<textarea type="text" class="form-control" id="qslmsg" name="qslmsg" rows="5"></textarea>
<label for="qslmsg"><?php echo lang('general_word_notes'); ?><span class="qso_eqsl_qslmsg_update" title="<?php echo lang('qso_eqsl_qslmsg_helptext'); ?>"><i class="fas fa-redo-alt"></i></span></label>
<textarea type="text" class="form-control" id="qslmsg" name="qslmsg" rows="5" maxlength="240"><?php echo $qslmsg; ?></textarea>
<div id="qslmsg_hide" style="display:none;"><?php echo $qslmsg; ?></div>
</div>
</div>
</div>

查看文件

@ -249,6 +249,12 @@
<small id="eqslhelp" class="form-text text-muted"><?php echo lang("station_location_eqsl_hint"); ?></small>
</div>
<div class="mb-3">
<label for="eqslDefaultQSLMsg"><?php echo lang("station_location_eqsl_defaultqslmsg"); ?></label>
<textarea class="form-control" name="eqsl_default_qslmsg" id="eqslDefaultQSLMsg" aria-describedby="eqsldefaultqslmsghelp" maxlength="240" rows="2" style="width:100%;"></textarea>
<small id="eqsldefaultqslmsghelp" class="form-text text-muted"><?php echo lang("station_location_eqsl_defaultqslmsg_hint"); ?> 240.</small>
</div>
<div class="mb-3">
<label for="clublogrealtime"><?php echo lang("station_location_clublog_realtime_upload"); ?></label>
<select class="form-select" id="clublogrealtime" name="clublogrealtime">

查看文件

@ -352,6 +352,12 @@
<input type="text" class="form-control" name="eqslnickname" id="eqslNickname" aria-describedby="eqslhelp" value="<?php if(set_value('eqslnickname') != "") { echo set_value('eqslnickname'); } else { echo $my_station_profile->eqslqthnickname; } ?>">
<small id="eqslhelp" class="form-text text-muted"><?php echo lang("station_location_eqsl_hint"); ?></small>
</div>
<div class="mb-3">
<label for="eqslDefaultQSLMsg"><?php echo lang("station_location_eqsl_defaultqslmsg"); ?></label>
<?php $eqsl_default_qslmsg = (set_value('eqsl_default_qslmsg') != "")?set_value('eqsl_default_qslmsg'):$eqsl_default_qslmsg; ?>
<textarea class="form-control" name="eqsl_default_qslmsg" id="eqslDefaultQSLMsg" aria-describedby="eqsldefaultqslmsghelp" maxlength="240" rows="2" style="width:100%;" value="<?php echo $eqsl_default_qslmsg; ?>"><?php echo $eqsl_default_qslmsg; ?></textarea>
<small id="eqsldefaultqslmsghelp" class="form-text text-muted"><?php echo lang("station_location_eqsl_defaultqslmsg_hint"); ?> 240.</small>
</div>
</div>
</div>
</div>

查看文件

@ -624,3 +624,8 @@ table.dataTable tfoot td {
.orange {
color: var(--orange);
}
.qso_eqsl_qslmsg_update {
cursor: pointer;
margin-left: 10px;
}

查看文件

@ -294,6 +294,9 @@ function qso_edit(id) {
});
}
});
// [eQSL default msg] change value (for qso edit page) //
$('.modal-content #stationProfile').change(function() { qso_set_eqsl_qslmsg($('.modal-content #stationProfile').val(),false,'.modal-content'); });
$('.modal-content .qso_eqsl_qslmsg_update').off('click').on('click',function() { qso_set_eqsl_qslmsg($('.modal-content #stationProfile').val(),true,'.modal-content'); });
},
});
}
@ -543,3 +546,22 @@ function displayQsl(id) {
}
});
}
// [eQSL default msg] function to load default qslmsg to qslmsg field on qso add/edit //
function qso_set_eqsl_qslmsg(station_id, force_diff_to_origin=false, object='') {
$.ajax({
url: base_url+'index.php/station/get_options',
type: 'post', data: {'option_type':'eqsl_default_qslmsg','option_name':'key_station_id','option_key':station_id },
success: function(res) {
if (typeof res.eqsl_default_qslmsg !== "undefined") {
object = (object!='')?(object+' '):'';
if ((force_diff_to_origin) || ($(object+'#qslmsg').val()==$(object+'#qslmsg_hide').html())) {
$(object+'#qslmsg').val(res.eqsl_default_qslmsg);
$(object+'#qslmsg_hide').html(res.eqsl_default_qslmsg);
}
}
},
error: function() { },
});
}

查看文件

@ -760,6 +760,7 @@ $(".js-save-to-log").click(function () {
iota_ref: iota_ref,
pota_ref: pota_ref,
wwff_ref: wwff_ref,
isSFLE: true
},
success: function (result) {},
});