diff --git a/application/controllers/Station.php b/application/controllers/Station.php index 427d94665..7cc014b62 100644 --- a/application/controllers/Station.php +++ b/application/controllers/Station.php @@ -19,25 +19,6 @@ class Station extends CI_Controller } } - public function index() - { - $this->load->model('stations'); - $this->load->model('Logbook_model'); - $this->load->model('user_model'); - - $data['is_admin'] = ($this->user_model->authorize(99)); - - $data['stations'] = $this->stations->all_with_count(); - $data['current_active'] = $this->stations->find_active(); - $data['is_there_qsos_with_no_station_id'] = $this->Logbook_model->check_for_station_id(); - - // Render Page - $data['page_title'] = __("Station Location"); - $this->load->view('interface_assets/header', $data); - $this->load->view('station_profile/index'); - $this->load->view('interface_assets/footer'); - } - public function create() { $this->load->model('stations'); diff --git a/application/views/station_profile/index.php b/application/views/station_profile/index.php deleted file mode 100644 index 603320435..000000000 --- a/application/views/station_profile/index.php +++ /dev/null @@ -1,120 +0,0 @@ -
= __("Station Locations define operating locations, such as your QTH, a friends QTH, or a portable station."); ?>
-= __("Similar to logbooks, a station profile keeps a set of QSOs together."); ?>
-= __("Only one station may be active at a time. In the table below this is shown with the -Active Station- badge."); ?>
- -= __("Create a Station Location"); ?>
- - num_rows() > 0) { ?> - - -| = __("Profile Name"); ?> | -= __("Station Callsign"); ?> | -= __("Country"); ?> | -= __("Gridsquare"); ?> | -- | = __("Edit"); ?> | -= __("Copy"); ?> | - user_options_model->get_options('header_menu', array('option_name'=>'locations_quickswitch'))->row()->option_value ?? 'false'); - if ($quickswitch_enabled == 'true') { - ?> -Favorite | - -= __("Empty Log"); ?> | -= __("Delete"); ?> | -
|---|---|---|---|---|---|---|---|---|---|
|
- station_profile_name;?> - |
- station_callsign;?> | -station_country == '' ? '- NONE -' : $row->station_country; if ($row->dxcc_end != NULL) { echo ' '.__("Deleted DXCC").''; } ?> | -station_gridsquare;?> | -
- station_active != 1) { ?>
- station_id; ?>" class="btn btn-outline-secondary btn-sm" onclick="return confirm('= __("Are you sure you want to make the following station the active station: "); ?> station_profile_name; ?>');">= __("Set Active"); ?>
-
- = __("Active Station"); ?>
-
-
- - ID: station_id;?> - qso_total;?> = __("QSO"); ?> - |
- - station_id; ?>" title== __("Edit"); ?> class="btn btn-outline-primary btn-sm"> - | -- station_id; ?>" title== __("Copy"); ?> class="btn btn-outline-primary btn-sm"> - | - -- user_options_model->get_options('station_location', array('option_name'=>'is_favorite', 'option_key'=>$row->station_id))->row()->option_value ?? 'false'); - if ($locationFavorite == 'true') { - $favStarClasses = 'class="fas fa-star" style="color: #ffc82b;"'; - } else { - $favStarClasses = 'class="far fa-star" style="color: #a58118;"'; - } ?> - station_id; ?>" title="mark/unmark as favorite" > - | - -- - station_id; ?>" class="btn btn-danger btn-sm" title== __("Empty Log"); ?> onclick="return confirm('');"> | - -- station_active != 1) { - $cnfmsg = sprintf(__("Are you sure you want delete station profile '%s'? This will delete all QSOs within this station profile."), $row->station_profile_name); ?> - station_id; ?>" class="btn btn-danger btn-sm" title== __("Delete"); ?> onclick="return confirm('= $cnfmsg ?>')"> - - | -