MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: /home/asjudine/www/acobranzas/cobranza_consulta_base1.php
<?php


require_once("../Conectarse.php");
echo "<form name='form' action='' method='post'>";
global $dbi;	
	
$ced2=$_GET["ced2"];

$control = mysql_query('SELECT nombre, direccion, telefono, ciudad, celular, cedula FROM base1 WHERE cedula = "' .$_GET["ced2"] . '"');
if (!$control) {
	die('Invalid query: ' . mysql_error());
}
 
list($nombre, $direccion , $telefono,  $ciudad, $celular, $cedula)  = mysql_fetch_row($control);
	
	
if ($numero == 2)
{
	$control = mysql_query('SELECT nombre, direccion, telefono, ciudad, celular, cedula FROM base2 WHERE cedula = "' . $_GET["ced2"] . '"');
	if (!$control) {
		die('Invalid query: ' . mysql_error());
	}
 
    list($nombre, $direccion , $telefono,  $ciudad, $celular, $cedula)  = mysql_fetch_row($control);
}
	
if ($numero == 3)
{
	$control = mysql_query('SELECT nombre, direccion, telefono, ciudad, celular, cedula FROM base3 WHERE cedula = "' . $_GET["ced2"] . '"');
			if (!$control) {
				die('Invalid query: ' . mysql_error());
			}
 
    list($nombre, $direccion , $telefono,  $ciudad, $celular, $cedula)  = mysql_fetch_row($control);
	}
	
	if ($numero == 4)
	{
				$control = mysql_query('SELECT nombre, direccion, telefono, ciudad, celular, cedula FROM base4 WHERE cedula = "' . $_GET["ced2"] . '"');
			if (!$control) {
				die('Invalid query: ' . mysql_error());
			}
 
    list($nombre, $direccion , $telefono,  $ciudad, $celular, $cedula)  = mysql_fetch_row($control);
	}
	
	if ($numero == 5)
	{
				$control = mysql_query('SELECT nombre, direccion, telefono, ciudad, celular, cedula FROM base5 WHERE cedula = "' . $_GET["ced2"] . '"');
			if (!$control) {
				die('Invalid query: ' . mysql_error());
			}
 
    list($nombre, $direccion , $telefono,  $ciudad, $celular, $cedula)  = mysql_fetch_row($control);
	}
	
	if ($numero == 6)
	{
				$control = mysql_query('SELECT nombre, direccion, telefono, ciudad, celular, cedula FROM base6 WHERE cedula = "' . $_GET["ced2"] . '"');
			if (!$control) {
				die('Invalid query: ' . mysql_error());
			}
 
    list($nombre, $direccion , $telefono,  $ciudad, $celular, $cedula)  = mysql_fetch_row($control);
	}

	if ($numero == 7)
	{
				$control = mysql_query('SELECT nombre, direccion, telefono, ciudad, celular, cedula FROM base7 WHERE cedula = "' . $_GET["ced2"] . '"');
			if (!$control) {
				die('Invalid query: ' . mysql_error());
			}
 
    list($nombre, $direccion , $telefono,  $ciudad, $celular, $cedula)  = mysql_fetch_row($control);
	}
	if ($numero == 8)
	{
				$control = mysql_query('SELECT nombre, direccion, telefono, ciudad, celular, cedula FROM base8 WHERE cedula = "' . $_GET["ced2"] . '"');
			if (!$control) {
				die('Invalid query: ' . mysql_error());
			}
 
    list($nombre, $direccion , $telefono,  $ciudad, $celular, $cedula)  = mysql_fetch_row($control);
	}
	if ($numero == 9)
	{
				$control = mysql_query('SELECT nombre, direccion, telefono, ciudad, celular, cedula FROM base9 WHERE cedula = "' . $_GET["ced2"] . '"');
			if (!$control) {
				die('Invalid query: ' . mysql_error());
			}
 
    list($nombre, $direccion , $telefono,  $ciudad, $celular, $cedula)  = mysql_fetch_row($control);
	}

