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/credito_rotativo_captura_liquidacion_credito.php
<?php 
require_once("mainfile.php");
include ("config.php");
global $dbi;
$espacio = ' ';
$linea = '-';

require_once("Conectarse.php");

$resul = mysql_query('SELECT  cedula , codigo, nombre, grado, direccion, telefono, celular, ciudad, email, numero_libranza, credito_libranza, unidad_descuento, codigo_descuento, sucursal, fecha_credito, valor_credito, cuotas_credito, valor_cuota, cuotas_descontadas, cuotas_pendientes, saldo_anterior, saldo_nuevo, cuenta_ahorros, banco, neto_consignar, interes_deducible, numero_desembolso,  mes_inicio, ano_inicio,  mes_aplicado, ano_aplicado, mes_termino, ano_termino, fecha_ultimo_descuento, empresa, proveedor, causal, estado FROM credito_rotativo_inter  WHERE cedula = "' . $_GET["ced2"] . '" and numero_libranza = "'.$_GET["numlib"].'" and credito_libranza = "' . $_GET["cred"] . '" ');
if (!$resul) {
	die('Invalid query: ' . mysql_error());
}
list($cedula, $codigo, $nombre, $grado, $direccion, $telefono, $celular, $ciudad, $email, $numlib, $libranza_credito, $unidesc, $codidesc, $sucursal, $fecha, $monto, $numcuo, $valcuo, $cuodesc, $cuopen, $salant, $salnue, $cuenta, $banco, $neto, $interes ,$numdesem, $mesini, $anoini,  $mesapli, $anoapli,$mesfin, $anofin, $fechadescuento, $empresa, $proveedor, $causal1, $estado) = mysql_fetch_row($resul);		

if ($estado == 0)
{
	$esta = "HISTORICO";
}   				
else
{
	$esta = "VIGENTE";
}

//NUEVO
/*$redi = mysql_query('SELECT grado, entidad, bono1, bono2, bono3, bono4, bono5, bono6, bono7, bono8, bono9, bono10, bono11, bono12, bono13, bono14, bono15, bono16, bono17, bono18, bono19, bono20 FROM redimir_bonos WHERE cedula = "' . $_GET[ced2] . '" and numero_libranza = "'.$_GET[numlib].'" and libranza_credito = "' . $_GET[cred] . '" ' );
if (!$redi) {
	die('Invalid query 1: ' . mysql_error());
}
list($grado, $entidad, $bono1, $bono2, $bono3, $bono4, $bono5, $bono6, $bono7, $bono8, $bono9, $bono10, $bono11, $bono12, $bono13, $bono14, $bono15, $bono16, $bono17, $bono18, $bono19, $bono20 ) = mysql_fetch_row($redi);
*/
$consultaaa = mysql_query('SELECT entidad, escuela FROM credito_rotativo WHERE cedula = "'.$cedula .'" and numerocredito = "'.$cred.'" ');
list($entidad,$escuela)=mysql_fetch_row($consultaaa);


if($grado == "SLP")
{
	$montosolicitado = "500000";
	?>
	<script languaje="javascript">
	function proba(){
		var bono6 = document.getElementById("bono6").disabled = true;
		var bono7 = document.getElementById("bono7").disabled = true;
		var bono8 = document.getElementById("bono8").disabled = true;
		var bono9 = document.getElementById("bono9").disabled = true;
		var bono10 = document.getElementById("bono10").disabled = true;
		var bono11 = document.getElementById("bono11").disabled = true;
		var bono12 = document.getElementById("bono12").disabled = true;
		var bono13 = document.getElementById("bono13").disabled = true;
		var bono14 = document.getElementById("bono14").disabled = true;
		var bono15 = document.getElementById("bono15").disabled = true;
		var bono16 = document.getElementById("bono16").disabled = true;
		var bono17 = document.getElementById("bono17").disabled = true;
		var bono18 = document.getElementById("bono18").disabled = true;
		var bono19 = document.getElementById("bono19").disabled = true;
		var bono20 = document.getElementById("bono20").disabled = true;
		
	}
	</script><?php
}

elseif($grado == "AL" || $grado == "PT")
{
	$montosolicitado = "1000000";
	?>
	<script languaje="javascript">
	function proba(){
		var bono11 = document.getElementById("bono11").disabled = true;
		var bono12 = document.getElementById("bono12").disabled = true;
		var bono13 = document.getElementById("bono13").disabled = true;
		var bono14 = document.getElementById("bono14").disabled = true;
		var bono15 = document.getElementById("bono15").disabled = true;
		var bono16 = document.getElementById("bono16").disabled = true;
		var bono17 = document.getElementById("bono17").disabled = true;
		var bono18 = document.getElementById("bono18").disabled = true;
		var bono19 = document.getElementById("bono19").disabled = true;
		var bono20 = document.getElementById("bono20").disabled = true;
		
	}
	</script><?php
}

elseif($grado == "C3" || $grado == "SC" || $grado == "CS" || $grado == "CP" || $grado == "SS" || $grado == "SV" || $grado == "SB" || $grado == "SP" || $grado == "SM" || $grado == "IJ")
{
	$montosolicitado = "1500000";
	?>
	<script languaje="javascript">
	function proba(){
		var bono16 = document.getElementById("bono16").disabled = true;
		var bono17 = document.getElementById("bono17").disabled = true;
		var bono18 = document.getElementById("bono18").disabled = true;
		var bono19 = document.getElementById("bono19").disabled = true;
		var bono20 = document.getElementById("bono20").disabled = true;
		
	}
	</script><?php
}

elseif($grado == "ST" || $grado == "TE" || $grado == "CP")
{
	$montosolicitado = "2000000";
	?>
	<script languaje="javascript">
	function proba(){
	
	}
	</script><?php
}



/*		
$tere = 0;   
$con1 = mysql_query('SELECT cedula FROM  cartera_serviasjudinet  WHERE cedula = "' . "$cedula". '"  and estado =  "1" ');
if (!$con1) {
	die('Invalid query: ' . mysql_error());
}
while(list($cedut) = mysql_fetch_row($con1)) 
{
	$tere = $tere + 1 ;
} 
*/					   
		
if(isset($_POST["guardar"]))
{
	$dis = date("d");
	$mes = date("m");
	$anos = date("Y");
	
	$fecha_auto = date("Y-m-d");


	$re = mysql_query("UPDATE  credito_rotativo_inter  set  liquidacion_credito_reporte ='" . $_POST["liquidacion_credito_reporte"] . "', fecha_liquidacion_reporte = '".$fecha_auto."' WHERE cedula = '" . $_GET["ced2"]."'  and credito_libranza = '" . $_GET["cred"] . "' ");
										
	if (!$re) {
		die('No se credito_rotativo_inter  :  ' . mysql_error());
	}

   	echo "<script>alert('La informacion fue modificada correctamente');</script>";
	
	echo "<SCRIPT LANGUAGE='javascript'>window.location.href='credito_rotativo_consulta_modificar_mc.php?ced2=$ced2&numcon=$numcon'</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 proveedores order by nombre ');
			if (!$sql2) {
				die('Invalid query: ' . mysql_error());
			}
$row_sql2 = mysql_fetch_assoc($sql2);
$totalRows_sql2 = mysql_num_rows($sql2);

$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); 




?>
<!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;
}
.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;
}
.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;
}
.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;
}
.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;
}
.Estilo66 {
	font-size: 12px;
	font-weight: bold;
}
.label {background-color: #FFFFCC; font-size: 16px; font-family: Arial; color:#0000CC; display: block;}
.Estilo67 {font-size: 18px}
.Estilo70 {color: #000066; 
font-size: 12px;}
.Estilo71 {font-size: 10px; font-weight: bold; color: #000066; }
.Estilo73 {color: #000066}
.Estilo74 {color: #FF0000}
-->
</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 
      } 
} 


</script>


<script>
function valida_envia(){
	if (form1.liquidacion_credito_reporte.value == "")
  	{
    	alert("Falta Ingresar el valor de la liquidacion credito para reporte");
   		form1.liquidacion_credito_reporte.focus();
    	return (false);
  	}
}
</script>
</head>
<body onLoad="proba()">

<form action=""  method="post" onSubmit="return valida_envia()" enctype="multipart/form-data" name="form1"  id="form1">
  <div align="center">
    <div class="Estilo50 Estilo67">MODIFICAR  CREDITO </div>
	<br />
	<table width="885" border="2"  cellpadding="1" cellspacing="1" class="sol_cre1">
      <tr bgcolor="#F7FFE1" >
        <th width="69" bgcolor="#F7FFE1" scope="col"><div align="right" class="Estilo70 Estilo73">
            <div align="right"><strong>Fecha Credito :</strong></div>
        </div></th>
        <th width="129" bgcolor="#F7FFE1" scope="col"><div align="left" class="Estilo70">
            <input name="fecha" type="text" class="Estilo66" id="fecha" value="<?php echo $fecha ?>" size="10" maxlength="10" />
        </div></th>
        <td  align="right" bgcolor="#F7FFE1" ><span class="Estilo70"><strong> Nombres:</strong></span></td>
        <td colspan="3" align="left" bgcolor="#F7FFE1"><input name="nombre" type="text" class="Estilo66" id="nombre" value="<?php echo $nombre ?>" size="60" maxlength="65"  />        </td>
      </tr>
      <tr>
        <td width="69" height="21" bgcolor="#F7FFE1"><div align="right" class="Estilo70"><strong>Cedula No:</strong></div></td>
        <td width="129" bgcolor="#F7FFE1" ><div align="left" class="Estilo70">
            <input name="cedula" type="text" class="Estilo66" id="cedula" value="<?php echo $cedula ?>" size="20" maxlength="20"  readonly=""/>
        </div></td>
        <td width="112" bgcolor="#F7FFE1"><div align="right" class="Estilo70"><strong>Cogido Militar :</strong></div></td>
        <td width="179" bgcolor="#F7FFE1" ><div align="left" class="Estilo70">
            <input name="codigo" type="text" class="Estilo66" id="codigo" value="<?php echo $codigo ?>" size="14" maxlength="20"  />
        </div></td>
        <td width="103" bgcolor="#F7FFE1"><div align="right" class="Estilo70"><strong>Grado :</strong></div></td>
        <td width="258" bgcolor="#F7FFE1"><div align="left" class="Estilo70">
            <input name="grado" type="text" class="Estilo66" id="grado" value="<?php echo $grado ?>" size="12" maxlength="10"  />
        </div></td>
      </tr>
      <tr>
        <td bgcolor="#F7FFE1"><div align="right" class="Estilo70"><strong>Direccion :</strong></div></td>
        <td colspan="2" bgcolor="#F7FFE1"><div align="left" class="Estilo70">
            <input name="direccion" type="text" class="Estilo66" id="direccion" value="<?php echo $direccion ?>" size="40" maxlength="40" />
        </div></td>
        <td bgcolor="#F7FFE1"><div align="right" class="Estilo70"><strong>E-mail :</strong></div></td>
        <td  bgcolor="#F7FFE1" colspan="2"><div align="left" class="Estilo70">
            <input name="email" type="text" class="Estilo66" id="email" value="<?php echo $email ?>" size="35" maxlength="35" />
        </div></td>
      </tr>
      <tr>
        <td bgcolor="#F7FFE1"><div align="right" class="Estilo70"><strong>Ciudad :</strong></div></td>
        <td bgcolor="#F7FFE1"><div align="left" class="Estilo70">
            <input name="ciudad" type="text" class="Estilo66" id="ciudad" value="<?php echo $ciudad ?>" size="14" maxlength="20" />
        </div></td>
        <td bgcolor="#F7FFE1"><div align="right" class="Estilo70"><strong>Telefono :</strong></div></td>
        <td bgcolor="#F7FFE1"><div align="left" class="Estilo70">
            <input name="telefono" type="text" class="Estilo66" id="telefono" value="<?php echo $telefono ?>" size="10" maxlength="20" />
        </div></td>
        <td bgcolor="#F7FFE1"><div align="right" class="Estilo70"><strong>Celular :</strong></div></td>
        <td bgcolor="#F7FFE1"><div align="left" class="Estilo70">
            <input name="celular" type="text" class="Estilo66" id="celular" value="<?php echo $celular ?>" size="20" maxlength="20" />
        </div></td>
      </tr>
      <tr >
        <td bgcolor="#F7FFE1"><div align="right" class="Estilo70"><strong>Cuenta No :</strong></div></td>
        <td bgcolor="#F7FFE1"><div align="left" class="Estilo70">
            <input name="cuenta" type="text" class="Estilo66" id="cuenta" value="<?php echo $cuenta ?>" size="20" maxlength="20" />
        </div></td>
        <td bgcolor="#F7FFE1"><div align="right" class="Estilo70"><strong>Banco :</strong></div></td>
        <td bgcolor="#F7FFE1" ><div align="left" class="Estilo70">
            <input name="banco" type="text" class="Estilo66" id="banco" value="<?php echo $banco ?>" size="15" maxlength="15" />
        </div></td>
        
        <td bgcolor="#F7FFE1"><div align="right" class="Estilo70"><strong>Credito Libranza :</strong></div></td>
        <td bgcolor="#F7FFE1" ><div align="left" class="Estilo70">
            <input name="libranza_credito" type="text" class="Estilo66" id="libranza_credito" value="<?php echo $libranza_credito ?>" size="15" maxlength="15" />
        </div></td>
        
        
        <!--<th width="103" bgcolor="#F7FFE1"><div align="right" class="Estilo70"><strong>Sucursal :</strong></div></th>
        <td bgcolor="#F7FFE1" scope="col"><div align="left" class="Estilo70">
            <input name="sucursal" type="text" class="Estilo66" id="sucursal" value="<?php echo $sucursal ?>" size="20" maxlength="20" />
			 <select name="sucursal1" class="Estilo66">
              <option value="">--SELECCIONE SUCURSAL--</option>
              <?php
     do {  
?>
              <option value="<?php echo $row_sql5['nombre'];?>"><?php echo $row_sql5['nombre']?></option>
              <?php
} while ($row_sql5 = mysql_fetch_assoc($sql5));
  $rows5 = mysql_num_rows($sql5);
  if($rows5 > 0) {
      mysql_data_seek($sql5, 0);
       $row_sql5 = mysql_fetch_assoc($sql5);
  }
?>
            </select>
        </div></td>-->
      </tr>
      <tr>
        <!--<td bgcolor="#F7FFE1"><div align="right" class="Estilo70"><strong>Numero libranza:</strong></div></td>
        <td bgcolor="#F7FFE1" ><div align="left" class="Estilo70">
            <input name="numlib" type="text" class="Estilo66" id="numlib" value="<?php echo $numlib ?>" size="12" maxlength="12" />
        </div></td>-->
        <td height="28" bgcolor="#F7FFE1"><div align="right" class="Estilo70"><strong>Monto Solicitado  :</strong></div></td>
        <td bgcolor="#F7FFE1"><div align="left" class="Estilo70">
            <input name="monto" type="text" class="Estilo66" id="monto" value="<?php echo $monto ?>" size="12" maxlength="10" />
        </div></td>
        <td bgcolor="#F7FFE1" colspan="4"><div align="left" class="Estilo70"></td>
        <!--
        <td height="28" bgcolor="#F7FFE1"><div align="right" class="Estilo70"><strong>Escuela :</strong></div></td>
        <td bgcolor="#F7FFE1"><div align="left" class="Estilo70">
            <input name="escuela" type="text" class="Estilo66" id="escuela" value="<?php echo $escuela ?>" size="12" maxlength="10" />
        </div></td>
        
        <td height="28" bgcolor="#F7FFE1"><div align="right" class="Estilo70"><strong>Entidad :</strong></div></td>
        <td bgcolor="#F7FFE1"><div align="left" class="Estilo70">
            <input name="entidad" type="text" class="Estilo66" id="entidad" value="<?php echo $entidad ?>" size="12" maxlength="10" />
        </div></td>-->
      </tr>
      
      <!--
      <tr>
        <td bgcolor="#F7FFE1" ><div align="right" class="Estilo70"><strong>Valor Mensual:</strong></div></td>
        <td bgcolor="#F7FFE1"><div align="left" class="Estilo70">
            <input name="valcuo" type="text" class="Estilo66" id="valcuo" value="<?php echo $valcuo ?>" size="12" maxlength="12" />
        </div></td>
        <td bgcolor="#F7FFE1" ><div align="right" class="Estilo70"><strong>Neto Consignar:</strong></div></td>
        <td bgcolor="#F7FFE1"><div align="left" class="Estilo70">
            <input name="neto" type="text" class="Estilo66" id="neto" value="<?php echo $neto ?>" size="12" maxlength="12" />
        </div></td>
        <td bgcolor="#F7FFE1" ><div align="right" class="Estilo70"><strong>Interes Deducible:</strong></div></td>
        <td bgcolor="#F7FFE1">
          <div align="left">
            <input name="interes" type="text" class="Estilo66" id="interes" value="<?php echo $interes ?>" size="12" maxlength="12" />        
            </div></td></tr>
      <tr>
        <td bgcolor="#F7FFE1" ><div align="right" class="Estilo70"><strong>Cuotas Pendientes:</strong></div></td>
        <td bgcolor="#F7FFE1"><div align="left" class="Estilo70">
            <input name="cuopen" type="text" class="Estilo66" id="cuopen" value="<?php echo $cuopen ?>" size="12" maxlength="12"  />
        </div></td>
        <td height="31" bgcolor="#F7FFE1" class="Estilo12"><div align="center" class="Estilo12 Estilo73">
            <div align="right"><strong>Cuotas Descontadas  :</strong></div>
        </div></td>
        <td align="left" bgcolor="#F7FFE1" ><input name="cuodesc" type="text" class="Estilo66" id="cuodesc" value="<?php echo $cuodesc ?>" size="12" maxlength="12"  />        </td>
		     <td height="28" bgcolor="#F7FFE1"><div align="right" class="Estilo70"><strong>Mes Aplicado:</strong></div></td>
        <td bgcolor="#F7FFE1"><div align="left"><span class="Estilo71">MES</span><span class="Estilo70">-
            <input name="mesapli" type="text" class="Estilo66" id="mesapli" value="<?php echo $mesapli ?>" size="2" maxlength="2" />
              <strong>-A&Ntilde;o</strong>
              <input name="anoapli" type="text" class="Estilo66" id="anoapli" value="<?php echo $anoapli ?>" size="4" maxlength="4" />
   
        </div>        </tr>
      <tr>
        <td bgcolor="#F7FFE1" ><div align="right" class="Estilo70"><strong>Saldo Nuevo:</strong></div></td>
        <td bgcolor="#F7FFE1"><div align="left" class="Estilo70">
            <input name="salnue" type="text" class="Estilo66" id="salnue" value="<?php echo $salnue ?>" size="12" maxlength="12"  readonly=""/>
        </div></td>
        <td height="31" bgcolor="#F7FFE1" class="Estilo12"><div align="center" class="Estilo12 Estilo73">
            <div align="right"><strong>Saldo Anterior :</strong></div>
        </div></td>
        <td align="left" bgcolor="#F7FFE1"  ><input name="salant" type="text" class="Estilo66" id="salant" value="<?php echo $salant ?>" size="12" maxlength="12"  readonly=""/>        </td>
        <td height="28" bgcolor="#F7FFE1"><div align="right" class="Estilo70"><strong>Ultimo Desceunto:</strong></div></td>
        <td bgcolor="#F7FFE1"><div align="left" class="Estilo70">
            <div align="left">
              <input name="fechadescuento" type="text" class="Estilo66" id="fechadescuento" value="<?php echo $fechadescuento ?>" size="10" maxlength="14" />
                </div>
        </div></td>
      </tr>
      <tr>
        <td height="28" bgcolor="#F7FFE1" ><div align="right" class="Estilo70"><strong>Fecha Inicio Pagos:</strong></div></td>
        <td bgcolor="#F7FFE1" colspan="2"><div align="left"><span class="Estilo71">MES</span><span class="Estilo70">
          <input name="mesini" type="text" class="Estilo66" id="mesini" value="<?php echo $mesini ?>" size="1" maxlength="2" />
                  <strong>-A&Ntilde;o</strong>
                  <input name="anoini" type="text" class="Estilo66" id="anoini" value="<?php echo $anoini ?>" size="4" maxlength="4" />
        </span></div></td>
        <td height="28" bgcolor="#F7FFE1" colspan="2"><div align="right" class="Estilo70"><strong>Fecha Termino Pagos:</strong></div></td>
        <td bgcolor="#F7FFE1"><div align="left"><span class="Estilo71">MES</span><span class="Estilo70">-
          <input name="mesfin" type="text" class="Estilo66" id="mesfin" value="<?php echo $mesfin ?>" size="2" maxlength="2" />
                  <strong>-A&Ntilde;o</strong>
                  <input name="anofin" type="text" class="Estilo66" id="anofin" value="<?php echo $anofin ?>" size="4" maxlength="4" />
        </span></div></td>
      </tr>
      <tr>
        <td bgcolor="#F7FFE1" ><div align="right" class="Estilo70"><strong>No Desembolso:</strong></div></td>
        <td bgcolor="#F7FFE1"><div align="left" class="Estilo70">
            <input name="numdesem" type="text" class="Estilo66" id="numdesem" value="<?php echo $numdesem ?>" size="12" maxlength="12"  />
        </div></td>
        <td height="31" bgcolor="#F7FFE1" class="Estilo12"><div align="center" class="Estilo12 Estilo73">
            <div align="right"><strong>Unidad Descuento  :</strong></div>
        </div></td>
        <td align="left" bgcolor="#F7FFE1" ><input name="unidesc" type="text" class="Estilo66" id="unidesc" value="<?php echo $unidesc ?>" size="12" maxlength="12"  readonly=""/> 
		<select name="unidesc1" class="Estilo66" id="unidesc1">
          <option value="">--SELECIONE UNIDAD--</option>
		   <option value="DACM">DACM</option>
		   <option value="DABF">DABF</option>
		   <option value="DABG">DABG</option>
		   <option value="DEVO">DEVO</option>
		   <option value="CCDO">CCDO</option>
		   <option value="CDDC">CDDC</option>
		   <option value="NNAN">NNAN</option>
		   <option value="NNEE">NNEE</option>
		   <option value="NNFA">NNFA</option>
		   <option value="NPCV">NPCV</option>
		   <option value="PCTO">PCTO</option>
		   <option value="PEJC">PEJC</option>
		   <option value="PNLG">PNLG</option> 
		   <option value="PNPO">PNPO</option>
		   <option value="YYYC">YYYC</option>
		   <option value="YYY0">YYY0</option>  
		   
		  
		           
        </select>        </td>
        <td height="31" bgcolor="#F7FFE1" class="Estilo12"><div align="center" class="Estilo12 Estilo73">
            <strong>Codigo Descuento  :</strong></div></td>
        <td align="left" bgcolor="#F7FFE1" ><input name="codidesc" type="text" class="Estilo66" id="codidesc" value="<?php echo $codidesc ?>" size="12" maxlength="12"  readonly=""/>    
		
		 <select name="codidesc1" class="Estilo66" id="codidesc1">
          <option value="">--SELECIONE CODIGO--</option>
		  <option value="200">200</option> 
		  <option value="220">220</option> 
		  <option value="300">300</option> 
		  <option value="310">310</option> 
		  <option value="420">420</option> 
		  <option value="425">425</option> 
		  <option value="430">430</option> 
		  <option value="435">435</option> 
		  <option value="475">475</option> 
		  <option value="200">200</option> 
		  <option value="500">500</option> 
		  <option value="550">550</option> 
		  <option value="575">575</option> 
		  <option value="700">700</option> 
		  <option value="900">900</option> 
		  <option value="9802">9802</option> 
		   <option value="10199">10199</option> 
        </select>       </td>
      </tr>
      <tr>
        <td bgcolor="#F7FFE1"><div align="center" class="Estilo55 Estilo70 Estilo73">
            <div align="right"> <strong>Empresa: </strong></div>
        </div></td>
        <td  align="left" bgcolor="#F7FFE1" colspan="2"><input name="empresa" type="text" class="Estilo66" id="empresa" value="<?php echo $empresa ?>" size="22" maxlength="20"  readonly=""/>
		<select name="empresa1" id="empresa1" class="Estilo66">
         <option value="">--SELECCIONE LA EMPRESA--</option>
         <?php
     do {  
?>
         <option value="<?php echo $row_sql['nombre'];?>"><?php echo $row_sql['nombre']?></option>
         <?php
} while ($row_sql = mysql_fetch_assoc($sql));
  $rows = mysql_num_rows($sql);
  if($rows > 0) {
      mysql_data_seek($sql, 0);
       $row_sql = mysql_fetch_assoc($sql);
  }
?>
       </select>        </td>
        <td bgcolor="#F7FFE1"><div align="right" class="Estilo70"><strong>Proveedor :</strong></div></td>
        <td align="left" bgcolor="#F7FFE1" colspan="2"  ><input name="proveedor" type="text" class="Estilo66" id="proveedor" value="<?php echo $proveedor ?>" size="20" maxlength="20"  readonly=""/>
		<select name="proveedor1" id="proveedor1" class="Estilo66">
         <option value="">--SELECCIONE PROVEEDOR--</option>
         <?php
     do {  
?>
         <option value="<?php echo $row_sql2['nombre'];?>"><?php echo $row_sql2['nombre']?></option>
         <?php
} while ($row_sql2 = mysql_fetch_assoc($sql2));
  $rows2 = mysql_num_rows($sql);
  if($rows2 > 0) {
      mysql_data_seek($sql2, 0);
       $row_sql2 = mysql_fetch_assoc($sql2);
  }
?>
       </select>		</td>
      </tr>
   <tr>
	          <td bgcolor="#F7FFE1"><div align="right" class="Estilo70 Estilo74"><strong>No  de Contratos:</strong></div></td>
        <td align="left" bgcolor="#F7FFE1"   ><input name="contrato" type="text" class="Estilo50" id="contrato" value="<?php echo $tere ?>" size="12" maxlength="12"  readonly=""/></td>
        <td bgcolor="#F7FFE1"><div align="right" class="Estilo70 Estilo74"><strong>Estado :</strong></div></td>
        <td align="left" bgcolor="#F7FFE1"  ><input name="esta" type="text" class="Estilo50" id="esta" value="<?php echo $esta ?>" size="12" maxlength="12"  readonly=""/></td>
		    <td bgcolor="#F7FFE1"><div align="right" class="Estilo70 Estilo74"><strong>Causal :</strong></div></td>
        <td align="left" bgcolor="#F7FFE1"  ><input name="causal1" type="text" class="Estilo50" id="causal1" value="<?php echo $causal1 ?>" size="40" maxlength="40"  readonly=""/>
		 <select name="causal" class="Estilo66" id="causal">
          <option value="">----------SELECIONE CAUSAL-------------</option>
	<option value="PAZ Y SALVO">PAZ Y SALVO</option> 
	<option value="CONDONACION">CONDONACION</option> 
    <option value="CREDITO DE DIFICIL COBRO">CREDITO DE DIFICIL COBRO</option>
	<option value="POR PROCESO EJECUTIVO">POR PROCESO EJECUTIVO</option> 
	<option value="POR NO PAGO OPORTUNO">POR NO PAGO OPORTUNO</option> 
	<option value="POR NO LEGALIZACION">POR NO LEGALIZACION</option> 
	<option value="POR FALLECIMIENTO">POR FALLECIMIENTO</option> 
		
        </select> 
		</td>
-->



<!--
<tr>  
      <td bgcolor="#F7FFE1" ><div align="right" class="Estilo72">Nº Bono1</div></td>
      <td><div align="left"><input name="bono1" type="text" class="Estilo66" id="bono1" value="<?php echo $bono1 ?>" size="12" maxlength="12" /></div></td>
      
      <td bgcolor="#F7FFE1" ><div align="right" class="Estilo72">Nº Bono2</div></td>
      <td><div align="left"><input name="bono2" type="text" class="Estilo66" id="bono2" value="<?php echo $bono2 ?>" size="12" maxlength="12" /></div></td>
      
      <td bgcolor="#F7FFE1" ><div align="right" class="Estilo72">Nº Bono3</div></td>
      <td><div align="left"><input name="bono3" type="text" class="Estilo66" id="bono3" value="<?php echo $bono3 ?>" size="12" maxlength="12" /></div></td>
</tr>

<tr>  
      <td bgcolor="#F7FFE1" ><div align="right" class="Estilo72">Nº Bono4</div></td>
      <td><div align="left"><input name="bono4" type="text" class="Estilo66" id="bono4" value="<?php echo $bono4 ?>" size="12" maxlength="12" /></div></td>
      
      <td bgcolor="#F7FFE1" ><div align="right" class="Estilo72">Nº Bono5</div></td>
      <td><div align="left"><input name="bono5" type="text" class="Estilo66" id="bono5" value="<?php echo $bono5 ?>" size="12" maxlength="12" /></div></td>
      
      <td bgcolor="#F7FFE1" ><div align="right" class="Estilo72">Nº Bono6</div></td>
      <td><div align="left"><input name="bono6" type="text" class="Estilo66" id="bono6" value="<?php echo $bono6 ?>" size="12" maxlength="12" /></div></td>
</tr>

<tr>  
      <td bgcolor="#F7FFE1" ><div align="right" class="Estilo72">Nº Bono7</div></td>
      <td><div align="left"><input name="bono7" type="text" class="Estilo66" id="bono7" value="<?php echo $bono7 ?>" size="12" maxlength="12" /></div></td>
      
      <td bgcolor="#F7FFE1" ><div align="right" class="Estilo72">Nº Bono8</div></td>
      <td><div align="left"><input name="bono8" type="text" class="Estilo66" id="bono8" value="<?php echo $bono8 ?>" size="12" maxlength="12" /></div></td>
      
      <td bgcolor="#F7FFE1" ><div align="right" class="Estilo72">Nº Bono9</div></td>
      <td><div align="left"><input name="bono9" type="text" class="Estilo66" id="bono9" value="<?php echo $bono9 ?>" size="12" maxlength="12" /></div></td>
</tr>


<tr>  
      <td bgcolor="#F7FFE1" ><div align="right" class="Estilo72">Nº Bono10</div></td>
      <td><div align="left"><input name="bono10" type="text" class="Estilo66" id="bono10" value="<?php echo $bono10 ?>" size="12" maxlength="12" /></div></td>
      
      <td bgcolor="#F7FFE1" ><div align="right" class="Estilo72">Nº Bono11</div></td>
      <td><div align="left"><input name="bono11" type="text" class="Estilo66" id="bono11" value="<?php echo $bono11 ?>" size="12" maxlength="12" /></div></td>
      
      <td bgcolor="#F7FFE1" ><div align="right" class="Estilo72">Nº Bono12</div></td>
      <td><div align="left"><input name="bono12" type="text" class="Estilo66" id="bono12" value="<?php echo $bono12 ?>" size="12" maxlength="12" /></div></td>
</tr>

<tr>  
      <td bgcolor="#F7FFE1" ><div align="right" class="Estilo72">Nº Bono13</div></td>
      <td><div align="left"><input name="bono13" type="text" class="Estilo66" id="bono13" value="<?php echo $bono13 ?>" size="12" maxlength="12" /></div></td>
      
      <td bgcolor="#F7FFE1" ><div align="right" class="Estilo72">Nº Bono14</div></td>
      <td><div align="left"><input name="bono14" type="text" class="Estilo66" id="bono14" value="<?php echo $bono14 ?>" size="12" maxlength="12" /></div></td>
      
      <td bgcolor="#F7FFE1" ><div align="right" class="Estilo72">Nº Bono15</div></td>
      <td><div align="left"><input name="bono15" type="text" class="Estilo66" id="bono15" value="<?php echo $bono15 ?>" size="12" maxlength="12" /></div></td>
</tr>

<tr>  
      <td bgcolor="#F7FFE1" ><div align="right" class="Estilo72">Nº Bono16</div></td>
      <td><div align="left"><input name="bono16" type="text" class="Estilo66" id="bono16" value="<?php echo $bono16 ?>" size="12" maxlength="12" /></div></td>
      
      <td bgcolor="#F7FFE1" ><div align="right" class="Estilo72">Nº Bono17</div></td>
      <td><div align="left"><input name="bono17" type="text" class="Estilo66" id="bono17" value="<?php echo $bono17 ?>" size="12" maxlength="12" /></div></td>
      
      <td bgcolor="#F7FFE1" ><div align="right" class="Estilo72">Nº Bono18</div></td>
      <td><div align="left"><input name="bono18" type="text" class="Estilo66" id="bono18" value="<?php echo $bono18 ?>" size="12" maxlength="12" /></div></td>
</tr>

<tr>  
      <td bgcolor="#F7FFE1" ><div align="right" class="Estilo72">Nº Bono19</div></td>
      <td><div align="left"><input name="bono19" type="text" class="Estilo66" id="bono19" value="<?php echo $bono19 ?>" size="12" maxlength="12" /></div></td>
      
      <td bgcolor="#F7FFE1" ><div align="right" class="Estilo72">Nº Bono20</div></td>
      <td><div align="left"><input name="bono20" type="text" class="Estilo66" id="bono20" value="<?php echo $bono20 ?>" size="12" maxlength="12" /></div></td>
      
</tr>
-->

      </tr>
      
      <td height="28" bgcolor="#F7FFE1" colspan="3"><div align="right" class="Estilo70"><strong>LIQUIDACION CREDITO PARA REPORTE  :</strong></div></td>
        <td bgcolor="#F7FFE1"><div align="left" class="Estilo70">
            <input name="liquidacion_credito_reporte" type="text" class="Estilo66" id="liquidacion_credito_reporte" value="<?php echo $liquidacion_credito_reporte ?>" size="12" maxlength="10" />
        </div></td>
        <td bgcolor="#F7FFE1" colspan="4"><div align="left" class="Estilo70"></td>
    </table>
	<p>
    <input name="menu2" type="button" class="Estilo50" id="menu2" onClick="window.location.href='menu_creditos_serviasjudinet.php'" value="IR AL MENU">
	
	 
	 <input name="guardar" type="submit" class="Estilo50" id="guardar" value="MODIFICAR"  />
    </p>

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