Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 15350 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |

<?php
$notify = '';
$messages = $this->flashMessenger()->getInfoMessages();
foreach($messages as $message)
{
    $notify .= "$.fn.showInfo('$message')";
}

$messages = $this->flashMessenger()->getSuccessMessages();
foreach($messages as $message)
{
    $notify .= "$.fn.showSuccess('$message')";
}

$messages = $this->flashMessenger()->getWarningMessages();
foreach($messages as $message)
{
    $notify .= " $.fn.showWarning('$message')";
}

$messages = $this->flashMessenger()->getErrorMessages();
foreach($messages as $message)
{
    $notify .= " $.fn.showError('$message')";
}

if($notify) {
    $this->inlineScript()->captureStart();
    echo " jQuery( document ).ready(function( $ ) { $notify }); ";
    $this->inlineScript()->captureEnd();
}


?>
<!DOCTYPE html>
<html lang="es">
        <head>
                <?php 
        echo $this->headTitle();
        echo $this->headMeta()->appendHttpEquiv('X-UA-Compatible', 'IE=edge')
            ->appendHttpEquiv('expires','0')
                ->appendHttpEquiv('expires','Tue, 01 Jan 1980 1:00:00 GMT')
                ->appendHttpEquiv('pragma', 'no-cache')
                ->appendHttpEquiv('Cache-Control', 'no-store')
                ->appendHttpEquiv('Cache-Control', 'max-age=0')
                ->appendHttpEquiv('Cache-Control', 'no-cache')
                ->appendHttpEquiv('charset', 'UTF-8')
                ->appendName('viewport', 'width=device-width, initial-scale=1.0');
        ?>
    
            <!-- Google Font: Source Sans Pro -->
                <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
        <!-- Font Awesome -->
                <link rel="stylesheet" href="<?php echo $this->basePath('plugins/fontawesome-free/css/all.min.css') ?>">
        <!-- icheck bootstrap -->
        <link rel="stylesheet" href="<?php echo $this->basePath('plugins/icheck-bootstrap/icheck-bootstrap.min.css') ?>">
        <!-- Theme style -->
        <link rel="stylesheet" href="<?php echo $this->basePath('css/adminlte.min.css') ?>">
            <!-- App style -->
        <link rel="stylesheet" href="<?php echo $this->basePath('css/app.css') ?>">
        
        <?php 
        echo $this->headStyle();
        echo $this->headLink();
        echo $this->headScript();
        ?>
    </head>
    <body class="hold-transition login-page">
        <!-- /.login-box -->
        <div class="login-box">
                        <?php echo $this->content ?>
        </div>
        <!-- /.login-box -->
    
        <!-- jQuery -->
        <script src="<?php echo $this->basePath('plugins/jquery/jquery.min.js') ?>"></script>
        <!-- Bootstrap 4 -->
                <script src="<?php echo $this->basePath('plugins/bootstrap/js/bootstrap.bundle.min.js') ?>"></script>
        <!-- AdminLTE App -->
        <script src="<?php echo $this->basePath('js/adminlte.min.js') ?>"></script>
        
        <!--  Aplicacion -->
        <script src="<?php echo $this->basePath('plugins/bootstrap-notify/bootstrap-notify.min.js') ?>"></script>
        <script src="<?php echo $this->basePath('js/app.js') ?>"></script>
                <?php
        echo $this->inlineScript();
        ?>
        
    </body>
</html>