Mister Spy Say ="Hello Kids ... :D"
___ ____ _ _____
| \/ (_) | | / ___|
| . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _
| |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | |
| | | | \__ \ || __/ | /\__/ / |_) | |_| |
\_| |_/_|___/\__\___|_| \____/| .__/ \__, |
| | __/ |
|_| |___/
Bot Mister Spy V3
Mister Spy
Mister Spy
<?php
require_once("../funcs_email.php");
require_once("../config.php");
require_once('../Connections/cnx.php');
require_once("../funcs.php");
if ( $_SESSION['IdUsuario'] == ''){
header('Location: expositores_login.php');
exit();
}
mysql_select_db($database_cnx, $cnx);
$IdPropietario = (isset($_REQUEST['IdPropietario'])) ? $_REQUEST['IdPropietario'] : 0;
//$Socio = (isset($_REQUEST['Socio'])) ? $_REQUEST['Socio'] : 0;
$Submit = (isset($_REQUEST['Submitted'])) ? $_REQUEST['Submitted'] : 0;
$Action = (isset($_REQUEST['MainAction'])) ? $_REQUEST['MainAction'] : '';
if ($IdPropietario == '0')
{
header("Location: socios_empadronamiento_exitoso.php?IdPropietario=" . $IdPropietario);
exit;
}
$querySelect = "SELECT p.*";
$querySelect.= " FROM tblPropietarios p";
$querySelect.= " LEFT JOIN tblSociosAcccPropietarios sp ON p.IdPropietario = sp.IdPropietario";
$querySelect.= " WHERE p.IdPropietario = " . $IdPropietario;
$querySelect.= " AND (sp.IdSocioAccc IS NULL OR sp.IdEstado = 2)";
$querySelect.= " AND p.NumeroSocio IS NOT NULL";
$querySelect.= " ORDER BY p.NumeroSocio ASC";
$sqlSelect = mysql_query($querySelect) or die(mysql_error());
$querySelectCoprop = "SELECT p.*";
$querySelectCoprop.= " FROM tblPropietarios p";
$querySelectCoprop.= " INNER JOIN tblCopropietarios c ON p.IdPropietario = c.IdCopropiedad";
$querySelectCoprop.= " WHERE c.IdPropietario = " . $IdPropietario;
$querySelectCoprop.= " GROUP BY p.NumeroSocio ASC";
$querySelectCoprop.= " ORDER BY p.NumeroSocio ASC";
$sqlSelectCoprop = mysql_query($querySelectCoprop) or die(mysql_error());
if ($Submit)
{
switch ($Action)
{
case 'Next':
$querySelectUsuario = "SELECT sc.*";
$querySelectUsuario.= " FROM tblUsuarios u";
$querySelectUsuario.= " INNER JOIN tblSociosAccc sc ON u.NroSocio = sc.NumeroSocio";
$querySelectUsuario.= " WHERE u.IdUsuario = " . $_SESSION['IdUsuario'];
$sqlSelectUsuario = mysql_query($querySelectUsuario) or die(mysql_error());
$oUsuario = mysql_fetch_array($sqlSelectUsuario);
if ($oUsuario && $oUsuario['IdSocio'])
{
$queryDelete = "DELETE FROM tblSociosAcccPropietarios WHERE IdSocioAccc = " . $oUsuario['IdSocio'] . " OR IdPropietario = " . $IdPropietario;
$sqlDelete = mysql_query($queryDelete) or die(mysql_error());
$queryInsert = "INSERT INTO tblSociosAcccPropietarios";
$queryInsert.= " (IdSocioAccc, IdPropietario, IdUsuario, IdEstado)";
$queryInsert.= " VALUES (" . $oUsuario['IdSocio'] . ", " . $IdPropietario . ", " . $_SESSION['IdUsuario'] . ", 0)";
$sqlInsert = mysql_query($queryInsert) or die(mysql_error());
}
else
{
$queryDelete = "DELETE FROM tblSociosAcccPropietarios WHERE IdUsuario = " . $_SESSION['IdUsuario'] . " OR IdPropietario = " . $IdPropietario;
$sqlDelete = mysql_query($queryDelete) or die(mysql_error());
$queryInsert = "INSERT INTO tblSociosAcccPropietarios";
$queryInsert.= " (IdPropietario, IdUsuario, IdEstado)";
$queryInsert.= " VALUES (" . $IdPropietario . ", " . $_SESSION['IdUsuario'] . ", 0)";
$sqlInsert = mysql_query($queryInsert) or die(mysql_error());
}
header("Location: socios_empadronamiento_exitoso.php?IdPropietario=" . $IdPropietario);
exit;
break;
default:
break;
}
}
?>
<!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_ventas.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Asociación Criadores de Caballos Criollos</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<style type="text/css">
<!--
.Estilo3 {font-size: 15px}
-->
</style>
<link href="../css/basico_frontend.css" rel="stylesheet" type="text/css" />
<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; }
}
function Siguiente()
{
var MainAction = document.getElementById('MainAction');
var frmData = document.getElementById('frmData');
MainAction.value = 'Next';
frmData.submit();
return true;
}
//-->
</script>
<style type="text/css">
<!--
.Estilo5 {font-size: 13px; font-weight: bold; }
.Estilo6 {font-size: 12px}
.Estilo7 {color: #FFFFFF}
.Estilo8 {font-size: 13px; font-weight: bold; color: #FFFFFF; }
.Estilo9 {font-size: 13px}
-->
</style>
<!-- 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"></div>
<table width="942" border="0" align="center" cellpadding="0" cellspacing="0" class="FondoBlanco">
<tr>
<td width="20" valign="top"> </td>
<td width="955" height="5" valign="top"><div align="center"></div></td>
<td width="20" valign="top"> </td>
</tr>
<tr>
<td width="20" valign="top"> </td>
<td width="955" 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"> </td>
<td height="31" class="TituloPrincipal">EMPADRONAMIENTO DE USUARIOS</td>
<td height="31"><div align="right"> </div></td>
<td width="10" height="31" class="TituloPrincipal"><div align="right"></div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="15"> </td>
<td>
<table align="center" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
<tr>
<td><div align="left"><span class="TituloRojo Estilo9">PASO 3 - Confirmación</span></div></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>
<form method="post" name="frmData" id="frmData" 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" />
<input type="hidden" name="IdPropietario" id="IdPropietario" value="<?= $IdPropietario ?>" />
<table width="100%" border="0" class="bordeGris">
<tr>
<td height="20" colspan="2" align="left" class="tituloCategoriaMenu bordeGrisFondo" ><strong>Por favor, confirme su selección realizada de socio de SRA</strong></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td height="20" colspan="2" align="left"><strong>Datos del Socio de SRA seleccionado:</strong></td>
</tr>
<tr id="DivSocios">
<td colspan="2" width="50%" align="center">
<?php if ((isset($sqlSelect)) && (mysql_num_rows($sqlSelect) > 0)){ ?>
<div align="center" style="height:auto; width:80%; overflow:scroll; background-color:#FFFFFF">
<table align="left" width="100%" cellpadding="0" cellspacing="0" class="b" class="bordeGris" >
<tr class="FondoGris" height="20">
<td width="5" class="FondoGris"> </td>
<td width="150"><div align="center" class="Estilo5">Nro Criador/Propietario SRA</div></td>
<td width="10" class="FondoGris"> </td>
<td width="300"><div align="left" class="Estilo5">Nombre</div></td>
<td width="5"> </td>
</tr>
<?php
while ($oSocio = mysql_fetch_array($sqlSelect)){
?>
<tr>
<td width="5"> </td>
<td><div align="center"><?=$oSocio['NumeroSocio']?></div></td>
<td width="10"> </td>
<td><div align="left"><?=$oSocio['Nombre']?></div></td>
<td width="5"> </td>
</tr>
<?php } ?>
</table>
</div>
<?php }else{ ?>
<table align="center" width="50%" cellpadding="0" cellspacing="0" class="bordeRojoError" bgcolor="#FFFFFF" >
<tr>
<td> </td>
</tr>
<tr>
<td><div align="center" class="Cierre"><b>Atención:</b></div></td>
</tr>
<tr>
<td><div align="center" class="Cierre">No se han encontrado registros que coincidan con la búsqueda efectuada. Intente nuevamente. </div></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<?php } ?>
</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="20" colspan="2" align="left"><strong>Copropiedades en las que el socio seleccionado participa:</strong></td>
</tr>
<tr id="DivCopropiedades">
<td colspan="2" width="50%" align="center">
<?php if ((isset($sqlSelectCoprop)) && (mysql_num_rows($sqlSelectCoprop) > 0)){ ?>
<div align="center" style="height:auto; width:80%; overflow:scroll; background-color:#FFFFFF">
<table align="left" width="100%" cellpadding="0" cellspacing="0" class="b" >
<tr class="FondoGris" height="20">
<td width="5" class="FondoGris"> </td>
<td><div align="center" class="Estilo5">Nro Criador/Propietario SRA</div></td>
<td width="10" class="FondoGris"> </td>
<td><div align="left" class="Estilo5">Nombre</div></td>
<td width="5"> </td>
</tr>
<?php
while ($oSocio = mysql_fetch_array($sqlSelectCoprop)){
?>
<tr height="20">
<td width="5"> </td>
<td><div align="center"><?=$oSocio['NumeroSocio']?></div></td>
<td width="10"> </td>
<td><div align="left"><?=$oSocio['Nombre']?></div></td>
<td width="5"> </td>
</tr>
<?php } ?>
</table>
</div>
<?php }else{ ?>
<table align="center" width="50%" cellpadding="0" cellspacing="0" class="bordeRojoError" bgcolor="#FFFFFF" >
<tr>
<td> </td>
</tr>
<tr>
<td><div align="center" class="Cierre"><b>Atención:</b></div></td>
</tr>
<tr>
<td><div align="center" class="Cierre">No se han encontrado copropiedades para el socio seleccionado. </div></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<?php } ?>
</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="button" class="botonBasicoSinWidth" onclick="javascript: window.location.href = 'socios_empadronamiento_paso2.php?IdPropietario=<?=$IdPropietario ?>';" value="Anterior" />
<input type="button" class="botonBasicoSinWidth" onclick="Siguiente();" value="Siguiente" />
</div></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
</form> </td>
</tr>
</table>
</td>
<td width="15"> </td>
</tr>
<tr>
<td width="15"> </td>
<td> </td>
<td width="15"> </td>
</tr>
</table>
</td>
</tr>
</table>
<!-- InstanceEndEditable --></td>
</tr>
</table></td>
<td width="20" valign="top"> </td>
</tr>
<tr>
<td valign="top"> </td>
<td valign="top"> </td>
<td valign="top"> </td>
</tr>
</table>
<?php include("ssi_pie_ventas.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>
Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat