mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
add QSLMSG to batchedit
This commit is contained in:
@@ -528,6 +528,7 @@ class Logbookadvanced_model extends CI_Model {
|
||||
case "contest": $column = 'COL_CONTEST_ID'; break;
|
||||
case "lotwsent": $column = 'COL_LOTW_QSL_SENT'; break;
|
||||
case "lotwreceived": $column = 'COL_LOTW_QSL_RCVD'; break;
|
||||
case "qslmsg": $column = 'COL_QSLMSG'; break;
|
||||
default: return;
|
||||
}
|
||||
|
||||
@@ -652,6 +653,14 @@ class Logbookadvanced_model extends CI_Model {
|
||||
" SET " . $this->config->item('table_name').".COL_LOTW_QSL_RCVD = ?, " . $this->config->item('table_name').".COL_LOTW_QSLRDATE = now()" .
|
||||
" WHERE " . $this->config->item('table_name').".col_primary_key in ? and station_profile.user_id = ?";
|
||||
|
||||
$query = $this->db->query($sql, array($value, json_decode($ids, true), $this->session->userdata('user_id')));
|
||||
|
||||
} else if ($column == 'COL_QSLMSG') {
|
||||
|
||||
$sql = "UPDATE ".$this->config->item('table_name')." JOIN station_profile ON ". $this->config->item('table_name').".station_id = station_profile.station_id" .
|
||||
" SET " . $this->config->item('table_name').".COL_QSLMSG = ? " .
|
||||
" WHERE " . $this->config->item('table_name').".col_primary_key in ? and station_profile.user_id = ?";
|
||||
|
||||
$query = $this->db->query($sql, array($value, json_decode($ids, true), $this->session->userdata('user_id')));
|
||||
} else {
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
<option value="pota"><?= __("POTA"); ?></option>
|
||||
<option value="propagation"><?= __("Propagation"); ?></option>
|
||||
<option value="qslvia"><?= __("QSL via"); ?></option>
|
||||
<option value="qslmsg">QSLMSG</option>
|
||||
<option value="satellite"><?= __("Satellite"); ?></option>
|
||||
<option value="sota"><?= __("SOTA"); ?></option>
|
||||
<option value="station"><?= __("Station Location"); ?></option>
|
||||
|
||||
@@ -183,7 +183,7 @@ function saveBatchEditQsos(id_list) {
|
||||
if (column == 'lotwsent' || column == 'lotwreceived') {
|
||||
value = $("#editLoTW").val();
|
||||
}
|
||||
if (column == 'sota' || column == 'pota' || column == 'wwff' || column == 'gridsquare' || column == 'comment' || column == 'operator' || column == 'qslvia' || column == 'contest') {
|
||||
if (column == 'sota' || column == 'pota' || column == 'wwff' || column == 'gridsquare' || column == 'comment' || column == 'operator' || column == 'qslvia' || column == 'contest' || column == 'qslmsg') {
|
||||
value = $("#editTextInput").val();
|
||||
}
|
||||
|
||||
@@ -262,7 +262,7 @@ function changeEditType(type) {
|
||||
$('#editContest').show();
|
||||
} else if (type == "lotwsent" || type == "lotwreceived") {
|
||||
$('#editLoTW').show();
|
||||
} else if (type == "gridsquare" || type == "sota" || type == "wwff" || type == "operator" || type == "pota" || type == "comment" || type == "qslvia" || type == "contest") {
|
||||
} else if (type == "gridsquare" || type == "sota" || type == "wwff" || type == "operator" || type == "pota" || type == "comment" || type == "qslvia" || type == "contest" || type == "qslmsg") {
|
||||
$('#editTextInput').show();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user