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/captura_morosos_coopservi_cifin.php
<?php
require_once("mainfile.php");
include ("config.php");
global $dbi;

 require_once("Conectarse.php");
	
$dia = date("d");
$mes = date("m"); 
$ano = date("Y");

$tipocontrat=$_GET["contrato"];


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


if (($tipocontrat == "COA01")  || ($tipocontrat == "COA01")  )
							   {
							    $clausula_permanen  = "12";
							   }   				
							   else
							   {
							    $clausula_permanen = "24";
							   }






//$misql = mysql_query("select codigo from Usuarios where Cedula = $cf", $dbi);
   $misql = mysql_query('SELECT codigo FROM Usuarios WHERE Cedula = "' ."$cf". '" ');
		  if (!$misql) {
				die('Invalid query 4 aqui: ' . mysql_error());
			}

if($misql){list($codigo_funcionario) = mysql_fetch_row($misql);}



$control= mysql_query('SELECT cedula,nombre,grado,numerocontrato,tipocontrato,tipo_afiliado,codigo_sucursal,direccion,telefono,celular,ciudad, email,entidad_laboral,fecha_nacimiento,valorcontrato,numerocuotas,valorcuota,fecha_inicio_contrato,fecha_termino_contrato,cuotasdescontadas FROM cartera_serviasjudinet  WHERE cedula = "' . $_GET["id"]  . '" and numerocontrato = "' . $_GET["contrato"]  . '"');
		  if (!$control) {
				die('Invalid query 4 aqui: ' . mysql_error());
			}	 
