Example #1
0
 public function index()
 {
     if (is_logged(false)) {
         redirect(base_url());
     }
     set_theme('title', 'Login');
     set_theme('content', load_module('login', 'login'));
     set_theme('bodyClass', 'login bg-login printable');
     set_theme('pluginsJS', load_javascript(array('user-pages', 'initialize-login')), false);
     load_template();
 }
Example #2
0
 public function index()
 {
     if (is_logged(false)) {
         set_theme('title', 'Dashboard');
         set_theme('content', '<h1>Painel Principal</h1>');
         set_theme('pluginsJS', load_javascript(array('initialize')), false);
         load_template();
     } else {
         redirect('login');
     }
 }
function initialize($instance = 'dashboard')
{
    $vtx =& get_instance();
    switch ($instance) {
        case 'dashboard':
            //
            // Init Dashboard
            //
            $vtx->load->library(array('vortex', 'session', 'form_validation', 'parser'));
            $vtx->load->helper(array('form', 'url', 'array', 'text'));
            $vtx->load->model('login_mdl');
            set_theme('defaultTitle', 'Vortex');
            set_theme('defaultFooter', '');
            set_theme('bodyClass', 'theme-grey', false);
            set_theme('template', 'dashboard/dashboard');
            // Style
            set_theme('headerIncludes', load_style(array('bootstrap.min', 'font-awesome.min', 'ionicons.min', 'perfect-scrollbar.min')), false);
            set_theme('coreCSS', load_style(array('admin', 'elements')), false);
            set_theme('pluginsCSS', load_style(array('plugins', 'lobibox', 'animate', 'bootstrap-social', 'main')), false);
            set_theme('shortcutIcon', load_icon());
            set_theme('touchIcon', load_icon('apple-touch-icon', 'apple-touch-icon', 'png'));
            // javascript
            set_theme('modernizr', load_javascript(array('modernizr.min')), false);
            set_theme('footerIncludes', load_javascript(array('jquery-1.12.0.min', 'bootstrap.min')), false);
            set_theme('globalVendors', load_javascript(array('global-vendors')), false);
            set_theme('vortex', load_javascript(array('pleasure', 'layout', 'lobibox.min', 'perfect-scrollbar.jquery.min')), false);
            set_theme('defaultIncludes', load_javascript(array('main', 'effects')), false);
            break;
        case 'frontend':
            //
            // Init FrontEnd
            //
            break;
        case 'system':
            //
            // Init Vortex System
            //
            break;
    }
}
Example #4
0
load_css('ss-ijo/jquery-ui-1.8.16.custom');
?>
  <?php 
load_javascript('jquery-1.6.4');
?>
  <?php 
load_javascript('jquery-ui-1.8.16.custom.min');
?>
  <?php 
load_javascript('jquery.validate');
?>
  <?php 
load_css('style');
?>
  <?php 
load_javascript('general');
?>
  <title><?php 
echo $page_title;
?>
</title>
</head>
<body class="<?php 
echo $page_title;
?>
">
<div id="wrap" class="container_12">
  <div id="header">
    <?php 
$this->load->view('menus/default');
?>