<?php
session_start();
$ges_id = $_SESSION['ges_id'];
$ges_nom = $_SESSION['ges_nom'];
$ges_consu = $_SESSION['ges_consu'];

if($ges_id == '' || $ges_nom == ''):
    ?>
    <script type="text/javascript">
        alert('Usuario inválido');
        cerrar();
    </script>
    <?
endif;

header('Content-type: text/html; charset = utf-8');

require("../funciones/funciones.php");
require("../class/bases.php");

$sqlConfig="SELECT * FROM configuracion WHERE 1";
$conConfig=$bdConfig->consulta($sqlConfig);
$resConfig=$bdConfig->fetch_array($conConfig);
$vr_arl1_config=$resConfig['vr_arl1_config'];
$vr_arl2_config=$resConfig['vr_arl2_config'];
$vr_arl3_config=$resConfig['vr_arl3_config'];
$vr_arl4_config=$resConfig['vr_arl4_config'];
$vr_arl5_config=$resConfig['vr_arl5_config'];

$vr_eps_config=$resConfig['vr_eps_config'];
$vr_afp_config=$resConfig['vr_afp_config'];
$vr_ccf_config=$resConfig['vr_ccf_config'];
$ano_sistema=$resConfig['ano_sistema'];
$sueldo_actual=$resConfig['sueldo_actual'];

//Inialización de variables
//Alto del div
$height="130px";
?>

</script>
<script src="../js/validaciones_carcteres.js"></script>
<div id="contenidoLeft">
    <div id="contenido">
        <div id="botonCerrar" class="botonCerrar" onClick="ocultar('#','modal'); ocultar('#','divDer2')">X</div>
        <form name="relacion_emp" id="relacion_emp">
            <div id="conteTitulo" class="conteTitulo">Relacion empresas</div>
            <div id="formulario" class="formulario" style="overflow-y: scroll; scroll-behavior: smooth; height:<?=$height?>">

                <div id="formularioSepa">
                    <div id="formularioText" class="formularioText">Estado de la empresa </div>
                    <div id="formularioCamp" class="formularioCampo">
                        <select name="estadoEM" id="estadoEM" class="campo">    
                            <option value="1" > Activos </option>
                            <option value="0" > Inactivos </option>
                            <option value="-" > Todos </option>
                        </select>
                    </div>
                </div>

                <div id="formularioSepa">
                    <div id="formularioBoton" class="formularioText">
                        <div id="boton" class="boton" onClick="guardar('lista_empresas1.php','relacion_emp','divDer2','cargando')">Buscar</div>
                    </div>
                </div>
                <div id="modal"></div>
            </div>   
        </form>
        
    </div>
</div>


