diff --git a/application/models/Sota.php b/application/models/Sota.php index a08d9fd9..9088115a 100644 --- a/application/models/Sota.php +++ b/application/models/Sota.php @@ -8,8 +8,8 @@ class Sota extends CI_Model { } function get_all() { - $this->db->order_by("COL_COMMENT", "ASC"); - $this->db->like('COL_COMMENT', 'SOTA:'); + $this->db->order_by("COL_SOTA_REF", "ASC"); + $this->db->where('COL_SOTA_REF !=', ''); return $this->db->get($this->config->item('table_name')); } diff --git a/application/views/awards/sota/index.php b/application/views/awards/sota/index.php index 9b1149e0..ceb378fa 100644 --- a/application/views/awards/sota/index.php +++ b/application/views/awards/sota/index.php @@ -24,15 +24,7 @@ - COL_COMMENT); - foreach($pieces as $val) { - if (strpos($val,'SOTA:') !== false) { - //echo $val; - echo $rest = substr($val, 5); // returns "cde" - } - } - ?> + COL_SOTA_REF; ?> COL_TIME_ON); echo date('d/m/y', $timestamp); ?> - COL_TIME_ON); echo date('H:i', $timestamp); ?> COL_CALL; ?>