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/apostventas/consultar_libranzas_escaneadas.php
<html>
<head>
<title>Consulta Libranzas</title>
<meta http-equiv="X-UA-Compatible" content="IE=8; IE=9; IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    
<style type="text/css">
	*{margin: 0;padding: 0;}
    body{background-color:#FFFFFF;font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif}
    header {background-color: #B7271F; text-align: center;}
    .cerrarsesion{width: auto;background-color: #DBD8C9;color: #000;font-size: 13px;position:absolute;top: 15px;right:10px;z-index:0;padding: 10px;border-radius: 10px;cursor: pointer;}
    .cerrarsesion:hover{background-color: #ffffff;color: #000;}
    .titulo{width: 100%;text-align: center;background-color: #dbd8c9;color: #b20606;padding: 6px 0;font-size: 18px;}
	.subtitulos{width: 100%;text-align: left;color: #b20606;padding: 2px 0;font-size: 13px;}
    table{margin: 0 auto;border: 8px solid #bebebe; text-align: center;}
    .irmenu{width: 200px;background-color: #1c4fa0;color: #fff; padding: 4px;border-radius: 6px;}
    .irmenu:hover{background-color: #67a0d9; color: #000;}
    
    .fecha{background-color: #d6e08b; padding: 2px;color: #000;font-size: 15px; text-align: center;}
    td{border: #D7D7D7 solid 0.2px;}
    .tdizq{background-color: #EEE; padding: 1px 1px;color: #00135F;font-size: 14px;font-weight: 400; text-align: left;}
    .tdcen{background-color: #EEE; padding: 1px 1px;color: #00135F;font-size: 14px;font-weight: 400; text-align: center;}
    .tdder{background-color: #EEE; padding: 1px 1px;color: #00135F;font-size: 14px;font-weight: 400; text-align: right;}
	.tdroja{background-color: #EEE; padding: 1px 1px;color: #CC0005;font-size: 14px;font-weight: 600; text-align: right;}
	.tdi{background-color: #FDF8D5; padding: 1px 1px;color: #C0292E;font-size: 14px;font-weight: 500; text-align: left;}
    .tdc{background-color: #FDF8D5; padding: 1px 1px;color: #C0292E;font-size: 14px;font-weight: 500; text-align: center;}
    .tdd{background-color: #FDF8D5; padding: 1px 1px;color: #C0292E;font-size: 14px;font-weight: 500; text-align: right;}
	.exp{color:#8A0000; font-size:12px;}
    .boton1{width:200px;background-color: #ffffff;color: #000;padding: 4px;border:1px solid #580000;border-radius:2px;}
    .boton1:hover{background-color: #6f0000;color: #fff;cursor: pointer;}
	.direcciona{width: 200px;background-color: #D4090C;color: #fff; padding: 4px;border-radius: 3px;}
	.direcciona:hover{background-color: #67a0d9; color: #000;}
    input[type=text]{border:groove #191919 0.5px; border-radius: 3px; padding: 3px;background-color: #FFFFFF; font-weight:700px;}
	select{border:solid #191919 0.5px; border-radius: 3px; padding: 3px;background-color: #FFFFFF; font-weight:600px; }
	
	.tdtitulo{background-color: #e3dec0; color: #b20606; padding: 2px; text-align: center; font-size: 12px; font-weight: 900}
    .tdfull{background-color: #fff; color: #000; padding: 5px; text-align: center; font-size: 12px; font-family:Verdana, Geneva, sans-serif;}
	.tdjustify{background-color: #fff; color: #000; padding: 5px; text-align: justify; font-size: 12px; font-family:Verdana, Geneva, sans-serif;}
    .botonnew{width: 90px; background-color: #C0292E;color: #FFFFFF;padding: 1px;border-radius:5px;}
    .botonnew:hover{background-color: #cbbd6a;color: #000;padding: 1px;border-radius:5px;}
</style>

<script languaje="JavaScript">
function Mostrar_Fecha()
{
         var mydate=new Date()
         var year=mydate.getYear()
         if (year < 1000)
                 year+=1900
                 var day=mydate.getDay()
                 var month=mydate.getMonth()
                 var daym=mydate.getDate()
                 if (daym<10)
                    daym="0"+daym
                    var dayarray=new Array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sabado")
                    var montharray=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre")
                    document.write("<b><font face='Arial, Helvetica, sans-serif'>"+dayarray[day]+" "+daym+" de "+montharray[month]+" de "+year+"</font></b>")
}					
</script>

<script Language="JavaScript"><!--
function Valida(formulario)
{
  if (formulario.Identificacion.value == "")
  {
    alert("Por favor llenar el campo Número de Identificación");
    formulario.Identificacion.focus();
    return (false);
  }
  return (true);
}
//--></script>

</head>
<body onLoad="document.formulario.Identificacion.focus()">
<header>
    <img src="../ELEMENTS/bannerInterasjudinet.png" alt="" width=" 700" height="70">
</header>
<h3 class="titulo">CONSULTAR LIBRANZAS</h3>	
	
<form name="formulario">
<table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><table width="723" border="0" align="center" cellpadding="0" cellspacing="0">

      <!--<tr bgcolor="#0099FF">
        <td colspan="2"><div align="center" class="Estilo2">
            <p class="Estilo9">CONSULTAR LIBRANZAS </p>
        </div></td>
      </tr>-->
<tr >
	<td class="fecha" colspan="2"><div align="center"><span class="Estilo12">
  		<script languaje="JavaScript">Mostrar_Fecha()</script>
    </td>
</tr>
<tr>
 	<td class="tdcen" width="550">Digite el n&uacute;mero (C&eacute;dula, C&oacute;digo Militar o NIT):
    <input name="Identificacion" type="text" size="15" maxlength="15"></td>
    <td width="211"><input name="submit" type="submit" value="CONSULTAR" class="boton1"></td>
      </tr>
	  <tr>
	<td align="center" colspan="2">
	<input name="menu2" type="button" class="irmenu" id="menu2" onClick="window.location.href='../menu_admin.php'" value="IR AL MENU">
	</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<hr>
	
	
	
<?php
global $dbi;
require_once("../Conectarse.php");
	
//$Visualiza="select Identificacion, Referencia, Nombre_Completo from correspondencias where Identificacion = $Identificacion";	
//$Query = sql_query($Visualiza, $dbi);
$resulta = mysql_query('SELECT cedula,numerocontrato,nombre FROM cartera_serviasjudinet  WHERE cedula = "' . $_GET["Identificacion"] . '" ');
if (!$resulta) {
	die('Invalid query: ' . mysql_error());
}
				   
if($resulta) 
{
    list($Identificacion, $Referen, $Nombre) = mysql_fetch_row($resulta);
		
?>

<table width="600" border="0" align="center" cellpadding="0" cellspacing="0" #ECE9D8>
      <tr>
      <td class="tdcen">Contrato(s) Que Pertenece(n) A: <span class="exp"><?php echo $Nombre ?><br>Identificado Con Cedula : <?php echo $Identificacion ?></td>
      </tr>
</table>
<br></br>
<TABLE width="809" border="2" align="center" cellpadding="2" cellspacing="4" >
<TR>
	<TD class="tdtitulo">CEDULA</TD>	
	<TD class="tdtitulo">NOMBRE AFILIADO</TD>	  
    <TD class="tdtitulo">NUMERO CONTRATO</TD>
    <TD class="tdtitulo">NUMERO LIBRANZA</TD>
   	<TD class="tdtitulo">TIPO CONTRATO</span><span class="Estilo10"></span></TD>
    <TD class="tdtitulo">ESTADO</span><span class="Estilo10"></span></TD>		 	 
</TR>

<?php

	}
	
if($Identificacion != "")
{
	global $Id;

	   
	$Consulta = mysql_query('SELECT cedula,nombre,numerocontrato,tipocontrato,numero_libranza,estado FROM cartera_serviasjudinet WHERE cedula= "'.$_GET["Identificacion"].'"');
	if (!$Consulta) {
		die('Invalid query: ' . mysql_error());
	}	   
    if ($Consulta) 
    {
     	$I = 0; 
		while(list($cedula,$nombre,$numcontra,$tipocontra,$numero_libranza,$estado)= mysql_fetch_row($Consulta)) 
        { 
				
			if ($estado=="0")
			{
				$estado="HISTORICO";
			}		
			else {
				$estado="VIGENTE";
			}
			
			
			printf
			("<tr>
			  <td bgcolor='#ECE9D8'><div align='center' class='lista'><input type='button' value=$cedula name='cedu' class=botonnew onClick =window.open('Visualizar_Libranzas_Titular.php?contra=$numcontra&cedula=$cedula&tipo=$tipocontra&libranza=$numero_libranza','','top=50,left=100,toolbar=no,scrollbars=yes,width=750,height=500,status=yes')></a></td>	
			
			<td class='tdfull'>".$nombre."</td>
			<td class='tdfull'>".$numcontra."</td>
			<td class='tdfull'>".$numero_libranza."</td>
			<td class='tdfull'>".$tipocontra."</td>
			<td class='tdfull'>".$estado."</td>");
		}

        echo "</table>";
			
	}			  
    else
    {    
     	echo "<script>alert('Número de Identificación no encontrado');</script>";
    } 
}
?>