HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux Bradford-Sitios 6.14.0-1017-azure #17~24.04.1-Ubuntu SMP Mon Dec 1 20:10:50 UTC 2025 x86_64
User: www-data (33)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/gestor-horarios.bradford/app/views/shared/layout.php
<?php
$staff = get_row_by_where('usuarios', ['id' => $this->session->userdata('rt_staff_user')]);
?>
<!DOCTYPE html>
<html lang="es">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon"
        href="https://www.grupoautomata.cl/wp-content/uploads/2019/03/cropped-favicon-grupo-automata-32x32.png"
        sizes="32x32" />
    <title><?php $_ENV['APP_NAME'] ?> | <?php echo CLIENT_NAME ?></title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.5 -->
    <link rel="stylesheet" href="<?php echo ASSETS ?>/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="<?php echo ASSETS ?>/css/font-awesome.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="<?php echo ASSETS ?>/css/ionicons.min.css">
    <link rel="stylesheet" href="<?php echo ASSETS ?>/css/dataTables.bootstrap.min.css">
    <link rel="stylesheet" href="<?php echo ASSETS ?>/css/responsive.dataTables.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="<?php echo ASSETS ?>/css/AdminLTE.min.css?var=sdcsdcsdsd">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="<?php echo ASSETS ?>/skins/_all-skins.min.css?var=dqwqwdq">
    <!-- version 1.11 jquery-->
    <style>
        #toast-container>div {
            opacity: 1 !important;
        }
    </style>



    <link rel="stylesheet" href="<?php echo ASSETS ?>/css/style.css">
    <!-- jQuery 2.1.4 -->
    <script src="<?php echo base_url() ?>assets/js/jquery-3.3.1.min.js"></script>


    <link href="" rel="shortcut icon" type="image/vnd.microsoft.icon">


    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <link rel="stylesheet" href="<?php echo ASSETS ?>/plugins/jQueryKeyPad/jquery.keypad.alt.css">
    <link rel="stylesheet" href="<?php echo ASSETS ?>/plugins/jQueryKeyPad/jquery.keypad-big.css">
    <link rel="stylesheet" href="<?= ASSETS ?>/css/bootstrap-datepicker3.min.css">
</head>

<body class="hold-transition skin-blue sidebar-mini <?php echo isset($collapse) ? $collapse : '' ?>">
    <!-- Site wrapper -->
    <div class="wrapper">

        <header class="main-header">
            <!-- Logo -->
            <a href="<?php echo base_url() ?>dashboard" class="logo">
                <!-- mini logo for sidebar mini 50x50 pixels -->
                <img width="50px" class="logo-mini" src="<?php echo ASSETS ?>/img/LogoBDF.png" />
                <!--<span class="logo-mini"><b><?php echo SHORT_APP_NAME ?></b></span>-->
                <!-- logo for regular state and mobile devices -->
                <!--<span class="logo-lg"><b><?php echo APP_NAME ?></b></span>-->
                <img class="logo-lg" width="100px" src="<?php echo ASSETS ?>/img/LogoBDF.png" />
            </a>
            <!-- Header Navbar: style can be found in header.less -->
            <nav class="navbar navbar-static-top" role="navigation">
                <!-- Sidebar toggle button-->
                <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </a>
                <div class="navbar-custom-menu">
                    <ul class="nav navbar-nav">
                        <!-- User Account: style can be found in dropdown.less -->
                        <li class="dropdown user user-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <?php if (empty($staff->image)): ?>
                                    <img src="<?php echo ASSETS ?>/img/user2-160x160.jpg" class="user-image"
                                        alt="User Image">
                                <?php else: ?>
                                    <img src="<?php echo GALLERY_PATH . '/' . $staff->image ?>" class="user-image"
                                        alt="User Image">
                                <?php endif ?>

                                <span class="hidden-xs"></span>
                            </a>
                            <ul class="dropdown-menu">
                                <!-- User image -->
                                <li class="user-header">
                                    <?php if (empty($staff->image)): ?>
                                        <img src="<?php echo ASSETS ?>/img/user2-160x160.jpg" class="img-circle"
                                            alt="User Image">
                                    <?php else: ?>
                                        <img src="<?php echo GALLERY_PATH . '/' . $staff->image ?>" class="img-circle"
                                            alt="User Image">
                                    <?php endif ?>
                                    <p>
                                        <?php if (isset($staff->username)): ?>
                                            <?php echo $staff->username . '' ?>

                                            <small>último acceso
                                                <?php echo ordenarFechaHoraMinutoHumano($staff->update_time) ?></small>
                                        <?php endif; ?>
                                    </p>
                                </li>
                                <!-- Menu Body -->
                                <li class="user-body">
                                    <div class="col-xs-4 text-center">

                                    </div>
                                </li>
                                <!-- Menu Footer-->
                                <li class="user-footer">
                                    <div class="pull-right">
                                        <!--<a href="<?php echo base_url('profile') ?>" class="btn btn-primary btn-flat">Perfil</a>-->
                                        <a href="<?php echo base_url('logout') ?>"
                                            class="btn btn-default btn-flat">Logout</a>
                                    </div>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </nav>
        </header>

        <!-- =============================================== -->

        <!-- Left side column. contains the sidebar -->
        <aside class="main-sidebar">
            <!-- sidebar: style can be found in sidebar.less -->
            <section class="sidebar">
                <!-- Sidebar user panel -->
                <div class="user-panel">
                    <div class="pull-left image">
                        <img src="<?php echo ASSETS ?>/img/user2-160x160.jpg" class="img-circle" alt="User Image">
                    </div>
                    <div class="pull-left info">
                        <p><?php echo isset($staff->nombre) ? $staff->nombre : '' ?></p>
                        <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
                    </div>
                </div>

                <!-- sidebar menu: : style can be found in sidebar.less -->
                <ul class="sidebar-menu">
                    <?php $this->load->view('shared/_left_menu') ?>
                </ul>
            </section>
            <!-- /.sidebar -->
        </aside>

        <!-- =============================================== -->

        <!-- Content Wrapper. Contains page content -->
        <div class="content-wrapper">
            <!-- Content Header (Page header) -->
            <section class="content-header">
                <h1>
                    <?php if ($title != 'title'): ?>
                        <a id="AtagVolver" class="btn btn-xs btn-flat btn-info"
                            href="javascript:(window.history.back())">Volver</a> &nbsp;<?php echo $title ?>
                    <?php endif; ?>
                    <small><?php echo isset($subtitle) ?  $subtitle : ''  ?></small>
                </h1>
                <ol class="breadcrumb">
                    <li><a href="<?php echo base_url() . '/dashboard' ?>"><i class="fa fa-dashboard"></i> Home</a></li>
                    <?php if (isset($breadcrumb)): ?>
                        <li><a href="#"><?php echo $breadcrumb ?></a></li>
                    <?php endif; ?>
                </ol>
            </section>

            <!-- Main content -->
            <section class="content">
                <?php $this->load->view($main_content) ?>
            </section><!-- /.content -->


        </div><!-- /.content-wrapper -->

        <footer class="main-footer">
            <div style="align-content: center;margin: 0 auto;">
                <img class="img-responsive" style="margin: 0 auto -30px auto;" width="30%"
                    src="<?php echo ASSETS ?>/img/footer-bradford.png" alt="logo" />
            </div>
            <?php $this->load->view('shared/_footer') ?>
        </footer>

        <!-- Control Sidebar -->
        <!-- Add the sidebar's background. This div must be placed
           immediately after the control sidebar -->
        <div class="control-sidebar-bg"></div>
    </div><!-- ./wrapper -->

    <!-- Bootstrap 3.3.5 -->
    <script src="<?php echo ASSETS ?>/js/bootstrap.min.js"></script>
    <!-- SlimScroll -->
    <script src="<?php echo ASSETS ?>/plugins/slimScroll/jquery.slimscroll.min.js"></script>
    <!-- FastClick -->
    <script src="<?php echo ASSETS ?>/plugins/fastclick/fastclick.min.js"></script>
    <!-- AdminLTE App -->
    <script src="<?php echo ASSETS ?>/js/app.min.js"></script>
    <!-- AdminLTE for demo purposes -->
    <script src="<?php echo ASSETS ?>/js/demo.js"></script>
    <!-- DataTable -->
    <script src="<?php echo ASSETS ?>/js/jquery.dataTables.min.js"></script>
    <script src="<?php echo ASSETS ?>/js/dataTables.bootstrap.min.js"></script>
    <script src="<?php echo ASSETS ?>/js/responsive.dataTables.min.js"></script>

    <!-- Key pad -->
    <script src="<?php echo ASSETS ?>/plugins/jQueryKeyPad/jquery.plugin.js"></script>
    <script src="<?php echo ASSETS ?>/plugins/jQueryKeyPad/jquery.keypad.js"></script>
    <script src="<?php echo ASSETS ?>/plugins/jQueryKeyPad/jquery.keypad-es.js"></script>
    <!-- version 1.11 jquery-->
    <script src="<?php echo ASSETS ?>/plugins/jQueryUI.1.12.1/jquery-ui.min.js"></script>

    <!-- bootstrap datepicker -->
    <script src="<?= ASSETS ?>/js/bootstrap-datepicker.min.js"></script>
    <script src="<?= ASSETS ?>/js/bootstrap-datepicker.es.min.js"></script>
    <!-- <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script> -->
    <script src="<?php echo ASSETS ?>/plugins/sweetalert.js"></script>



    <!--version 1.12.1 jquery-->
    <script type="application/javascript">
        $('input[type=text]').addClass("form-control");
        $('input[type=date]').addClass("form-control");
        $('select').addClass("form-control");
        $('textarea').addClass("form-control");

        //$('.form-control').keypad({keypadOnly: false, layout:  $.keypad.qwertyLayout});
        $.datepicker.regional['es'] = {
            closeText: 'Cerrar',
            prevText: '<Ant',
            nextText: 'Sig>',
            currentText: 'Hoy',
            monthNames: ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre',
                'Octubre', 'Noviembre', 'Diciembre'
            ],
            monthNamesShort: ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'],
            dayNames: ['Domingo', 'Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado'],
            dayNamesShort: ['Dom', 'Lun', 'Mar', 'Mié', 'Juv', 'Vie', 'Sáb'],
            dayNamesMin: ['Do', 'Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'Sá'],
            weekHeader: 'Sm',
            dateFormat: 'dd-mm-yy',
            firstDay: 1,
            isRTL: false,
            showMonthAfterYear: false,
            yearSuffix: ''
        };
        $.datepicker.setDefaults($.datepicker.regional['es']);
        $(".datepicker").datepicker({
            dateFormat: 'dd-mm-yyyy'
        });
        /** genera hatml con el alert indicado en messageType */
        const SUCCESS_MESSAGE = "alert-success";
        const WARNING_MESSAGE = "alert-warning";
        const DANGER_MESSAGE = "alert-danger";

        function showErrorMessage(messageType, message, idDiv) {

            $("#" + idDiv).html(' <div style="display:none" class="alert ' + messageType +
                ' alert-dismissible text-center" role="alert">' +
                '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>' +
                message.toUpperCase() +
                '</div>');

            $("#" + idDiv + ">div").show("blind")

        }


        function fechaDefault(dateText, inst) {
            let fechaArray = dateText.split("/");
            if (fechaArray.length == 1) {

                if (fechaArray[0] != "") {
                    $("#" + inst.id).val("01/01/1970");
                }

            }
        }

        $(document).ready(function() {
            $('.table_sort').dataTable({
                "pageLength": 10
            });
        });
    </script>
    <script src="<?= ASSETS ?>/js/sweetalert2.all.min.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <link rel="stylesheet" href="<?= ASSETS ?>/css/toastr.min.css">
    <script src="<?= ASSETS ?>/js/toastr.min.js"></script>
    <script>
        $('input').addClass('form-control');
        $('.table_search').dataTable({
            "pageLength": 10
        });
        toastr.options = {
            "closeButton": true,
            "progressBar": true,
        }
        <?php if ($this->session->flashdata("success")) : ?>
            toastr["success"](`<?= $this->session->flashdata("success"); ?>`,
                "<?= $this->session->flashdata("success_title"); ?>")
        <?php endif; ?>
        <?php if ($this->session->flashdata("warning")) : ?>
            toastr["warning"](`<?= $this->session->flashdata("warning"); ?>`,
                "<?= $this->session->flashdata("warning_title"); ?>")
        <?php endif; ?>
        <?php if ($this->session->flashdata("error")) : ?>
            toastr["error"](`<?= $this->session->flashdata("error"); ?>`, "<?= $this->session->flashdata("error_title"); ?>")
        <?php endif; ?>
    </script>
    <script>
        function cargando(msg = 'Cargando...', comentario = 'No cierre ni actualice la página') {
            Swal.fire({
                title: `${msg}`,
                html: `<h4>${comentario}</h4>`,
                allowOutsideClick: false,
                allowEscapeKey: false,
                didOpen: () => {
                    Swal.showLoading()
                }
            })
        }
    </script>
</body>

</html>