Mister Spy Say ="Hello Kids ... :D" ___ ____ _ _____ | \/ (_) | | / ___| | . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _ | |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | | | | | | \__ \ || __/ | /\__/ / |_) | |_| | \_| |_/_|___/\__\___|_| \____/| .__/ \__, | | | __/ | |_| |___/ Bot Mister Spy V3
Mister Spy

Mister Spy

Current Path : /home/caballoscriollos/www/web/
Upload File :
Current File : /home/caballoscriollos/www/web/disciplinas.php

<?php
require_once('inc_library.php');

$KeyCategoria   = strval($_REQUEST['KeyCategoria']);
$Page           = intval($_REQUEST['Page']);
$PageSize       = 9;

$oNoticias      = new Noticias();
$oCategorias    = new Categorias();
$oEventos		= new Eventos();

$oCategoria = $oCategorias->GetByKey($KeyCategoria, 2);
$oPage      = new Page($Page, $PageSize);

$filter = array('IdCategoria' => $oCategoria->IdCategoria, 'FechaDesdeHasta' => date('d-m-Y'), 'FechaHastaDesde' => date('d-m-Y'));

$Paginado   = Pageable::PrintPaginatorFront($oPage, $oNoticias->GetCountRows($filter), true);
$arrData    = $oNoticias->GetAll($filter, $oPage, false, false);
$arrCategorias = $oCategorias->GetByIdTipo(2);

$arrEventosProx = $oEventos->GetProximosEventos(3);

$IdRanking = 0;
$IdColumnista = 0;

switch ($KeyCategoria) {
	case 'aparte':
		$IdRanking = 114;
		$IdColumnista = 1;
		break;
	case 'freno':
		$IdRanking = 119;
		$IdColumnista = 4;
		break;
	case 'rienda':
		$IdRanking = 116;
		$IdColumnista = 9;
		break;
	case 'marcha':
		$IdRanking = 1797;
		$IdColumnista = 6;
		break;
	case 'corral':
		$IdRanking = 115;
		$IdColumnista = 3;
		break;
	case 'rodeos':
		$IdRanking = 117;
		$IdColumnista = 10;
		break;
	case 'paleteada':
		$IdRanking = 1805;
		$IdColumnista = 8;
		break;
	case 'incentivo':
		$IdColumnista = 2;
		break;
	case 'morfologia':
		$IdColumnista = 7;
		break;
	case 'tipo-y-aptitud':
		$IdRanking = 1824;
		$IdColumnista = 11;
		break;
	
	default:
		// code...
		break;
}

