File: /home/asjudine/public_html/cartera_ced_info_servi.php
<?php
require_once("mainfile.php");
include ("config.php");
global $dbi;
$espacio = ' ';
$linea = '-';
function Conectarse()
{
if (!($link=@mysql_connect("localhost","asjudine","as2006")))
{
echo "Error conectando con el servidor.";
exit();
}
$dbname = "asjudinet";
if (!@mysql_select_db($dbname,$link))
{
echo "Error seleccionando la base de datos.";
exit();
}
return $link;
}
Conectarse();
if(isset($_POST["consultar"]))
{
$control = mysql_query('SELECT fecha, nombres, cedula, codigo, grado, direccion_envio, ciudad_envio, telefono , celular, email, monto_solicitado, salario, numero_cuotas, valor_mensual , cuenta_ahorros, banco_cuenta, empresa, proveedor FROM creditos WHERE cedula = "' . $_POST[ced] . '" ');
if (!$control) {
die('Invalid query 1: ' . mysql_error());
}
$num=mysql_num_rows($control);
list($fecha, $apes, $cedula, $codi, $grad, $dire, $ciue, $tele, $celul, $em, $ms, $sal, $nc, $vm, $cah, $bcu, $el, $pro) = mysql_fetch_row($control);
if ($ced == $cedula)
{
$conp = mysql_query('SELECT cuotas_pend, cuotas_desc, fecha_udesc FROM estado_contable WHERE codigo = "' . "$cedula". '" ');
if (!$conp) {
die('Invalid query 1pp: ' . mysql_error());
}
list($cuopen, $cuodes, $fechdesc) = mysql_fetch_row($conp);
}
$control = mysql_query('SELECT cedula, codigo_militar, nombre, grado, numerocontrato, tipocontrato , numero_libranza , tipo_afiliado, codigo_sucursal, direccion , telefono, celular, ciudad , email, cuenta, banco, entidad_laboral, unidad_descuento, codigo_descuento, entidad_recaudo, fecha_nacimiento, fecha_afiliacion, valorcontrato, numerocuotas, valorcuota, fecha_inicio_contrato, fecha_termino_contrato, fecha_ultimo_registro, inicios_pagos, terminacion_pagos, saldoanteior, cuotaspendientes, cuotasdescontadas, saldonuevo, vendedor, director, renovacion, causal_terminacion FROM cartera_serviasjudinet WHERE cedula = "' . $_POST[ced] . '" ');
if (!$control) {
die('Invalid query 1: ' . mysql_error());
}
$num=mysql_num_rows($control);
list($cedula, $codi, $apes, $grad, $numcont, $plan, $num_lib, $titular, $codigo_sucursal, $dire, $tele, $celul, $ciud, $email, $cue, $ban, $enti, $unides, $codides, $entre, $fecna, $fechafil, $valcon, $numcuo, $valcuo, $fechainicio, $fechatermino, $fechaul, $inipag, $finpag, $salant, $cupen, $cudesc, $salnue, $ven, $director) = mysql_fetch_row($control);
if ($ced != $cedula)
{
echo "entro";
$control = mysql_query('SELECT cedula, nombre, grado, numerocontrato, tipocontrato , codigo_sucursal, direccion , telefono, celular, ciudad , email, diaafiliacion, mesafiliacion, anoafiliacion, valorcontrato, numerocuotas, valorcuota, mescomienzopago, anocomienzopago, saldoanteior, cuotaspendientes, cuotasdescontadas, saldonuevo, mesultimopago, anoultimopago FROM asjudinet_cartera WHERE cedula = "' . $_POST[ced] . '" ');
if (!$control) {
die('Invalid query 1: ' . mysql_error());
}
$num=mysql_num_rows($control);
list($cedula, $apes, $grad, $numcont, $plan, $codigo_sucursal, $dire, $tele, $celul, $ciud, $email, $dis, $mes, $ano, $valcon, $numcuo, $valcuo, $mescon, $anocon, $salant, $cupen, $cudesc, $salnue, $mesul, $anoul) = mysql_fetch_row($control);
$fechas = $dis.'-'.$mes.'-'.$ano ;
$inipag = $mescon.'-'.$anocon ;
$finpag = $mesul.'-'.$anoul ;
}
$control = mysql_query('SELECT nombre FROM sucursal WHERE codigo = "' . "$codigo_sucursal". '" ');
if (!$control) {
die('Invalid query 1: ' . mysql_error());
}
list($codigosu) = mysql_fetch_row($control);
$cont10 = mysql_query('SELECT nombre FROM entidad_laboral WHERE codigo = "' . "$enti". '"');
if (!$cont10) {
die('Invalid query 2: ' . mysql_error());
}
list($enti) = mysql_fetch_row($cont10);
$cont10 = mysql_query('SELECT nombre FROM director_ventas WHERE codigo = "' . "$director". '"');
if (!$cont10) {
die('Invalid query 3: ' . mysql_error());
}
list($director) = mysql_fetch_row($cont10);
$cont10 = mysql_query('SELECT concepto FROM descuentos WHERE codigo = "' . "$codides". '" and unidad = "' . "$unides". '"');
if (!$cont10) {
die('Invalid query 11: ' . mysql_error());
}
list($entre) = mysql_fetch_row($cont10);
$cont10 = mysql_query('SELECT vendedor FROM vendedores WHERE codigo = "' . "$ven". '" ');
if (!$cont10) {
die('Invalid query 12: ' . mysql_error());
}
list($ven) = mysql_fetch_row($cont10);
$cont10 = mysql_query('SELECT codigo_contrato FROM planes_contratos WHERE codigo = "' . "$plan". '" ');
if (!$cont10) {
die('Invalid query 42: ' . mysql_error());
}
list($plan) = mysql_fetch_row($cont10);
}
if(isset($_POST["guardar"]))
{
$dis = date("d");
$mes = date("m");
$anos = date("Y");
$mt = floor(($mes_inicio + $numcuo)/12);
$submt = (($mes_inicio + $numcuo)%12)-1;
$at = $mt + $ano_inicio;
if($submt==0)
{
$submt = 12;
$at = $at-1;
}
$control3 = mysql_query('SELECT codigo, unidad FROM descuentos WHERE id = "' . "$unidt2". '" ');
if (!$control3) {
die('Invalid query: ' . mysql_error());
}
list($codcd, $unidt) = mysql_fetch_row($control3);
$resu9 = mysql_query('SELECT cedula, nombre FROM asjudinet_cartera WHERE cedula = "' . $HTTP_GET_VARS["ced2"] . '" ');
if (!$resu9) {
die('Invalid query YA CASI: ' . mysql_error());
}
$numt=mysql_num_rows($resu9);
list($cedud, $nombr) = mysql_fetch_row($resu9);
/*if ($numt == '0' )
{*/
$mssql3 = mysql_query("UPDATE asjudinet_cartera set nombre = '" . $_POST[apenom] . "', numerocontrato = '" . $_POST[numcont] . "', tipocontrato = '" . $_POST[plan] . "', codigo_sucursal = '" .$_POST[codigo_sucursal]. "', direccion= '" . $_POST[dire] . "', telefono = '" . $_POST[tel] . "', celular = '" . $_POST[cel] . "', email = '" . $_POST[email] . "', diaafiliacion = '" .$dis. "', mesafiliacion = '" .$mes. "', anoafiliacion = '" .$anos. "', valorcontrato = '" . $_POST[valcon] . "' , numerocuotas = '" . $_POST[numcuo] . "' , valorcuota = '" . $_POST[valcuo] . "', mescomienzopago = '" . $_POST[mes_inicio] . "', anocomienzopago = '" . $_POST[ano_inicio] . "', saldoanteior = '" . $_POST[valcon] . "', cuotaspendientes = '" . $_POST[numcuo] . "', cuotasdescontadas = '0', saldonuevo = '" . $_POST[valcon] . "', mesultimopago = '" . $submt. "', anoultimopago = '" .$at. "' WHERE cedula = '" . $_POST[cedb] . "'");
if (!$mssql3) {
die('Invalid query asjudinet_cartera MODIFICAR: ' . mysql_error());
}
/*}
else
{
$mssql4 = mysql_query("INSERT INTO asjudinet_cartera (cedula, nombre, numerocontrato, tipocontrato, codigo_sucursal, direccion, telefono, celular, ciudad, email, diaafiliacion, mesafiliacion, anoafiliacion, valorcontrato, numerocuotas, valorcuota, mescomienzopago, anocomienzopago , saldoanteior, cuotaspendientes, cuotasdescontadas, saldonuevo, mesultimopago, anoultimopago) VALUES ('" . $_POST["cedb"] . "','" . $_POST["apenom"] . "', '" . $_POST["numcont"] . "', '" . $_POST["plan"] . "' , '" . $_POST["codigo_sucursal"] . "' , '" . $_POST["dire"] . "', '" . $_POST["tel"] . "', '" . $_POST["cel"] . "', '" . $_POST["ciud"] . "', '" . $_POST["email"] . "', '" ."$dis". "', '" ."$mes". "', '" ."$anos". "', '" . $_POST["valcon"] . "', '" . $_POST["numcuo"] . "', '" . $_POST["valcuo"] . "', '" . $_POST["mes_inicio"] . "', '" . $_POST["ano_inicio"] . "', '" . $_POST["valcon"] . "', '" . $_POST["numcuo"] . "', '0', '" . $_POST["valcon"] . "', '" . "$submt". "', '" ."$at". "')");
if (!$mssql4) {
die('Invalid query asjudinet_cartera insertar: ' . mysql_error());
}
}*/
$inipag = $_POST[ano_inicio] .'-'.$_POST[mes_inicio];
$finpag = $at.'-'.$submt;
/* if ($rest != '0' )
{*/
$mssql3 = mysql_query("UPDATE cartera_serviasjudinet set codigo_militar = '" . $_POST[cod] . "', nombre = '" . $_POST[apenom] . "', grado = '" . $_POST[gra] . "', numerocontrato = '" . $_POST[numcon] . "', tipocontrato = '" . $_POST[tipc] . "', numero_libranza = '" . $_POST[num_lib] . "', tipo_afiliado = 'TITULAR', codigo_sucursal = '" .$_POST[codigo_sucursal]. "', direccion = '" . $_POST[dire] . "', telefono = '" . $_POST[tel] . "', celular = '" . $_POST[cel] . "', ciudad = '" . $_POST[ciud] . "', email = '" . $_POST[email] . "', cuenta = '" . $_POST[cue] . "', banco = '" . $_POST[ban] . "', entidad_laboral = '" . $_POST[enti] . "', unidad_descuento = '" .$unidt. "', codigo_descuento = '" .$codcd. "', entidad_recaudo = '" . $_POST[entrec] . "', fecha_nacimiento = '" . $_POST[fecna] . "', fecha_afiliacion = '" . $_POST[fechas] . "', valorcontrato = '" . $_POST[valcon] . "', numerocuotas = '" . $_POST[numcuo] . "' , valorcuota = '" . $_POST[valcuo] . "', fecha_inicio_contrato = '" . $_POST[fechainicio] . "', fecha_termino_contrato = '" . $_POST[fechatermino] . "', inicios_pagos = '" .$inipag. "', terminacion_pagos = '" .$finpag. "', saldoanteior = '" . $_POST[valcon] . "', cuotaspendientes = '" . $_POST[numcuo] . "', cuotasdescontadas = '0', saldonuevo = '" . $_POST[valcon] . "', vendedor = '" . $_POST[ase] . "', director = '" . $_POST[cod_dir] . "', estado= '1' WHERE cedula = '" . $_POST[cedb] . "'");
if (!$mssql3) {
die('Invalid query cartera_serviasjudinet MODIFICAR: ' . mysql_error());
}
/*}
else
{
$mssql4 = mysql_query("INSERT INTO cartera_serviasjudinet (cedula, codigo_militar, nombre, grado , numerocontrato, tipocontrato, numero_libranza, tipo_afiliado, codigo_sucursal, direccion, telefono, celular, ciudad, email, cuenta, banco, entidad_laboral, unidad_descuento, codigo_descuento, entidad_recaudo, fecha_nacimiento, fecha_afiliacion, valorcontrato, numerocuotas, valorcuota, fecha_inicio_contrato, fecha_termino_contrato, fecha_ultimo_registro, inicios_pagos, terminacion_pagos, saldoanteior, cuotaspendientes, cuotasdescontadas, saldonuevo, vendedor, director, renovacion, causal_terminacion, estado) VALUES ('" . $_POST["cedb"] . "', '" . $_POST["cod"] . "', '" . $_POST["apenom"] . "', '" . $_POST["gra"] . "', '" . $_POST["numcont"] . "', '" . $_POST["plan"] . "', '" . $_POST["num_lib"] . "', 'TITULAR', '" . $_POST["codigo_sucursal"] . "' , '" . $_POST["dire"] . "', '" . $_POST["tel"] . "', '" . $_POST["cel"] . "', '" . $_POST["ciud"] . "', '" . $_POST["email"] . "', '" .$_POST["cue"] . "', '" .$_POST["ban"] . "', '" . $_POST["enti"] . "', '" ."$unidt". "', '" ."$codcd". "', '" . $_POST["entrec"] . "', '" . $_POST["fecna"] . "', '" . $_POST["fechas"] . "', '" . $_POST["valcon"] . "', '" . $_POST["numcuo"] . "', '" . $_POST["valcuo"] . "', '" . $_POST["fechainicio"] . "', '" . $_POST["fechatermino"] . "', '', '" ."$inipag". "', '" ."$finpag". "', '" . $_POST["valcon"] . "', '" . $_POST["numcuo"] . "', '0', '" . $_POST["valcon"] . "', '" . $_POST["ase"] . "', '" . $_POST["cod_dir"] . "', '', '', '1')");
if (!$mssql4) {
die('Invalid query cartera_serviasjudinet insertar: ' . mysql_error());
}
} */
echo "<script>alert('La informacion fue modificada correctamente');</script>";
}
$sql = mysql_query('SELECT * FROM entidad_laboral order by nombre ');
if (!$sql) {
die('Invalid query: ' . mysql_error());
}
$row_sql = mysql_fetch_assoc($sql);
$totalRows_sql = mysql_num_rows($sql);
$sql2 = mysql_query('SELECT * FROM descuentos order by codigo ');
if (!$sql2) {
die('Invalid query: ' . mysql_error());
}
$row_sql2 = mysql_fetch_assoc($sql2);
$totalRows_sql2 = mysql_num_rows($sql2);
$sql3 = mysql_query('SELECT * FROM descuentos order by codigo ');
if (!$sql3) {
die('Invalid query: ' . mysql_error());
}
$row_sql3 = mysql_fetch_assoc($sql3);
$totalRows_sql3 = mysql_num_rows($sql3);
$sql4 = mysql_query('SELECT * FROM vendedores WHERE estado = "1" order by vendedor');
if (!$sql4) {
die('Invalid query: ' . mysql_error());
}
$row_sql4 = mysql_fetch_assoc($sql4);
$totalRows_sql4 = mysql_num_rows($sql4);
$sql5 = mysql_query('SELECT * FROM sucursal order by nombre ');
if (!$sql5) {
die('Invalid query: ' . mysql_error());
}
$row_sql5 = mysql_fetch_assoc($sql5);
$totalRows_sql5 = mysql_num_rows($sql5);
$sql6 = mysql_query('SELECT * FROM descuentos order by codigo ');
if (!$sql6) {
die('Invalid query: ' . mysql_error());
}
$row_sql6 = mysql_fetch_assoc($sql6);
$totalRows_sql6 = mysql_num_rows($sql6);
$sql7 = mysql_query('SELECT * FROM director_ventas WHERE estado = "1" order by nombre');
if (!$sql7) {
die('Invalid query: ' . mysql_error());
}
$row_sql7 = mysql_fetch_assoc($sql7);
$totalRows_sql7 = mysql_num_rows($sql7);
$sql8 = mysql_query('SELECT * FROM planes_contratos WHERE codigo != "7" and codigo != "8" order by codigo ');
if (!$sql8) {
die('Invalid query: ' . mysql_error());
}
$row_sql8 = mysql_fetch_assoc($sql8);
$totalRows_sql8 = mysql_num_rows($sql8);
?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>INGRESAR SOLICITUD CARTERA</title>
<style type="text/css">
<!--
.est_cont5 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
font-style: normal;
font-weight: normal;
background-color: #EDFAF4;
margin: 2px;
padding: 2px;
height: auto;
width: auto;
border: thin groove #E9AAF0;
color: #C72350;
}
.color_fondo_sc {
background-color: #DCE0E4;
}
.Estilo1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 16px;
font-style: normal;
font-weight: bold;
background-color: #D6ECFE;
margin: 2px;
padding: 2px;
height: auto;
width: auto;
border: thin groove #E9AAF0;
color: #C72350;
}
.Estilo2 {
font-size: 14px;
font-weight: bold;
}
.est_cont2 {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
font-weight: normal;
color: #2B39EC;
background-color: #F0F5CF;
height: 18px;
width: auto;
border: thin solid #FABF85;
}
.est_cont6 {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 11px;
font-style: normal;
font-weight: normal;
color: #006262;
background-color: #EDFED3;
margin: 1px;
padding: 1px;
height: auto;
width: auto;
border: thin solid #D9B6F8;
}
.Estilo3 {
color: #C72350;
font-weight: bold;
}
.sol_cre1 {
font-family: "Times New Roman", Times, serif;
font-size: 12px;
font-style: normal;
font-weight: normal;
color: #0B3495;
background-color: #E6FAFF;
margin: 1px;
padding: 1px;
height: 18px;
width: auto;
border: thin outset #56AD95;
}
.col_cre2 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
font-weight: bold;
color: #F92F0B;
background-color: #B3D9F0;
height: auto;
width: auto;
border: medium groove #FC9227;
}
.Estilo50 {color: #CC3333;
font-family: "Arial Narrow";
font-weight: bold;
}
.Estilo52 {color: #FF6633;
font-size: 16px;
}
.Estilo53 {color: #2492FF;
font-weight: bold;
}
.recaudo {font-family: "Courier New", Courier, monospace;
font-size: 12px;
font-style: normal;
font-weight: bold;
font-variant: normal;
color: #000000;
background-color: #B6CBDC;
margin: 4px;
padding: 8px;
width: auto;
border: medium outset #339966;
}
.Estilo54 {
color: #7DD096;
font-weight: bold;
}
.campo1 {background-color: #B7FFFF;
border: thin dashed #B6B6B6;
}
.campo1 {font-family: "Courier New", Courier, monospace;
font-size: 16px;
font-style: normal;
font-weight: bold;
background-color: #E1EFFD;
border: thin doble #009999;
}
.campo1 { font-family: "Courier New", Courier, monospace;
font-size: 11px;
color: #5151FF;
background-color: #C4E4FD;
border: thin solid #009999;
height: 18px;
width: auto;
}
.datos1 {font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 16px;
font-style: normal;
text-decoration: blink;
background-color: #CCFFCC;
margin: 5px;
padding: 7px;
height: auto;
width: auto;
border: thin solid #0099FF;
}
.datos1 {font-family: Georgia, "Times New Roman", Times, serif;
font-size: 16px;
background-color: #FDE0C1;
margin: 2px;
padding: 3px;
border: medium doble #DBAED7;
}
.datos1 { font-family: Georgia, "Times New Roman", Times, serif;
font-size: 11px;
font-weight: normal;
background-color: #B8F5E8;
margin: 4px;
padding: 5px;
border: thin outset #009999;
}
.datos2 { font-family: "Courier New", Courier, monospace;
font-size: 10px;
font-style: normal;
font-weight: normal;
color: #0033FF;
background-color: #FFE2C6;
margin: 2px;
padding: 3px;
border: medium doble #EEBFEB;
}
.datos3 { font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
font-style: normal;
font-weight: normal;
color: #FF3300;
background-color: #A6ECD7;
margin: 4px;
padding: 4px;
border: medium groove #CCCCFF;
}
.go { font-family: "Times New Roman", Times, serif;
font-size: 9px;
font-style: normal;
color: #FF6633;
background-color: #FBDCBD;
padding: 1px;
height: auto;
width: auto;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
}
.Estilo64 {
font-size: 8px;
font-weight: bold;
color: #000000;
}
.Estilo65 {color: #C72350}
.Estilo66 {
font-size: 10px;
font-weight: bold;
}
.label {background-color: #FFFFCC; font-size: 16px; font-family: Arial; color:#0000CC; display: block;}
-->
</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" onsubmit="return valida_envia()" enctype="multipart/form-data" name="form1" class="color_fondo_sc" id="form1">
<div class="Estilo1" align="center">SOLICITUD CARTERA JURIDICA</div>
<div align="center"><strong><span class="Estilo12"><br />
</span></strong>
<table width="330" border="3" cellpadding="3" cellspacing="3" class="recaudo">
<tr>
<th colspan="2" scope="col"><label>Digite el Numero de Cedula </label></th>
</tr>
<tr>
<td width="162"><div align="center"><span class="Estilo2">CEDULA : </span></div></td>
<td width="135"><div align="center">
<input name="ced" type="text" id="ced" size="20" maxlength="20" />
</div></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input name="consultar" type="submit" class="Estilo3" id="consultar" value="Consultar" />
</div></td>
</tr>
</table>
<strong><br />
</strong>
<table width="567" border="3" cellpadding="3" cellspacing="3" class="datos1">
<caption>
<span class="Estilo3"><br />
<span class="Estilo52">DATOS CREDITO </span></span> <br />
</caption>
<tr>
<th scope="col"><div align="right"><span class="Estilo4">Proveedor : </span></div></th>
<th scope="col">
<div align="left">
<input name="proveedorcre" type="text" class="campo1" id="proveedorcre" value="<?php echo $pro ?>" size="20" maxlength="20" readonly=""/>
</div></th>
<th scope="col"><div align="right"><span class="Estilo4">Fecha Credito : </span></div></th>
<th scope="col"><div align="left">
<input name="fechcre" type="text" class="campo1" id="fechcre" value="<?php echo $fecha ?>" size="10" maxlength="10" readonly="" />
</div></th>
</tr>
<tr>
<th width="125" height="32" scope="col"><div align="right"><span class="Estilo4">Monto solicitado : </span></div></th>
<th width="144" scope="col"><div align="left">
<input name="mon_sol" type="text" class="campo1" id="mon_sol" value="<?php echo $ms ?>" size="15" maxlength="12" readonly="" />
<label> </label>
</div></th>
<th width="138" scope="col"><div align="right"><span class="Estilo4">Salario :</span></div></th>
<th width="109" scope="col"><div align="left">
<input name="sala" type="text" class="campo1" id="sala" value="<?php echo $sal ?>" size="15" maxlength="12" readonly="" />
</div></th>
</tr>
<tr>
<td><div align="right"><span class="Estilo4"> <strong> Numero Cuotas : </strong> </span></div></td>
<td><div align="left">
<input name="numerocuo" type="text" class="campo1" id="numerocuo" value="<?php echo $nc ?>" size="5" maxlength="2" readonly="" />
</div></td>
<td><div align="right"><span class="Estilo4"> <strong> Valor Mensual </strong> :</span></div></td>
<td><div align="left">
<input name="valmen" type="text" class="campo1" id="valmen" value="<?php echo $vm ?>" size="15" maxlength="12" readonly="" />
</div></td>
</tr>
<tr>
<td><div align="right"><span class="Estilo4"> <strong> Numero Cuenta </strong> :</span></div></td>
<td><div align="left">
<input name="numcue" type="text" class="campo1" id="numcue" value="<?php echo $cah ?>" size="20" maxlength="20" readonly="" />
</div></td>
<td><div align="right"><span class="Estilo4"> <strong> Banco Cuenta </strong> :</span></div></td>
<td><div align="left">
<input name="bancue" type="text" class="campo1" id="bancue" value="<?php echo $bcu ?>" size="15" maxlength="15" readonly="" />
</div></td>
</tr>
<tr>
<td><div align="right"><span class="Estilo4"> <strong> Cuotas Pendientes </strong>:</span></div></td>
<td><div align="left">
<input name="cuopen" type="text" class="campo1" id="cuopen" value="<?php echo $cuopen ?>" size="15" maxlength="15" readonly="" />
</div></td>
<td><div align="right"><span class="Estilo4"> <strong> Cuotas Descontadas : </strong> </span></div></td>
<td><div align="left">
<input name="cuodes" type="text" class="campo1" id="cuodes" value="<?php echo $cuodes ?>" size="15" maxlength="15" readonly="" />
</div></td>
</tr>
</table>
<table width="702" border="2" cellpadding="1" cellspacing="1" class="sol_cre1">
<caption>
<div align="center"><br />
<span class="Estilo2">CONSULTA DATOS CARTERA</span><br />
</div>
</caption>
<tr>
<th width="62" scope="col"> </th>
<th width="94" scope="col"><div align="right">
<div align="right"><strong>Fecha Afiliacion :</strong></div>
</div></th>
<th width="91" scope="col"><div align="left">
<input name="fechas" type="text" class="Estilo66" id="fechas" value="<?php echo $fechafil ?>" size="10" maxlength="10" />
</div></th>
<th><div align="right"><strong>Sucursal :</strong></div></th>
<th colspan="3" scope="col"><div align="left">
<input name="codigosu" type="text" class="Estilo66" id="codigosu" value="<?php echo $codigosu ?>" size="60" maxlength="65" />
</div></th>
</tr>
<tr>
<td align="right"><strong>Apellidos y Nombres:</strong></td>
<td colspan="3" align="left"><input name="apenom" type="text" class="Estilo66" id="apenom" value="<?php echo $apes ?>" size="60" maxlength="65" /> </td>
<td width="117" height="21"><div align="right"><strong>Cedula No:</strong></div></td>
<td width="187" ><div align="left">
<input name="cedb" type="text" class="Estilo66" id="cedb" value="<?php echo $cedula ?>" size="20" maxlength="20" />
</div></td>
</tr>
<tr>
<td><div align="right"><strong>Cogido Militar :</strong></div></td>
<td ><div align="left">
<input name="cod" type="text" class="Estilo66" id="cod" value="<?php echo $codi ?>" size="14" maxlength="20" />
</div></td>
<td><div align="right"><strong>Grado :</strong></div></td>
<td width="116"><div align="left">
<input name="gra" type="text" class="Estilo66" id="gra" value="<?php echo $grad ?>" size="12" maxlength="10" />
</div></td>
<td align="right"><strong>Fecha Nacimiento :</strong></td>
<td align="left"><input name="fecna" type="text" class="Estilo66" id="fecna" value="<?php echo $fecna ?>" size="5" maxlength="5" />
<span class="Estilo64">DIA-MES</span> </td>
</tr>
<tr>
<td><div align="right"><strong>Cuidad :</strong></div></td>
<td><div align="left">
<input name="ciud" type="text" class="Estilo66" id="ciud" value="<?php echo $ciud ?>" size="14" maxlength="20" />
</div></td>
<td><div align="right"><strong>Direccion :</strong></div></td>
<td colspan="2"><div align="left">
<input name="dire" type="text" class="Estilo66" id="dire" value="<?php echo $dire ?>" size="45" maxlength="45" />
</div></td>
</tr>
<tr>
<td><div align="right"><strong>Telefono :</strong></div></td>
<td><div align="left">
<input name="tel" type="text" class="Estilo66" id="tel" value="<?php echo $tele ?>" size="10" maxlength="20" />
</div></td>
<td><div align="right"><strong>Celular :</strong></div></td>
<td><div align="left">
<input name="cel" type="text" class="Estilo66" id="cel" value="<?php echo $celul ?>" size="20" maxlength="20" />
</div></td>
<td><div align="right"><strong>E-mail :</strong></div></td>
<td colspan="2"><div align="left">
<input name="email" type="text" class="Estilo66" id="email" value="<?php echo $email ?>" size="35" maxlength="35" />
</div></td>
</tr>
<tr>
<td><div align="right"><strong>Plan :</strong></div></td>
<td><div align="left">
<input name="plan" type="text" class="Estilo66" id="plan" value="<?php echo $plan ?>" size="5" maxlength="5" />
</div></td>
<td><div align="right"><strong>Cuenta No :</strong></div></td>
<td><div align="left">
<input name="cue" type="text" class="Estilo66" id="cue" value="<?php echo $cue ?>" size="20" maxlength="20" />
</div></td>
<td><div align="right"><strong>Banco :</strong></div></td>
<td colspan="2"><div align="left">
<input name="ban" type="text" class="Estilo66" id="ban" value="<?php echo $ban ?>" size="20" maxlength="20" />
</div></td>
</tr>
<tr>
<td height="28"><div align="right"><strong>Numero Contrato :</strong></div></td>
<td><div align="left">
<input name="numcont" type="text" class="Estilo66" id="numcont" value="<?php echo $numcont ?>" size="12" maxlength="10" />
</div></td>
<td><div align="right"><strong>Numero libranza:</strong></div></td>
<td ><div align="left">
<input name="num_lib" type="text" class="Estilo66" id="num_lib" value="<?php echo $num_lib ?>" size="12" maxlength="12" />
</div></td>
<td><div align="right"><strong>Vendedor :</strong></div></td>
<td align="left" ><input name="vendedor" type="text" class="Estilo66" id="ven" value="<?php echo $ven ?>" size="30" maxlength="30" /></td>
</tr>
<tr>
<td height="28"><div align="right"><strong>Valor Contrato :</strong></div></td>
<td><div align="left">
<input name="valcon" type="text" class="Estilo66" id="valcon" value="<?php echo $valcon ?>" size="12" maxlength="10" />
</div></td>
<td><div align="right"><strong>Numero de Cuotas:</strong></div></td>
<td ><div align="left">
<input name="numcuo" type="text" class="Estilo66" id="numcuo" value="<?php echo $numcuo ?>" size="12" maxlength="12" />
</div></td>
<td><div align="right"><strong>Valor Cuota :</strong></div></td>
<td ><div align="left">
<input name="valcuo" type="text" class="Estilo66" id="valcuo" value="<?php echo $valcuo ?>" size="12" maxlength="12" />
</div></td>
</TR>
<tr>
<td height="54"><div align="right"><strong>Fecha Inicio Contrato:</strong></div></td>
<td><div align="left">
<input name="fechainicio" type="text" class="Estilo66" id="fechainicio" value="<?php echo $fechainicio ?>" size="10" maxlength="14" />
</div></td>
<td><div align="right"><strong>Fecha Termino Contrato:</strong></div></td>
<td ><div align="left">
<input name="fechatermino" type="text" class="Estilo66" id="fechatermino" value="<?php echo $fechatermino ?>" size="10" maxlength="14" />
</div></td>
<td height="54"><div align="right"><strong>Fecha Inicio Pagos:</strong></div></td>
<td>
<input name="iniciopag" type="text" class="Estilo66" id="iniciopag" value="<?php echo $inipag ?>" size="5" maxlength="5" />
<strong>Fecha Termino Pagos:</strong>
<input name="iniciopag" type="text" class="Estilo66" id="iniciopag" value="<?php echo $finpag ?>" size="5" maxlength="5" /> </td>
</tr>
<tr>
<td><div align="center" class="Estilo56">
<div align="right" class="Estilo12"><strong>Entidad Recaudo :</strong></div>
</div></td>
<td colspan="3" align="left"><input name="entre" type="text" class="Estilo66" id="entre" value="<?php echo $entre ?>" size="60" maxlength="65" /></td>
<td height="31" class="Estilo12"><div align="center" class="Estilo12">
<div align="right"><strong>Unidad y Codigo Descuento :</strong></div>
</div></td>
<td>
<input name="unides" type="text" class="Estilo66" id="unides" value="<?php echo $unides ?>" size="5" maxlength="5" /> -
<input name="codides" type="text" class="Estilo66" id="codides" value="<?php echo $codides ?>" size="4" maxlength="4" />
</td>
</tr>
<tr>
<td></td>
<td><div align="center" class="Estilo55">
<div align="right"> <strong>Entidad Laboral: </strong></div>
</div></td>
<td colspan="2" align="left">
<input name="enti" type="text" class="Estilo66" id="enti" value="<?php echo $enti ?>" size="40" maxlength="40" />
</td>
<td><div align="right"><strong>Director :</strong></div></td>
<td align="left" >
<input name="direc" type="text" class="Estilo66" id="direc" value="<?php echo $director ?>" size="20" maxlength="20" />
</td>
</tr>
</table>
<p align="center">
<input name="menu2" type="button" class="Estilo50" id="menu2" onclick="window.location.href='menu_datos_cartera_servi.php'" value="IR AL MENU" />
</p>
</div>
</form>
</body>
</html>