Options
这个提交包含在:
父节点
78073d2921
当前提交
b6a5ba5f27
共有 4 个文件被更改,包括 26 次插入 和 13 次删除
|
|
@ -13,9 +13,18 @@ class Options extends CI_Controller {
|
||||||
|
|
||||||
$this->load->model('user_model');
|
$this->load->model('user_model');
|
||||||
if(!$this->user_model->authorize(99)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); }
|
if(!$this->user_model->authorize(99)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); }
|
||||||
|
|
||||||
|
// Load language files
|
||||||
|
$this->lang->load(array(
|
||||||
|
'options',
|
||||||
|
));
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Default /options view just gives some text to explain the options area
|
// Default /options view just gives some text to explain the options area
|
||||||
function index() {
|
function index() {
|
||||||
|
|
||||||
|
|
@ -24,7 +33,7 @@ class Options extends CI_Controller {
|
||||||
|
|
||||||
//echo $this->optionslib->get_option('theme');
|
//echo $this->optionslib->get_option('theme');
|
||||||
|
|
||||||
$data['page_title'] = "Cloudlog Options";
|
$data['page_title'] = $this->lang->line('options_cloudlog_options');
|
||||||
|
|
||||||
$this->load->view('interface_assets/header', $data);
|
$this->load->view('interface_assets/header', $data);
|
||||||
$this->load->view('options/index');
|
$this->load->view('options/index');
|
||||||
|
|
@ -38,8 +47,8 @@ class Options extends CI_Controller {
|
||||||
$directory = 'application/language';
|
$directory = 'application/language';
|
||||||
$data['language_options'] = array_diff(scandir($directory), array('..', '.'));
|
$data['language_options'] = array_diff(scandir($directory), array('..', '.'));
|
||||||
|
|
||||||
$data['page_title'] = "Cloudlog Options";
|
$data['page_title'] = $this->lang->line('options_cloudlog_options');
|
||||||
$data['sub_heading'] = "Appearance";
|
$data['sub_heading'] = $this->lang->line('options_appearance');
|
||||||
|
|
||||||
$this->load->model('Themes_model');
|
$this->load->model('Themes_model');
|
||||||
|
|
||||||
|
|
@ -57,8 +66,8 @@ class Options extends CI_Controller {
|
||||||
$directory = 'application/language';
|
$directory = 'application/language';
|
||||||
$data['language_options'] = array_diff(scandir($directory), array('..', '.'));
|
$data['language_options'] = array_diff(scandir($directory), array('..', '.'));
|
||||||
|
|
||||||
$data['page_title'] = "Cloudlog Options";
|
$data['page_title'] = $this->lang->line('options_cloudlog_options');
|
||||||
$data['sub_heading'] = "Appearance";
|
$data['sub_heading'] = $this->lang->line('options_appearance');
|
||||||
|
|
||||||
$this->load->helper(array('form', 'url'));
|
$this->load->helper(array('form', 'url'));
|
||||||
|
|
||||||
|
|
@ -79,7 +88,7 @@ class Options extends CI_Controller {
|
||||||
|
|
||||||
// If theme update is complete set a flashsession with a success note
|
// If theme update is complete set a flashsession with a success note
|
||||||
if($theme_update_status == TRUE) {
|
if($theme_update_status == TRUE) {
|
||||||
$this->session->set_flashdata('success', 'Theme changed to '.$this->input->post('theme'));
|
$this->session->set_flashdata('success', $this->lang->line('options_theme_changed_to').$this->input->post('theme'));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update theme choice within the options system
|
// Update theme choice within the options system
|
||||||
|
|
@ -130,7 +139,7 @@ class Options extends CI_Controller {
|
||||||
// function used to display the /radio url
|
// function used to display the /radio url
|
||||||
function radio() {
|
function radio() {
|
||||||
|
|
||||||
$data['page_title'] = "Cloudlog Options";
|
$data['page_title'] = $this->lang->line('options_cloudlog_options');
|
||||||
$data['sub_heading'] = "Radio Settings";
|
$data['sub_heading'] = "Radio Settings";
|
||||||
|
|
||||||
$this->load->view('interface_assets/header', $data);
|
$this->load->view('interface_assets/header', $data);
|
||||||
|
|
@ -143,7 +152,7 @@ class Options extends CI_Controller {
|
||||||
|
|
||||||
// Get Language Options
|
// Get Language Options
|
||||||
|
|
||||||
$data['page_title'] = "Cloudlog Options";
|
$data['page_title'] = $this->lang->line('options_cloudlog_options');
|
||||||
$data['sub_heading'] = "Radio Settings";
|
$data['sub_heading'] = "Radio Settings";
|
||||||
|
|
||||||
$this->load->helper(array('form', 'url'));
|
$this->load->helper(array('form', 'url'));
|
||||||
|
|
@ -176,7 +185,7 @@ class Options extends CI_Controller {
|
||||||
// function used to display the /appearance url
|
// function used to display the /appearance url
|
||||||
function email() {
|
function email() {
|
||||||
|
|
||||||
$data['page_title'] = "Cloudlog Options";
|
$data['page_title'] = $this->lang->line('options_cloudlog_options');
|
||||||
$data['sub_heading'] = "Email";
|
$data['sub_heading'] = "Email";
|
||||||
|
|
||||||
$this->load->view('interface_assets/header', $data);
|
$this->load->view('interface_assets/header', $data);
|
||||||
|
|
@ -189,7 +198,7 @@ class Options extends CI_Controller {
|
||||||
|
|
||||||
// Get Language Options
|
// Get Language Options
|
||||||
|
|
||||||
$data['page_title'] = "Cloudlog Options";
|
$data['page_title'] = $this->lang->line('options_cloudlog_options');
|
||||||
$data['sub_heading'] = "Email";
|
$data['sub_heading'] = "Email";
|
||||||
|
|
||||||
$this->load->helper(array('form', 'url'));
|
$this->load->helper(array('form', 'url'));
|
||||||
|
|
@ -278,7 +287,7 @@ class Options extends CI_Controller {
|
||||||
|
|
||||||
function oqrs() {
|
function oqrs() {
|
||||||
|
|
||||||
$data['page_title'] = "Cloudlog Options";
|
$data['page_title'] = $this->lang->line('options_cloudlog_options');
|
||||||
$data['sub_heading'] = "OQRS Options";
|
$data['sub_heading'] = "OQRS Options";
|
||||||
|
|
||||||
$this->load->view('interface_assets/header', $data);
|
$this->load->view('interface_assets/header', $data);
|
||||||
|
|
@ -288,7 +297,7 @@ class Options extends CI_Controller {
|
||||||
|
|
||||||
function oqrs_save() {
|
function oqrs_save() {
|
||||||
|
|
||||||
$data['page_title'] = "Cloudlog Options";
|
$data['page_title'] = $this->lang->line('options_cloudlog_options');
|
||||||
$data['sub_heading'] = "OQRS Options";
|
$data['sub_heading'] = "OQRS Options";
|
||||||
|
|
||||||
$this->load->helper(array('form', 'url'));
|
$this->load->helper(array('form', 'url'));
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ class Statistics extends CI_Controller {
|
||||||
// Render User Interface
|
// Render User Interface
|
||||||
|
|
||||||
// Set Page Title
|
// Set Page Title
|
||||||
$data['page_title'] = "Statistics";
|
$data['page_title'] = $this->lang->line('statistics_statistics');
|
||||||
$data['sat_active'] = array_search("SAT", $this->bands->get_user_bands(), true);
|
$data['sat_active'] = array_search("SAT", $this->bands->get_user_bands(), true);
|
||||||
|
|
||||||
// Load Views
|
// Load Views
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
$lang['statistics_statistics'] = 'Statistics';
|
||||||
|
|
||||||
$lang['statistics_explore_the_logbook'] = 'Explore the logbook.';
|
$lang['statistics_explore_the_logbook'] = 'Explore the logbook.';
|
||||||
|
|
||||||
$lang['statistics_years'] = 'Years';
|
$lang['statistics_years'] = 'Years';
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
|
$lang['statistics_statistics'] = 'Статистика';
|
||||||
|
|
||||||
$lang['statistics_explore_the_logbook'] = 'Исследуем журнал.';
|
$lang['statistics_explore_the_logbook'] = 'Исследуем журнал.';
|
||||||
|
|
||||||
$lang['statistics_years'] = 'по годам';
|
$lang['statistics_years'] = 'по годам';
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用