<div id="time"></div>
<script src="<?php echo $_layoutParams['ruta_js']; ?>jquery.js"></script>
<script>
<?php if (Session::get('redireccion_url')== 3){ ?>        
$.ajax({
    url: '<?php echo BASE_URL . 'tktAereo/busqueda_vuelos' . $this->form; ?>',
    type: 'POST',
    //Form data
    //datos del formulario
    data: "&code=true",
    //necesario para subir archivos via ajax
    cache: false,
    contentType: 'application/x-www-form-urlencoded',
    processData: true,
    //mientras enviamos el archivo
    beforeSend: function () {
    },
    //una vez finalizado correctamente
    success: function (data)
    {
        window.location.href='<?php echo $this->href;?>';
    },
    //si ha ocurrido un error
    error: function ()
    {
        alert('Ha ocurrido un error, vuelva a intentar su busqueda.');
    }
});
<?php }elseif (Session::get('redireccion_url')== 4) {?>
  
  $.post('<?php echo BASE_URL . 'controllers/helpers/run_api_java.php'; ?>',{},function(){});

setTimeout(function()
           {
  window.location.href='<?php echo $this->href;?>';
},2000);
    
<?php } else { ?>    
$("#time").delay(2000).queue(function (m)
{
    window.location.href='<?php echo $this->href;?>';
});
<?php } ?>
</script>
<!DOCTYPE HTML>
<html class="full">
<head>
    <title><?php if(isset($this->titulo)){ echo $this->titulo; }?></title>
    <meta content="text/html;charset=<?php echo CHARSET; ?>" http-equiv="Content-Type">
    <meta name="keywords" content="Template, html, premium, themeforest" />
    <meta name="description" content="Traveler - Premium template for travel companies">
    <meta name="author" content="Tsoy">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" type="image/x-icon" href="<?php echo BASE_URL . 'views' . DS . 'layout' . DS . DEFAULT_LAYOUT . DS . 'img' . DS;  ?>favicon.ico">

    <!-- GOOGLE FONTS -->
    <link href='https://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700' rel='stylesheet' type='text/css'>
    <link href='https://fonts.googleapis.com/css?family=Open+Sans:400italic,400,300,600' rel='stylesheet' type='text/css'>
    <!-- /GOOGLE FONTS -->
    <link rel="stylesheet" href="<?php echo $_layoutParams['ruta_css']; ?>bootstrap.css">
    <link rel="stylesheet" href="<?php echo $_layoutParams['ruta_css']; ?>font-awesome.css">
    <link rel="stylesheet" href="<?php echo $_layoutParams['ruta_css']; ?>icomoon.css">
    <link rel="stylesheet" href="<?php echo $_layoutParams['ruta_css']; ?>styles.css">
    <link rel="stylesheet" href="<?php echo $_layoutParams['ruta_css']; ?>mystyles.css">
    <script src="<?php echo $_layoutParams['ruta_js']; ?>modernizr.js"></script>

</head>
<style>
    /* Validamos si el ancho es <= a 400px */
    @media (max-width: 400px) {
        .tsyacom-res{
            margin-top: -390px;
        }
        .not-bigger{
            font-size: 21px;
        }
    }
</style>
<body class="full">

    <div class="global-wrap">

        <div class="full-page">
            <div class="bg-holder full">
                
                <div class="bg-img" style="background-image:url(<?php if(Session::get('sess_cliente_logo'))
                    {
                        if(Session::get('sess_codigo_cliente_url')=='https://www.solways.com'){

                            echo $_layoutParams['ruta_img'].'logo_loading.jpg';

                        }else{

                           echo $_layoutParams['ruta_img'].'unsplash1.jpg'; 
                        }
                        
                    }else{
                        
                        echo $_layoutParams['ruta_img'].'logo_loading.jpg';
                         }
                         ?>); background-size: 108% 100%;"></div>
                <div class="bg-holder-content full text-white text-center">
                    <a class="logo-holder">
                        <img src="<?php 
                        if(Session::get('sess_cliente_logo')){

                            echo $_layoutParams['ruta_img'].Session::get('sess_cliente_logo').'.png'; 
                        }else{

                            echo $_layoutParams['ruta_img'].'logo.png';
                        }
                        ?>" alt="Image Alternative text" title="Image Title" />
                    </a>
                    <div class="full-center">
                        <div class="container tsyacom-res">
                            <div class="spinner-clock">
                                <div class="spinner-clock-hour"></div>
                                <div class="spinner-clock-minute"></div>
                            </div>
                            <h2 class="mb5 not-bigger"><?php echo $this->mensaje;?></h2>
                            <p class="text-bigger not-bigger">Espere unos segundos...</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <script src="<?php echo $_layoutParams['ruta_js']; ?>bootstrap.js"></script>
    </div>
</body>

</html>


