コード例 #1
0
 public function __construct()
 {
     parent::__construct();
     $this->validated();
     $this->load->model('Member', '', TRUE);
     $this->load->model('Group', '', TRUE);
     $this->load->model('GroupMember', '', TRUE);
     $this->load->model('Level', '', TRUE);
     $this->load->model('Type', '', TRUE);
     $this->load->model('Schedule', '', TRUE);
     $this->user_id = $this->session->userdata('id');
     // $this->member_photo_url = "";
     $this->Data['Headers'] = get_page_headers();
     $this->Data['Headers']->CSS = '<link rel="stylesheet" href="' . base_url('assets/vendors/bootgrid/jquery.bootgrid.min.css') . '">';
     $this->Data['Headers']->CSS .= '<link rel="stylesheet" href="' . base_url('assets/vendors/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css') . '">';
     $this->Data['Headers']->CSS .= '<link rel="stylesheet" href="' . base_url('assets/vendors/chosen/chosen.min.css') . '">';
     $this->Data['Headers']->JS = '<script src="' . base_url('assets/vendors/bootgrid/jquery.bootgrid.min.js') . '"></script>';
     $this->Data['Headers']->JS .= '<script src="' . base_url('assets/vendors/bootstrap-growl/bootstrap-growl.min.js') . '"></script>';
     $this->Data['Headers']->JS .= '<script src="' . base_url('assets/vendors/moment/min/moment.min.js') . '"></script>';
     $this->Data['Headers']->JS .= '<script src="' . base_url('assets/vendors/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js') . '"></script>';
     $this->Data['Headers']->JS .= '<script src="' . base_url('assets/vendors/jquery.validate/dist/jquery.validate.min.js') . '"></script>';
     $this->Data['Headers']->JS .= '<script src="' . base_url('assets/vendors/chosen/chosen.jquery.min.js') . '"></script>';
     $this->Data['Headers']->CSS .= '<link rel="stylesheet" href="' . base_url('assets/vendors/dropzone/dropzone.css') . '"></link>';
     $this->Data['Headers']->JS .= '<script src="' . base_url('assets/vendors/dropzone/dropzone.min.js') . '"></script>';
     $this->Data['Headers']->JS .= '<script src="' . base_url('assets/js/specifics/members.js') . '"></script>';
 }
コード例 #2
0
 public function index()
 {
     $this->output->set_status_header('404');
     $Headers = get_page_headers();
     $Headers->Page = 'errors/html/error_404';
     $this->Data['Headers'] = $Headers;
     $this->Data['Content']['heading'] = 'Error 404';
     $this->Data['Content']['subheading'] = 'The page does not exist.';
     $this->load->view('layouts/main', $this->Data);
 }
コード例 #3
0
ファイル: page_helper.php プロジェクト: john-lioneil/sams
 function get_copyright($year, $copy = null)
 {
     $CI = get_instance();
     if (null == $copy) {
         $copy = 'Copyright &copy; ' . $year . ($year < date('Y') ? ' - ' . date('Y') : '') . ' ';
     }
     $Headers = get_page_headers();
     $copy .= $Headers->Page_Title;
     return $copy;
 }
コード例 #4
0
ファイル: AuthController.php プロジェクト: john-lioneil/sams
 public function __construct()
 {
     parent::__construct();
     $this->load->model('User', '', TRUE);
     $this->Data['Headers'] = get_page_headers();
     $this->Data['Headers']->CSS = '<link rel="stylesheet" href="' . base_url('assets/vendors/bootgrid/jquery.bootgrid.min.css') . '">';
     $this->Data['Headers']->JS .= '<script src="' . base_url('assets/vendors/bootstrap-growl/bootstrap-growl.min.js') . '"></script>';
     $this->Data['Headers']->JS .= '<script src="' . base_url('assets/vendors/jquery.validate/dist/jquery.validate.min.js') . '"></script>';
     $this->Data['Headers']->JS .= '<script src="' . base_url('assets/js/specifics/login.js') . '"></script>';
     $this->Data['Headers']->bodyClass = 'login-content';
 }
