...........................................................................................................................................................................................................................................................................................................................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%PDF-1.5 MRK IS HERE %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 65.108.66.160 / Your IP : 216.73.217.50 Web Server : Apache System : Linux srv16.asso.com.ar 4.18.0-553.123.1.el8_10.x86_64 #1 SMP Tue May 5 04:00:43 EDT 2026 x86_64 User : alasaweborg ( 1047) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/alasaweborg/public_html/wp-content/themes/greenture/ |
Upload File : |
<?php
/**
* Template Name: Docs Template
*
* The docs page template to display docs section and VC Row to docs
*
* @package greenture
*/
get_header(); ?>
<?php
if (is_user_logged_in()){
$dir = '/home/alasaweborg/public_html/wp-content/themes/greenture/users/docs';
$directorio = opendir($dir);
$excluir = array('.', '..', '.quarantine', '.tmb');
$archivos = array();
while ($f = readdir($directorio)) {
if (!in_array($f, $excluir)) {
$archivos[] = $f;
}
}
closedir($directorio);
$search = '2019';
$match = array_filter($archivos, function($var) use ($search) {return stristr($var, $search); });
$nuevos = array_diff($archivos, $match);
asort($archivos,SORT_NATURAL | SORT_FLAG_CASE);
$id = get_the_ID();
?>
<div class="container">
<div class="row">
<div class="heading-large"><p class="title-docs">
Ciclo de charlas Online</p>
</div>
<div><h6 class="archivo-ico">Primer webinar - 30 de junio<span class="pull-right"><a href= "https://alasa-web.org/ciclo-de-charlas-online-1/" class="btn btn-default btn-xs" target="_blank">Ver video</a></span></h6><hr></div>
<div><h6 class="archivo-ico">Documento webinar<span class="pull-right"><a href= "https://alasa-web.org/wp-content/uploads/2022/07/ALASA_ClimateChangeInLatinAmerica_ALang.pdf" class="btn btn-default btn-xs desc" download="Brasil - 2021.pdf">Descargar</a><a href="https://alasa-web.org/wp-content/uploads/2022/07/ALASA_ClimateChangeInLatinAmerica_ALang.pdf" class="btn btn_bgcolor btn-xs" target="_blak">Ver</a></span></h6><hr></div>
<div class="heading-large"><p class="title-docs">
Informe anual período 2010 / 2020 sobre estadísticas y evaluación sobre el mercado de seguros agropecuarios en América Latina.</p>
</div>
<div class="row">
<div class="col-md-6">
<?php if ($id == 1868){ ?>
<input type = "text" class="form-control form-search" id = "buscador" placeholder = "Buscar documento" autofocus />
<?php } ?>
<?php if ($id == 3397){ ?>
<input type = "text" class="form-control form-search" id = "buscador" placeholder = "Search document" autofocus />
<?php } ?>
<?php if ($id == 3399){ ?>
<input type = "text" class="form-control form-search" id = "buscador" placeholder = "Pesquisar documento" autofocus />
<?php } ?>
</div>
</div>
<?php
$url = 'https://alasa-web.org/wp-content/themes/greenture/users/docs/';
//Mostrar Archivos
$i = 1;
if( $id == 1868){
foreach ($nuevos as $a) {
echo '<div><h6 class="archivo-ico">' . $a . '<span class="pull-right"><a href= "' . $url . $a .'" class="btn btn-default btn-xs desc" download="' . $a . '">Descargar</a><a href="' . $url . $a .'" class="btn btn_bgcolor btn-xs" target="_blak">Ver</a></span></h6><hr></div>';
if (($i % 6) == 0 && ($i % 18) != 0) {
echo '</div><div class="row">';
}
$i++;
}?>
<div class="heading-large"><p class="title-docs">
Documentos 2019.</p>
<?php
foreach ($match as $a) {
echo '<div><h6 class="archivo-ico">' . $a . '<span class="pull-right"><a href= "' . $url . $a .'" class="btn btn-default btn-xs desc" download="' . $a . '">Descargar</a><a href="' . $url . $a .'" class="btn btn_bgcolor btn-xs" target="_blak">Ver</a></span></h6><hr></div>';
if (($i % 6) == 0 && ($i % 18) != 0) {
echo '</div><div class="row">';
}
$i++;
}?>
</div>
<?php
}
if( $id == 3397){
foreach ($archivos as $a) {
echo '<div><h6 class="archivo-ico">' . $a . '<span class="pull-right"><a href= "' . $url . $a .'" class="btn btn-default btn-xs desc" download="' . $a . '">Download</a><a href="' . $url . $a .'" class="btn btn_bgcolor btn-xs" target="_blak">See</a></span></h6><hr></div>';
if (($i % 6) == 0 && ($i % 18) != 0) {
echo '</div><div class="row">';
}
$i++;
}
}
if( $id == 3399){
foreach ($archivos as $a) {
echo '<div><h6 class="archivo-ico">' . $a . '<span class="pull-right"><a href= "' . $url . $a .'" class="btn btn-default btn-xs desc" download="' . $a . '">Baixar</a><a href="' . $url . $a .'" class="btn btn_bgcolor btn-xs" target="_blak">Veja</a></span></h6><hr></div>';
if (($i % 6) == 0 && ($i % 18) != 0) {
echo '</div><div class="row">';
}
$i++;
}
}
}else{ ?>
<h5 style="text-align: center"><span style="color: #ff0000">Atención!</span> Para poder visualizar este contenido debe estar registrado como miembro de nuestra institución.<br /><br />Si Usted ya es miembro, <a href="https://alasa-web.org/login/">inicie sesion</a></h5>
<h5 style="text-align: center">Si Usted no es miembro, deber <a href="https://alasa-web.org/contacto/">Asociarse</a><br /><br />Gracias!</h5>
<?php }
?>
</div>
</div>
<script>
var search = document.getElementById("buscador"),
archivo = document.getElementsByTagName("h6"),
forEach = Array.prototype.forEach;
search.addEventListener("keyup", function(e){
var choice = this.value;
forEach.call(archivo, function(f){
if (f.innerHTML.toLowerCase().search(choice.toLowerCase()) == -1)
f.parentNode.style.display = "none";
else
f.parentNode.style.display = "block";
});
}, false);
</script>
<?php get_footer(); ?>