From 322085d2f62824d05b3fb9c13b86aa5a45a1796b Mon Sep 17 00:00:00 2001
From: phl0 Below is a table of QSOs that have been confirmed on eQSL but QSL images have not been downloaded yet.";
- // eQSL username changes for linked account.
- // i.e. when operating /P it must be callsign/p
- // the password, however, is always the same as the main account
- $data['user_eqsl_name'] = $qsl['station_callsign'];
- //$adif = $this->generateAdif($qsl, $data);
-
- //$status = $this->uploadQso($adif, $qsl);
- $status = "none";
-
- $timestamp = strtotime($qsl['COL_TIME_ON']);
- $rows .= " ";
- $data['eqsl_table'] = $this->generateResultTable($custom_date_format, $rows);
- // Load frontend
$this->load->view('interface_assets/header', $data);
$this->load->view('eqsl/download');
$this->load->view('interface_assets/footer');
diff --git a/application/models/Eqslmethods_model.php b/application/models/Eqslmethods_model.php
index 49f49dee..ff83f5bd 100644
--- a/application/models/Eqslmethods_model.php
+++ b/application/models/Eqslmethods_model.php
@@ -81,7 +81,7 @@ class Eqslmethods_model extends CI_Model {
}
}
- $this->db->select('station_profile.*, '.$this->config->item('table_name').'.COL_PRIMARY_KEY, '.$this->config->item('table_name').'.COL_TIME_ON, '.$this->config->item('table_name').'.COL_CALL, '.$this->config->item('table_name').'.COL_MODE, '.$this->config->item('table_name').'.COL_SUBMODE, '.$this->config->item('table_name').'.COL_BAND, '.$this->config->item('table_name').'.COL_COMMENT, '.$this->config->item('table_name').'.COL_RST_SENT, '.$this->config->item('table_name').'.COL_PROP_MODE, '.$this->config->item('table_name').'.COL_SAT_NAME, '.$this->config->item('table_name').'.COL_SAT_MODE, '.$this->config->item('table_name').'.COL_QSLMSG, eQSL_images.*');
+ $this->db->select('station_profile.station_id, '.$this->config->item('table_name').'.COL_PRIMARY_KEY, '.$this->config->item('table_name').'.COL_TIME_ON, '.$this->config->item('table_name').'.COL_CALL, '.$this->config->item('table_name').'.COL_MODE, '.$this->config->item('table_name').'.COL_SUBMODE, '.$this->config->item('table_name').'.COL_BAND, '.$this->config->item('table_name').'.COL_PROP_MODE, '.$this->config->item('table_name').'.COL_SAT_NAME, '.$this->config->item('table_name').'.COL_SAT_MODE, '.$this->config->item('table_name').'.COL_QSLMSG, eQSL_images.qso_id');
$this->db->from('station_profile');
$this->db->join($this->config->item('table_name'),'station_profile.station_id = '.$this->config->item('table_name').'.station_id');
$this->db->join('eQSL_images','eQSL_images.qso_id = '.$this->config->item('table_name').'.COL_PRIMARY_KEY','left outer');
@@ -91,10 +91,7 @@ class Eqslmethods_model extends CI_Model {
$this->db->where('qso_id', NULL);
$this->db->where_in('station_profile.station_id', $logbooks_locations_array);
- $result = $this->db->get();
- log_message('info','SQL: '.$this->db->last_query());
- return $result;
- //return $this->db->get();
+ return $this->db->get();
}
// Mark the QSO as sent to eQSL
diff --git a/application/views/eqsl/download.php b/application/views/eqsl/download.php
index c8dd5dd4..6da35457 100644
--- a/application/views/eqsl/download.php
+++ b/application/views/eqsl/download.php
@@ -24,31 +24,44 @@
load->view('layout/messages'); ?>
result())) {
?>
".date($custom_date_format, $timestamp)." ";
- $rows .= "".date('H:i', $timestamp)." ";
- $rows .= "".str_replace("0","Ø",$qsl['COL_CALL'])." ";
- $rows .= "".$qsl['COL_MODE']." ";
- if(isset($qsl['COL_SUBMODE'])) {
- $rows .= "".$qsl['COL_SUBMODE']." ";
- } else {
- $rows .= "";
- }
- $rows .= " ".$qsl['COL_BAND']." ";
- $rows .= "".$status." ";
- }
- $rows .= "
| Date | +Time | +Call | +Mode | +Submode | +Band | +Action | +|
|---|---|---|---|---|---|---|---|
| ".date($custom_date_format, $timestamp)." | "; + echo "".date('H:i', $timestamp)." | "; + echo "".str_replace("0","Ø",$qsl['COL_CALL'])." | "; + echo "".$qsl['COL_MODE']." | "; + if(isset($qsl['COL_SUBMODE'])) { + echo "".$qsl['COL_SUBMODE']." | "; + } else { + echo ""; } - else - { - if (isset($eqsl_results_table)) - { - echo " | ".$qsl['COL_BAND']." | "; + echo "View/Download | "; +} + echo "