Ejemplo n.º 1
0
 public function index()
 {
     # Tittle pagina
     $this->page_title(' Freekore App');
     # Descripcion pagina
     $this->page_description('My Freekore Web App ');
     # Keywords pagina
     $this->page_keywords(' FreeKore , Programacion agil php');
     # Menu seleccionado
     $this->menu(1, 'inicio');
     fk_header();
     $this->load->view('index/index.php');
     fk_footer();
 }
Ejemplo n.º 2
0
    private function run_seguridad()
    {
        $ajax = isset($_POST['ajax']) ? $_POST['ajax'] : 0;
        if ($this->allow_access === false) {
            if ($ajax == 1) {
                echo '<div class="fk-error-message">Acceso denegado</div>';
            } else {
                fk_header();
                ?>
<div class="fk-error-message">
<h3>Acceso denegado</h3>
El acceso a esta p&aacute;gina fue denegado</div>
				<?php 
                fk_footer();
            }
            die;
        }
    }
Ejemplo n.º 3
0
 public function editusuario()
 {
     self::seguridad();
     $this->Load->Model(array('Usuario', 'Perfil'));
     $U = new Usuario();
     $U->id_usuario = $this->PermaLinkVars[0];
     $P = new Perfil();
     $Data['perfiles'] = $P->verPerfiles();
     $Data['action'] = 'Editar';
     $Data['url_action'] = 'ex_admin';
     $Data['user'] = $U->verUsuario();
     $U->where = 'id_usuario != 0';
     $Data['usuarios'] = $U->verUsuariosWhere();
     fk_header();
     $this->Load->View('admin/menu.php');
     $this->Load->View('admin/admin_formedit.php', $Data);
     fk_footer();
 }
Ejemplo n.º 4
0
<?php

fk_header();
?>
<div class="fk-error-message">Ups Ocurrio un error :(
<input type="hidden" name="err" value="{error_code}">
</div>
<?php 
fk_footer();
 public function index()
 {
     fk_header();
     $this->Load->View('admin/accesorestringido.php', $array);
     fk_footer();
 }
Ejemplo n.º 6
0
 public function renderAllComponent($getCurrentUrl)
 {
     $this->currentUrl = $getCurrentUrl;
     $GLOBALS['currentUrl'] = $this->currentUrl;
     $GLOBALS['tableFields'] = $this->tableFields;
     $GLOBALS['tableName'] = $this->tableName;
     $GLOBALS['fixedC'] = $this->fixedC;
     $GLOBALS['rules'] = $this->rules;
     $oper = fk_post('oper');
     if ($oper == '') {
         // Default
         //fk_header_blank();
         fk_header();
         fkore::_use('app/plugins/FileImporter/import1.php');
         fk_footer();
     } elseif ($oper == 'step2') {
         //fk_header_blank();
         //fk_header();
         fkore::_use('app/plugins/FileImporter/import2.php');
         //fk_footer();
     } elseif ($oper == 'step3') {
         //fk_header_blank();
         //fk_header();
         fkore::_use('app/plugins/FileImporter/import3.php');
         //fk_footer();
     }
 }
Ejemplo n.º 7
0
 public function usuarios()
 {
     Load::database();
     Load::freekoreLib('appform');
     Load::freekoreLib('applist');
     $F = new AppForm('usuarios');
     fk_header();
     echo $F->render($this->getCurrentUrl());
     fk_footer();
 }
Ejemplo n.º 8
0
 public function funcionalidades()
 {
     $this->Load->Model('Funcionalidades');
     $funct = new Funcionalidades();
     $r = $funct->verFuncionalidades();
     $array = array("campos_func" => $r);
     fk_header();
     $this->Load->View('admin/funcionalidades.php', $array);
     fk_footer();
 }
Ejemplo n.º 9
0
 function busqueda()
 {
     $this->seguridad();
     $this->Load->Model('Albaranes');
     $A = new Albaranes();
     $A->id_albaranes = $_POST['id_albaranes'];
     $vista = $A->BuscarAlbaranes();
     fk_header();
     $this->Load->View('albaranes/albaranes.php', array('albaranes' => $vista));
     fk_footer();
 }