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/agendarse/cartera_consulta_titu_usuario.php
<?php 

    $espacio = ' ';
    $linea = '-';
    require_once("ConectarseAgnadarse.php");

    $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, fecha_validacion, valorcontrato, numerocuotas, valorcuota,  fecha_inicio_contrato, fecha_termino_contrato, fecha_ultimo_registro, mes_inicio, ano_inicio, mes_termino, ano_termino, saldoanteior, cuotaspendientes, cuotasdescontadas, saldonuevo, vendedor, director,  beneficiarios, renovacion, causal_terminacion, fecha_terminacion, estado,fecha_ultima_modificacion,fecha_activacion, unidad_empresarial, preferencial FROM cartera_serviasjudinet WHERE cedula =  "' . $_GET["ced2"] . '" and numerocontrato =  "' . $_GET["numcon"].'" ');
    if (!$control) {
        die('Invalid query 1: ' . mysql_error());
    }

    $num=mysql_num_rows($control); 

    list($cedula, $codi, $apes, $grad, $numcont, $plan, $num_lib, $titular, $codigosu, $dire, $tele, $celul, $ciud, $email, $cue, $ban, $enti, $unides, $codides, $entre, $fecna, $fechafil, $fechaval, $valcon, $numcuo, $valcuo, $fechainicio, $fechatermino, $fechaul, $mesini, $anoini, $mesfin, $anofin, $salant, $cupen, $cudesc, $salnue, $ven, $director,   $benet, $renova, $causal, $fechater, $esta, $modificacion,$activacion, $unidad_empresarial, $preferencial) = mysql_fetch_row($control);
    $inipag = $anoini.'-'.$mesini; 

    if ($esta == 1)
    {
        $estado = "VIGENTE";
    }
    elseif($esta == 0)
    {
         $estado = "HISTORICO";
    }
    else
    {
        $estado = "POST FECHADO";
    }

    $control = mysql_query('SELECT * FROM  cartera_estado_contable  WHERE cedula = "' . $_GET["ced2"] . '" and contrato =  "' . $_GET["numcon"] . '" ORDER BY id ASC ');
    if (!$control) {
        die('Invalid query: ' . mysql_error());
    }

    while(list($id, $ceduc, $nombrec, $contrato, $tipo, $cuotac, $mescuotac, $anocuotac, $valorcuotac, $fecha_registroc, $fecha_nomina, $codescc, $unidescc) = mysql_fetch_row($control)) 
    {
        if ($cudesc == $cuotac and $contrato == $numcont)
        {
            $mesapl= $mescuotac;
            $anoapl= $anocuotac;
        }
    }

?>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        
        <title>INGRESAR SOLICITUD CARTERA</title>
        <script src="https://cdn.jsdelivr.net/npm/sweetalert2@10"></script>
        <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
        <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.6.0/dist/umd/popper.min.js" integrity="sha384-KsvD1yqQ1/1+IA7gi3P0tyJcT3vR+NdBTt13hSJ2lnve8agRGXTTyNaBYmCR/Nwi" crossorigin="anonymous"></script>
        <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.min.js" integrity="sha384-nsg8ua9HAw1y0W1btsyWgBklPnCUAFLuTMS2G72MMONqmOymq585AcH49TLBQObG" crossorigin="anonymous"></script>
        <script src="https://use.fontawesome.com/releases/v5.13.0/js/all.js" crossorigin="anonymous"></script>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" />
        <link rel="preconnect" href="https://fonts.googleapis.com">
        <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
        <link href="https://fonts.googleapis.com/css2?family=Irish+Grover&family=Lobster+Two:wght@400;700&display=swap" rel="stylesheet">

        <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;
            }
            .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;
            }
            .Estilo51 {color: #006600;
                font-family: "Arial Narrow";
                font-weight: bold;
            }
            .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;
            }
            .Estilo66 {
                font-size: 12px;
                font-weight: bold;
            }
            .label {background-color: #FFFFCC; font-size: 12px; font-family: Arial; color:#0000CC; display: block;}
            .Estilo67 {color: #FF0000}
            .botonverde{color: #008000;
                font-family: "Arial Narrow";
                font-weight: bold;}

                .LETRAA
                {
                    font-size: 1em;
                }

                .TEXTO_ANIMADO
                {
                    color: white;
                    font-family: 'Irish Grover', cursive;
                    font-family: 'Lobster Two', cursive;
                    font-family: "Arial Narrow";
                    font-family: "Times New Roman", Times, serif;
                    text-transform: uppercase;
                    font-weight: bold;        

                    background-image: linear-gradient(
                    to left,
                    orangered,
                    orangered,
                    gold,
                    gold,
                    silver,
                    silver,
                    red,
                    red,
                    gold,
                    gold,
                    orangered,
                    orangered,
                    gold,
                    gold,
                    silver,
                    silver,
                    red,
                    red,
                    gold,
                    gold);
                    background-size: 110vw;
                    animation: sliding 60s linear infinite;
                }

                @keyframes sliding {
                    to {
                        background-position: 2000vw;
                    }
                }

                .TEXTO_ANIMADO {
                    -webkit-background-clip: text;
                    -webkit-text-fill-color: transparent;
                }
            </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"  id="form1">
  <div align="center">
    <div class="Estilo1">SOLICITUD CARTERA JURIDICA AGENDARSE</div>
    <table width="790" border="2" cellpadding="1" cellspacing="1" class="sol_cre1">
      <caption>
      <div align="center"><br />
          <span class="Estilo2"> DATOS TITULAR</span><br />
      </div>
          
      </caption>
<?php 
     if($preferencial != '0')
     {
         echo '
         <tr>
            <td colspan="6" style="padding: 0;">
                <div class="alert alert-info" role="alert" >
                  <h1 class="alert-heading TEXTO_ANIMADO" style="text-align: right;" > <b class="LETRAA">CLIENTE VIP<b/> <i class="fas fa-star TEXTO_ANIMADO" style="color: orange;"></i></h1>
                  <br>
                </div>
            </td>
         </tr>';    
     }
?>   
      
      <tr>
	  <td ><div align="center" class="Estilo55">
            <div align="right" > <strong><span class="Estilo55">Fecha Activacion:</span>: </strong></div>
        </div></td>
        <td  align="left" >
           <input name="activacion" type="text" class="Estilo50" id="activacion" value="<?php echo $activacion ?>" size="12" maxlength="12" readonly=""/>
	    </td>
		<td  ><div align="center" class="Estilo55 ">
            <div align="right"> <strong>Fecha Modificacion: </strong></div>
        </div></td>
        <td  align="left">
           <input name="modificacion" type="text" class="Estilo50" id="modificacion" value="<?php echo $modificacion ?>" size="12" maxlength="12" readonly=""/>	    </td>
		   <td  ><div align="center" class="Estilo55 ">
            <div align="right"> <strong>Fecha Afiliacion: </strong></div>
        </div></td>
        <td  align="left">
           <input name="afiliafecha" type="text" class="Estilo50" id="afiliafecha" value="<?php echo $fechafil ?>" size="12" maxlength="12" readonly=""/>	    </td>
	  </tr>
      
      
      
      <tr>
          <th colspan="2" scope="col">
         <strong>Fecha Validacion :</strong>
  
            <input name="fechaval" type="text" class="Estilo66" id="fechaval" value="<?php echo $fechaval ?>" size="10" maxlength="10" readonly="" />
  </th>

       
       <td><div align="center" class="Estilo55 ">
            <div align="right"> <strong>Sucursal :</strong></div>
        </div></td>
        


        <td  align="left">
        
            <input name="codigosu" type="text" class="Estilo66" id="codigosu" value="<?php echo $codigosu ?>" size="20" maxlength="20" readonly="" /> </td>
            
            
            <td><div align="center" class="Estilo55 ">
            <div align="right"> <strong>CREDITO :</strong></div>
        </div></td>
            
               <td  align="left">
           
            <input name="cre" type="text" class="Estilo50" id="cre" value="<?php echo $cre ?>" size="4" maxlength="4" readonly="" /> -<input name="vigente" type="text" class="Estilo50" id="vigente" value="<?php echo $vigente ?>" size="4" maxlength="4" readonly="" />
            <?php
            if($row_credito_rotativo != 0){ ?>
                ROTATIVO
                   <input name="credito_rotativo" type="text" class="Estilo50" id="credito_rotativo" value="<?php echo $estado_credito_rotativo; ?>" size="10" maxlength="15" readonly />
            <?php } ?>
           	    </td>

      
      </tr>
      <tr>
        <td width="63"  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"  readonly=""/></td>
        <td width="136" height="21"><div align="right"><strong><?php echo $Iden ?></strong></div></td>
        <td width="180" ><div align="left">
            <input name="cedb" type="text" class="Estilo66" id="cedb" value="<?php echo $cedula ?>" size="20" maxlength="20" readonly="" />
        </div></td>
      </tr>
      <tr>
        <td><div align="right"><strong>Cogido Militar :</strong></div></td>
        <td width="140" ><div align="left">
            <input name="cod" type="text" class="Estilo66" id="cod" value="<?php echo $codi ?>" size="14" maxlength="20" readonly="" />
        </div></td>
        <td width="137"><div align="right"><strong>Grado :</strong></div></td>
        <td width="129"><div align="left">
            <input name="gra" type="text" class="Estilo66" id="gra" value="<?php echo $grad ?>" size="12" maxlength="10" readonly="" />
        </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="7" maxlength="7" readonly="" />
            <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" readonly="" />
        </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" readonly="" />
        </div></td>
        
        <?php if($unidad_empresarial != ""): ?>
        <td class="exp"><strong>Unidad Empresarial</strong>
        <input name="unidad_empresarial" type="text" class="Estilo50" id="unidad_empresarial" value="<?php echo $unidad_empresarial ?>" size="10" maxlength="20" readonly="" /></td>
        <?php endif; ?>
      </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" readonly="" />
        </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" readonly="" />
        </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="30" maxlength="30"  readonly=""/>
        </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" readonly="" />
        </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" readonly=""/>
        </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" readonly=""/>
        </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" readonly=""/>
        </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" readonly=""/>
        </div></td>
        <td><div align="right"><strong>Vendedor :</strong></div></td>
        <td align="left" ><input name="vendedor" type="text" class="Estilo66" id="ven" value="CONVENIO AGENDARSE" size="30" maxlength="30" readonly=""/></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" readonly=""/>
        </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" readonly=""/>
        </div></td>
		 <td align="center"> <strong>Valor Cuota:</strong></td><td align="left">
            <input name="valcuo" type="text" class="Estilo66" id="valcuo" value="<?php echo $valcuo ?>" size="12" maxlength="12" readonly=""/>
        </td>
         
		</tr>
	  
	  <tr>
        <td height="28"><div align="right"><strong>Cuotas Pendientes :</strong></div></td>
        <td><div align="left">
            <input name="cupen" type="text" class="Estilo66" id="cupen" value="<?php echo $cupen ?>" size="12" maxlength="10" readonly=""/>
        </div></td>
        <td><div align="right"><strong>Cuotas Descontadas:</strong></div></td>
        <td ><div align="left">
            <input name="cudesc" type="text" class="Estilo66" id="cudesc" value="<?php echo $cudesc ?>" size="12" maxlength="12" readonly=""/>
        </div></td>
		 <td><div align="right"><strong>Saldo Anterior:</strong></div></td>
        <td ><div align="left">
            <input name="salant" type="text" class="Estilo66" id="salant" value="<?php echo $salant ?>" size="12" maxlength="12" readonly=""/>
        </div></td>
	  </TR>
	  
	    <tr>
        <td height="34"><div align="right"><strong>Saldo Nuevo:</strong></div></td>
        <td><div align="left">
            <input name="salnue" type="text" class="Estilo66" id="salnue" value="<?php echo $salnue ?>" size="12" maxlength="10" readonly=""/>
        </div></td>
        <td height="34"><div align="right"><strong>Numero de Beneficiarios:</strong></div></td>
        <td><div align="left">
            <input name="bene" type="text" class="Estilo66" id="bene" value="<?php echo $bene ?>" size="3" maxlength="3" readonly=""/>
        </div></td>
	 <td height="34"><div align="right"><strong>Fecha Inicio Pagos:</strong></div></td>
        <td align="left">
            <input name="iniciopag" type="text" class="Estilo66" id="iniciopag" value="<?php echo $inipag ?>" size="5" maxlength="5" readonly=""/>
		  </td>
		</TR>
		
      <tr>
        <td height="34"><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" readonly=""/>
        </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" readonly=""/>
        </div></td>
		  <td align="center"><strong>Fecha ultimo pago:</strong>
            <input name="fechaul" type="text" class="Estilo66" id="fechaul" value="<?php echo $fechaul ?>" size="10" maxlength="14" readonly=""/>
        </td>
			  <td align="center"><strong>Fecha mes aplicado:</strong>
            <input name="fechapl" type="text" class="Estilo66" id="fechapl" value="<?php echo $mesapl ?>-<?php echo $anoapl ?>" size="10" maxlength="14" readonly=""/>
        </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" readonly=""/></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" readonly=""/> - 
		 <input name="codides" type="text" class="Estilo66" id="codides" value="<?php echo $codides ?>" size="4" maxlength="4" readonly=""/>
		</td>
      </tr>
      <tr>
        <td colspan="2"><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" readonly=""/>
	    </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="30" maxlength="30" readonly=""/>
	    </td>
      </tr>
	  
	  <tr>
     
        <td colspan="2"><div align="right"><strong>Causal Terminacion:</strong></div></td>
        <td align="left" colspan="2" >
		<input name="causal" type="text" class="Estilo66" id="causal" value="<?php echo $causal ?>" size="40" maxlength="40" readonly=""/>
	    </td>
		 <td><div align="right"><strong>Fecha Anulaci&oacute;n:</strong></div></td>
        <td align="left" >
		<input name="fechater" type="text" class="Estilo66" id="fechater" value="<?php echo $fechater ?>" size="20" maxlength="20" readonly=""/>
	    </td>
      </tr>
	  <tr>
	    <td ><div align="center" class="Estilo55 ">
            <div align="right"> <strong>Renovacion Contrato: </strong></div>
        </div></td>
        <td  align="left">
           <input name="renova" type="text" class="Estilo50" id="renova" value="<?php echo $renova ?>" size="12" maxlength="12" readonly=""/>	    </td>
	<td  ><div align="center" class="Estilo55 ">
            <div align="right"> <strong>Procesos Juridicos titular Vig: </strong></div>
        </div></td>
        <td  align="left">
           <input name="numpro" type="text" class="Estilo50" id="numpro" value="<?php echo $numpro ?>" size="12" maxlength="12" readonly=""/>	    </td>
		   <td  ><div align="center" class="Estilo55 ">
            <div align="right"> <strong>Procesos Juridicos Beneficiario Vig: </strong></div>
        </div></td>
        <td  align="left">
           <input name="numben" type="text" class="Estilo50" id="numben" value="<?php echo $numben ?>" size="12" maxlength="12" readonly=""/>	    </td>
	  </tr>
	    <tr>
	  <td ><div align="center" class="Estilo55">
            <div align="right"> <strong><span class="Estilo55">Contrato</span>: </strong></div>
        </div></td>
        <td  align="left" >
           <input name="estado" type="text" class="Estilo50" id="estado" value="<?php echo $estado; ?>" size="12" maxlength="12" readonly=""/>
	    </td>
		<td  ><div align="center" class="Estilo55 ">
            <div align="right"> <strong>Procesos Juridicos Titular His: </strong></div>
        </div></td>
        <td  align="left">
           <input name="numprohis" type="text" class="Estilo50" id="numprohis" value="<?php echo $numprohis; ?>" size="12" maxlength="12" readonly=""/>	    </td>
		   <td  ><div align="center" class="Estilo55 ">
            <div align="right"> <strong>Procesos Juridicos Beneficiario His: </strong></div>
        </div></td>
        <td  align="left">
           <input name="numbenhis" type="text" class="Estilo50" id="numbenhis" value="<?php echo $numbenhis ?>" size="12" maxlength="12" readonly=""/>	    </td>
	  </tr>
	  
	  
	
	
    
    
    <tr>
        <td colspan="6">
            <div align="center">
            <?php 
                if($row_credito_rotativo != 0)  {
                    echo "<input type='button' value='CONSULTAR CREDITO ROTATIVO' name=boton class='Estilo50' onClick =window.open('consulta_cartera_credito_rotativo.php?ced2=$ced2&cred=$credito_libranza','','top=50,left=100,toolbar=no,scrollbars=yes,width=900,height=530,status=yes')></a>"; 
                }
          
            ?>
            </div>
        </td>
    </tr>
    
	
    </table>

		
  
	<p align="center">
	 <input name="menu2" type="button" class="Estilo51" id="menu2" onClick="window.location.href='../consulta_cartera.php'" value="IR AL MENU">
	  
	</p>

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

<br>

<?
echo'<table width="900" border="0" cellspacing="2" cellpadding="2" align = "center">
  <tr align="center"> 
    <td colspan="7"><font face="Georgia, Times New Roman, Times, serif" color="#006600"><b align = "center">PAGOS EFECTUADOS</b></font></td>
  </tr>
  <tr align="center" bgcolor="#DDDDDD"> 
    <td width="90" align="center"><font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#000099">Valor cuota</font></td>
    <td bgcolor="#DDDDDD" width="55" ><font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#000099"># cuotas</font></td>
    <td width="100"><font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#000099"  align="center">Mes</font></td>
	 <td width="100"><font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#000099"  align="center">A�o</font></td>
    <td width="140"><font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#000099">Fecha pago</font></td>
    <td width="300" ><font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#000099">Entidad</font></td>
    <td width="140"><font face="Geneva, Arial, Helvetica, san-serif" size="2" color="#000099">Fecha registro</font></td>
  </tr>';				  


	$control = mysql_query('SELECT * FROM  cartera_estado_contable  WHERE cedula = "' . $_GET["ced2"] . '"  and contrato =  "' . $_GET["numcon"] . '" ORDER BY cuota ASC  ');
			if (!$control) {
				die('Invalid query: ' . mysql_error());
			}

		while(list($id, $cedula, $nombre, $contrato, $tipo, $cuota, $mescuota, $anocuota, $valorcuota, $fecha_registro, $fecha_nomina, $codesc, $unidesc) = mysql_fetch_row($control)) 
		{
				   
			$control5 = mysql_query('SELECT * FROM descuentos WHERE codigo = "' ."$codesc". '" and unidad = "' ."$unidesc". '" ');
			if (!$control5) {
				die('Invalid query: ' . mysql_error());
			}	 
			list($idr, $codigo, $unidad, $concepto) = mysql_fetch_row($control5);
		
          printf ("
            <tr align='center' bgcolor='#f4f4f4'>
                <td width='100'>
                    <font face='Geneva, Arial, Helvetica, san-serif' size='2' color=#993300'>
                        <a window.location.href=\"cartera_modificar_estado.php?id=$id\">$valorcuota</a>
                    </font>
                </td>
                <td width='100'> 
                    <font face='Geneva, Arial, Helvetica, san-serif' size='2' color=#993300'>
                        <a  window.location.href=\"cartera_modificar_estado.php?id=$id\" top=50,left=100,toolbar=no,scrollbars=no,width=790,height=521,status=yes>$cuota</a>
                    </font>
                </td>
                <td width='100'>
                    <font face='Geneva, Arial, Helvetica, san-serif' size='2' color=#993300'>
                        <a  window.location.href=\"cartera_modificar_estado.php?id=$id\" top=50,left=100,toolbar=no,scrollbars=no,width=790,height=521,status=yes>$mescuota</a>
                    </font>
                </td>
                <td width='100'>
                    <font face='Geneva, Arial, Helvetica, san-serif' size='2' color=#993300'>
                        <a window.location.href=\"cartera_modificar_estado.php?id=$id\" top=50,left=100,toolbar=no,scrollbars=no,width=790,height=521,status=yes>$anocuota</a>
                    </font>
                </td>
                <td width='100'>
                    <font face='Geneva, Arial, Helvetica, san-serif' size='2' color=#993300'>
                        <a window.location.href=\"cartera_modificar_estado.php?id=$id\" top=50,left=100,toolbar=no,scrollbars=no,width=790,height=521,status=yes>$fecha_nomina</a>
                    <font>
                </td>
                <td width='750'>
                    <font face='Geneva, Arial, Helvetica, san-serif' size='2' color=#993300'>
                        <a window.location.href=\"cartera_modificar_estado.php?id=$id\" top=50,left=250,toolbar=no,scrollbars=no,width=790,height=521,status=yes>$concepto</a>
                    </font>
                </td>
                <td width='100'>
                    <font face='Geneva, Arial, Helvetica, san-serif' size='2' color=#993300'>
                        <a window.location.href=\"cartera_modificar_estado.php?id=$id\" top=50,left=100,toolbar=no,scrollbars=no,width=790,height=521,status=yes>$fecha_registro</a>
                    </font>
                </td>
            </tr>");
						            								   
                               }
 echo "</table>";		
?>