[Visitor] Fixed issue where grid map wasnt functional
这个提交包含在:
父节点
c33ce3fdbb
当前提交
c3f8b7be72
共有 2 个文件被更改,包括 6 次插入 和 5 次删除
|
|
@ -248,7 +248,7 @@ class Visitor extends CI_Controller {
|
||||||
|
|
||||||
|
|
||||||
// Get Confirmed LoTW & Paper Squares (non VUCC)
|
// Get Confirmed LoTW & Paper Squares (non VUCC)
|
||||||
$query = $this->gridmap_model->get_band_confirmed('SAT', 'All', 'false', 'true', 'false', 'All', $logbooks_locations_array);
|
$query = $this->gridmap_model->get_band_confirmed('SAT', 'All', 'true', 'true', 'false', 'false', 'All', $logbooks_locations_array);
|
||||||
|
|
||||||
|
|
||||||
if ($query && $query->num_rows() > 0)
|
if ($query && $query->num_rows() > 0)
|
||||||
|
|
@ -284,7 +284,7 @@ class Visitor extends CI_Controller {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get worked squares
|
// Get worked squares
|
||||||
$query = $this->gridmap_model->get_band('SAT', 'All', 'false', 'true', 'false', 'All', $logbooks_locations_array);
|
$query = $this->gridmap_model->get_band('SAT', 'All', 'false', 'true', 'false', 'false', 'All', $logbooks_locations_array);
|
||||||
|
|
||||||
if ($query && $query->num_rows() > 0)
|
if ($query && $query->num_rows() > 0)
|
||||||
{
|
{
|
||||||
|
|
@ -318,7 +318,7 @@ class Visitor extends CI_Controller {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$query_vucc = $this->gridmap_model->get_band_worked_vucc_squares('SAT', 'All', 'false', 'true', 'false', 'All', $logbooks_locations_array);
|
$query_vucc = $this->gridmap_model->get_band_worked_vucc_squares('SAT', 'All', 'false', 'true', 'false', 'false', 'All', $logbooks_locations_array);
|
||||||
|
|
||||||
if ($query && $query_vucc->num_rows() > 0)
|
if ($query && $query_vucc->num_rows() > 0)
|
||||||
{
|
{
|
||||||
|
|
@ -345,7 +345,7 @@ class Visitor extends CI_Controller {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Confirmed Squares
|
// Confirmed Squares
|
||||||
$query_vucc = $this->gridmap_model->get_band_confirmed_vucc_squares('SAT', 'All', 'false', 'true', 'false', 'All', $logbooks_locations_array);
|
$query_vucc = $this->gridmap_model->get_band_confirmed_vucc_squares('SAT', 'All', 'true', 'true', 'false', 'false', 'All', $logbooks_locations_array);
|
||||||
|
|
||||||
if ($query && $query_vucc->num_rows() > 0)
|
if ($query && $query_vucc->num_rows() > 0)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
class Gridmap_model extends CI_Model {
|
class Gridmap_model extends CI_Model {
|
||||||
|
|
||||||
function get_band_confirmed($band, $mode, $qsl, $lotw, $eqsl, $qrz, $sat, $logbooks_locations_array = NULL) {
|
function get_band_confirmed($band, $mode, $qsl, $lotw, $eqsl, $qrz, $sat, $logbooks_locations_array = NULL) {
|
||||||
|
|
||||||
if ($logbooks_locations_array == NULL) {
|
if ($logbooks_locations_array == NULL) {
|
||||||
$CI =& get_instance();
|
$CI =& get_instance();
|
||||||
$CI->load->model('logbooks_model');
|
$CI->load->model('logbooks_model');
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用