コード例 #5
0
ファイル: DTRController.php プロジェクト: john-lioneil/sams
 public function __construct()
 {
     date_default_timezone_set('Asia/Singapore');
     parent::__construct();
     // $this->validated();
     $this->load->model('DTRLog', '', TRUE);
     $this->load->model('Member', '', TRUE);
     $this->load->model('Message', '', TRUE);
     $this->load->model('DTR', '', TRUE);
     $this->load->model('Outbox', '', TRUE);
     $this->user_id = $this->session->userdata('id');
     $this->Data['Headers'] = get_page_headers();
 }
コード例 #6
0
ファイル: APIController.php プロジェクト: john-lioneil/sams
 public function __construct()
 {
     parent::__construct();
     $this->validated();
     $this->user_id = $this->session->userdata('id');
     $this->load->model('Message', '', TRUE);
     $this->load->model('Outbox', '', TRUE);
     $this->load->model('Member', '', TRUE);
     $this->Data['Headers'] = get_page_headers();
     $this->Data['Headers']->JS = '<script src="' . base_url('assets/vendors/bootgrid/jquery.bootgrid.min.js') . '"></script>';
     $this->Data['Headers']->JS .= '<script src="' . base_url('assets/vendors/bootstrap-growl/bootstrap-growl.min.js') . '"></script>';
     $this->Data['Headers']->JS .= '<script src="' . base_url('assets/vendors/moment/min/moment.min.js') . '"></script>';
     $this->Data['Headers']->JS .= '<link rel="stylesheet" href="' . base_url('assets/vendors/selectize.js/dist/css/selectize.bootstrap3.css') . '">';
     $this->Data['Headers']->JS .= '<script src="' . base_url('assets/vendors/selectize.js/dist/js/standalone/selectize.min.js') . '"></script>';
     $this->Data['Headers']->JS .= '<script src="' . base_url('assets/js/specifics/messaging.js') . '"></script>';
 }
コード例 #7
0
 public function __construct()
 {
     parent::__construct();
     $this->validated();
     $this->load->model('Level', '', TRUE);
     $this->load->model('Contact', '', TRUE);
     $this->Data['Headers'] = get_page_headers();
     $this->Data['Headers']->CSS = '<link rel="stylesheet" href="' . base_url('assets/vendors/bootgrid/jquery.bootgrid.min.css') . '">';
     $this->Data['Headers']->CSS .= '<link rel="stylesheet" href="' . base_url('assets/vendors/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css') . '">';
     $this->Data['Headers']->JS = '<script src="' . base_url('assets/vendors/bootgrid/jquery.bootgrid.min.js') . '"></script>';
     // $this->Data['Headers']->JS .= '<script src="'.base_url('assets/vendors/chosen/chosen.jquery.min.js').'"></script>';
     $this->Data['Headers']->JS .= '<script src="' . base_url('assets/vendors/moment/min/moment.min.js') . '"></script>';
     $this->Data['Headers']->JS .= '<script src="' . base_url('assets/vendors/bootstrap-growl/bootstrap-growl.min.js') . '"></script>';
     $this->Data['Headers']->JS .= '<script src="' . base_url('assets/vendors/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js') . '"></script>';
     $this->Data['Headers']->JS .= '<script src="' . base_url('assets/vendors/autosize/dist/autosize.min.js') . '"></script>';
     $this->Data['Headers']->JS .= '<script src="' . base_url('assets/vendors/jquery.validate/dist/jquery.validate.min.js') . '"></script>';
     $this->Data['Headers']->JS .= '<script src="' . base_url('assets/js/specifics/levels.js') . '"></script>';
 }