if ((mysql_num_rows($control)!=0)) 
{	 
     list($ced, $nom,$grado,$contrato, $tipo, $tipo_afiliado, $codsucursal, $direccion, $telefono, $celular, $ciudad, $email,$entidad_laboral,$fecha_nacimiento,$valor_contrato,$numerocuotas,$valor_cuota,$fecha_contrato,$fecha_ultimo_registro,$cuotasdescontadas) = mysql_fetch_row($control);
	    
	
        $nc2 = $contrato;
		$tc2 = $tipo;
		
		$contrato=$contrato.$tipo;
		
	// $suc = mysql_query("select nombre from sucursal where codigo =  '$codsuc'", $dbi);
$cont14 = mysql_query('SELECT nombre  FROM sucursal  WHERE codigo = "' . "$codsucursal". '"');
		  if (!$cont14) {
				die('Invalid query 2: ' . mysql_error());
			}
		list($nombre_ciudad) = mysql_fetch_row($cont14);   
	

	
	
if ($nombre_ciudad=="BARRANQUILLA") {
    $codigo_departamento="08";
	$codigo_ciudad=001;
	$nombre_departamento="ATLANTICO";
	
} elseif ($nombre_ciudad=="BUCARAMANGA") {
    $codigo_departamento="68";
	$codigo_ciudad=001;
	$nombre_departamento="SANTANDER";
}

elseif ($nombre_ciudad=="ARAUCA") {
    $codigo_departamento="81";
	$codigo_ciudad=001;
	$nombre_departamento="ARAUCA";
}
elseif ($nombre_ciudad=="BOGOTA" || $nombre_ciudad=="COMERCIALIZADORA" || $nombre_ciudad=="PROMOCION ESCUELAS") {
    $codigo_departamento="11";
	$codigo_ciudad=001;
	$nombre_departamento="BOGOTA";
}

elseif ($nombre_ciudad=="CALI") {
    $codigo_departamento="76";
	$codigo_ciudad=001;
	$nombre_departamento="VALLE DEL CAUCA";
}

elseif ($nombre_ciudad=="CARTAGENA") {
    $codigo_departamento="13";
	$codigo_ciudad=001;
	$nombre_departamento="BOLIVAR";
}

elseif ($nombre_ciudad=="CUCUTA") {
    $codigo_departamento="54";
	$codigo_ciudad=001;
	$nombre_departamento="N. DE SANTANDER";
}

elseif ($nombre_ciudad=="FLORENCIA") {
    $codigo_departamento="18";
	$codigo_ciudad=001;
	$nombre_departamento="CAQUETA";
}


elseif ($nombre_ciudad=="MANIZALES") {
    $codigo_departamento="17";
	$codigo_ciudad=001;
	$nombre_departamento="CALDAS";
}

elseif ($nombre_ciudad=="MEDELLIN") {
    $codigo_departamento="05";
	$codigo_ciudad=001;
	$nombre_departamento="ANTIOQUIA";
}


elseif ($nombre_ciudad=="MELGAR") {
    $codigo_departamento="73";
	$codigo_ciudad=449;
	$nombre_departamento="TOLIMA";
}

elseif ($nombre_ciudad=="MOCOA") {
    $codigo_departamento="86";
	$codigo_ciudad=001;
	$nombre_departamento="PUTUMAYO";
}

elseif ($nombre_ciudad=="MONTERIA") {
    $codigo_departamento="23";
	$codigo_ciudad=001;
	$nombre_departamento="CORDOBA";
}

elseif ($nombre_ciudad=="NEIVA") {
    $codigo_departamento="41";
	$codigo_ciudad=001;
	$nombre_departamento="HUILA";
}

elseif ($nombre_ciudad=="PASTO") {
    $codigo_departamento="52";
	$codigo_ciudad=001;
	$nombre_departamento="NARIÑO";
}

elseif ($nombre_ciudad=="PEREIRA") {
    $codigo_departamento="66";
	$codigo_ciudad=001;
	$nombre_departamento="RISARALDA";
}

elseif ($nombre_ciudad=="RIOACHA") {
    $codigo_departamento="44";
	$codigo_ciudad=001;
	$nombre_departamento="LA GUAJIRA";
}

elseif ($nombre_ciudad=="TUNJA") {
    $codigo_departamento="15";
	$codigo_ciudad=001;
	$nombre_departamento="BOYACA";
}

elseif ($nombre_ciudad=="VALLEDUPAR") {
    $codigo_departamento="20";
	$codigo_ciudad=001;
	$nombre_departamento="CESAR";
}


elseif ($nombre_ciudad=="VILLAVICENCIO") {
    $codigo_departamento="50";
	$codigo_ciudad=001;
	$nombre_departamento="META";
}

     $tres=substr($fecha_actuacion, 0, 2);
     $dos=substr($fecha_actuacion, 3, 2);
     $uno=substr($fecha_actuacion, 6, 4);
     $fecha_actuacion = ($uno."-".$dos."-".$tres);	
	 
	 
	 
$cont11 = mysql_query('SELECT nombre  FROM entidad_laboral WHERE codigo = "' . "$entidad_laboral". '"');
		  if (!$cont11) {
				die('Invalid query 2: ' . mysql_error());
			}
		list($entidad_laboral) = mysql_fetch_row($cont11); 	 
		
		
		
$cont12 = mysql_query('SELECT cuotas_mora,valor_mora,deuda_total  FROM cobranzas WHERE cedula = "'.$ced.'"');
		  if (!$cont12) {  
				die('Invalid query 2: ' . mysql_error());
			}
		list($cuotas_mora,$valor_mora,$valor_saldo) = mysql_fetch_row($cont12); 		
	 
//////DIVISION DE LA FECHA 

$separarfinicio = explode('-',$fecha_nacimiento);
 
 $separarfinicio[0];
 $separarfinicio[1];
	 
	$dianacimi=$separarfinicio[0];
	$mesnacimi=$separarfinicio[1];
	 
/////FINALIZA DIVISION FECHA	 
	  
}

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

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

	
	    $conttre = mysql_query('SELECT numero_identificacion FROM negativos_cifin WHERE numero_identificacion = "'. $_POST["cedulac"]. '" ');
		  if (!$conttre) {
				die('Invalid query 42: ' . mysql_error());
			}
	
  if ((mysql_num_rows($conttre)!=0))
	{
		       
		 echo "<script>alert('La Cedula Ya Se Encuentra Reportada ');</script>";
		
		}
	
	
	
	else {
	
	
$fecha1=$_POST["fecha_corte"];
	
	
$fechasnacim = $_POST[dia].'-'.$_POST[mes] ;

// SEPARACION DE LA FECHA DE CORTE

$separar = explode('-',$fecha1);

// RESULTADO

 $separar[0];
 $separar[1];
 $separar[2];
 
 $fechaguarda=$separar[0].$separar[1].$separar[2];


// SEPARACION DE LA FECHA DE INICIO

$fecha2=$_POST["fecha_inicio_contrato"];

$separar2 = explode('-',$fecha2);

// RESULTADO

 $separar2[0];
 $separar2[1];
 $separar2[2];
 
 $fechaguarda2=$separar2[0].$separar2[1].$separar2[2];


// SEPARACION DE LA FECHA TERMINACION

$fecha3=$_POST["fecha_termina"];

$separar3 = explode('-',$fecha3);

// RESULTADO

 $separar3[0];
 $separar3[1];
 $separar3[2];
 
 $fechaguarda3=$separar3[0].$separar3[1].$separar3[2];

////////////////////////////// CALCULO DE LOS VALORES EN MILES /////////////////////

$valormora=$_POST["valor_mora"]/1000;
$valormora = round ($valormora); 

$valorinicial=$_POST["valor_contrato"]/1000;

$valorinicial = round ($valorinicial);

$valorsaldo =$_POST["valor_saldo"]/1000;
$valorsaldo= round ($valorsaldo);


$valorcuota=$_POST["valor_cuota"]/1000;

$valorcuota= round ($valorcuota);

$valorcargfijo=$_POST["valor_cargo_fijo"]/1000;
$valorcargfijo= round ($valorcargfijo);




 $registro =  mysql_query("INSERT INTO negativos_cifin (tipo_identificacion,numero_identificacion,nombre_tercero,numero_obligacion,tipo_obligacion,codigo_sucursal, calidad,estado_obligacion,edad_mora,fecha_corte,fecha_inicio,fecha_terminacion,tipo_pago,periodicidad,cuotas_pagadas,cuotas_pactadas,cuotas_mora,valor_inicial,valor_mora,valor_saldo,valor_cuota,valor_cargo_fijo,linea_credito,clausula_permanencia,tipo_contrato,estado_contrato,vigencia_contrato,
obligacion_reestructurada,direccion_casa_tercero,telefono_casa,codigo_ciudad_casa_tercero,ciudad_casa_tercero,codigo_departamento_tercero,departamento_casa_tercero,nombre_empresa,fecha_de_registro,calificacion,estado) VALUES ('".$_POST["tipo_identifi"]."','".$_POST["cedulac"]."','".$_POST["nombrec"]."','".$_POST["numeroobligacion"] . "', '".$_GET["tipo"]."','".$_POST["codigo_sucur"]."','".$_POST["calidad"]."','".$_POST["estado_obliga"]."','".$_POST["edad_mora"]."','".$fechaguarda."','".$fechaguarda2."','".$fechaguarda3."','".$_POST["tipo_pago"]."','".$_POST["periodicidad"]."','".$_POST["cuotas_pagadas"]."','".$_POST["cuotas_pactadas"]."','".$_POST["cuotas_mora"]."','".$valorinicial."','".$valormora."','".$valorsaldo."','".$valorcuota."','".$valorcargfijo."','".$_POST["linea_credito"]."','".$_POST["clausula_permanencia"]."','".$_POST["tipo_contrato"]."','".$_POST["estado_contrato"]."','".$_POST["vigencia_contrato"]."','".$_POST["reestructurada"]."','".$_POST["direccionc"]."','".$_POST["telefonoc"]."','".$_POST["codigo_ciudad"]."','".$_POST["ciudad_tercero"]."','".$_POST["codigo_tercero"]."','".$_POST["departamento_casa_tercero"]."','".$_POST["nom_empresa"]."','".$_POST["fecha_de_registro"]."','".$_POST["calificacion"]."','1')");
				  
			
				  if (!$registro) {
				die('Invalid query update aprova: ' . mysql_error());
							}

 echo "<script>alert('La información se ha enviado correctamente ');
 
 	window.close();</script>";
 
 

/*	   $msql = mysql_query("UPDATE  cartera_serviasjudinet   set grado = '". $_POST[grado]."',direccion = '". $_POST[direccionc]."',telefono = '". $_POST[telefonoc]. "',celular = '". $_POST[celularc]."',ciudad='".$_POST[ciudadc]."',email = '".$_POST[emailc]."',fecha_nacimiento = '".$fechasnacim."' WHERE cedula = '" . $_GET["id"]  . "' "); 
		 
		  if (!$msql) {
				die('Invalid query  1 update: ' . mysql_error());
			}

	     $misql = mysql_query('SELECT cedula, nombre, direccion, telefono, celular, ciudad, email FROM cartera_serviasjudinet  WHERE cedula = "' . $_GET["id"]  . '" ');
		  if (!$misql) {
				die('Invalid query 4 aqui: ' . mysql_error());
			}

	  list($ced, $nom, $direccion, $telefono, $celular, $ciudad, $email) = mysql_fetch_row($misql);


					 $id = $_GET[id] ;
					 $numcon = $_GET[numcon] ;
	echo "<script>alert('Los datos fueron modificados correctamente');</script>"; 
	  
/* echo "<script>alert('La información se ha enviado correctamente ');</script>";*/
}	  
}

