<?php
 session_start();
 include '../config.php';
 $lang = 'en';
 $seccion = $_GET['s'];

if(strlen($_SESSION['estadisticas'])>90 && strlen($_COOKIE['persistID'])<2)
{
    $responseestadisticas = $_SESSION['estadisticas'];
    //echo $_SESSION['myArray'];
}
else{
	$curl = curl_init();
    curl_setopt_array($curl, array(
        CURLOPT_URL => $endpoint_graph_cms,
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_ENCODING => '',
        CURLOPT_MAXREDIRS => 10,
        CURLOPT_TIMEOUT => 0,
        CURLOPT_FOLLOWLOCATION => true,
        CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
        CURLOPT_CUSTOMREQUEST => 'POST',
        CURLOPT_POSTFIELDS =>'{"query":"query MyQuery {\\r\\n  paginasEstadistica(stage: PUBLISHED) {\\r\\n    archivoCatalogoTiposValor\\r\\n    archivoInformeAnual\\r\\n    imagenPrincipal\\r\\n    tituloAvisosDepositantes\\r\\n    tituloCatalogoTiposValor\\r\\n    tituloDePagina\\r\\n    tituloDividendosYEventosSic\\r\\n    tituloInformeAnual\\r\\n    localizations {\\r\\n      archivoInformeAnual\\r\\n      archivoCatalogoTiposValor\\r\\n      imagenPrincipal\\r\\n      tituloAvisosDepositantes\\r\\n      tituloCatalogoTiposValor\\r\\n      tituloDePagina\\r\\n      tituloDividendosYEventosSic\\r\\n      tituloInformeAnual\\r\\n      slug\\r\\n    }\\r\\n    slug\\r\\n  }\\r\\n}\\r\\n","variables":{}}',
        CURLOPT_HTTPHEADER => array(
          'Content-Type: application/json',
          'Cookie: __cfduid=da2693cdfd39b7377a8a05e305da45b8f1613001694'
        ),
      ));
  $responseestadisticas = curl_exec($curl);
  $_SESSION['estadisticas'] = $responseestadisticas;
  curl_close($curl);
}

$arrayestadisticas = json_decode($responseestadisticas, true);
//print_r ($arrayestadisticas);
//echo $responseestadisticas;


if($lang == 'en'){
	///////INFO PÁGINA
	$titulopag = $arrayestadisticas['data']['paginasEstadistica'][0]['tituloDePagina'];
	$subtitulopag = $arrayestadisticas['data']['paginasEstadistica'][0]['subtituloDePagina'];
    $imagenPrincipal =$arrayestadisticas['data']['paginasEstadistica'][0]['imagenPrincipal'];

    $tituloInformeAnual=$arrayestadisticas['data']['paginasEstadistica'][0]['tituloInformeAnual'];
    $archivoInformeAnual =$arrayestadisticas['data']['paginasEstadistica'][0]['archivoInformeAnual'];
    
    $tituloCatalogoTiposValor=$arrayestadisticas['data']['paginasEstadistica'][0]['tituloCatalogoTiposValor'];
    $archivoCatalogoTiposValor =$arrayestadisticas['data']['paginasEstadistica'][0]['archivoCatalogoTiposValor'];
    
    $tituloAvisosDepositantes =$arrayestadisticas['data']['paginasEstadistica'][0]['tituloAvisosDepositantes'];
    $tituloDividendosYEventosSic =$arrayestadisticas['data']['paginasEstadistica'][0]['tituloDividendosYEventosSic'];

    $TextoBoton = "View more";
    $linkAvisosDepositantes = "/en/notice-to-national-depositors";
    $linkDividendosYEventosSic = "/en/dividens-sic-events";

    $urlen = 'dividens-sic-events';
    $urles = '/dividendos-eventos-sic';

    
}
if($lang == 'es'){
	$titulopag = $arrayestadisticas['data']['paginasEstadistica'][0]['localizations'][0]['tituloDePagina'];
	$subtitulopag = $arrayestadisticas['data']['paginasEstadistica'][0]['localizations'][0]['subtituloDePagina'];
    $imagenPrincipal =$arrayestadisticas['data']['paginasEstadistica'][0]['localizations'][0]['imagenPrincipal'];
    $imagenIzquierda =$arrayestadisticas['data']['paginasEstadistica'][0]['localizations'][0]['imagenIzquierda'];

    $tituloInformeAnual=$arrayestadisticas['data']['paginasEstadistica'][0]['localizations'][0]['tituloInformeAnual'];
    $archivoInformeAnual =$arrayestadisticas['data']['paginasEstadistica'][0]['localizations'][0]['archivoInformeAnual'];
    
    $tituloCatalogoTiposValor=$arrayestadisticas['data']['paginasEstadistica'][0]['localizations'][0]['tituloCatalogoTiposValor'];
    $archivoCatalogoTiposValor =$arrayestadisticas['data']['paginasEstadistica'][0]['localizations'][0]['archivoCatalogoTiposValor'];
    
    $tituloAvisosDepositantes =$arrayestadisticas['data']['paginasEstadistica'][0]['localizations'][0]['tituloAvisosDepositantes'];
    $tituloDividendosYEventosSic =$arrayestadisticas['data']['paginasEstadistica'][0]['localizations'][0]['tituloDividendosYEventosSic'];
    $TextoBoton = "Ver más";
    $linkAvisosDepositantes = "/avisos-depositantes-nacionales";
    $linkDividendosYEventosSic = "/dividendos-eventos-sic";


}

?>

<!DOCTYPE html>
<html lang="en" translate="no">
    <head>
        <?php include '../include/generales.php'; $lang = 'en'; ?>
			
        <style>