コード例 #8
0
 public function __construct()
 {
     parent::__construct();
     $this->validated();
     $this->load->model('Monitor', '', TRUE);
     $this->user_id = $this->session->userdata('id');
     $this->Data['Headers'] = get_page_headers();
     $this->Data['Headers']->CSS = '<link rel="stylesheet" href="' . base_url('assets/vendors/bootgrid/jquery.bootgrid.min.css') . '">';
     $this->Data['Headers']->CSS .= '<link rel="stylesheet" href="' . base_url('assets/vendors/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css') . '">';
     $this->Data['Headers']->CSS .= '<link rel="stylesheet" href="' . base_url('assets/vendors/chosen/chosen.min.css') . '">';
     $this->Data['Headers']->JS = '<script src="' . base_url('assets/vendors/bootgrid/jquery.bootgrid.min.js') . '"></script>';
     $this->Data['Headers']->JS .= '<script src="' . base_url('assets/vendors/bootstrap-growl/bootstrap-growl.min.js') . '"></script>';
     $this->Data['Headers']->JS .= '<script src="' . base_url('assets/vendors/moment/min/moment.min.js') . '"></script>';
     $this->Data['Headers']->JS .= '<script src="' . base_url('assets/vendors/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js') . '"></script>';
     $this->Data['Headers']->JS .= '<script src="' . base_url('assets/vendors/jquery.validate/dist/jquery.validate.min.js') . '"></script>';
     $this->Data['Headers']->JS .= '<script src="' . base_url('assets/vendors/chosen/chosen.jquery.min.js') . '"></script>';
     $this->Data['Headers']->JS .= '<script src="' . base_url('assets/vendors/fileinput/fileinput.min.js') . '"></script>';
     $this->Data['Headers']->JS .= '<script src="' . base_url('assets/js/specifics/monitor.js') . '"></script>';
 }
コード例 #9
0
ファイル: class.admin_twig.php プロジェクト: pixelhulk/LEPTON
 /**
  *	Print the admin header
  *
  */
 public function print_header()
 {
     // Get vars from the language file
     global $MENU;
     global $MESSAGE;
     global $TEXT;
     // Get website title
     $title = $this->db_handle->get_one("SELECT `value` FROM `" . TABLE_PREFIX . "settings` WHERE `name`='website_title'");
     $charset = true === defined('DEFAULT_CHARSET') ? DEFAULT_CHARSET : 'utf-8';
     // Work out the URL for the 'View menu' link in the WB backend
     // if the page_id is set, show this page otherwise show the root directory of WB
     $view_url = LEPTON_URL;
     if (isset($_GET['page_id'])) {
         // Extract page link from the database
         $result = $this->db_handle->query("SELECT `link` FROM `" . TABLE_PREFIX . "pages` WHERE `page_id`= '" . (int) addslashes($_GET['page_id']) . "'");
         $row = $result->fetchRow(MYSQL_ASSOC);
         if ($row) {
             $view_url .= PAGES_DIRECTORY . $row['link'] . PAGE_EXTENSION;
         }
     }
     /**
      *	Try to get the current version of the backend-theme from the database
      *
      */
     $backend_theme_version = "";
     if (defined('DEFAULT_THEME')) {
         $backend_theme_version = $this->db_handle->get_one("SELECT `version` from `" . TABLE_PREFIX . "addons` where `directory`='" . DEFAULT_THEME . "'");
     }
     $header_vars = array('SECTION_NAME' => $MENU[strtoupper($this->section_name)], 'WEBSITE_TITLE' => $title, 'BACKEND_TITLE' => BACKEND_TITLE, 'TEXT_ADMINISTRATION' => $TEXT['ADMINISTRATION'], 'CURRENT_USER' => $MESSAGE['START_CURRENT_USER'], 'DISPLAY_NAME' => $this->get_display_name(), 'CHARSET' => $charset, 'LANGUAGE' => strtolower(LANGUAGE), 'VERSION' => VERSION, 'SUBVERSION' => SUBVERSION, 'CORE' => CORE, 'LEPTON_URL' => LEPTON_URL, 'ADMIN_URL' => ADMIN_URL, 'THEME_URL' => THEME_URL, 'TITLE_START' => $MENU['START'], 'TITLE_VIEW' => $MENU['VIEW'], 'TITLE_HELP' => $MENU['HELP'], 'TITLE_LOGOUT' => $MENU['LOGOUT'], 'PAGES' => $MENU['PAGES'], 'MEDIA' => $MENU['MEDIA'], 'ADDONS' => $MENU['ADDONS'], 'PREFERENCES' => $MENU['PREFERENCES'], 'SETTINGS' => $MENU['SETTINGS'], 'ADMINTOOLS' => $MENU['ADMINTOOLS'], 'ACCESS' => $MENU['ACCESS'], 'URL_VIEW' => $view_url, 'URL_HELP' => 'http://www.lepton-cms.org/', 'BACKEND_MODULE_FILES' => get_page_headers('backend', false), 'THEME_VERSION' => $backend_theme_version, 'THEME_NAME' => DEFAULT_THEME, 'p_pages' => $this->get_link_permission('pages'), 'p_media' => $this->get_link_permission('media'), 'p_addons' => $this->get_link_permission('addons'), 'p_preferences' => true, 'p_settings' => $this->get_link_permission('settings'), 'p_admintools' => $this->get_link_permission('admintools'), 'p_access' => $this->get_link_permission('access'), 'p_pages_intro' => $this->get_link_permission('pages_intro') == true && INTRO_PAGE == 'enabled');
     echo $this->parser->render('@theme/header.lte', $header_vars);
 }
