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/acorreos/acobranzas/informacion_inconsistencias_asistente2.php
<?php 

require_once("../Conectarse.php");


$fecha_asignac = date("Y")."-".date("m")."-".date("d"); 



$control = mysql_query('SELECT cedula,codigo_militar,nombre,grado,ciudad,direccion,telefono,celular,email,plan,banco,cuenta, numero_contrato,numero_libranza,vendedor,valor_contrato,numero_cuotas,valor_cuota,cuotas_pendientes,cuotas_descontadas,saldo_anterior,   saldo_nuevo,beneficiarios,fecha_inicio_pagos,fecha_inicio_contrato,fecha_termino_contrato,fecha_ultimo_pago,fecha_mes_aplicado,entidad_recaudo, unidad_y_codigo,entidad_laboral,director,causal_terminacion,fecha_anulacion,causal_rechazo,fecha_registro FROM inconsistencias WHERE cedula =  "' . $_GET["ced2"] . '" and numero_contrato =  "' . $_GET["numcon"] . '" ');


		  if (!$control) {
				die('Invalid query 1: ' . mysql_error());
			}
		$num=mysql_num_rows($control); 
		list($cedula, $codi, $apes, $grad, $ciudad, $direccion, $telefono, $celular, $email,$plan,$banco,$cuenta,$numero_contrato,$numero_libranza, $vendedor,$valor_contrato, $numero_cuotas, $valor_cuota, $cuotas_pendientes, $cuotas_descontadas, $saldo_anterior,$saldo_nuevo,$beneficiarios, $fecha_inicio_pagos, $fecha_inicio_contrato, $fecha_termino_contrato, $fecha_ultimo_pago, $fecha_mes_aplicado,$entidad_recaudo, $unidad_codigo, $entidad_laboral, $director, $causal_terminacion, $fecha_anulacion, $causal_rechazo, $fecha_registro) = mysql_fetch_row($control);

