File: /home/asjudine/public_html/abogados/reque_consulta_injustificado_abo.php
<!DOCTYPE html>
<html>
<head>
<title>Consulta Reconsideracion Abogados</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>
*{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;}
.cerrarsesion{width: auto;height: 20px;background-color: #DBD8C9;color: #000;font-size: 13px;position:absolute;top: 15px;right:10px;z-index:0;padding: 10px;border-radius: 10px;cursor: pointer;}
.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;}
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;}
</style>
</head>
<body>
<header>
<img src="../ELEMENTS/bannerInterasjudinet.png" alt="" width=" 700" height="70">
</header>
<h3 class="titulo">CONSULTAR REQUERIMIENTOS INJUSTIFICADOS</h3>
<?php echo "<div class='cerrarsesion' onclick='location.href=\"../cerrar_session.php\"'>CERRAR SESION</div>";?>
<form id="form1" name="form1" method="post" >
<table width="330" border="3" cellpadding="3" cellspacing="3" class="recaudo">
<tr>
<th colspan="2" class='fecha' scope="col">Digite el Numero de Cedula </th>
</tr>
<tr>
<td class="td">DIGITE CEDULA</td>
<td class="td"><input name="cedula" type="text" id="cedula" size="20" maxlength="20" required /></td>
</tr>
<tr>
<td colspan="2" align='center'>
<input name="consultar" type="submit" class="boton1" id="consultar" value="Consultar" />
<?php echo "<input type='button' class='irmenu' onclick='location.href=\"../menu_admin.php\"' value='MENU'>"; ?>
</td>
</tr>
</table>
</form>
</body>
</html>
<?php
if(isset($_POST["consultar"]))
{
require_once("../Conectarse.php");
echo "<form name='form' action='' method='post'>";
global $dbi;
$control = mysql_query('SELECT Id, numradica, Identificacion, funcionario_requiere, fecha_calificacion FROM requerimientos WHERE (identificacion = "' . $_POST["cedula"] . '" || numradica = "' . $_POST["cedula"] . '") and estado = "6" and calificacion = "INJUSTIFICADO" ');
if (!$control) {
die('Invalid query 1: ' . mysql_error());
}
if ((mysql_num_rows($control)!=0))
{
echo "<TABLE width='800' border='2' 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'>FUNCIONARIO QUE REQUIERE</TD>
<TD class='tdtitulo'>FECHA CALIFICACION</TD>";
while(list($id, $radica , $cedula , $nombre, $fechaca ) = mysql_fetch_row($control))
{
printf("<tr>
<td bgcolor='#F7FFE1'><div align='center' class='lista'>".$id."</span></div></td>
<td bgcolor='#DEFEFD'><div align='center' class='lista'><input type='button' value=$cedula name='cedu' class=Estilo51 onClick =window.open('requerimiento_ingresar_reconsideracion.php?cedula=$cedula&radica=$radica&id=$id','','top=50,left=100,toolbar=no,scrollbars=yes,width=820,height=600,status=yes')></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'>".$fechaca."</span></div></td>");
}
echo "</table>";
}
else
{
echo "<script>alert('Usuario no tiene Requerimientos')</script>";
}
echo "</form>";
}
?>