?>
<!DOCTYPE html>
<html lang="en">
	<?php include("ssi_head.php"); ?>
	<body class="custom-cursor">
		<div class="preloader">
			<div class="preloader__image"></div>
		</div>
		<div class="page-wrapper">
			<?php include("ssi_header.php"); ?>
			<!--
			<section class="cta-one">
				<div class="container">
					<div class="cta-one__inner d-block">
						<div class="cta-one__title-box">
							<div class="row">
								<div class="col-sm-3 video-container">

											<img src="assets/images/iconos/ic_aparte.png">
								</div>
								<div class="col-sm-9">
									<p class="cta-one__text mt-0">Disciplinas</p>
									<h3 class="cta-one__title">Rodeos</h3>
								</div>
							</div>
				
					
							</div>
						</div>
						<div class="cta-one__btn-box">
				
						</div>
					</div>
				</div>
			</section>
			-->
			<section class="page-header interior">
				<div class="page-header__bg <?= $oCategoria->KeyCategoria ?>" style="background:transparent;">
				</div>
				<div class="container">
					<div class="page-header__inner">
																

						<h2><img src="assets/images/iconos/ic_<?= $oCategoria->KeyCategoria ?>.png"> <?= utf8_encode($oCategoria->Nombre) ?></h2>
						<ul class="thm-breadcrumb list-unstyled">
							<li><a href="index.php">Home</a></li>
							<li><span class="icon-down-arrow"></span></li>
							<li><?= utf8_encode($oCategoria->Nombre) ?></li>
						</ul>
					</div>
				</div>
			</section>			
			<div class="stricky-header stricked-menu main-menu main-menu-three">
				<div class="sticky-header__content"></div>
			</div>
			<?php
			if (count($arrData) > 0) {
				$oNoticia = $arrData[0];
			?>
			<section class="news-details">
				<div class="container">
					<div class="row">
						<div class="col-xl-8 col-lg-7">
							<div class="news-details__left">
								<div class="news-details__img">
									<a href="noticias_detalle.php?IdNoticia=<?= $oNoticia->IdNoticia ?>">
										<?php
			                            if ($oNoticia->Imagen && file_exists(str_replace('../', '', Noticia::PathImageBig) . $oNoticia->Imagen)) {
			                            ?>
			                            <img src="<?= str_replace('../', '', Noticia::PathImageBig) . $oNoticia->Imagen ?>" alt="">
			                            <?php
			                            } else {
			                            ?>
			                            <img src="assets/images/accc.jpg" alt="">
			                            <?php
			                            }
			                            ?>
			                        </a>
								</div>
								<div class="news-details__author-and-meta mt-4">
									<div class="news-details__meta no-m-l">
										<p><span class="fas fa-calendar"></span><?= FechaLetras($oNoticia->Fecha) ?></p>
										<p class="tc-<?= $oCategoria->KeyCategoria ?>"><span class="fas fa-tag"></span><?= $oCategoria->Nombre ?></p>
									</div>
								</div>
								<a href="noticias_detalle.php?IdNoticia=<?= $oNoticia->IdNoticia ?>">
									<h3 class="news-details__title-1"><?= $oNoticia->Titulo ?></h3>
								</a>
							</div>
								<?php if (count($arrData) > 1) {
	  							?>
							<div class="row d-none d-md-flex">
								<?php
								for ($i=1; $i < count($arrData) && $i < 3; $i++) { 
									$oNoticia = $arrData[$i];
									$oCategoria = $oCategorias->GetById($oNoticia->IdCategoria);
									$arrFecha = explode('-', $oNoticia->Fecha);
								?>
								<div class="col-xl-6">
									<div class="news-three__single">
										<div class="news-three__img-box">
											<div class="news-three__img" style="height: 308px;">
												<?php
					                            if ($oNoticia->Imagen && file_exists(str_replace('../', '', Noticia::PathImageBig) . $oNoticia->Imagen)) {
					                            ?>
					                            <img src="<?= str_replace('../', '', Noticia::PathImageBig) . $oNoticia->Imagen ?>" alt="">
					                            <?php
					                            } else {
					                            ?>
					                            <img src="assets/images/accc.jpg" alt="">
					                            <?php
					                            }
					                            ?>
											</div>
											<div class="news-three__date">
												<p><?= $arrFecha[2] ?> </p>
												<span><?= FechaMesShort($oNoticia->Fecha) ?> <?= substr($arrFecha[0], 2) ?></span>
											</div>
										</div>
										<div class="news-three__content">
											<ul class="news-three__meta list-unstyled">
												<li>
													<p class="tc-<?= $oCategoria->KeyCategoria ?>"><i class="fas fa-tag" style="margin-right: 6px"></i><?= $oCategoria->Nombre ?></p>
												</li>
											</ul>
											<h3 class="news-three__title" style="min-height: 120px">
												<a href="noticias_detalle.php?IdNoticia=<?= $oNoticia->IdNoticia ?>"><?= $oNoticia->Titulo ?></a>
											</h3>
											<div class="news-three__btn">
												<a href="noticias_detalle.php?IdNoticia=<?= $oNoticia->IdNoticia ?>">Ver m&aacute;s<span
														class="icon-right-arrow1"></span></a>
											</div>
										</div>
									</div>
								</div>
								<?php
								}
								?>
							</div>
							<?php
							}
							?>
						</div>
						<div class="col-xl-4 col-lg-5">
							<?php include("ssi_sidebar_disciplinas.php"); ?>  
						</div>
					</div>
				</div>
			</section>
			<?php
			}
			?>
			<?php include("ssi_proximos_eventos.php"); ?>  			  
			
			<?php include("ssi_disciplinas.php"); ?>
			<?php include("ssi_logos.php"); ?>  
			<?php include("ssi_footer.php"); ?>  

		</div><!-- /.page-wrapper -->
		<?php include("ssi_mobile.php"); ?>  
		<?php include("ssi_search.php"); ?>  
		<?php include("ssi_scripts.php"); ?>     
	</body>
</html>

Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat