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/acorreos/consulta_ced_enviar_correo_entidades.php
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>Consulta por cedula  para envio de correos</title>
	<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-image:url(../ELEMENTS/fondo.jpg);font-family:Geneva, Arial, Helvetica, sans-serif;}
    header {background-color: #B7271F; text-align: center;}
	.exp{color: red;}

    .titulo{width: 100%;text-align: center;background-color: #dbd8c9;color: #b20606;padding: 6px 0;font-size: 18px;}
    table{margin: 0 auto;border: 8px solid #bebebe;}
    .divirmenu{text-align: center;}
    .irmenu{width: 200px;background-color: #1c4fa0;color: #fff; padding: 4px;border-radius: 6px;margin-top: 5px;margin-bottom: 5px;}
    .irmenu:hover{background-color: #67a0d9; color: #000;}
    
    .fecha{background-color: #d6e08b; padding: 2px;color: #000;font-size: 15px; text-align: center;}
    td{padding: 1px; border: 1px solid #a0a0a0;}
    .td{background-color: #e5e5e5; padding: 1px 30px;color: #00135F;font-size: 14px;font-weight: 600; text-align: center;}
    .boton1{width:30%;background-color: #ffffff;color: #000;padding: 2px;border:2px solid #580000;border-radius:10px;}
    .boton1:hover{background-color: #6f0000;color: #fff;cursor: pointer;}
    input[type=text]{border-radius: 5px; padding: 3px;background-color: #fffde8;}
    
	.tdtitulo{background-color: #e3dec0; color: #b20606; padding: 2px; text-align: center; font-size: 12px; font-weight: 900}
    .tdfull{background-color: #fff; color: #000; padding: 1px; text-align: center; font-size: 12px;}
    .botonnew{width: 90px; background-color: #e3dec0;color: #b20606;padding: 1px;border-radius:5px;}
    .botonnew:hover{width: 90px; background-color: #cbbd6a;color: #000;padding: 1px;border-radius:5px;}
    .boton{width: 100%; margin: 0 auto; font-size: 13px; font-weight: 500; padding: 5px; background-color: #fffbe8; cursor: pointer; text-align: left; padding-left: 20px;}
    .boton:hover{background-color: #4d598b;color: #fff;}
</style>
	
	
	
</head>

<body>

<header>
    <img src="../ELEMENTS/bannerInterasjudinet.png" alt="" width=" 700" height="70">
</header>
<h3 class="titulo">CONSULTA POR NUMERO DE CEDULA</h3>
	
	
	
<form id="form1" name="form1" method="post" >
 
<table width="435" border="3" cellpadding="3" cellspacing="3" class="recaudo">
          
<tr>
	<th class="fecha" colspan="2" bgcolor="#DDDDDD" scope="col"><label>Digite el Numero de Cedula </label></th>
</tr>
          
<tr>
 	<td class="td">DIGITE CEDULA &oacute; <span class="exp"> No RADICACION:</span></td>
  	<td class="td"><input name="cedula" type="text" id="cedula" size="20" maxlength="20" /></td>
</tr>
		  
 <tr>
	<td colspan="2" align="center"><input name="consultar" type="submit" class="boton1" id="consultar" value="Consultar" /></td>
 </tr>
		  
 </table>
 
<div align="center">
    <input name="menu2" type="button" class="irmenu" id="menu2" onclick="window.location.href='../menu_admin.php'" value="IR AL MENU" />
</div>
</form>
</body>
</html>

<?php
require_once("../Conectarse.php");	
echo "<form name='form' action='' method='post'>";
global $dbi;
 
 
if(isset($_POST["consultar"]))
{


 $control = mysql_query('SELECT Id, numradica, Identificacion, Nombre_Completo FROM correspondencias_entidades  WHERE (Identificacion = "'. $_POST["cedula"].'" || numradica = "' . $_POST["cedula"] . '") and (estado = "0" || estado = "2")');
	if (!$control) {
		die('Invalid query 1: ' . mysql_error());
	}

    if ((mysql_num_rows($control)!=0)) 
	{	 
    	echo "<TABLE width='700' border='3' align='center' cellpadding='0' cellspacing='1'>
        <TR>
		<TD class='tdtitulo'>ID</TD>
		<TD class='tdtitulo'>CEDULA</TD>
        <TD class='tdtitulo'>N° RADICACION</TD>
		<TD class='tdtitulo'>NOMBRE</TD>";		  
                           							  
                        
 		while(list($id, $radica , $cedu , $nombre ) = mysql_fetch_row($control)) 
        {
			printf("<tr>
            <td class='tdfull'>".$id."</td>
			<TD class='tdfull'><input type='button' value=$cedu name='cedu' class='botonnew' onClick=window.location.href='Enviar_Respuestas_correo_entidades.php?cedula=$cedu&radica=$radica&id=$id'></a></TD>
            <td class='tdfull'>".$radica."</td>
			<td class='tdfull'>".$nombre."</td>");           						  
       }
	echo "</table>";		
 	}

	echo "</form>";

}

?>