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

	 
	 
?>

<!DOCTYPE html>
<html lang="en">
<head>
<title>Descarga Contrato</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>
	<?php include('../headerint.php'); ?>
	
	
	<form method="post" name="formulario" action="Mostrar_Texto.php">
	
	<table width="726" align="center">
  		<tr bgcolor="#0099FF">
    		<td colspan="3"><div align="center" class="Estilo1">CONSULTA DE CONTRATOS</div></td>
  		</tr>
  		<tr bgcolor="#FFFFCC">
    		<td colspan="3"><div align="center">
          		<script languaje="JavaScript">Mostrar_Fecha()</script>
    		</div></td>
    	</tr>
  		
  		<tr>
    		<td>&nbsp;</td>
    		<td width="349" colspan="2">&nbsp;</td>
  		</tr>

  		<tr bgcolor="#ECE9D8">
    		<td colspan="3">
    
 			<center>

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

			</center>     
	
	
	

<?php
global $dbi;

$res = mysql_query("SELECT * FROM consulta_contratos WHERE cedula = '".$_GET["cedula"]."' and id = '".$_GET["id"]."' ");
if (!$res) {
	die('Invalid query: ' . mysql_error());
} 


if ((mysql_num_rows($res)!=0))  
{
	printf("
	<table width='700' border='1' align='center' cellpadding='1' cellspacing='1'>
    	<tr bgcolor='#FFFFCC'>
        	<th colspan='5' scope='col'><span class='Estilo5'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
        </tr>
       	<tr bgcolor='#FFFFCC'>
			<th scope='col'><span class='Estilo5'>ARCHIVO</span></th>
            <th scope='col'><span class='Estilo5'>NOMBRE TITULAR</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_contrato_correo.php?cedula=".$Filas[0] . "&id=".$_GET["id"]." class='Estilo5 Estilo6'>Descargar</a></div></td>
            <td><div align='center'><span class='Estilo7'>".$Filas[1]."</span></div></td>
			<td><div align='center'><span class='Estilo7'>".$Filas[4]."</span></div></td>");
  	}
	
	echo "</table>";   
    mysql_free_result($res);  
					  
}


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

</table>
</form>

</body>
</html>