.page-section {
    padding-top: 150px;
    margin-bottom: 0;
    padding-bottom: 0;
}
.caja{
        /* display: flex; */
    /* flex-flow: column wrap; */
    justify-content: center;
    align-items: center;
    height: 100%;
    overflow: hidden;
}
.box{
  /*width: 450px;*/
  /*height: 300px;*/
  overflow: hidden;
}

.box img{
  width: 100%;
  height: auto;
}
@supports(object-fit: cover){
    .box img{
      /*height: 100%;*/
      object-fit: cover;
      object-position: center center;
    }
} 

.padding-0{
       padding-right:0;
       padding-left:0;
}
		
.comunicado {
    background-color: #48aa42 !important;
    width: 100%!important;
    height: auto;
    text-align: left;
    padding: 2em!important;
}
		
.comunicado2 {
    background-color: #9e9fb3 !important;
    width: 100%!important;
    height: auto;
    text-align: left;
    padding: 2em!important;
}
		
.comunicado-bg {
    padding: 0 25px;
    margin-bottom: 30px;
}
		.comunicado-bg .row{
			background-color: rgba(205,205,212, 0.4); 
			padding: 0px;
			margin-bottom: 20px;
		}

		.box {
			position: absolute;
			width: 100%;
			height: 100%;
		}
		.comunicado-bg .col-lg-12 {
			padding: 0;
		}	
		.comunicado-bg .col-lg-12.desc {
			padding: 30px;
			padding-bottom: 60px;
		}
		.btn.btn-primary {
			float: right;
			position: absolute;
			right: 30px;
			bottom: 30px;
		}
		h5 {
			font-size: 17.5px;
		}

		.comunicado-bg .row {
			height: 100%;
		}
        
        .btn.btn-primary {
    float: right;
    position: relative;
    right: 0;
    bottom: 0;
}

a.vertodo {
    background: #48aa42;
    padding: 7.5px 25px;
    width: auto;
    color: #fff;
    font-weight: bold;
    font-family: "Montserrat";
    margin-top: 20px;
    display: inline-block;
    border-radius: 10px;
    cursor:pointer;
    text-decoration:none;
}
a.vertodo i {
    padding-right: 5px;
    font-size: 13px;
}
img.iconpdf {
    width: 100%;
    max-width: 100px;
    margin: 0 0 20px;
}
.btn.btn-primary:hover {
    color: #fff!important;
    background: transparent;
    border: 0!important;
}
.comj {
    text-align: justify;
    margin-bottom: 50px;
}
h2 {
    width: 100%;
    text-align:center;
}
body, .direccion, p {
    width: 100%;
}
	</style>
    </head>
    <body id="page-top" class="avisos" data-url = '<?php echo $page_url;?>'>
		
		<?php include '../include/nav2.php'; ?>

                <!-- Services-->
                <section class="page-section" id="services">
			<div class="container">
			  <div class="row">
			  	
				<div class="col-lg-12">
				  <h4 class="text-left"><?php echo $tituloDividendosYEventosSic ?></h4>
				</div>	
				
				  


				  
			  </div>	  
			</div>
			
			<br><br>
			
      <div class="container">

      <div class="row">
      <div class="comj">

        <h2><b>International Corporate Events</b></h2><br>

        <p style="text-align:right;">Mexico City, May 7th 2021</p><br>

        <p>We inform you that during the COVID-19 contingency period, International Corporate Events information will be updated every Friday on our website <a href="http://www.indeval.com.mx/">www.indeval.com.mx</a>. this data contains two “.xls” reports with preliminary information on:</p>

        <p>1) <b>“Dividends distribution” </b></p>

        <p>2) <b>“Corporate events report”</b></p>

        <p>As mentioned before, these reports contain preliminary information on the dividends and corporate events of SIC issuers scheduled for the following week, so that you are aware and can take the corresponding measures in your processes.</p>

        <p>In addition, the information (PDF) published by Indeval for each of the events of the issuers is added with its detail notified until this day.</p>

        <p>It is important to mention that the information is subject to changes and / or adjustments according to what the Custodian or corresponding foreign securities depository informs us, which will be disclosed in the Dali system in the corporate events section and / or by the means that the Stock Exchanges have established, as appropriate. Therefore, Indeval is not responsible for the changes, adjustments, errors or omissions that the information on economic rights of foreign issuers, whose values ​​are listed in the SIC, may have, nor for the use and / or results of the use of such information. In this sense, it is important for you to be aware of the communications that Indeval makes known from time to time.</p>

        <p>Kindest regards, </p>

        <p><b>S I N C E R E L Y</b></p>

        <p><b>INTERNATIONAL OPERATION AND SETTLEMENT</b></p>

      </div>

      <div class="col-lg-2 text-center">
      <img src="/assets/img/pdf.svg" class="iconpdf">
      </div>

      <div class="col-lg-10" id="comunicados">

      </div>

      </div> 



        
      </div>					
							
        </section>
				
    		<?php $lang="en"; include '../include/footer.php'; ?>
		<script>


			function filter(){
				setTimeout(() => {
                        var anio = $("#anio").val();
                        $("#comunicados").load("/include/dividendos?&y="+anio+"&l=<?php echo $lang;?>");    
                    }, 100);
            }
            
            function filterAnio(){
				setTimeout(() => {
                        var anio  = $("#anio").val();
                        $("#contsemanas").load("/include/semanas?y="+anio+"&l=<?php echo $lang;?>");    
                    }, 100);
            }
            setTimeout(() => {
                $("#anio").prop("selectedIndex", 1);
                $("#anio").change();
                $("#comunicados").load("/include/dividendos?&y=2021&l=<?php echo $lang;?>");  
            }, 500);
		</script>
    </body>
</html>
