File: /home/asjudine/public_html/consulta_ced_enviar_correo_afi.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 por cedula para envio de correos</title>
<style type="text/css">
<!--
.campo1 { background-color: #B7FFFF;
border: thin dashed #B6B6B6;
}
.campo1 { font-family: "Courier New", Courier, monospace;
font-size: 16px;
font-style: normal;
font-weight: bold;
background-color: #E1EFFD;
border: thin doble #009999;
}
.campo1 {
font-family: "Courier New", Courier, monospace;
font-size: 12px;
color: #5151FF;
background-color: #C4E4FD;
border: thin solid #009999;
height: 20px;
width: auto;
}
.datos3 {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
font-weight: normal;
color: #FF3300;
background-color: #A6ECD7;
margin: 4px;
padding: 4px;
border: medium groove #CCCCFF;
}
.campo {background-color: #FFFFCC; border:1px solid #990000; font-family:Arial; font-size:11px; height: inherit}
.Estilo50 {color: #CC3333;
font-family: "Arial Narrow";
font-weight: bold;
}
.Estilo1 { color: #FF6633;
font-size: 24px;
font-style: italic;
}
.Estilo2 { color: #FF6633;
font-size: 16px;
}
.Estilo3 { color: #2492FF;
font-weight: bold;
}
.recaudo { font-family: "Courier New", Courier, monospace;
font-size: 12px;
font-style: normal;
font-weight: bold;
font-variant: normal;
color: #000000;
background-color: #B6CBDC;
margin: 4px;
padding: 8px;
width: auto;
border: medium outset #339966;
}
.datos2 {
font-family: "Courier New", Courier, monospace;
font-size: 12px;
font-style: normal;
font-weight: normal;
color: #0033FF;
background-color: #FFE2C6;
margin: 2px;
padding: 3px;
border: medium doble #EEBFEB;
}
.go {
font-family: "Times New Roman", Times, serif;
font-size: 9px;
font-style: normal;
color: #FF6633;
background-color: #FBDCBD;
padding: 1px;
height: auto;
width: auto;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
}
.datos1 { font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 16px;
font-style: normal;
text-decoration: blink;
background-color: #CCFFCC;
margin: 5px;
padding: 7px;
height: auto;
width: auto;
border: thin solid #0099FF;
}
.datos1 { font-family: Georgia, "Times New Roman", Times, serif;
font-size: 16px;
background-color: #FDE0C1;
margin: 2px;
padding: 3px;
border: medium doble #DBAED7;
}
.datos1 {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 12px;
font-weight: normal;
background-color: #B8F5E8;
margin: 4px;
padding: 5px;
border: thin outset #009999;
}
.Estilo55 {color: #003399}
.Estilo56 {color: #FF0000}
-->
</style>
</head>
<body>
<form id="form1" name="form1" method="post" >
<div align="center">
<table width="330" border="3" cellpadding="3" cellspacing="3" class="recaudo">
<caption>
<span class="Estilo1">SERVIASJUDINET</span>
</caption>
<tr>
<th colspan="2" bgcolor="#FFFFCC" scope="col"><label>Digite el Numero de Cedula </label></th>
</tr>
<tr>
<td width="162" bgcolor="#FFFFCC"><div align="center"><span class="Estilo2"><span class="Estilo56">DIGITE CEDULA ó</span> <span class="Estilo55">No RADICACION:</span> </span></div></td>
<td width="135" bgcolor="#FFFFCC"><div align="center">
<input name="cedula" type="text" id="cedula" size="20" maxlength="20" />
</div></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFCC"><div align="center">
<input name="consultar" type="submit" class="Estilo3" id="consultar" value="Consultar" />
</div></td>
</tr>
</table>
</div>
<p align="center">
<input name="menu2" type="button" class="Estilo50" id="menu2" onclick="window.location.href='menu_admin.php'" value="IR AL MENU" />
</p>
</form>
</body>
</html>
<?php
if(isset($_POST["consultar"]))
{
require_once("Conectarse.php");
echo "<form name='form' action='' method='post'>";
require_once("mainfile.php");
include ("config.php");
global $dbi;
$control = mysql_query('SELECT Id,numradica,Identificacion,Nombre_Completo,tipo FROM correspondencias 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 bgcolor='#FFCC66'><div align='center'><span class='texto'>ID</span></div></TD>
<TD bgcolor='#FFCC66'><div align='center'><span class='texto'>CEDULA</span></div></TD>
<TD bgcolor='#FFCC66'><div align='center'><span class='texto'>N° RADICACION</span></div></TD>
<TD bgcolor='#FFCC66'><div align='center'><span class='texto'>NOMBRE</span></div></TD>
<TD bgcolor='#FFCC66'><div align='center'><span class='texto'>TIPO</span></div></TD>";
while(list($id, $radica , $cedu , $nombre, $tipo ) = mysql_fetch_row($control))
{
printf("<tr>
<td bgcolor='#F7FFE1'><div align='center' class='lista'>".$id."</span></div></td>
<TD bgcolor='#F7FFE1'><div align='center' class='lista'><input type='button' value=$cedu name='cedu' class=est_cont1 onClick=window.location.href='subir_archivos_respuestas_correos_afiliados.php?cedula=$cedu&radica=$radica&id=$id'></a></span></div></TD>
<td bgcolor='#F7FFE1'><div align='center' class='lista'>".$radica."</span></div></td>
<td bgcolor='#F7FFE1'><div align='center' class='lista'>".$nombre."</span></div></td>
<td bgcolor='#F7FFE1'><div align='center' class='lista'>".$tipo."</span></div></td>");
}
echo "</table>";
}
echo "</form>";
}
?>