diff --git a/application/controllers/Api.php b/application/controllers/Api.php index 14f3a7d5..8d71329a 100644 --- a/application/controllers/Api.php +++ b/application/controllers/Api.php @@ -50,11 +50,11 @@ class API extends CI_Controller { $data['api_keys'] = $this->api_model->keys(); - $data['page_title'] = "API Help"; + $data['page_title'] = "API Options"; - $this->load->view('layout/header', $data); + $this->load->view('interface_assets/header', $data); $this->load->view('api/help'); - $this->load->view('layout/footer'); + $this->load->view('interface_assets/footer'); } function generate($rights) { diff --git a/application/controllers/Station.php b/application/controllers/Station.php index d7001cfd..9e50db8e 100644 --- a/application/controllers/Station.php +++ b/application/controllers/Station.php @@ -24,9 +24,9 @@ class Station extends CI_Controller { // Render Page $data['page_title'] = "Station Profiles"; - $this->load->view('layout/header', $data); + $this->load->view('interface_assets/header', $data); $this->load->view('station_profile/index'); - $this->load->view('layout/footer'); + $this->load->view('interface_assets/footer'); } public function create() @@ -43,9 +43,9 @@ class Station extends CI_Controller { if ($this->form_validation->run() == FALSE) { $data['page_title'] = "Create Station Profile"; - $this->load->view('layout/header', $data); + $this->load->view('interface_assets/header', $data); $this->load->view('station_profile/create'); - $this->load->view('layout/footer'); + $this->load->view('interface_assets/footer'); } else { diff --git a/application/controllers/User.php b/application/controllers/User.php index 44a9f7a0..36a9754a 100644 --- a/application/controllers/User.php +++ b/application/controllers/User.php @@ -12,9 +12,9 @@ class User extends CI_Controller { $data['page_title'] = "Users"; - $this->load->view('layout/header', $data); + $this->load->view('interface_assets/header', $data); $this->load->view('user/main'); - $this->load->view('layout/footer'); + $this->load->view('interface_assets/footer'); } function add() { @@ -40,7 +40,7 @@ class User extends CI_Controller { { $data['page_title'] = "Add User"; - $this->load->view('layout/header', $data); + $this->load->view('interface_assets/header', $data); if($this->input->post('user_name')) { $data['user_name'] = $this->input->post('user_name'); @@ -56,7 +56,7 @@ class User extends CI_Controller { } else { $this->load->view('user/add', $data); } - $this->load->view('layout/footer'); + $this->load->view('interface_assets/footer'); } else { @@ -79,7 +79,7 @@ class User extends CI_Controller { } $data['page_title'] = "Users"; - $this->load->view('layout/header', $data); + $this->load->view('interface_assets/header', $data); $data['user_name'] = $this->input->post('user_name'); $data['user_email'] = $this->input->post('user_email'); $data['user_password'] = $this->input->post('user_password'); @@ -89,7 +89,7 @@ class User extends CI_Controller { $data['user_callsign'] = $this->input->post('user_callsign'); $data['user_locator'] = $this->input->post('user_locator'); $this->load->view('user/add'); - $this->load->view('layout/footer'); + $this->load->view('interface_assets/footer'); } } @@ -119,7 +119,7 @@ class User extends CI_Controller { { $data['page_title'] = "Edit User"; - $this->load->view('layout/header', $data); + $this->load->view('interface_assets/header', $data); $q = $query->row(); $data['id'] = $q->user_id; @@ -221,7 +221,7 @@ class User extends CI_Controller { } $this->load->view('user/edit', $data); - $this->load->view('layout/footer'); + $this->load->view('interface_assets/footer'); } else { @@ -250,7 +250,7 @@ class User extends CI_Controller { } $data['page_title'] = "Edit User"; - $this->load->view('layout/header', $data); + $this->load->view('interface_assets/header', $data); $data['user_name'] = $this->input->post('user_name'); $data['user_email'] = $this->input->post('user_email'); $data['user_password'] = $this->input->post('user_password'); @@ -261,7 +261,7 @@ class User extends CI_Controller { $data['user_locator'] = $this->input->post('user_locator'); $data['user_timezone'] = $this->input->post('user_timezone'); $this->load->view('user/edit'); - $this->load->view('layout/footer'); + $this->load->view('interface_assets/footer'); } } @@ -278,9 +278,9 @@ class User extends CI_Controller { $data['user_callsign'] = $q->user_callsign; $data['user_locator'] = $q->user_locator; - $this->load->view('layout/header', $data); + $this->load->view('interface_assets/header', $data); $this->load->view('user/profile'); - $this->load->view('layout/footer'); + $this->load->view('interface_assets/footer'); } function delete() { @@ -297,9 +297,9 @@ class User extends CI_Controller { if ($this->form_validation->run() == FALSE) { - $this->load->view('layout/header', $data); + $this->load->view('interface_assets/header', $data); $this->load->view('user/delete'); - $this->load->view('layout/footer'); + $this->load->view('interface_assets/footer'); } else { diff --git a/application/views/api/help.php b/application/views/api/help.php index 07f92e9a..0fbaf384 100644 --- a/application/views/api/help.php +++ b/application/views/api/help.php @@ -1,95 +1,66 @@ -
You will need to generate API keys if you wish to use tools like CloudlogCAT.
-num_rows() > 0) { ?> + num_rows() > 0) { ?> -| API Key | +Rights | +Status | +
|---|---|---|
| key; ?> | ++ rights == "rw") { + echo "Read & Write"; + } elseif($row->rights == "r") { + echo "Read Only"; + } else { + echo "Unknown"; + } + + ?> - | |
| API Key | -Rights | -Status | -status); ?> - Test | + - result() as $row) { ?> + -
| key; ?> | -+ |
You have no API Keys.
+ - -+ Generate Key with Read & Write Access + Generate Key with Read Only Access +
- - -You have no API Keys.
- - -/search/format=<format>/query=<field><=|~><value>{(and|or)...}/limit=<num>/fields=<field1>,{<field2>/order=<field>
-/search/format=xml/query=Call~M0*(and)(Locator~I*(or)Locator~J*)/limit=10/fields=distinct(Call),Locator/order=Call(asc)-