コード例 #10
0
ファイル: index.php プロジェクト: pixelhulk/LEPTON
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<?php 
echo defined('DEFAULT_CHARSET') ? DEFAULT_CHARSET : 'utf-8';
?>
" />
	<meta name="description" content="<?php 
page_description();
?>
" />
	<meta name="keywords" content="<?php 
page_keywords();
?>
" />
	<?php 
get_page_headers();
?>
	<link rel="stylesheet" type="text/css" href="<?php 
echo TEMPLATE_DIR;
?>
/template.css" media="screen,projection" />
	<title><?php 
page_title('', '[WEBSITE_TITLE]');
?>
</title>
</head>
<body>
<?php 
/**
 *	TEMPLATE CODE STARTS BELOW
 *	output only the page content, nothing else
コード例 #11
0
ファイル: PageController.php プロジェクト: john-lioneil/sams
 /**
  * View for this controller.
  *
  * @see http://codeigniter.com/user_guide/general/urls.html
  */
 public function view($page)
 {
     $this->validated();
     $Data['Headers'] = get_page_headers();
     $this->load->view('layouts/main', $Data);
 }
コード例 #12
0
 /**
  *	Print the admin header
  *
  */
 public function print_header()
 {
     // Get vars from the language file
     global $MENU;
     global $MESSAGE;
     global $TEXT;
     // Connect to database and get website title
     $title = $this->db_handle->get_one("SELECT `value` FROM `" . TABLE_PREFIX . "settings` WHERE `name`='website_title'");
     $header_template = new Template(THEME_PATH . '/templates');
     $header_template->set_file('page', 'header.htt');
     $header_template->set_block('page', 'header_block', 'header');
     $charset = true === defined('DEFAULT_CHARSET') ? DEFAULT_CHARSET : 'utf-8';
     // work out the URL for the 'View menu' link in the WB backend
     // if the page_id is set, show this page otherwise show the root directory of WB
     $view_url = LEPTON_URL;
     if (isset($_GET['page_id'])) {
         // extract page link from the database
         $result = $this->db_handle->query("SELECT `link` FROM `" . TABLE_PREFIX . "pages` WHERE `page_id`= '" . (int) addslashes($_GET['page_id']) . "'");
         $row = $result->fetchRow(MYSQL_ASSOC);
         if ($row) {
             $view_url .= PAGES_DIRECTORY . $row['link'] . PAGE_EXTENSION;
         }
     }
     /**
      *	Get the current version of the backend-theme from the database
      */
     $backend_theme_version = "";
     if (defined('DEFAULT_THEME')) {
         $backend_theme_version = $this->db_handle->get_one("SELECT `version` from `" . TABLE_PREFIX . "addons` where `directory`='" . DEFAULT_THEME . "'");
     }
     $header_template->set_var(array('SECTION_NAME' => $MENU[strtoupper($this->section_name)], 'WEBSITE_TITLE' => $title, 'BACKEND_TITLE' => BACKEND_TITLE, 'TEXT_ADMINISTRATION' => $TEXT['ADMINISTRATION'], 'CURRENT_USER' => $MESSAGE['START_CURRENT_USER'], 'DISPLAY_NAME' => $this->get_display_name(), 'CHARSET' => $charset, 'LANGUAGE' => strtolower(LANGUAGE), 'VERSION' => VERSION, 'SUBVERSION' => SUBVERSION, 'CORE' => CORE, 'LEPTON_URL' => LEPTON_URL, 'ADMIN_URL' => ADMIN_URL, 'THEME_URL' => THEME_URL, 'TITLE_START' => $MENU['START'], 'TITLE_VIEW' => $MENU['VIEW'], 'TITLE_HELP' => $MENU['HELP'], 'TITLE_LOGOUT' => $MENU['LOGOUT'], 'PAGES' => $MENU['PAGES'], 'MEDIA' => $MENU['MEDIA'], 'ADDONS' => $MENU['ADDONS'], 'PREFERENCES' => $MENU['PREFERENCES'], 'SETTINGS' => $MENU['SETTINGS'], 'ADMINTOOLS' => $MENU['ADMINTOOLS'], 'ACCESS' => $MENU['ACCESS'], 'MENU' => $TEXT['MENU'], 'URL_VIEW' => $view_url, 'URL_HELP' => 'http://www.lepton-cms.org/', 'BACKEND_MODULE_FILES' => get_page_headers('backend', false), 'THEME_VERSION' => $backend_theme_version, 'THEME_NAME' => DEFAULT_THEME));
     // Create the menu
     $menu = array(array(ADMIN_URL . '/pages/index.php', '', $MENU['PAGES'], 'pages', 1), array(ADMIN_URL . '/media/index.php', '', $MENU['MEDIA'], 'media', 1), array(ADMIN_URL . '/addons/index.php', '', $MENU['ADDONS'], 'addons', 1), array(ADMIN_URL . '/preferences/index.php', '', $MENU['PREFERENCES'], 'preferences', 0), array(ADMIN_URL . '/settings/index.php', '', $MENU['SETTINGS'], 'settings', 1), array(ADMIN_URL . '/admintools/index.php', '', $MENU['ADMINTOOLS'], 'admintools', 1), array(ADMIN_URL . '/access/index.php', '', $MENU['ACCESS'], 'access', 1));
     if (true === defined("LEPTON_SERVICE_ACTIVE") && 1 == LEPTON_SERVICE_ACTIVE) {
         $menu[] = array(ADMIN_URL . '/service/index.php', '', $MENU['SERVICE'], 'service', 1);
     }
     $header_template->set_block('header_block', 'linkBlock', 'link');
     foreach ($menu as $menu_item) {
         $link = $menu_item[0];
         $target = $menu_item[1] == '' ? '_self' : $menu_item[1];
         $title = $menu_item[2];
         $permission_title = $menu_item[3];
         $required = $menu_item[4];
         $replace_old = array(ADMIN_URL, LEPTON_URL, '/', 'index.php');
         if ($required == false or $this->get_link_permission($permission_title)) {
             $header_template->set_var('LINK', $link);
             $header_template->set_var('TARGET', $target);
             // If link is the current section apply a class name
             if ($permission_title == strtolower($this->section_name)) {
                 $header_template->set_var('CLASS', $menu_item[3] . ' current');
             } else {
                 $header_template->set_var('CLASS', $menu_item[3]);
             }
             $header_template->set_var('TITLE', $title);
             // Print link
             $header_template->parse('link', 'linkBlock', true);
         }
     }
     $header_template->parse('header', 'header_block', false);
     $header_template->pparse('output', 'page');
 }
コード例 #13
0
function Dwoo_Plugin_get_page_headers(Dwoo $dwoo, $for = 'frontend', $print_output = true, $current_section = false)
{
    return get_page_headers($for, $print_output, $current_section);
}