/
home2
/
reumatologia
/
public_html
/
Upload File
HOME
<?php include('inc_library.php'); $IdCategoria = intval($_REQUEST['IdCategoria']); $Home = $_REQUEST['Home']; $FechaDesde = $_REQUEST['FechaDesde']; $FechaDesdeF = isset($_REQUEST['FechaDesde']) ? $_REQUEST['FechaDesde'] : date('d-m-Y'); $Page = intval($_REQUEST['Page']); $PageSize = 12; $oEventos = new Eventos(); $oCategorias = new Categorias(); $oCategoria = $oCategorias->GetById($IdCategoria); $oPage = new Page($Page, $PageSize); $filter = array('IdCategoria' => $oCategoria->IdCategoria, 'Home' => $Home, 'FechaDesde' => $FechaDesdeF); $Paginado = Pageable::PrintPaginatorFront($oPage, $oEventos->GetCountRows($filter), true); $arrData; if ($FechaDesdeF == date('d-m-Y')) $arrData = $oEventos->GetAll($filter, $oPage, "custom", "ASC"); else $arrData = $oEventos->GetAll($filter, $oPage); ?> <!DOCTYPE html> <html lang="zxx"> <?php include('ssi_head.php'); ?> <body> <div class="body"> <?php include('ssi_header.php'); ?> <div role="main" class="main"> <section class="page-header parallax overlay overlay-color-dark overlay-show overlay-op-8 appear-animation" data-appear-animation="fadeIn" data-plugin-parallax data-plugin-options="{'speed': 1.5, 'parallaxHeight': '120%', 'offset': 60}" data-image-src="img/backgrounds/congresos_argentinos.jpg"> <div class="container py-5 my-4"> <div class="row"> <div class="col-md-12"> <ul class="breadcrumb"> <li><a href="home.php">Home</a></li> <li class="active"><?= $oCategoria ? $oCategoria->Nombre : 'Eventos' ?></li> </ul> </div> </div> <div class="row"> <div class="col-md-12"> <h1 class="font-weight-bold text-color-light"><?= $oCategoria ? $oCategoria->Nombre : 'Eventos' ?></h1> </div> </div> </div> </section> <section class="section"> <div class="container"> <?php if ($arrData) { ?> <div class="row masonry-loader masonry-loader-showing portfolio-list portfolio-list-style-2" data-plugin-masonry data-plugin-options="{'itemSelector': '.isotope-item'}"> <?php foreach ($arrData as $oEvento) { ?> <div class="col-sm-6 isotope-item mb-0 p-0" style="<?= $oEvento->Imagen ? 'height:440px' : 'height: 180px' ?>"> <div class="portfolio-item"> <article class="blog-post"> <span class="top-sub-title text-color-primary"><?= str_replace('-', '/', CambiarFecha($oEvento->Fecha)) ?><?= $oEvento->FechaHasta ? ' - ' .str_replace('-', '/', CambiarFecha($oEvento->FechaHasta)) : '' ?><?= $oEvento->Ubicacion ? ' - ' . $oEvento->Ubicacion : '' ?></span> <!-- <h2 class="font-weight-bold text-4 mb-3" style="min-height: 42px"> <a href="eventos_detalle.php?Page=<?= $Page ?>&IdEvento=<?= $oEvento->IdEvento ?>&FechaDesde=<?= $FechaDesde ?>" class="link-color-dark"><?= $oEvento->Titulo ?></a> </h2> --> <?php if ($oEvento->Imagen) { ?> <div class="image-frame hover-effect-2 mb-3"> <div class="image-frame-wrapper"> <a href="eventos_detalle.php?Page=<?= $Page ?>&IdEvento=<?= $oEvento->IdEvento ?>&FechaDesde=<?= $FechaDesde ?>"><img src="<?= Evento::PathImageBig . $oEvento->Imagen ?>" class="img-fluid" alt="<?= $oEvento->Titulo ?>" /></a> </div> </div> <?php } ?> <a href="eventos_detalle.php?Page=<?= $Page ?>&IdEvento=<?= $oEvento->IdEvento ?>&FechaDesde=<?= $FechaDesde ?>" class="text-color-primary font-weight-bold learn-more">Leer más <i class="fas fa-angle-right text-3" aria-label="Leer más"></i></a> </article> </div> </div> <?php } ?> </div> <?php } else { ?> <p>No hay registros disponibles</p> <?php } ?> <hr class="mt-5 mb-4"> <div class="row align-items-center justify-content-between"> <div class="col-auto mb-3 mb-sm-0"> <!-- <span>Página 1-6 of 12 resultados</span> --> </div> <div class="col-auto"> <nav aria-label="Page navigation example"> <ul class="pagination mb-0"> <?= $Paginado ?> </ul> <?php if (!$FechaDesde) { ?> <ul class="pagination mb-0"> <li><a href="eventos.php?IdCategoria=<?= $IdCategoria ?>&Home=<?= $Home ?>&FechaDesde=01-01-2010">Ver todos los <?= $oCategoria ? strtolower($oCategoria->Nombre) : 'eventos' ?></a></li> </ul> <?php } ?> </nav> </div> </div> </div> </section> <?php include('ssi_sponsors.php'); ?> </div> <?php include('ssi_footer.php'); ?> </div> <?php include('ssi_script.php'); ?> <form name="frmData" id="frmData" method="post"> <input type="hidden" name="Page" id="Page" value="<?=$Page?>" /> <input type="hidden" name="FechaDesde" id="FechaDesde" value="<?= $FechaDesdeF ?>" /> </form> <script type="text/javascript"> function SetPage(Page) { var frmData = document.getElementById('frmData'); if (frmData == undefined) return false; frmData.Page.value = Page; frmData.submit(); } </script> </body> </html>