$cont = mysql_query('SELECT numero_carpeta, cedula, nombre_completo, numero, tipo, capital_periodo, capital_renovacion, interes_prejuridico, interes_cobroejecutivo, capital_clausula, deuda_total, oficio_numero, fecha_oficio, unidad, codigo_gestion  FROM cobranzas WHERE cedula = "' . $_GET["ced2"] . '" ');
			if (!$cont) {
				die('Invalid query: ' . mysql_error());
			}
 list($numero_carpeta, $cedulas, $nombre_completo, $numero, $tipos, $capital_periodo, $capital_renovacion, $interes_prejuridico, $interes_cobroejecutivo, $capital_clausula, $deuda_total, $oficio_numero, $fecha_oficio, $unidad, $codgest)  = mysql_fetch_row($cont);


$cont = mysql_query('SELECT nombre, direccion, telefono, ciudad, celular, cedula, numerocontrato, tipocontrato FROM cartera_serviasjudinet   WHERE cedula = "' . $_GET["ced2"] . '"');
			if (!$cont) {
				die('Invalid query: ' . mysql_error());
			}
 
    list($nombreca, $direccionca , $telefonoca,  $ciudadca, $celularca, $cedulaca, $numcon, $tipo)  = mysql_fetch_row($cont);


			$resul = mysql_query('SELECT Nombre_Completo FROM Usuarios WHERE cedula = "' . $_GET["ced"] . '" ');
			if (!$resul) {
				die('Invalid query: ' . mysql_error());
			}
 
if ((mysql_num_rows($resul)!=0)) 
{	 
    list($nom) = mysql_fetch_row($resul);
}

