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

?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Consulta Bonos Rango</title>
<style type="text/css">
<!--
.titulos {font: 16px; color: red; font-family:Arial; font-weight:bold}
.boton {background-color: #FFCCCC; color:#FFFFFF; width:90px; height:25; border: 3px solid #0000CC; font-family:Arial; color:#990000;}
.texto {background-color: #CCCCCC; font-size: 11px; font-family: Arial; color:#0000CC; display: block;}
.fecha {font-size: 12px; font-family: Arial; color:#990000; display: block; }
.campo {background-color:#FFFFAA; width: 100px; border:2px solid #990000;}
.lista {font-family: Arial; font-size: 11px;	color: #990000;}
.lista2 {font-family: Arial; font-size: 16px;	color: #FF6600;}
.boton2 {
	font-family: Verdana;
	font-size: 8 pt;  
	color: #000080;
	background-color: #C0C0C0;
	border-style: solid;
	width:90px;
	height:22px;
}
body {
	background-image: url(ELEMENTOS/gri06.jpg ); 
}
.Estilo50 {
	color: #00F;
	font-family: "Arial Narrow";
	font-weight: bold;
}
.boton1 {background-color: #FFCCCC; color:#FFFFFF; width:90px; height:25; border: 3px solid #0000CC; font-family:Arial; color:#990000;}
.boton11 {background-color: #FFCCCC; color:#FFFFFF; width:90px; height:25; border: 3px solid #0000CC; font-family:Arial; color:#990000;}
.Estilo54 {color: #333399; font-family: "Arial Narrow"; font-weight: bold; }
.Estilo57 {
	color: #C00
}
-->
</style>
<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>

<body>
<center> <img src="ELEMENTOS\CABEZOTE SERVIASJUDINET.jpg" WIDTH=60% > </center>
<br>
<form action="" method="post" name="form1" class="provd" id="form1">
  <div align="center">
    <table width="444" border="3" cellpadding="2" cellspacing="2" ">
      
      
      <tr>
        <td colspan="4" bgcolor="#CCCCCC"><div align="center" class="Estilo57">CONSULTA MENSAJES POR CEDULA</div></td>
      </tr>
      <tr>
        
          <td width="160" align="right" bgcolor="#FFFFFF"><span class="Estilo50">Cedula </span></td>
		  <th width="158" bgcolor="#FFFFFF" scope="col">
            <input name="cedula" type="text" class="Estilo66" id="cedula" value="" size="18" maxlength="18" />
       </th>

      </tr>
 
      
         
      
      
    </table>
  
    <p>
  <input name="menu2" type="button" class="Estilo57" id="menu2" onclick="window.location.href='menu_envio_mensajes.php'" value="IR AL MENU" />
	   <input name="consultar" id="consultar" type="submit" class="Estilo57" value="CONSULTAR">
	  
    </p>
  </div>
</form>
</body>
</html>

<?php

   
if(isset($_POST["consultar"]))
{

		
$control = mysql_query('SELECT cedula,nombre,mensaje,fecha FROM mensajes_texto_enviados WHERE (cedula= "'.$_POST["cedula"].'"  )');
		  if (!$control) {
				die('Invalid query 2: ' . mysql_error());
			} 

                     if ((mysql_num_rows($control)!=0)) 
	                    {	 
                              echo "<TABLE width='1000' border='8' align='center' cellpadding='1' cellspacing='1'>
                        <TR>
						
                        <TD bgcolor='#CCCCCC'><div align='center'><span class='Estilo57'>CEDULA</span></div></TD>
						<TD bgcolor='#CCCCCC'><div align='center'><span class='Estilo57'>NOMBRE</span></div></TD>	
						<TD bgcolor='#CCCCCC'><div align='center'><span class='Estilo57'>MENSAJE</span></div></TD>
                        <TD bgcolor='#CCCCCC'><div align='center'><span class='Estilo57'>FECHA ENVIO</span></div></TD>";		  
                           							  
                        
  while(list($cedula,$nombres,$celular,$unidad) = mysql_fetch_row($control)) 
                              {  

						
							   $sum = $sum +1 ;
							   $valtotal = $valtotal + $bono1;
							   

								   printf("<tr>
                                 
						<td bgcolor='#DEDEDE'><div align='center' >".$cedula."</span></div></td>
                        <td bgcolor='#DEDEDE'><div align='center' >".$nombres."</span></div></td>
					    <td bgcolor='#DEDEDE'><div align='center' >".$celular."</span></div></td>
						<td bgcolor='#DEDEDE'><div align='center' >".$unidad."</span></div></td>");            
							  }
				
                        }
						
echo "</form>";
						
}
?>