diff --git a/application/models/Bands.php b/application/models/Bands.php index e7eabca48..f862493e1 100644 --- a/application/models/Bands.php +++ b/application/models/Bands.php @@ -99,6 +99,22 @@ class Bands extends CI_Model { return $this->db->get()->result(); } + function get_all_bandedges_for_user() { + $this->db->from('bandedges'); + $this->db->where('bandedges.userid', $this->session->userdata('user_id')); + + $result = $this->db->get()->result(); + + if ($result) { + return $result; + } + + $this->db->from('bandedges'); + $this->db->where('bandedges.userid', -1); + + return $this->db->get()->result(); + } + function all() { return $this->bandslots; } diff --git a/application/views/bands/bandedges.php b/application/views/bands/bandedges.php new file mode 100644 index 000000000..e06a54668 --- /dev/null +++ b/application/views/bands/bandedges.php @@ -0,0 +1,45 @@ +
+ +
+ session->flashdata('message')) { ?> + +
+

session->flashdata('message'); ?>

+
+ + +

+ +
+
+

+
+

+
+ + + + + + + + + + + + + + + + + + + +
frequencyfrom;?>frequencyto;?>mode;?>
+ +
+

+

+ + + diff --git a/application/views/interface_assets/header.php b/application/views/interface_assets/header.php index ca1727a2e..3a976ad1c 100644 --- a/application/views/interface_assets/header.php +++ b/application/views/interface_assets/header.php @@ -413,6 +413,7 @@
  • +
  • config->item('special_callsign') && $this->session->userdata('clubstation') == 0) { ?>