if ($_POST[guardar])	
{
		//$fec = $dia_act."-".$mes_act."-".$ano_act;
		$fec = ($_POST[dia_act]."-".$_POST[mes_act]."-".$_POST[ano_act]);
		$eldia = $_POST[dia_act];
		$elmes = $_POST[mes_act];
		$elano = $_POST[ano_act];

		
		// Aqui se soluciona lo de la fecha
		$nuevafecha = $_POST[ano_act]."-".$_POST[mes_act]."-".$_POST[dia_act];
		


 $resulta =  mysql_query("INSERT INTO actuaciones_cobranzas (cedula, numero_carpeta, oficio_numero, actuacion, fecha, cedula_usuario, codigo_gestion) VALUES ('" . $_GET[ced2]  . "', '" . $_GET[carpeta]  . "', '" . $_POST["oficio_numero"]  . "', '" . $_POST["gestion"]  . "', NOW(), '" . $_POST["usuario"]  . "', '" . $_POST["cod"]  . "')");
			if (!$resulta) {
				die('Invalid resulta: ' . mysql_error());
			}




 $resul= mysql_query("INSERT INTO cobranzas_ilocalizados (cedula, nombre, direccion, telefono, celular, ciudad, fecha , gestion, cedula_usuario, codigo_gestion, estado ) VALUES ('" . $_GET[ced2]  . "', '" . $_POST["nombre"]  . "', '" . $_POST["direccion"]  . "', '" . $_POST["telefono"]  . "', '" . $_POST["celular"]  . "', '" . $_POST["ciudad"]  . "', '$nuevafecha', '" . $_POST["gestion"]  . "', '" . $_POST["usuario"]  . "', '" . $_POST["cod"]  . "', '1')");
		if (!$resul) {
				die('Invalid cobranzas_ilocalizados: ' . mysql_error());
			}

	
		$modificarcob = mysql_query("UPDATE cobranzas set  codigo_gestion = '" . $_POST["cod"]  . "' , fecha_gestion = ' $nuevafecha '  WHERE cedula = '" . $_GET[ced2] . "' ");
			if (! $modificarcob) {
				die('Invalid query cobranzas: ' . mysql_error());
			}
			
		$modif = mysql_query("UPDATE cartera_serviasjudinet set  direccion = '" . $_POST[direccion]  . "' , telefono = '" . $_POST[telefono]  . "' , celular = '" . $_POST[celular]  . "' , ciudad = '" . $_POST[ciudad]  . "'  WHERE cedula = '" . $_GET[ced2] . "' ");
			if (! $modif) {
				die('Invalid query cartera_serviasjudinet: ' . mysql_error());
			}


echo "<script>alert('Los datos fueron grabados correctamente');</script>";

echo "<SCRIPT LANGUAGE='javascript'>window.location.href='menu_cobranzas_jur1.php?ced2=$ced2&numcon=$numcon'</SCRIPT>";
	 
}
?>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Capturar Gestion Cobranzas Jur</title>
<meta http-equiv="X-UA-Compatible" content="IE=8; IE=9; IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    
<style type="text/css">
	*{margin: 0;padding: 0;}
    body{background-color:#FFFFFF;font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif}
    header {background-color: #B7271F; text-align: center;}
    .cerrarsesion{width: auto;background-color: #DBD8C9;color: #000;font-size: 13px;position:absolute;top: 15px;right:10px;z-index:0;padding: 10px;border-radius: 10px;cursor: pointer;}
    .cerrarsesion:hover{background-color: #ffffff;color: #000;}
    .titulo{width: 100%;text-align: center;background-color: #dbd8c9;color: #b20606;padding: 6px 0;font-size: 18px;}
	.subtitulos{width: 100%;text-align: left;color: #b20606;padding: 2px 0;font-size: 13px;}
    table{margin: 0 auto;border: 8px solid #bebebe; text-align: center;}
    .irmenu{width: 200px;background-color: #1c4fa0;color: #fff; padding: 4px;border-radius: 6px;}
    .irmenu:hover{background-color: #67a0d9; color: #000;}
    
    .fecha{background-color: #d6e08b; padding: 2px;color: #000;font-size: 15px; text-align: center;}
    td{border: #D7D7D7 solid 0.2px;}
    .tdizq{background-color: #EEE; padding: 1px 1px;color: #00135F;font-size: 14px;font-weight: 400; text-align: left;}
    .tdcen{background-color: #EEE; padding: 1px 1px;color: #00135F;font-size: 14px;font-weight: 400; text-align: center;}
    .tdder{background-color: #EEE; padding: 1px 1px;color: #00135F;font-size: 14px;font-weight: 400; text-align: right;}
	.tdroja{background-color: #EEE; padding: 1px 1px;color: #CC0005;font-size: 14px;font-weight: 600; text-align: right;}
	.tdi{background-color: #FDF8D5; padding: 1px 1px;color: #C0292E;font-size: 14px;font-weight: 500; text-align: left;}
    .tdc{background-color: #FDF8D5; padding: 1px 1px;color: #C0292E;font-size: 14px;font-weight: 500; text-align: center;}
    .tdd{background-color: #FDF8D5; padding: 1px 1px;color: #C0292E;font-size: 14px;font-weight: 500; text-align: right;}
	.exp{color:#8A0000; font-size:12px;}
    .boton1{width:200px;background-color: #ffffff;color: #000;padding: 4px;border:1px solid #580000;border-radius:2px;}
    .boton1:hover{background-color: #6f0000;color: #fff;cursor: pointer;}
	.direcciona{width: 200px;background-color: #D4090C;color: #fff; padding: 4px;border-radius: 3px;}
	.direcciona:hover{background-color: #67a0d9; color: #000;}
    input[type=text]{border:groove #191919 0.5px; border-radius: 3px; padding: 3px;background-color: #FFFFFF; font-weight:700px;}
	select{border:solid #191919 0.5px; border-radius: 3px; padding: 3px;background-color: #FFFFFF; font-weight:600px; }
	
	.tdtitulo{background-color: #e3dec0; color: #b20606; padding: 2px; text-align: center; font-size: 12px; font-weight: 900}
    .tdfull{background-color: #fff; color: #000; padding: 5px; text-align: center; font-size: 12px; font-family:Verdana, Geneva, sans-serif;}
	.tdjustify{background-color: #fff; color: #000; padding: 5px; text-align: justify; font-size: 12px; font-family:Verdana, Geneva, sans-serif;}
    .botonnew{width: 90px; background-color: #C0292E;color: #FFFFFF;padding: 1px;border-radius:5px;}
    .botonnew:hover{background-color: #cbbd6a;color: #000;padding: 1px;border-radius:5px;}
</style><meta http-equiv="X-UA-Compatible" content="IE=8; IE=9; IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    
<style type="text/css">
	*{margin: 0;padding: 0;}
    body{background-color:#FFFFFF;font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif}
    header {background-color: #B7271F; text-align: center;}
    .cerrarsesion{width: auto;background-color: #DBD8C9;color: #000;font-size: 13px;position:absolute;top: 15px;right:10px;z-index:0;padding: 10px;border-radius: 10px;cursor: pointer;}
    .cerrarsesion:hover{background-color: #ffffff;color: #000;}
    .titulo{width: 100%;text-align: center;background-color: #dbd8c9;color: #b20606;padding: 6px 0;font-size: 18px;}
	.subtitulos{width: 100%;text-align: left;color: #b20606;padding: 2px 0;font-size: 13px;}
    table{margin: 0 auto;border: 8px solid #bebebe; text-align: center;}
    .irmenu{width: 200px;background-color: #1c4fa0;color: #fff; padding: 4px;border-radius: 6px;}
    .irmenu:hover{background-color: #67a0d9; color: #000;}
    
    .fecha{background-color: #d6e08b; padding: 2px;color: #000;font-size: 15px; text-align: center;}
    td{border: #D7D7D7 solid 0.2px;}
    .tdizq{background-color: #EEE; padding: 1px 1px;color: #00135F;font-size: 14px;font-weight: 400; text-align: left;}
    .tdcen{background-color: #EEE; padding: 1px 1px;color: #00135F;font-size: 14px;font-weight: 400; text-align: center;}
    .tdder{background-color: #EEE; padding: 1px 1px;color: #00135F;font-size: 14px;font-weight: 400; text-align: right;}
	.tdroja{background-color: #EEE; padding: 1px 1px;color: #CC0005;font-size: 14px;font-weight: 600; text-align: right;}
	.tdi{background-color: #FDF8D5; padding: 1px 1px;color: #C0292E;font-size: 14px;font-weight: 500; text-align: left;}
    .tdc{background-color: #FDF8D5; padding: 1px 1px;color: #C0292E;font-size: 14px;font-weight: 500; text-align: center;}
    .tdd{background-color: #FDF8D5; padding: 1px 1px;color: #C0292E;font-size: 14px;font-weight: 500; text-align: right;}
	.exp{color:#8A0000; font-size:12px;}
    .boton1{width:200px;background-color: #ffffff;color: #000;padding: 4px;border:1px solid #580000;border-radius:2px;}
    .boton1:hover{background-color: #6f0000;color: #fff;cursor: pointer;}
	.direcciona{width: 200px;background-color: #D4090C;color: #fff; padding: 4px;border-radius: 3px;}
	.direcciona:hover{background-color: #67a0d9; color: #000;}
    input[type=text]{border:groove #191919 0.5px; border-radius: 3px; padding: 3px;background-color: #FFFFFF; font-weight:700px;}
	select{border:solid #191919 0.5px; border-radius: 3px; padding: 3px;background-color: #FFFFFF; font-weight:600px; }
	
	.tdtitulo{background-color: #e3dec0; color: #b20606; padding: 2px; text-align: center; font-size: 12px; font-weight: 900}
    .tdfull{background-color: #fff; color: #000; padding: 5px; text-align: center; font-size: 12px; font-family:Verdana, Geneva, sans-serif;}
	.tdjustify{background-color: #fff; color: #000; padding: 5px; text-align: justify; font-size: 12px; font-family:Verdana, Geneva, sans-serif;}
    .botonnew{width: 90px; background-color: #C0292E;color: #FFFFFF;padding: 1px;border-radius:5px;}
    .botonnew:hover{background-color: #cbbd6a;color: #000;padding: 1px;border-radius:5px;}
</style>
	
	
	
<script languaje="JavaScript">
function Mostrar_Fecha()
{
         var mydate=new Date()
         var year=mydate.getYear()
         if (year < 1000)
                 year+=1900
                 var day=mydate.getDay()
                 var month=mydate.getMonth()
                 var daym=mydate.getDate()
                 if (daym<10)
                    daym="0"+daym
                    var dayarray=new Array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sabado")
                    var montharray=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre")
                    document.write("<b><font face='Arial, Helvetica, sans-serif'>"+dayarray[day]+" "+daym+" de "+montharray[month]+" de "+year+"</font></b>")
}					
</script>

<script Language="JavaScript"><!--
function validar_campos(form)
{

  if (form.nombre.value == "")
  {
    alert("Falta Ingresar el nombre");
    form.nombre.focus();
    return (false);
  }

  if (form.celular.value == "")
  {
    alert("Falta Ingresar el Numero de celular");
    form.celular.focus();
    return (false);
  }

  if (form.direccion.value == "")
  {
    alert("Falta Digitar la Direccion");
    form.direccion.focus();
    return (false);
  }


  if (form.telefono.value == "")
  {
    alert("Falta digitar numero telefonico");
    form.telefono.focus();
    return (false);
  }


  if (form.ciudad.value== "")
  {
    alert("Falta digitar la Ciudad");
    form.ciudad.focus();
    return (false);
  }

  if (form.cod.value == "")
  {
    alert("Falta digitar el codigo de gestion");
    form.cod.focus();
    return (false);
  }
    if (form.geston.value == "")
  {
    alert("Falta escribir la gestion");
    form.geston.focus();
    return (false);
  }
    if (form.usuario.value == "")
  {
    alert("Falta seleccionar el Usuario");
    form.usuario.focus();
    return (false);
  }

  return (true);
}
//--></script>



</head>
<body onload="document.form.actuacion.focus()">
<header>
    <img src="../ELEMENTS/bannerInterasjudinet.png" alt="" width=" 700" height="70">
</header>
<h3 class="titulo">DATOS CARTERA</h3>		
	
<form method="post" name="formulario" action="">

<table width="750" border="0" align="center" cellpadding="3" cellspacing="3">    
<!--<tr>
    <td colspan="6">DATOS CARTERA</div></td>
</tr>-->
<tr>
	<td class="fecha" colspan="6" ><script languaje="JavaScript">Mostrar_Fecha()</script></div></td>
</tr>

<tr>
    <td class="tdder">C&eacute;dula, apellidos y nombres</td>
    <td class="tdizq"><input name="cedulaca" type="text" id="cedulaca" value="<?php echo $cedulaca; ?>" size="15" maxlength="15" readonly=""></td>
    <td class="tdizq" colspan="4"><input name="nombreca" type="text" id="nombreca" value="<?php echo $nombreca; ?>" size="50" maxlength="50" readonly=""></td>
</tr>

<tr>
	<td class="tdder">Celular</td>
    <td class="tdizq"><input name="celularca" type="text" id="celularca" value="<?php echo $celularca; ?>" size="12" maxlength="12" readonly="" ></td>
 
    <td class="tdder">Dirección:</td>
    <td class="tdizq" colspan="3"><input name="direccionca" type="text" id="direccionca" value="<?php echo $direccionca; ?>" size="40" maxlength="60"  readonly=""></td>
</tr>
<tr>
	<td class="tdder">Telefono:</td>
    <td class="tdizq"><input name="telefonoca" type="text" id="telefonoca" value="<?php echo $telefonoca; ?>" size="10" maxlength="10" readonly="" ></td>
    <td class="tdder">Ciudad:</td>
    <td class="tdizq" colspan="3"><input name="ciudadca" type="text" id="ciudadca" value="<?php echo $ciudadca; ?>" size="40" maxlength="60"  readonly=""></td>
</tr>

<tr>
	<td class="tdder">No Contrato</td>
  	<td class="tdizq"><input name="numcon" type="text" id="numcon" value="<?php echo $numcon; ?>" size="4" maxlength="4" readonly=""></td>
    <td class="tdder">Tipo:</td>
    <td class="tdizq"><input name="tipo" type="text" id="tipo" value="<?php echo $tipo; ?>" size="4" maxlength="4" readonly=""></td>
</tr>
</table>
<br>



<table width="651" border="0" align="center" cellpadding="3" cellspacing="3">    
<tr>
	<td class="fecha" colspan="6" >GESTION DE LOCALIZACION<</td>
</tr>

<tr>
	<td class="fecha" colspan="6"><script languaje="JavaScript">Mostrar_Fecha()</script></td>
</tr>

<tr>
	<td class="tdder">C&eacute;dula, apellidos y nombres</td>
    <td class="tdizq"><input name="cedula" type="text" id="cedula" value="<?php echo $cedula; ?>" size="15" maxlength="15" readonly=""></td>
    <td class="tdizq" colspan="4" ><input name="nombre" type="text" id="nombre" value="<?php echo $nombre; ?>" size="50" maxlength="50" ></td>
</tr>

<tr>
	<td class="tdder">Celular</div></td>
    <td class="tdizq"><input name="celular" type="text" id="celular" value="<?php echo $celular; ?>" size="12" maxlength="12" ></td>
 
    <td class="tdder">Dirección:</div></td>
    <td class="tdizq"><input name="direccion" type="text" id="direccion" value="<?php echo $direccion; ?>" size="40" maxlength="60" ></td>
</tr>

<tr>
	<td class="tdder">Telefono:</td>
    <td class="tdizq"><input name="telefono" type="text" id="telefono" value="<?php echo $telefono; ?>" size="10" maxlength="10" ></td>
    <td class="tdder">Ciudad:</div></td>
    <td class="tdizq"><input name="ciudad" type="text" id="ciudad" value="<?php echo $ciudad; ?>" size="40" maxlength="60" ></td>
</tr>
	
  <td colspan="7" align="center">
    <?php echo "<input type='button' value='CONSULTAR INFORMACION' name=boton class=direcciona onClick =window.open('cobranzas_consulta_todo.php?ced2=$ced2&numcon=$numcon&tipo=$tipo','','top=50,left=100,toolbar=no,scrollbars=yes,width=810,height=530,status=yes')></a>"; ?>
 </td>
</tr>
</table>

<table width="750" border="0" align="center" cellpadding="3" cellspacing="3">    
<tr>
	<td class="fecha" colspan="4" >INGRESAR GESTION DE COBRANZAS</div></td>
</tr>
<tr>
	<td class="tdroja">FECHA DE LA GESTION:</td>
   	<td class="tdizq">
	<input name="dia_act" type="text" id="dia" value="<?php echo date("d"); ?>" size="2" maxlength="2" readonly="">
	-
    <input name="mes_act" type="text" id="mes" value="<?php echo date("m"); ?>" size="2" maxlength="2" readonly="">
	-
    <input name="ano_act" type="text" id="ano" value="<?php echo date("Y"); ?>" size="4" maxlength="4" readonly="">
  	<span class="exp">dd/mm/aaaa</div></td>
    <td class="tdroja">CODIGO JURIDICO:</td>
      <td width="90"  nowrap ><input name="cod" type="text" class="Estilo33" id="cod" size="2" maxlength="2" ></td>
</tr>

<tr>
	<td class="tdcen" colspan="4" >
    <textarea name="gestion" cols="70" rows="5" id="gestion"  ></textarea></td>
</tr>

<tr>
	<td colspan="4" >
    <input name="guardar" type="submit" class="direcciona" id="guardar" value ="Guardar" >   
	<input name="button" type="button" class="irmenu"  onclick="window.location.href='menu_cobranzas_jur1.php'" value="Volver al Menú">
    <span class="exp">
    <!--input name="button2" type="button" class="Estilo39"  onclick="history.back()" value="Atr&aacute;s">-->
          
         
          <span class="Estilo10">                          		  
      </div></td>
    </tr>
  </table>
<table width="651" align="center">
<tr >
	<td class="tdroja">Nombre del usuario: </td>
 <td><select name="usuario">
        <option value="">--------SELECCIONE USUARIO--------</option>
		<option value="52910677">VASQUEZ RUEDA ANGELA DAMARIS</option>
		 </select></td>
  </tr>
</table>
</form>  
</body>
</html>