File: /home/asjudine/www/acalidad/requerimiento_injustificado_director_evalua_control.php
<?php include("b.php"); ?>
<?php
require_once("../Conectarse.php");
$sql2 = mysql_query('SELECT * FROM Usuarios WHERE (Cargo = "DISER BARRANQUILLA" || Cargo = "DISER BOGOTA" || Cargo = "DISER BUCARAMANGA" || Cargo = "DISER CALI" || Cargo = "DISER CARTAGENA" || Cargo = "DISER CUCUTA" || Cargo = "DISER FLORENCIA" || Cargo = "DISER IBAGUE" || Cargo = "DISER MEDELLIN" || Cargo = "DISER MELGAR" || Cargo = "DISER MOCOA" || Cargo = "DISER MONTERIA" || Cargo = "DISER NEIVA" || Cargo = "DISER PEREIRA" || Cargo = "DISER POPAYAN" || Cargo = "DISER TUNJA" || Cargo = "DISER PASTO"|| Cargo = "DISER VALLEDUPAR" || Cargo = "DISER VILLAVICENCIO" || Cargo = "DISER SANTA_MARTA" ) order by Nombre_Completo');
if (!$sql2) {
die('Invalid query 12: ' . mysql_error());
}
$row_sql2 = mysql_fetch_assoc($sql2);
$totalRows_sql2 = mysql_num_rows($sql2);
?>
<!DOCTYPE html>
<html>
<head>
<title>Consulta Novedades Diarias</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-color:#EAEAEA;font-family:Geneva, Arial, Helvetica, sans-serif;}
header {background-color: #B7271F; text-align: center;}
.cerrarsesion{width: auto;background-color: #DBD8C9;color: #000;font-size: 13px;position:absolute;top: 15px;right:10px;z-index:0;padding: 10px;border-radius: 10px;cursor: pointer;}
.cerrarsesion:hover{background-color: #ffffff;color: #000;}
.titulo{width: 100%;text-align: center;background-color: #dbd8c9;color: #b20606;padding: 6px 0;font-size: 18px;}
.subtitulos{width: 100%;text-align: center;color: #b20606;padding: 2px 0;font-size: 14px;}
table{margin: 0 auto;border: 8px solid #bebebe; text-align: center;}
.divirmenu{text-align: center;}
.irmenu{width: 170px;background-color: #1c4fa0;color: #fff; padding: 4px;border-radius: 6px;}
.irmenu:hover{background-color: #67a0d9; color: #000;}
.fecha{background-color: #d6e08b; padding: 2px;color: #000;font-size: 15px; text-align: center;}
td{}
.tdizq{background-color: #EEE; padding: 1px 1px;color: #00135F;font-size: 13px;font-weight: 300; text-align: left;}
.tdcen{background-color: #EEE; padding: 1px 1px;color: #00135F;font-size: 13px;font-weight: 300; text-align: center;}
.tdder{background-color: #EEE; padding: 1px 1px;color: #00135F;font-size: 13px;font-weight: 300; text-align: right;}
.tdroja{background-color: #EEE; padding: 1px 1px;color: #CC0005;font-size: 13px;font-weight: 600; text-align: right;}
.exp{color:#8A0000; font-size:10px;}
.fuerte{font-weight:400;}
.boton1{width:170px;background-color: #ffffff;color: #000;padding: 2px;border:2px solid #580000;border-radius:5px;}
.boton1:hover{background-color: #6f0000;color: #fff;cursor: pointer;}
input[type=text]{border-radius: 2px; padding: 3px;background-color: #FFFEF4;}
.tdtitulo{background-color: #e3dec0; color: #b20606; padding: 2px; text-align: center; font-size: 12px; font-weight: 600}
.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;}
.btncontrato{width:auto; padding: 2px 5px; background:#F5F1C2; color:#000;}
.btncontrato:hover{background-color:#716D04; color:#fff;}
.Estilo50 {color: #CC3333;
font-family: "Arial Narrow";
font-weight: bold;
}
.Estilo54 {color: #333399; font-family: "Arial Narrow"; font-weight: bold; }
.Estilo57 {color: #006600}
</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>
<header>
<img src="../ELEMENTS/bannerInterasjudinet.png" alt="" width=" 700" height="70">
</header>
<h3 class="titulo"><span class="Estilo50">CONSULTA REQUERIMIENTOS INJUSTIFICADOS POR DIRECTOR</span></h3>
<?php echo "<div class='cerrarsesion' onclick='location.href=\"../cerrar_session.php\"'>CERRAR SESION</div>";?>
<form action="" method="post" name="form1" class="provd" id="form1">
<div align="center">
<table width="589" border="3" cellpadding="2" cellspacing="2">
<tr>
<td class="tdcen"><span class="Estilo54">Seleccione "<span class="Estilo57">DIRECTOR</span>" para continuar</span></td>
<td colspan="3"><select name="funcionario">
<option value="">--SELECCIONE DIRECTOR--</option>
<?php
do {
?>
<option value="<?php echo $row_sql2['Cedula'];?>"><?php echo $row_sql2['Nombre_Completo']?></option>
<?php
} while ($row_sql2 = mysql_fetch_assoc($sql2));
$rows2 = mysql_num_rows($sql2);
if($rows2 > 0) {
mysql_data_seek($sql2, 0);
$row_sql2 = mysql_fetch_assoc($sql2);
}
?>
</select> </td>
</tr>
<tr>
<td class="tdcen" width="183">FECHA DESDE</td>
<td class="tdcen" width="110"><input name="fecha1" type="text" id="fecha1" value="0000-00-00" size="10" maxlength="10" />
<td class="tdcen" width="103">FECHA HASTA
<td class="tdcen" width="105"><input name="fecha2" type="text" id="fecha2" value="0000-00-00" size="10" maxlength="10" /></td>
</tr>
</table>
<p>
<input name="menu2" type="button" class="irmenu" id="menu2" onclick="window.location.href='menu_informe_evaluacion_control.php'" value="IR AL MENU" />
<input name="consultar" id="consultar" type="submit" class="boton1" value="CONSULTAR">
</p>
</div>
</form>
</body>
</html>
<?php
if(isset($_POST["consultar"]))
{
$control = mysql_query('SELECT id, numradica, identificacion, nombre_completo , recalificacion , fecha_envio FROM requerimientos_directores WHERE identificacion = "' . $_POST[funcionario] . '" and fecha_envio > "' . $_POST[fecha1] . '" and fecha_envio < "' . $_POST[fecha2] . '" and recalificacion = "INJUSTIFICADO" order by fecha_calificacion ');
if (!$control) {
die('Invalid query 2: ' . mysql_error());
}
if ((mysql_num_rows($control)!=0))
{
echo "<TABLE width='700' border='3' align='center' cellpadding='3' cellspacing='2' >
<TR>
<td class='tdtitulo'>CEDULA</td>
<td class='tdtitulo'>NOMBRE</td>
<td class='tdtitulo'>RECALIFICACION</td>
<td class='tdtitulo'>FECHA ENVIO</td>";
while(list($id, $numra, $cedula, $nombre, $calificacion, $fechacali) = mysql_fetch_row($control))
{
$sum = $sum + 1;
printf("<tr>
<td class='tdfull'><input type='button' value=$cedula name='cedu' class=botonnew onClick =window.open('requerimiento_consulta_director.php?cedula=$cedula&radica=$numra&id=$id','','top=20,left=100,toolbar=no,scrollbars=yes,width=790,height=600,status=yes')></td>
<td class='tdfull'>".$nombre."</td>
<td class='tdfull'>".$calificacion."</td>
<td class='tdfull'>".$fechacali."</td> ");
}
echo "</table>";
echo "<TABLE width='200' border='0' align='center' cellpadding='0' cellspacing='1'>
<TR>
<br></br>
<td class='tdtitulo'>TOTAL REGISTROS</td>";
printf("<tr>
<td class='tdfull'>".$sum."</td>");
echo "</table>";
}
echo "</form>";
}
?>