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/public_html/acobranzas/cobranza_consulta_base1_asistente.php
<?php
require_once("../Conectarse.php");
$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>
<head>
<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">
<title>Consulta Ingreso debito</title>
<style type="text/css">
    *{margin: 0;padding: 0;}
    body{background-color:#EAEAEA;font-family:Geneva,Arial,Helvetica,sans-serif;}
    header {background-color: #B7271F; text-align: center;}
    
    .titulo{width: 100%;text-align: center;background-color: #dbd8c9;color: #b20606;padding: 6px 0;font-size: 18px;}
    table{margin: 0 auto;border: 8px solid #bebebe; text-align: center;}
    .divirmenu{text-align: center;}
    .irmenu{width: 200px;background-color: #1c4fa0;color: #fff; padding: 4px;border-radius: 6px;}
    .irmenu:hover{background-color: #67a0d9; color: #000;}
	.direcciona{width: 200px;background-color: #D4090C;color: #fff; padding: 4px;border-radius: 3px;}
	.direcciona:hover{background-color: #67a0d9; color: #000;}    
    .fecha{background-color: #d6e08b; padding: 2px;color: #000;font-size: 15px; text-align: center;}
    td{padding: 1px; border: 1px solid #a0a0a0;}
    .td{background-color: #e5e5e5; padding: 1px 30px;color: #00135F;font-size: 14px;font-weight: 600; text-align: center;}
    .boton1{width:30%;background-color: #ffffff;color: #000;padding: 2px;border:2px solid #580000;border-radius:10px;}
    .boton1:hover{background-color: #6f0000;color: #fff;cursor: pointer;}
    input[type=text]{border-radius: 5px; padding: 3px;background-color: #FFFEF4;}
	
	.tdtitulo{background-color: #e3dec0; color: #b20606; padding: 2px; text-align: center; font-size: 12px; font-weight: 900}
    .tdfull{background-color: #fff; color: #000; padding: 1px; text-align: center; font-size: 12px;}
    .botonnew{width: 90px; background-color: #e3dec0;color: #b20606;padding: 1px;border-radius:5px;}
    .botonnew:hover{width: 90px; background-color: #cbbd6a;color: #000;padding: 1px;border-radius:5px;}
	.tdizq{background-color: #e5e5e5; padding: 1px 10px;color: #00135F;font-size: 12px;font-weight: 600; text-align: left;}
	.tdizqam{background-color: #FFFFCC; padding: 1px 10px;color: #00135F;font-size: 12px;font-weight: 600; text-align: left;}
    .tdcen{background-color: #e5e5e5; padding: 1px 10px;color: #00135F;font-size: 12px;font-weight: 600; text-align: center;}
    .tdder{background-color: #e5e5e5; padding: 1px 2px;color: #00135F;font-size: 12px;font-weight: 600; text-align: right;}
	.tdbono{background-color: #FFFFCC; padding: 1px 2px;color: #00135F;font-size: 12px;font-weight: 600; text-align: right;}
	/*Estilo Complementario*/
	.tdi{background-color: #F9FBC8; padding: 1px 10px;color: #00135F;font-size: 12px;font-weight: 600; text-align: left;}
	.tdc{background-color: #F9FBC8; padding: 1px 10px;color: #00135F;font-size: 12px;font-weight: 600; text-align: center;}
    .tdd{background-color: #F9FBC8; padding: 1px 2px;color: #00135F;font-size: 12px;font-weight: 600; text-align: right;}
	
.Estilo29 {font-family: Tahoma; font-size: 12px; }
</style>
</head>

<body>
<form id="form1" name="form1" method="post" action="">
 <header>
    <img src="../ELEMENTS/bannerInterasjudinet.png" alt="" width=" 700" height="70">
</header>
  <div align="center">
    <table width="701" border="3" cellpadding="3" cellspacing="3" class="datos3">
      <caption>
      <div align="center"><strong><span class="Estilo12"><br />
        </span></strong>
        <table width="330" border="3" cellpadding="3" cellspacing="3" class="recaudo">
          <caption>
          <!--<span class="Estilo1">SERVIASJUDINET</span>-->
          </caption>
          
          
        </table>
        <strong><br />
        </strong>
		
		        <table width="655" border="3" cellpadding="3" cellspacing="3" class="Estilo4">
<caption>
          <span class="Estilo8"><br />
            <span class="titulo">DATOS CARTERA</span></span>
          </caption>
         <tr>
    <td class="tdbono">C&eacute;dula,Apellidos y Nombres</td>
    <td class="tdizqam"><input name="cedulaca" type="text" id="cedulaca" value="<?php echo $cedulaca; ?>" size="15" maxlength="15" readonly></td>
    <td class="tdizqam" colspan="4"><input name="nombreca" type="text" id="nombreca" value="<?php echo $nombreca; ?>" size="50" maxlength="50" readonly></td>
    </tr>
     
     <tr>
      <td class="tdbono">Celular</td>
      <td class="tdizqam"><input name="celularca" type="text" id="celularca" value="<?php echo $celularca; ?>" size="12" maxlength="12" readonly ></td>
 
     <td class="tdbono">Dirección</td>
      <td class="tdizqam" colspan="3"><input name="direccionca" type="text" id="direccionca" value="<?php echo $direccionca; ?>" size="40" maxlength="60"  readonly=""></td>
  </tr>
      <tr>
      <td class="tdbono">Telefono:</td>
      <td class="tdizqam"><input name="telefonoca" type="text" id="telefonoca" value="<?php echo $telefonoca; ?>" size="10" maxlength="10" readonly ></td>
      <td class="tdbono">Ciudad:</td>
      <td class="tdizqam" colspan="3"><input name="ciudadca" type="text" id="ciudadca" value="<?php echo $ciudadca; ?>" size="40" maxlength="60"  readonly=""></td>
    </tr>
    
    <tr>
    <td class="tdbono">No Contrato</td>
      <td class="tdizqam"><input name="numcon" type="text" id="numcon" value="<?php echo $numcon; ?>" size="4" maxlength="4" readonly></td>
     
      <td class="tdbono">Tipo:</td>
      <td class="tdizqam"><input name="tipo" type="text" id="tipo" value="<?php echo $tipo; ?>" size="4" maxlength="4" readonly></td>
  </tr>
       
        </table>
		
        <table width="543" border="3" cellpadding="3" cellspacing="3" >
          <caption>
          
            <h3 class="titulo">GESTION DE LOCALIZACION</h3>
          </caption>
    
    <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</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:</td>
      <td class="tdizq" colspan="3"><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:</td>
      <td class="tdizq" colspan="3"><input name="ciudad" type="text" id="ciudad" value="<?php echo $ciudad; ?>" size="40" maxlength="60" ></td>
    </tr>
         
         
        </table>

        <strong><br />
        <br />
        <span class="titulo">INGRESAR GESTION DE COBRANZAS</span><br />
        <br />
        </strong>      
        <label></label>
      </div>
      </caption>
      <tr>
      <td width="172" class="tdder">FECHA DE LA GESTION:</td>
      <td width="233" 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="Estilo33">dd/mm/aaaa</span></td>
    <td width="140" class="tdder">CODIGO JURIDICO:</td>
      <td width="93" class="tdizq"><input name="cod" type="text" class="Estilo33" id="cod" size="2" maxlength="2" ></td>
    </tr>
    <tr>
      <td colspan="4" align="center" nowrap bgcolor="#e5e5e5">
      <textarea name="gestion" cols="70" rows="5" id="gestion"  ></textarea></td>
    </tr>
    <tr>
      <td colspan="4"  align="center">
          <input name="guardar" type="submit" class="direcciona" id="guardar" value ="Guardar" >   
          
          <input name="button2" type="button" class="irmenu"  onclick="history.back()" value="Atr&aacute;s">
          </span>
         
          <span class="Estilo10">          </span>                		  
      </td>
    </tr>
    </table>
    
</form>
</body>
</html>