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/acorreos/respuesta_pendientes_entidades.php
<?php 

global $dbi;
$espacio = ' ';
$linea = '-';

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

	
$sql = mysql_query('SELECT * FROM Usuarios order by Nombre_Completo ');
if (!$sql) {
	die('Invalid query fff: ' . mysql_error());
} 
$row_sql = mysql_fetch_assoc($sql);
$totalRows_sql = mysql_num_rows($sql);  		
		

?>


<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<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;}
    
    .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;}
    
    .fecha{background-color: #d6e08b; padding: 2px;color: #000;font-size: 15px; text-align: center;}
    td{border: #969696 solid 1px;}
    .tdizq{background-color: #EEE; padding: 1px 10px;color: #00135F;font-size: 13px;font-weight: 600; text-align: left;}
    .tdcen{background-color: #EEE; padding: 1px 10px;color: #00135F;font-size: 13px;font-weight: 600; text-align: center;}
    .tdder{background-color: #EEE; padding: 1px 10px;color: #00135F;font-size: 13px;font-weight: 600; text-align: right;}
	.exp{color:#8A0000; font-size:10px;}
    .boton1{width: 200px;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;}
</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">CONSULTA POR FUNCIONARIO RESPUESTAS PENDIENTES</h3>

<form action="" method="post" name="form1" class="provd" id="form1">

<table border="3" cellpadding="3" cellspacing="3">

<tr>
	<td class="tdcen" height="35">Criterio De Busqueda</td>
	<th class="tdcen" scope="col">
 	<select name="ase" class="Estilo66" id="ase">
    <option value="">--SELECCIONE FUNCIONARIO-</option>
    <?php
   	do {  
	?>
   	<option value="<?php echo $row_sql['Nombre_Completo'];?>"><?php echo $row_sql['Nombre_Completo']?></option>
   	<?php
	} while ($row_sql = mysql_fetch_assoc($sql));
  		$rows = mysql_num_rows($sql);
  		if($rows > 0) {
     		mysql_data_seek($sql, 0);
       		$row_sql = mysql_fetch_assoc($sql);
  	}
	?>
    </select>
    </th>
</tr>




</table>
<div align="center">
<input name="menu2" type="button" class="irmenu" id="menu2" onclick="window.location.href='../menu_admin.php'" value="IR AL MENU" />
<input name="consultar" type="submit" class="boton1" id="consultar" value="CONSULTAR">
</div>

</form>
</body>
</html>

<?php

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

$control  = mysql_query('SELECT Id, numradica, Identificacion, Nombre_Completo, codigo_depen , Dia_Recibe , Mes_Recibe , Ano_Recibe , fecha_recibido , funcinario_recibe , Quien_Expide FROM correspondencias_entidades WHERE  Quien_Expide  = "'.$_POST["ase"].'" and (estado = "0" || estado = "2")');  
	if (!$control ) {
		die('Invalid query  3333: ' . mysql_error());
	} 

	if ((mysql_num_rows($control)!=0)) 
	{	 
       	echo "<TABLE width='800' border='2' align='center' cellpadding='2' cellspacing='1'>
        <TR>
       	<TD class='tdtitulo'># Radicación</TD>
		<TD class='tdtitulo'>Identificación</TD>
		<TD class='tdtitulo'>Apellidos - Nombres del Afiliado</TD>	
		<TD class='tdtitulo'>Sucursal Origen</TD>	
		<TD class='tdtitulo'>Fecha Recibido</TD>
		<TD class='tdtitulo'>Registro Bogota</TD>
		<TD class='tdtitulo'>Funcionario que Recibe</TD>
		<TD class='tdtitulo'>Funcionario Quien Responde</TD>";		  
                           							  
           
						
						
  		while(list($id, $radica, $cc, $nom, $sun, $de, $me, $ae, $recibido, $funce, $quien ) =mysql_fetch_row($control)) 
        {  
			$sum = $sum +1 ;
			
			printf("<tr>
            <td class='tdfull'>".$id."</td>
			<td class='tdfull'>".$cc."</td>
            <td class='tdfull'>".$nom."</td>
			<td class='tdfull'>".$sun."</td>
			<td class='tdfull'>".$ae."-".$me."-".$de."</td>
			<td class='tdfull'>".$registro."</td>
			<td class='tdfull'>".$funce."</td>
			<td class='tdfull'>".$quien."</td>");              								   
     	}
		echo "</table>";		
		echo "<TABLE width='200' border='0' align='center' cellpadding='0' cellspacing='1'>
        <TR>
        <TD class='tdtitulo'>TOTAL REGISTROS</TD>";
		printf("<tr>
        	<td class='tdfull'>".$sum."</td>");	  
  	}
	echo "</form>";
}
?>