Gridsquare checked based on station profile and past qsos checked against all qsos in the table
这个提交包含在:
父节点
4180a1aa4a
当前提交
f6924c77ed
共有 1 个文件被更改,包括 25 次插入 和 9 次删除
|
|
@ -165,10 +165,15 @@ class Logbook extends CI_Controller {
|
||||||
$this->db->where('COL_PROP_MODE !=','SAT');
|
$this->db->where('COL_PROP_MODE !=','SAT');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->db->where('station_id', $station_id);
|
$this->db->where('station_id', $station_id);
|
||||||
$this->db->like('SUBSTRING(COL_GRIDSQUARE, 1, 4)', substr($gridsquare, 0, 4));
|
$this->db->like('SUBSTRING(COL_GRIDSQUARE, 1, 4)', substr($gridsquare, 0, 4));
|
||||||
$query = $this->db->get($this->config->item('table_name'), 1, 0);
|
$this->db->order_by($this->config->item('table_name').".COL_TIME_ON", "desc");
|
||||||
|
$this->db->limit(1);
|
||||||
|
|
||||||
|
|
||||||
|
$query = $this->db->get($this->config->item('table_name'));
|
||||||
|
|
||||||
|
|
||||||
foreach ($query->result() as $workedBeforeRow)
|
foreach ($query->result() as $workedBeforeRow)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
|
@ -278,16 +283,25 @@ class Logbook extends CI_Controller {
|
||||||
$this->load->view('view_log/qso');
|
$this->load->view('view_log/qso');
|
||||||
$this->load->view('interface_assets/footer');
|
$this->load->view('interface_assets/footer');
|
||||||
}
|
}
|
||||||
|
|
||||||
function partial($id) {
|
function partial($id) {
|
||||||
$this->load->model('user_model');
|
$this->load->model('user_model');
|
||||||
if(!$this->user_model->authorize($this->config->item('auth_mode'))) { return; }
|
if(!$this->user_model->authorize($this->config->item('auth_mode'))) { return; }
|
||||||
|
|
||||||
$html = "";
|
$html = "";
|
||||||
$this->db->like('COL_CALL', $id);
|
|
||||||
$this->db->order_by("COL_TIME_ON", "desc");
|
|
||||||
|
$this->db->select(''.$this->config->item('table_name').'.COL_CALL, '.$this->config->item('table_name').'.COL_BAND, '.$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_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, 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');
|
||||||
|
$this->db->order_by(''.$this->config->item('table_name').'.COL_TIME_ON', "desc");
|
||||||
|
|
||||||
|
$this->db->like($this->config->item('table_name').'.COL_CALL', $id);
|
||||||
|
$this->db->order_by($this->config->item('table_name').".COL_TIME_ON", "desc");
|
||||||
$this->db->limit(5);
|
$this->db->limit(5);
|
||||||
$query = $this->db->get($this->config->item('table_name'));
|
|
||||||
|
$query = $this->db->get();
|
||||||
|
|
||||||
if ($query->num_rows() > 0)
|
if ($query->num_rows() > 0)
|
||||||
{
|
{
|
||||||
|
|
@ -296,10 +310,11 @@ class Logbook extends CI_Controller {
|
||||||
$html .= "<tr>";
|
$html .= "<tr>";
|
||||||
$html .= "<td>Date</td>";
|
$html .= "<td>Date</td>";
|
||||||
$html .= "<td>Callsign</td>";
|
$html .= "<td>Callsign</td>";
|
||||||
$html .= "<td>RST Sent</td>";
|
$html .= "<td>RST (S)</td>";
|
||||||
$html .= "<td>RST Recv</td>";
|
$html .= "<td>RST (R)</td>";
|
||||||
$html .= "<td>Band</td>";
|
$html .= "<td>Band</td>";
|
||||||
$html .= "<td>Mode</td>";
|
$html .= "<td>Mode</td>";
|
||||||
|
$html .= "<td></td>";
|
||||||
$html .= "</tr>";
|
$html .= "</tr>";
|
||||||
foreach ($query->result() as $row)
|
foreach ($query->result() as $row)
|
||||||
{
|
{
|
||||||
|
|
@ -314,6 +329,7 @@ class Logbook extends CI_Controller {
|
||||||
$html .= "<td>".$row->COL_BAND."</td>";
|
$html .= "<td>".$row->COL_BAND."</td>";
|
||||||
}
|
}
|
||||||
$html .= "<td>".$row->COL_MODE."</td>";
|
$html .= "<td>".$row->COL_MODE."</td>";
|
||||||
|
$html .= "<td><span class=\"badge badge-info\">".$row->station_callsign."</span></td>";
|
||||||
$html .= "</tr>";
|
$html .= "</tr>";
|
||||||
}
|
}
|
||||||
$html .= "</table>";
|
$html .= "</table>";
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用