File: /home/asjudine/www/acalidad/consultar_requerimientos.php
<?PHP
require_once("../Conectarse.php");
$result = mysql_query('SELECT id, numradica, identificacion, numero_proceso, nombre_completo, codigo_dep_envio, funcionario_requiere, referencia , fecha_envio, hora_envio, asunto, mensaje, funcionario_requiere, fecha_respuesta , hora_respuesta , asunto_respuesta, funcionario_respuesta, mensaje, fecha_calificacion, gestion_calificacion , gestion_accion, gestion_reconsideracion, gestion_recalificacion FROM requerimientos WHERE Id = "' . $_GET["id"] . '" ');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
if($result)
{
if (mysql_num_rows($result)==0)
{
echo "<script>alert('Número de Identificación no encontrado');</script>";
exit;
}
list($Id, $numradica, $Identificacion, $numpro, $Nombre_Completo, $nombre_dep, $Nombre_Elaboro, $Referencia, $fechaen, $horaen, $Asunto, $mensajeen, $Quien_Expide, $fechare, $horare, $asuntore, $funre, $mensajere, $fechacali, $gestioncali, $accion, $reconsideracion, $recalificacion ) = mysql_fetch_row($result);
$tere = 0;
$con1 = mysql_query('SELECT numero_proceso FROM requerimientos WHERE numero_proceso = "' ."$numpro". '" and identificacion = "' ."$Identificacion". '" and (estado = "4" || estado = "3" || estado = "5")');
if (!$con1) {
die('Invalid query: ' . mysql_error());
}
while(list($numero_procesoss) = mysql_fetch_row($con1))
{
$tere = $tere + 1 ;
}
?>
<html>
<head>
<title>calificacion requerimientos</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script languaje="JavaScript">
function Mostrar_Fecha()
{
var mydate=new Date()
var year=mydate.getYear()
if(year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym < 10)
daym="0"+daym
var dayarray=new Array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sabado")
var montharray=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre")
document.write("<b><font face='Arial, Helvetica, sans-serif'>"+dayarray[day]+" "+daym+" de "+montharray[month]+" de "+year+"</font></b>")
}
</script>
<style type="text/css">
<!--
.Estilo1 {
color: #000099;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
.Estilo7 {font-family: Arial, Helvetica, sans-serif; font-size: 14px; }
.Estilo8 {font-size: 14px}
.Estilo19 {font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #FF0000; }
.Estilo21 {font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #000099; }
.Estilo23 {font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #006600; }
.Estilo25 {font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #330066; }
body{background-color:#EAEAEA;font-family:Geneva,Arial,Helvetica,sans-serif;}
header {background-color: #B7271F; text-align: center;}
.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; text-align: center;}
.divirmenu{text-align: center;}
.irmenu{width: 200px;background-color: #1c4fa0;color: #fff; padding: 4px;border-radius: 6px;}
.irmenu:hover{background-color: #67a0d9; color: #000;}
.direcciona{width: 200px;background-color: #D4090C;color: #fff; padding: 4px;border-radius: 3px;}
.direcciona: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: #FFFEF4;}
.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: 40px; background-color: #e3dec0;color: #b20606;padding: 1px;border-radius:5px;}
.botonnew:hover{width: 40px; background-color: #cbbd6a;color: #000;padding: 1px;border-radius:5px;}
.tdizq{background-color: #e5e5e5; padding: 1px 10px;color: #00135F;font-size: 12px;font-weight: 600; text-align: left;}
.tdcen{background-color: #e5e5e5; padding: 1px 10px;color: #00135F;font-size: 12px;font-weight: 600; text-align: center;}
.tdder{background-color: #e5e5e5; padding: 1px 2px;color: #00135F;font-size: 12px;font-weight: 600; text-align: right;}
.tdbono{background-color: #FFFFCC; padding: 1px 2px;color: #00135F;font-size: 12px;font-weight: 600; text-align: right;}
/*Estilo Complementario*/
.tdi{background-color: #F9FBC8; padding: 1px 10px;color: #00135F;font-size: 12px;font-weight: 600; text-align: left;}
.tdc{background-color: #F9FBC8; padding: 1px 10px;color: #00135F;font-size: 12px;font-weight: 600; text-align: center;}
.tdd{background-color: #F9FBC8; padding: 1px 2px;color: #00135F;font-size: 12px;font-weight: 600; text-align: right;}
</style>
</style>
</head>
<body>
<form method="post" name="formulario" action="">
<header>
<img src="../ELEMENTS/bannerInterasjudinet.png" alt="" width=" 700" height="70">
</header>
<table width="726" align="center">
<tr bgcolor="#0099FF">
<td colspan="3" class="titulo">VISUALIZAR REQUERIMIENTOS</td>
</tr>
<tr>
<td colspan="3"><p align="right"><strong>
<?php
echo "<textarea name='Contenido' cols='85' rows='10' title='RESPUESTA ENVIADA' readonly>\n";
echo htmlspecialchars($mensajere)."\n";
echo "</textarea>"; ?>
</strong></p></td>
</tr>
<?php
$fecha = $Dia_Envio."-".$Mes_Envio."-".$Ano_Envio;
$LaIdentificacion = $_GET[cedula];
$ElID =$_GET[id];
$res = mysql_query("SELECT * FROM archivosrequerimientos WHERE Identificacion = '$LaIdentificacion' and registro = '$ElID'");
if (!$res) {
die('Invalid query: ' . mysql_error());
}
printf("<style type='text/css'><!--.Estilo5 {font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #000066; }--></style>");
while($Filas = mysql_fetch_row($res))
{
printf("<tr>
<td class='tdfull'><a href='descargar_archivos.php?Id=" . $Filas[1] . "' class='Estilo5 Estilo6'>Descargar</td>
<td class='tdfull'>".$Filas[2]."</td>
<td class='tdfull'>".$Filas[3]."</td>
<td class='tdfull'>".$Filas[4]."</td>
<td class='tdfull'>" .$Filas[6]."</td></tr>");
}
echo "</table>";
mysql_free_result($res);
}
else
{
echo "<script>alert('Número de radicación no encontrado');<script>";
}
?>
</tr>
</table>
</form>
</html>