File: /home/asjudine/public_html/apostventas/Visualizar_Contratos_Titular.php
<?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>
<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>
</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>
<td colspan="3"><div align="center" class="Estilo1">CONSULTA DE CONTRATOS</div></td>
</tr>-->
<tr>
<td class="fecha" colspan="3">
<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
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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</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><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$Filas[3]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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' class='tdtitulo'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
</tr>
<tr bgcolor='#FFFFCC'>
<th class='tdtitulo'>CARA 1</span></th>
<th class='tdtitulo'>CARA 2</span></th>
<th class='tdtitulo'>NUMERO CONTRATO</span></th>
<th class='tdtitulo'>NOMBRE TITULAR</span></th>
<th class='tdtitulo'>TIPO CONTRATO</span></th>
</tr>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr><td><a href='descargar_archivos_contratos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td><a href='descargar_archivos_contratos_dos.php?cedula=".$Filas[0] . "&tipo=".$_GET["tipo"]."' class='Estilo5 Estilo6'>Descargar</a></div></td>
<td>".$_GET[contra]."</span></div></td>
<td>".$Filas[2]."</span></div></td>
<td>".$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>