<?php
 @session_start();
  $vg_login=$_SESSION["usuario"];
   $vg_empresa=$_SESSION["empresa"];
  if($vg_login<>""){}
 else
  {echo "<script>";
   echo "window.location='../index.php';";
   echo "</script>";
  }	

include "../valida_permisos.php";
$vg_programa = F_programa();
include "../seguridad.php";
$sql_entrada= mysqli_query($conseg,"select login,nombre,perfil,programa,cedula,pais from permiso     
						where login='".$vg_login."'  and programa=".$vg_programa."");
while($datos= mysqli_fetch_row($sql_entrada))
		{ $vg_nombre=$datos[1];
		  $vg_perfil=$datos[2];				
		} 

include "../parametros.php";
include "../conexion.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title><?php  echo $nombreprograma." - ".$version; ?></title>
  <link rel="stylesheet" href="../plugins/fontawesome-free/css/all.min.css">
  <link rel="stylesheet" href="../plugins/sweetalert2/sweetalert2.min.css">
  <link rel="stylesheet" href="../plugins/toastr/toastr.min.css">
  <link rel="stylesheet" href="../dist/css/adminlte.min.css">
</head>
<body class="hold-transition sidebar-mini">
<center>
 <div class="row" style="width:95%;">
          <div class="col-md-12">
            <div class="card card-primary card-tabs">
              <div class="card-header p-0 pt-1">
                <ul class="nav nav-tabs" id="custom-tabs-five-tab" role="tablist">
              
                  <li class="nav-item">
                    <a class="nav-link active" id="custom-tabs-five-overlay-tab" data-toggle="pill" href="#custom-tabs-five-cuentas" role="tab" aria-controls="custom-tabs-five-overlay" aria-selected="true">Empresa</a>
                  </li>
              
                  <li class="nav-item">
                    <a class="nav-link" id="custom-tabs-five-overlay-dark-tab" data-toggle="pill" href="#custom-tabs-five-centrocosto" role="tab" aria-controls="custom-tabs-five-overlay-dark" aria-selected="false">Centro Costo</a>
                  </li>
              
                  <li class="nav-item">
                    <a class="nav-link" id="custom-tabs-five-normal-tab" data-toggle="pill" href="#custom-tabs-five-conceptos" role="tab" aria-controls="custom-tabs-five-normal" aria-selected="false">Conceptos</a>
                  </li>
                  
                  <li class="nav-item">
                    <a class="nav-link" id="custom-tabs-five-normal-tab" data-toggle="pill" href="#custom-tabs-five-locacion" role="tab" aria-controls="custom-tabs-five-normal" aria-selected="false">Locacion</a>
                  </li>
                  
                  <li class="nav-item">
                    <a class="nav-link" id="custom-tabs-five-normal-tab" data-toggle="pill" href="#custom-tabs-five-area" role="tab" aria-controls="custom-tabs-five-normal" aria-selected="false">Area</a>
                  </li>
                  
                  <li class="nav-item">
                    <a class="nav-link" id="custom-tabs-five-normal-tab" data-toggle="pill" href="#custom-tabs-five-documentos" role="tab" aria-controls="custom-tabs-five-normal" aria-selected="false">Documentos</a>
                  </li>
                  
                   <li class="nav-item">
                    <a class="nav-link" id="custom-tabs-five-normal-tab" data-toggle="pill" href="#custom-tabs-five-fiscal" role="tab" aria-controls="custom-tabs-five-normal" aria-selected="false">Fiscal</a>
                  </li>
                  
                    <li class="nav-item">
                    <a class="nav-link" id="custom-tabs-five-normal-tab" data-toggle="pill" href="#custom-tabs-five-resnal" role="tab" aria-controls="custom-tabs-five-normal" aria-selected="false">Res.Nal</a>
                  </li>
                  
                  <li class="nav-item">
                    <a class="nav-link" id="custom-tabs-five-normal-tab" data-toggle="pill" href="#custom-tabs-five-caco" role="tab" aria-controls="custom-tabs-five-normal" aria-selected="false">Cam.Comercio</a>
                  </li>
                  
                  <li class="nav-item">
                    <a class="nav-link" id="custom-tabs-five-normal-tab" data-toggle="pill" href="#custom-tabs-five-tipocaja" role="tab" aria-controls="custom-tabs-five-normal" aria-selected="false">Tipo Caja</a>
                  </li>


                </ul>
              </div>
              
              <div class="card-body">
                <div class="tab-content" id="custom-tabs-five-tabContent">
                 
                  <div class="tab-pane fade show active" id="custom-tabs-five-cuentas" role="tabpanel" aria-labelledby="custom-tabs-five-overlay-tab">
                    <div class="overlay-wrapper">
                         <iframe src="frm_empresa.php" width="100%" height="450PX" style="border:hidden;"></iframe>                         
                    </div>
                  </div>
                 
                  <div class="tab-pane fade" id="custom-tabs-five-centrocosto" role="tabpanel" aria-labelledby="custom-tabs-five-overlay-dark-tab">
                    <div class="overlay-wrapper">
                        <iframe src="centro_costo.php?empresa=<?php echo $vg_empresa;?>" width="100%" height="450PX" style="border:hidden;"></iframe>        
                    </div>
                  </div>
                  
                   <div class="tab-pane fade" id="custom-tabs-five-conceptos" role="tabpanel" aria-labelledby="custom-tabs-five-overlay-dark-tab">
                    <div class="overlay-wrapper">
                      <iframe src="conceptos.php?empresa=<?php echo $vg_empresa;?>" width="100%" height="450PX" style="border:hidden;"></iframe>        
                    </div>
                  </div>
                  
                   <div class="tab-pane fade" id="custom-tabs-five-locacion" role="tabpanel" aria-labelledby="custom-tabs-five-overlay-dark-tab">
                    <div class="overlay-wrapper">
                      <iframe src="locacion.php?empresa=<?php echo $vg_empresa;?>" width="100%" height="450PX" style="border:hidden;"></iframe>        
                    </div>
                  </div>
                  
                   <div class="tab-pane fade" id="custom-tabs-five-area" role="tabpanel" aria-labelledby="custom-tabs-five-overlay-dark-tab">
                    <div class="overlay-wrapper">
                      <iframe src="area.php?empresa=<?php echo $vg_empresa;?>" width="100%" height="450PX" style="border:hidden;"></iframe>        
                    </div>
                  </div>
                  
                   <div class="tab-pane fade" id="custom-tabs-five-documentos" role="tabpanel" aria-labelledby="custom-tabs-five-overlay-dark-tab">
                    <div class="overlay-wrapper">
                      <iframe src="documentos.php?empresa=<?php echo $vg_empresa;?>" width="100%" height="450PX" style="border:hidden;"></iframe>        
                    </div>
                  </div>
                  
                    <div class="tab-pane fade" id="custom-tabs-five-fiscal" role="tabpanel" aria-labelledby="custom-tabs-five-overlay-dark-tab">
                    <div class="overlay-wrapper">
                      <iframe src="fiscal.php?empresa=<?php echo $vg_empresa;?>" width="100%" height="450PX" style="border:hidden;"></iframe>        
                    </div>
                  </div>
                  
                  
                   <div class="tab-pane fade" id="custom-tabs-five-resnal" role="tabpanel" aria-labelledby="custom-tabs-five-overlay-dark-tab">
                    <div class="overlay-wrapper">
                      <iframe src="responsabilidadnal.php?empresa=<?php echo $vg_empresa;?>" width="100%" height="450PX" style="border:hidden;"></iframe>        
                    </div>
                  </div>
                  
                  
                  
                   <div class="tab-pane fade" id="custom-tabs-five-caco" role="tabpanel" aria-labelledby="custom-tabs-five-overlay-dark-tab">
                    <div class="overlay-wrapper">
                      <iframe src="camara_comercio.php?empresa=<?php echo $vg_empresa;?>" width="100%" height="450PX" style="border:hidden;"></iframe>        
                    </div>
                  </div>
                  
                   <div class="tab-pane fade" id="custom-tabs-five-pais" role="tabpanel" aria-labelledby="custom-tabs-five-overlay-dark-tab">
                    <div class="overlay-wrapper">
                      <iframe src="frm_pais.php?empresa=<?php echo $vg_empresa;?>" width="100%" height="450PX" style="border:hidden;"></iframe>        
                    </div>
                  </div>


                   <div class="tab-pane fade" id="custom-tabs-five-aprotesoreria" role="tabpanel" aria-labelledby="custom-tabs-five-overlay-dark-tab">
                    <div class="overlay-wrapper">
                      <iframe src="../modulotesoreria/frm_parametros.php?id=0empresa=<?php echo $vg_empresa;?>" width="100%" height="450PX" style="border:hidden;"></iframe>        
                    </div>
                  </div>
                  
                  
                   <div class="tab-pane fade" id="custom-tabs-five-tipocaja" role="tabpanel" aria-labelledby="custom-tabs-five-overlay-dark-tab">
                    <div class="overlay-wrapper">
                      	<iframe src="frm_tipocaja.php" width="100%" height="450PX" style="border:hidden;"></iframe>                      
                    </div>
                  </div>


                   <div class="tab-pane fade" id="custom-tabs-five-claveempresa" role="tabpanel" aria-labelledby="custom-tabs-five-overlay-dark-tab">
                    <div class="overlay-wrapper">
                      	<iframe src="empresa_entidad.php" width="100%" height="450PX" style="border:hidden;"></iframe>                      
                    </div>
                  </div>
                 
                   <div class="tab-pane fade" id="custom-tabs-five-ubicacion" role="tabpanel" aria-labelledby="custom-tabs-five-overlay-dark-tab">
                    <div class="overlay-wrapper">
                      <iframe src="ubicacion.php?empresa=<?php echo $vg_empresa;?>" width="100%" height="450PX" style="border:hidden;"></iframe>        
                    </div>
                  </div>
                 
                 
                  
                </div>
              </div>
              <!-- /.card -->
            </div>
          </div>
        </div>
</center>
<!-- jQuery -->
<script src="../plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script src="../plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- AdminLTE App -->
<script src="../dist/js/adminlte.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="../dist/js/demo.js"></script>
</body>
</html>        