?>
<html>
<head>
<title>VENTANA PARA MODIFICAR DATOS DEL USUARIO</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">
<!--
.titulos {font: 16px; color: red; font-family:Arial; font-weight:bold}
.boton {  background-color: #FFCCCC; color:#FFFFFF; width:150px; border: 4px solid #0000CC; font-family:Arial; color:#990000;}
.texto {background-color: #CCFFCC; font-size: 13px; font-family: Arial; color:#0000CC; display: block;}
.fecha {background-color: #CCFFCC; font-size: 12px; font-family: Arial; color: #000099; width:10px display: block;}
.campo {background-color: #FFFFCC; border:1px solid #990000; font-family:Arial;  font-size:11px; height: inherit}
.lista { background-color:#99FFFF; font-family: Arial; font-size: 11px;	color: #990000;}
.label {background-color: #00CCFF ; font-size: 14px; font-family: Arial; color:#0000CC; display: block;}
.area {background-color: #CCFFCC; font-size: 13px; width:40px font-family: Arial; color:#0000CC; display: block;}
.variables {background-color: #CCFFCC; font-size: 12px; font-family: Arial; color: #003333 ; width:10px display: block; border: 2px solid #006633;}
.sel { background-color:#DDFFFF; width:400px; border: 1px solid #0099FF; font-family:Arial; font-style:italic; color:#990000 }
.sel2{ background-color:#DDFFFF; border: 1px solid #0099FF; font-family:Arial; font-style:italic; font-weight:bold; color:#990000 }
.seleccion { background-color: #CCFFCC; width:340px; border: 1px solid #0099FF; font-family:Arial; color:#990000;}
.boton2 {font-family: Verdana; font-size: 8 pt; color: #000080; background-color: #C0C0C0; border-style: solid; }
.letras {background-color: #99CCFF; font-size: 10px; font-family: Arial; color:#0000CC; display: block;}
.campo2 {background-color: #99CCCC; border:1px solid #0066FF; font-family:Arial; font-size:10px; height: inherit}
.sel3{ background-color:#DDFFFF; font-family:Arial; font-size:10px; color: #000066 }

.Estilo10 {font-size: 11px; font-family: Arial, Helvetica, sans-serif; }
.Estilo11 {
	font-size: 14px;
	color: #0066FF;
	font-weight: bold;
	font-family: "Times New Roman", Times, serif;
}
.Estilo12 {
	font-size: 14px;
	color: red;
	font-weight: bold;
	font-family: "Times New Roman", Times, serif;
}


body {
	background-image: url(ELEMENTOS/lila.jpg);
}
-->
</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()
{

  if (formulario.cuotas_mora.value == "")
  {
    alert('Favor Ingresar Las Cuotas En Mora');
    formulario.cuotas_mora.focus();
    return (false);
  }


  if (formulario.valor_mora.value == "")
  {
    alert("Ingrese El Valor De La Mora");
    formulario.valor_mora.focus();
    return (false);
  }

  if (formulario.edad_mora.value == "")
  {
    alert("Falta ingresar La Edad De Mora");
    formulario.edad_mora.focus();
    return (false);
  }   
      




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

<SCRIPT LANGUAGE='JavaScript'>
var default1 = "VENTANA PARA EL INGRESO DE ACTUACIONES"; // only shown once at page load
var text1 = "El primer encabezado muestra en detalle los datos del proceso seleccionado";
var text2 = "la segunda parte muestra el formulario para el ingreso de revistas";
var text3 = "No se le olvide tener en cuenta el número del folio que se entrega en el juzgado";
var changeRate = 3000; // 1000 = 1 second
var messageNumber = 0;

function changeStatus()
{
  if (messageNumber == 0) {
     window.status=default1;
     document.title=default1;
    }
  else if (messageNumber == 1) {
     window.status=text1;
    }
  else if (messageNumber == 2) {
     window.status=text2;
     }
  else if (messageNumber == 3) {
     window.status=text3;
     messageNumber = 0;
     }
  messageNumber++;
  setTimeout("changeStatus();",changeRate);
}
changeStatus(); // leave here to run right away
// -->


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>



</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="document.formulario.folio1.focus()">
<form name="formulario" action="" method="post" onSubmit="return validar(this)">
<input name="codigo_funcionario" type="hidden" value="<?php echo $codigo_funcionario; ?>">
<center> <img src="ELEMENTOS\CABEZOTE SERVIASJUDINET.jpg" WIDTH=82% > </center>
<br>
<table width="950" border="5" align="center" cellpadding="2" cellspacing="2">
 
  <tr bgcolor="#ECE9D8">
    <td height="3" bgcolor="#ECE9D8" class="titulos"><div align="center" class="Estilo10">
      <script languaje="JavaScript">Mostrar_Fecha()</script>
    </div></td>
  </tr>
  <tr bgcolor="#FFCC99">
    <td height="20" bgcolor="#FFFFFF"><fieldset>
   <p>
     <legend><span #ECE9D8>Datos Del Cliente:</span></legend>
   </p>
   <table width="950" border="10" align="center" cellpadding="2" cellspacing="4" bordercolor="#777777">
     <tr bgcolor="#FFFFFF">
     <td width="204" bgcolor="#FFFFFF"><span class="Estilo11">C&eacute;dula Cliente:</span></td>
     <td colspan="2" bgcolor="#FFFFFF"><input name="cedulac" type="text" class="Estilo10" id="cedulac" value="<?php echo $ced; ?>" size="15" maxlength="15" readonly>
       <td width="72" bgcolor="#FFFFFF"><span class="Estilo11">Nombre:</span></td>
       <td width="211" bgcolor="#FFFFFF"><input name="nombrec" type="text" class="Estilo10" id="nombrec" value="<?php echo $nom ?>" size="35" maxlength="35" readonly> </td>
        <td width="72" bgcolor="#FFFFFF"><span class="Estilo11">Numero Obligacion:</span></td>
       <td width="211" bgcolor="#FFFFFF"><input name="numeroobligacion" type="text" class="Estilo10" id="numeroobligacion" value="<?php echo $contrato ?>" size="35" maxlength="35" readonly>
       </tr>
       
     <tr bgcolor="#FFFFFF">
     <td width="204"><span class="Estilo11">Cuotas Pagadas:</span></td>
     <td colspan="2"><input name="cuotas_pagadas" type="text" class="Estilo10" id="cuotas_pagadas" value="<?php echo $cuotasdescontadas; ?>" size="15" maxlength="15" readonly>
    
     
       <td width="72"><span class="Estilo11">Cuotas Pactadas:</span></td>
       <td width="211"><input name="cuotas_pactadas" type="text" class="Estilo10" id="cuotas_pactadas" value="<?php echo $numerocuotas ?>" size="35" maxlength="35" readonly> </td>   
        <td width="72"><span class="Estilo12">Cuotas Mora:</span></td>
       <td width="211"><input name="cuotas_mora" type="text" class="Estilo10" id="cuotas_mora" value="<?php echo $cuotas_mora; ?>" size="35" maxlength="35">
       </tr>
       
       <tr bgcolor="#FFFFFF"> 
     <td width="204"><span class="Estilo11">Valor Contrato:</span></td>
     <td colspan="2"><input name="valor_contrato" type="text" class="Estilo10" id="valor_contrato" value="<?php echo $valor_contrato; ?>" size="15" maxlength="15" readonly>
       
       
       <td width="72"><span class="Estilo12">Valor Mora:</span></td>
       <td width="211"><input name="valor_mora" type="text" class="Estilo10" id="valor_mora" value="<?php echo $valor_mora ?>" size="35" maxlength="35"> </td>   
        
        <td width="72"><span class="Estilo11">Valor Cuota:</span></td>
       <td width="211"><input name="valor_cuota" type="text" class="Estilo10" id="valor_cuota" value="<?php echo $valor_cuota ?>" size="35" maxlength="35" readonly>
       </tr>  
       
       
     <tr bgcolor="#FFFFFF"> 
     <td width="204"><span class="Estilo11">Fecha Inicio Contrato:</span></td>
     <td colspan="2"><input name="fecha_inicio_contrato" type="text" class="Estilo10" id="fecha_inicio_contrato" value="<?php echo $fecha_contrato; ?>" size="15" maxlength="15" readonly>
    
       
       <td width="72"><span class="Estilo11">Codigo Sucursal:</span></td>
       <td width="211"><input name="codigo_sucur" type="text" class="Estilo10" id="codigo_sucur" value="1" size="35" maxlength="35"> </td>   
        
       <td width="72"><span class="Estilo11">Tipo Identificacion:</span></td>
       <td width="211"><input name="tipo_identifi" type="text" class="Estilo10" id="tipo_identifi" value="1" size="35" maxlength="35" readonly>
       </tr>   
       
       
       
            <tr bgcolor="#FFFFFF"> 
     <td width="204"><span class="Estilo11">Fecha Corte:</span></td>
     <td colspan="2"><input name="fecha_corte" type="text" class="Estilo10" id="fecha_corte" value="<?php echo $fecha_asignac ?>" size="15" maxlength="15">
     
     <td width="72"><span class="Estilo11">Fecha Terminacion:</span></td>
     <td width="211"><input name="fecha_termina" type="text" class="Estilo10" id="fecha_termina" value="<?php echo $fecha_ultimo_registro ?>" size="35" maxlength="35"> </td>   
     
     <td width="72"><span class="Estilo11">Tipo Pago:</span></td>
     <td width="211"><input name="tipo_pago" type="text" class="Estilo10" id="tipo_pago" value="1" size="35" maxlength="35" readonly>
     </tr>  
       
       
       
     
     
     <tr bgcolor="#FFFFFF"> 
     <td width="204"><span class="Estilo11">Periodicidad:</span></td>
     <td colspan="2"><input name="periodicidad" type="text" class="Estilo10" id="periodicidad" value="7" size="15" maxlength="15" readonly>
     </td>  
    
     <td width="72"><span class="Estilo11">Estado Obligacion:</span></td>
     <td width="211"><input name="estado_obliga" type="text" class="Estilo10" id="estado_obliga" value="6" size="35" maxlength="35" readonly> </td>   
       
       <td width="72"><span class="Estilo12">Edad Mora:</span></td>
       <td width="211"><input name="edad_mora" type="text" class="Estilo10" id="edad_mora" value="" size="35" maxlength="35" >
       </tr>  
     
     
     <tr bgcolor="#FFFFFF"> 
     <td width="204"><span class="Estilo11">Valor Saldo:</span></td>
     <td colspan="2"><input name="valor_saldo" type="text" class="Estilo10" id="valor_saldo" value="<?php echo $valor_saldo ?>" size="15" maxlength="15">
     </td>  
    
    <td width="72"><span class="Estilo11">Valor Cargo Fijo:</span></td>
    <td width="211"><input name="valor_cargo_fijo" type="text" class="Estilo10" id="valor_cargo_fijo" value="<?php echo $valor_cuota ?>" size="35" maxlength="35" readonly> </td>    
    
    <td width="72"><span class="Estilo11">Linea De Credito:</span></td>
    <td width="211"><input name="linea_credito" type="text" class="Estilo10" id="linea_credito" value="7" size="35" maxlength="35" readonly>
       </tr> 
     
     
     
      <tr bgcolor="#FFFFFF"> 
     <td width="204"><span class="Estilo11">Clausula de Permanencia:</span></td>
     <td colspan="2"><input name="clausula_permanencia" type="text" class="Estilo10" id="clausula_permanencia" value="<?php echo $clausula_permanen ?>" size="15" maxlength="15" readonly>
     </td>   
      <td width="72"><span class="Estilo11">Tipo Contrato:</span></td>
       <td width="211"><input name="tipo_contrato" type="text" class="Estilo10" id="tipo_contrato" value="4" size="35" maxlength="35" readonly> </td>    
       
       <td width="72"><span class="Estilo11">Estado Contrato:</span></td>
       <td width="211"><input name="estado_contrato" type="text" class="Estilo10" id="estado_contrato" value="1" size="35" maxlength="35" readonly>
       </tr> 
             
         
        <tr bgcolor="#FFFFFF"> 
     <td width="204"><span class="Estilo11">Termino O Vigencia Del Contrato:</span></td>
     <td colspan="2"><input name="vigencia_contrato" type="text" class="Estilo10" id="vigencia_contrato" value="2" size="15" maxlength="15" readonly>
     </td>  
      <td width="72"><span class="Estilo11">Obligacion Reestructurada:</span></td>
       <td width="211"><input name="reestructurada" type="text" class="Estilo10" id="reestructurada" value="2" size="35" maxlength="35" readonly> </td>   
       
       <td width="72"><span class="Estilo11">Codigo Ciudad Casa Del Tercero:</span></td>
       <td width="211"><input name="codigo_ciudad" type="text" class="Estilo10" id="codigo_ciudad" value="<?php echo $codigo_ciudad ?>" size="35" maxlength="35" readonly>
       </tr>   
          
       
   <tr bgcolor="#FFFFFF">
   <td><span class="Estilo11">Direccion:</span></td>
   <td colspan="4"><input name="direccionc" type="text" class="Estilo10" id="direccionc" value="<?php echo $direccion ?>" size="50" maxlength="50" >
   </td>
           
         
    <td><span class="Estilo11">Telefono:</span></td>
    <td colspan="4"><input name="telefonoc" type="text" class="Estilo10" id="telefonoc" value="<?php echo $telefono ?>" size="35" maxlength="35"></td>
     </tr>
     
     
     
   <tr bgcolor="#FFFFFF">
   <td><span class="Estilo11">Ciudad Casa Del Tercero:</span></td>
   <td colspan="4"><input name="ciudad_tercero" type="text" class="Estilo10" id="ciudad_tercero" value="<?php echo $nombre_ciudad?>" size="50" maxlength="50" > 
   </td>
         
         
    <td><span class="Estilo11">Codigo Departamento del Tercero:</span></td>
    <td colspan="4"><input name="codigo_tercero" type="text" class="Estilo10" id="codigo_tercero" value="<?php echo $codigo_departamento ?>" size="35" maxlength="35"></td>
     </tr> 
     
     
     
     <tr bgcolor="#FFFFFF">
       <td><span class="Estilo11">Nombre Empresa:</span></td>
       <td colspan="4"><input name="nom_empresa" type="text" class="Estilo10" id="nom_empresa" value="<?php echo $entidad_laboral ?>" size="35" maxlength="35"></td>

     <td><span class="Estilo11">Calidad:</span></td>
     <td colspan="4"><input name="calidad" type="text" class="Estilo10" id="calidad" value="P" size="25" maxlength="25"></td>
     </tr>   
     <tr bgcolor="#FFFFFF"> 
     <td><span class="Estilo11">Departamento Casa Del Tercero:</span></td>
     <td colspan="4"><input name="departamento_casa_tercero" type="text" class="Estilo10" id="departamento_casa_tercero" value="<?php echo $nombre_departamento ?>" size="50" maxlength="50"></td>
      <td><span class="Estilo11">Fecha De Registro:</span></td>
     <td colspan="4"><input name="fecha_de_registro" type="text" class="Estilo10" id="fecha_de_registro" value="<?php echo $fecha_asignac ?>" size="25" maxlength="25" readonly/></td>
      
     </tr>
     
      <tr>
       <td><span class="Estilo12">Calificacion Al Afiliado:</span></td>
     <td colspan="4"><input name="calificacion" type="text" class="Estilo10" id="calificacion" value="" size="4" maxlength="4"></td>
     </tr>   
     
       
    </table> 
   </fieldset></td> 
  </tr>  
</table>

<p align="center" >
 <input name="guardar" type="submit"  class="Estilo50"  value ="Grabar" >
</p>

</form>
</body>
</html>