mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Add QRZ-QSL to configurable Items for last-qsl and to last-view
This commit is contained in:
@@ -704,7 +704,7 @@ class Logbook extends CI_Controller {
|
||||
$html = "";
|
||||
|
||||
if(!empty($logbooks_locations_array)) {
|
||||
$this->db->select(''.$this->config->item('table_name').'.COL_CALL, '.$this->config->item('table_name').'.COL_BAND, '.$this->config->item('table_name').'.COL_FREQ, '.$this->config->item('table_name').'.COL_TIME_ON, '.$this->config->item('table_name').'.COL_RST_RCVD, '.$this->config->item('table_name').'.COL_RST_SENT, '.$this->config->item('table_name').'.COL_MODE, '.$this->config->item('table_name').'.COL_SUBMODE, '.$this->config->item('table_name').'.COL_PRIMARY_KEY, '.$this->config->item('table_name').'.COL_SAT_NAME, '.$this->config->item('table_name').'.COL_GRIDSQUARE, '.$this->config->item('table_name').'.COL_QSL_RCVD, '.$this->config->item('table_name').'.COL_EQSL_QSL_RCVD, '.$this->config->item('table_name').'.COL_EQSL_QSL_SENT, '.$this->config->item('table_name').'.COL_QSL_SENT, '.$this->config->item('table_name').'.COL_STX, '.$this->config->item('table_name').'.COL_STX_STRING, '.$this->config->item('table_name').'.COL_SRX, '.$this->config->item('table_name').'.COL_SRX_STRING, '.$this->config->item('table_name').'.COL_LOTW_QSL_SENT, '.$this->config->item('table_name').'.COL_LOTW_QSL_RCVD, '.$this->config->item('table_name').'.COL_VUCC_GRIDS, '.$this->config->item('table_name').'.COL_MY_GRIDSQUARE, '.$this->config->item('table_name').'.COL_CONTEST_ID, '.$this->config->item('table_name').'.COL_STATE, station_profile.*');
|
||||
$this->db->select(''.$this->config->item('table_name').'.COL_CALL, '.$this->config->item('table_name').'.COL_BAND, '.$this->config->item('table_name').'.COL_FREQ, '.$this->config->item('table_name').'.COL_TIME_ON, '.$this->config->item('table_name').'.COL_RST_RCVD, '.$this->config->item('table_name').'.COL_RST_SENT, '.$this->config->item('table_name').'.COL_MODE, '.$this->config->item('table_name').'.COL_SUBMODE, '.$this->config->item('table_name').'.COL_PRIMARY_KEY, '.$this->config->item('table_name').'.COL_SAT_NAME, '.$this->config->item('table_name').'.COL_GRIDSQUARE, '.$this->config->item('table_name').'.COL_QSL_RCVD, '.$this->config->item('table_name').'.COL_EQSL_QSL_RCVD, '.$this->config->item('table_name').'.COL_EQSL_QSL_SENT, '.$this->config->item('table_name').'.COL_QSL_SENT, '.$this->config->item('table_name').'.COL_STX, '.$this->config->item('table_name').'.COL_STX_STRING, '.$this->config->item('table_name').'.COL_SRX, '.$this->config->item('table_name').'.COL_SRX_STRING, '.$this->config->item('table_name').'.COL_LOTW_QSL_SENT, '.$this->config->item('table_name').'.COL_LOTW_QSL_RCVD, '.$this->config->item('table_name').'.COL_VUCC_GRIDS, '.$this->config->item('table_name').'.COL_MY_GRIDSQUARE, '.$this->config->item('table_name').'.COL_CONTEST_ID, '.$this->config->item('table_name').'.COL_STATE, '.$this->config->item('table_name').'.COL_QRZCOM_QSO_UPLOAD_STATUS, '.$this->config->item('table_name').'.COL_QRZCOM_QSO_DOWNLOAD_STATUS, station_profile.*');
|
||||
$this->db->from($this->config->item('table_name'));
|
||||
|
||||
$this->db->join('station_profile', 'station_profile.station_id = '.$this->config->item('table_name').'.station_id');
|
||||
@@ -743,6 +743,9 @@ class Logbook extends CI_Controller {
|
||||
case 2:
|
||||
$html .= "<th>".lang('eqsl_short')."</th>";
|
||||
break;
|
||||
case 4:
|
||||
$html .= "<th>QRZ</th>";
|
||||
break;
|
||||
default:
|
||||
$html .= "<th>".lang('gen_hamradio_qsl')."</th>";
|
||||
break;
|
||||
@@ -813,6 +816,27 @@ class Logbook extends CI_Controller {
|
||||
}
|
||||
$html .= "\">▼</span>";
|
||||
$html .= "</td>";
|
||||
} else if ($this->session->userdata('user_previous_qsl_type') == 4) {
|
||||
$html .= "<td class=\"qrz\">";
|
||||
$html .= "<span class=\"qsl-";
|
||||
switch ($row->COL_QRZCOM_QSO_UPLOAD_STATUS) {
|
||||
case "Y":
|
||||
$html .= "green";
|
||||
break;
|
||||
default:
|
||||
$html .= "red";
|
||||
}
|
||||
$html .= "\">▲</span>";
|
||||
$html .= "<span class=\"qsl-";
|
||||
switch ($row->COL_QRZCOM_QSO_DOWNLOAD_STATUS) {
|
||||
case "Y":
|
||||
$html .= "green";
|
||||
break;
|
||||
default:
|
||||
$html .= "red";
|
||||
}
|
||||
$html .= "\">▼</span>";
|
||||
$html .= "</td>";
|
||||
} else {
|
||||
$html .= "<td class=\"qsl\">";
|
||||
$html .= "<span class=\"qsl-";
|
||||
|
||||
@@ -516,6 +516,7 @@
|
||||
<option value="0"><?php echo lang('gen_hamradio_qsl'); ?></option>
|
||||
<option value="1"><?php echo lang('lotw_short'); ?></option>
|
||||
<option value="2"><?php echo lang('eqsl_short'); ?></option>
|
||||
<option value="4">QRZ</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -507,6 +507,7 @@
|
||||
<option value="0" <?php if ($user_previous_qsl_type == 0) { echo " selected =\"selected\""; } ?>><?php echo lang('gen_hamradio_qsl'); ?></option>
|
||||
<option value="1" <?php if ($user_previous_qsl_type == 1) { echo " selected =\"selected\""; } ?>><?php echo lang('lotw_short'); ?></option>
|
||||
<option value="2" <?php if ($user_previous_qsl_type == 2) { echo " selected =\"selected\""; } ?>><?php echo lang('eqsl_short'); ?></option>
|
||||
<option value="4" <?php if ($user_previous_qsl_type == 4) { echo " selected =\"selected\""; } ?>>QRZ</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user