//////////////////////////GUARDAR
if(isset($_POST["guardar"]))
		{


$unidcodig = ($_POST[unides]."-".$_POST[codides]);

///*********************
		
$csql = mysql_query("INSERT INTO inconsistencias(cedula,codigo_militar,nombre,grado,ciudad,direccion,telefono,celular,email,plan,banco,cuenta, numero_contrato,numero_libranza,vendedor,valor_contrato,numero_cuotas,valor_cuota,cuotas_pendientes,cuotas_descontadas,saldo_anterior,   saldo_nuevo,beneficiarios,fecha_inicio_pagos,fecha_inicio_contrato,fecha_termino_contrato,fecha_ultimo_pago,fecha_mes_aplicado,entidad_recaudo, unidad_y_codigo,entidad_laboral,director,causal_terminacion,fecha_anulacion,causal_rechazo,fecha_registro) VALUES ('".$_POST["cedb"]."','".$_POST["cod"]."','".$_POST["apenom"]."','".$_POST["gra"]."','".$_POST["ciud"]."','".$_POST["dire"]."','".$_POST["tel"]."','".$_POST["cel"]."','".$_POST["email"]."','".$_POST["plan"]."','".$_POST["ban"]. "','".$_POST["cue"]."','".$_POST["numcont"]."','".$_POST["num_lib"]."','".$_POST["vendedor"]."','".$_POST["valcon"]."','".$_POST["numcuo"]."','" . $_POST["valcuo"]."','".$_POST["cupen"]."','".$_POST["cudesc"]."','".$_POST["salant"]."','".$_POST["salnue"]."','".$_POST["bene"]."','".$_POST["iniciopag"]."','".$_POST["fechainicio"]."','".$_POST["fechatermino"]."', '".$_POST["fechaul"]."', '".$_POST["fechapl"]."','".$_POST["entidadrecaudo"]."','$unidcodig','".$_POST["enti"]."','".$_POST["direc"]."','".$_POST["causaltermina"]."','" . $_POST["fechaanulacion"]."','".$_POST["causal_rechazo"]."','".$_POST["fecha_de_registro"]."' )");	 
				
				if (!$csql) { // esto es para que aparescan los errores
				die('Invalid query csql: ' . mysql_error()); 
			
							} 
		
		echo "<script>alert('Los datos fueron grabados correctamente');</script>"; 
		echo "<SCRIPT LANGUAGE='javascript'>window.location.href='consulta_ced_inconsistencias.php'</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>INGRESAR INCONSISTENCIAS</title>


<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: 12px;font-weight: 500; text-align: left;}
    .tdcen{background-color: #EEE; padding: 1px 1px;color: #00135F;font-size: 14px;font-weight: 500; text-align: center;}
    .tdder{background-color: #EEE; padding: 1px 1px;color: #00135F;font-size: 12px;font-weight: 500; 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: 25px; background-color: #C0292E;color: #FFFFFF;padding: 1px;border-radius:5px;}
    .botonnew:hover{background-color: #cbbd6a;color: #000;padding: 1px;border-radius:5px;}
</style>
<script Language="JavaScript">

function validarEntero(valor){ 
      //intento convertir a entero. 
     //si era un entero no le afecta, si no lo era lo intenta convertir 
     valor = parseInt(valor) 

      //Compruebo si es un valor numérico 
      if (isNaN(valor)) { 
            //entonces (no es numero) devuelvo el valor cadena vacia 
            return "" 
      }else{ 
            //En caso contrario (Si era un número) devuelvo el valor 
            return valor 
      } 
} 

function valida_envia(){
	//valido LOS APELLIDOS
	if (document.form1.ape.value.length==0){
		alert("Tiene que escribir sus apellidos")
		document.form1.ape.focus()
		return (false);
	}
	
		//valido el nombre
	if (document.form1.noms.value.length==0){
		alert("Tiene que escribir sus nombres")
		document.form1.noms.focus()
		return (false);
	}

		//valido la cedula
	if (document.form1.ced.value.length==0){
		alert("Tiene que escribir el numero de cedula")
		document.form1.ced.focus()
		return (false);
	}

	return (true);
}
</script>
</head>
<body >
<form action="" method="post" name="formulario" onSubmit="return Valida_Fecha(this)">

<header>
    <img src="../ELEMENTS/bannerInterasjudinet.png" alt="" width=" 700" height="70">
</header>
  
 <h3 class="titulo">CONSULTA INCONSISTENCIA</h3>
  <div align="center">
    <table width="950" border="2" cellpadding="1" cellspacing="1" >
  
      <tr>
        <td width="126" class="tdder">Apellidos y Nombres:</td>
          <td class="tdizq" colspan="3" ><input name="apenom" type="text" id="apenom" value="<?php echo $apes  ?>" size="60" maxlength="65"  readonly=""/></td>
       <td width="170" class="tdder">Cedula No:</td>
       <td width="186" class="tdizq">
            <input name="cedb" type="text" id="cedb" value="<?php echo $cedula ?>" size="20" maxlength="20" readonly /></td>
      </tr>
      <tr>
   
        <td class="tdder">Cogido Militar:</td><td width="90" class="tdizq">
            <input name="cod" type="text" id="cod" value="<?php echo $codi ?>" size="14" maxlength="20" readonly />
        </td>
      
        <td width="159" class="tdder">Grado:</td>
        <td width="160" class="tdizq">
            <input name="gra" type="text" id="gra" value="<?php echo $grad ?>" size="12" maxlength="10" readonly />
            <input name="dire" type="text" id="dire" value="<?php echo $direccion ?>" size="45" maxlength="45" readonly />
        </td>
        <td class="tdder">Fecha Nacimiento:</td>
     <td class="tdizq"><input name="fecna" type="text" id="fecna" value="<?php echo $fecna ?>" size="7" maxlength="7" readonly />
            <span class="Estilo11">DIA-MES</span></td>
      </tr>
      <tr>
     
        <td class="tdder">Ciudad :</td>
        <td class="tdizq">
            <input name="ciud" type="text" id="ciud" value="<?php echo $ciudad ?>" size="14" maxlength="20" readonly />
        </td>
        <td class="tdder">Direccion :</td>
        <td colspan="4" bgcolor="#EFEFEF"><div align="left"></div></td>
      </tr>
      <tr>
   
      
        <td class="tdder">Telefono :</td>
        <td class="tdizq">
            <input name="tel" type="text" id="tel" value="<?php echo $telefono ?>" size="10" maxlength="20" readonly />
        </td>
        <td class="tdder">Celular :</td>
        <td class="tdizq">
            <input name="cel" type="text" id="cel" value="<?php echo $celular ?>" size="20" maxlength="20" readonly />
        </td>
        <td class="tdder">E-mail :</td>
        <td colspan="2" bgcolor="#EFEFEF"><div align="left">
            <input name="email" type="text" id="email" value="<?php echo $email ?>" size="30" maxlength="30"  readonly=""/>
        </div></td>
      </tr>
      <tr>
  
        <td class="tdder">Plan :</td>
        <td class="tdizq">
        <input name="plan" type="text" id="plan" value="<?php echo $plan ?>" size="5" maxlength="5" readonly />
        </td>
        <td class="tdder">Cuenta No:</td>
        <td class="tdizq">
            <input name="cue" type="text" id="cue" value="<?php echo $cuenta ?>" size="20" maxlength="20" readonly/>
        </td>
        <td class="tdder">Banco :</td>
        <td colspan="2" bgcolor="#EFEFEF"><div align="left">
            <input name="ban" type="text" id="ban" value="<?php echo $banco ?>" size="20" maxlength="20" readonly/>
        </div></td>
      </tr> 
      <tr>
    
        <td class="tdder">Numero Contrato:</td>
        <td class="tdizq">
            <input name="numcont" type="text" id="numcont" value="<?php echo $numero_contrato ?>" size="12" maxlength="10" readonly/>
        </td> 
        <td class="tdder">Numero libranza:</td>
        <td bgcolor="#EFEFEF" ><div align="left">
            <input name="num_lib" type="text" id="num_lib" value="<?php echo $numero_libranza ?>" size="12" maxlength="12" readonly/>
        </div></td>
        
        
       <td class="tdder">Vendedor:</td>
        <td align="left" bgcolor="#EFEFEF" ><input name="vendedor" type="text" id="ven" value="<?php echo $vendedor ?>" size="30" maxlength="30" readonly/></td>
      </tr>
	  
	    <tr>
        <td class="tdder">Valor Contrato:</td>
        <td class="tdizq">
            <input name="valcon" type="text" id="valcon" value="<?php echo $valor_contrato ?>" size="12" maxlength="10" readonly/>
        </td>
        <td class="tdder">Numero de Cuotas:</td>
        <td bgcolor="#EFEFEF" ><div align="left">
            <input name="numcuo" type="text" id="numcuo" value="<?php echo $numero_cuotas ?>" size="12" maxlength="12" readonly/>
        </div></td>
		  <td class="tdder">Valor Cuota:</td>
         
         <td align="left" bgcolor="#EFEFEF">
            <input name="valcuo" type="text" id="valcuo" value="<?php echo $valor_cuota?>" size="12" maxlength="12" readonly/>
        </td>
         
		</TR>
	  
	  <tr>
        <td class="tdder">Cuotas Pendientes:</td>
        <td class="tdizq">
            <input name="cupen" type="text" id="cupen" value="<?php echo $cuotas_pendientes ?>" size="12" maxlength="10" readonly/>
        </td>
        <td class="tdder">Cuotas Descontadas:</td>
        <td bgcolor="#EFEFEF" ><div align="left">
            <input name="cudesc" type="text" id="cudesc" value="<?php echo $cuotas_descontadas ?>" size="12" maxlength="12" readonly/>
        </div></td>
		 <td class="tdder">Saldo Anterior:</td>
        <td bgcolor="#EFEFEF" ><div align="left">
            <input name="salant" type="text" id="salant" value="<?php echo $saldo_anterior ?>" size="12" maxlength="12" readonly/>
        </div></td>
	  </TR>
	  
	    <tr>
        <td class="tdder">Saldo Nuevo:</td>
        <td class="tdizq">
            <input name="salnue" type="text" id="salnue" value="<?php echo $saldo_nuevo ?>" size="12" maxlength="10" readonly/>
        </td>
        <td class="tdder">Numero de Beneficiarios:</td>
        <td class="tdizq">
            <input name="bene" type="text" id="bene" value="<?php echo $beneficiarios ?>" size="3" maxlength="3" readonly/>
        </td>
	 <td class="tdder">Fecha Inicio Pagos:</td>
        <td align="left" bgcolor="#EFEFEF">
            <input name="iniciopag" type="text" id="iniciopag" value="<?php echo $fecha_inicio_pagos?>" size="5" maxlength="5" readonly/>
		  </td>
		</TR>
		
      <tr>
        <td class="tdder">Fecha Inicio Contrato:</td>
        <td class="tdizq">
            <input name="fechainicio" type="text" id="fechainicio" value="<?php echo $fecha_inicio_contrato ?>" size="10" maxlength="14" readonly/>
        </td>
        <td class="tdder">Fecha Termino Contrato:</td>
        <td class="tdizq">
        <input name="fechatermino" type="text" id="fechatermino" value="<?php echo $fecha_termino_contrato?>" size="10" maxlength="14" readonly/>
        </td>     
	    <td class="tdder">Fecha ultimo pago:
          <input name="fechaul" type="text" id="fechaul" value="<?php echo $fecha_ultimo_pago ?>" size="10" maxlength="14" readonly/>
        </td>
			<td class="tdder">Fecha mes aplicado:
            <input name="fechapl" type="text" id="fechapl" value="<?php echo $fecha_mes_aplicado?> "size="10" maxlength="14" readonly/>
        </td>
       
      </tr>
      <tr>
       <td class="tdder">Entidad Recaudo:</td>
        <td class="tdizq" colspan="3"><input name="entidadrecaudo" type="text" id="entidadrecaudo" value="<?php echo $entidad_recaudo ?>" size="60" maxlength="65" readonly/></td>
       <td class="tdder">Unidad y Codigo Descuento:</td>
        <td class="tdizq">
        <input name="codides" type="text" id="codides" value="<?php echo $unidad_codigo ?>" size="10" maxlength="10" readonly/>
		</td>
      </tr>
      <tr>
        <td class="tdder" colspan="2">Entidad Laboral:</td>
        <td class="tdizq" colspan="2">
           <input name="enti" type="text" id="enti" value="<?php echo $entidad_laboral ?>" size="40" maxlength="40" readonly/>
	    </td>
        <td class="tdder">Director:</td>
        <td class="tdizq">
		<input name="direc" type="text" id="direc" value="<?php echo $director ?>" size="30" maxlength="30" readonly/>
	    </td>
      </tr>
	  
	  <tr>
     
        <td class="tdder" colspan="2" >Causal Terminacion:</td>
        <td class="tdizq" colspan="2">
		<input name="causaltermina" type="text" id="causaltermina" value="<?php echo $causal_terminacion ?>" size="40" maxlength="40" readonly/>
	    </td>
		 <td class="tdder">Fecha Anulaci&oacute;n:</td>
       <td class="tdizq">
		<input name="fechaanulacion" type="text" id="fechaanulacion" value="<?php echo $fecha_anulacion ?>" size="20" maxlength="20" readonly/>
	    </td>
      </tr>
	    
      <tr>
     
        <td class="tdder" colspan="2" >Causal Rechazo:</td>
        <td class="tdizq" colspan="2" >
		<input name="fechaanulacion" type="text" id="fechaanulacion" value="<?php echo $causal_rechazo ?>" size="40" maxlength="20" readonly/>
	    </td>
	   <td class="tdder">Fecha Registro:</td>
        <td class="tdizq">
        
	   <input name="fecha_de_registro" type="text" id="fecha_de_registro" value="<?php echo $fecha_registro?>" size="25" maxlength="25" readonly/></td>

      </tr> 
      
      
	
    </table>

		
  
	<p align="center">
      <input name="menu2" type="button" class="direcciona" id="menu2" onClick="window.location.href='consulta_inconsistencias_asistente2.php'" value="VOLVER A LA CONSULTA">
	</p>
  </div>
</form>
</body>
</html>