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/consulta_terminaciones.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Consulta por cedula  para envio de correos</title>
<style type="text/css">
<!--
.campo1 {	background-color: #B7FFFF;
	border: thin dashed #B6B6B6;
}
.campo1 {	font-family: "Courier New", Courier, monospace;
	font-size: 16px;
	font-style: normal;
	font-weight: bold;
	background-color: #E1EFFD;
	border: thin doble #009999;
}
.campo1 {
	font-family: "Courier New", Courier, monospace;
	font-size: 12px;
	color: #5151FF;
	background-color: #C4E4FD;
	border: thin solid #009999;
	height: 20px;
	width: auto;
}
.datos3 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: normal;
	color: #FF3300;
	background-color: #A6ECD7;
	margin: 4px;
	padding: 4px;
	border: medium groove #CCCCFF;
}

.campo {background-color: #FFFFCC; border:1px solid #990000; font-family:Arial;  font-size:11px; height: inherit}
.Estilo50 {color: #CC3333;
	font-family: "Arial Narrow";
	font-weight: bold;
}
.Estilo1 {	color: #FF6633;
	font-size: 24px;
	font-style: italic;
}
.Estilo2 {	color: #FF6633;
	font-size: 16px;
}
.Estilo3 {	color: #2492FF;
	font-weight: bold;
}
.recaudo {	font-family: "Courier New", Courier, monospace;
	font-size: 12px;
	font-style: normal;
	font-weight: bold;
	font-variant: normal;
	color: #000000;
	background-color: #B6CBDC;
	margin: 4px;
	padding: 8px;
	width: auto;
	border: medium outset #339966;
}
.datos2 {
	font-family: "Courier New", Courier, monospace;
	font-size: 12px;
	font-style: normal;
	font-weight: normal;
	color: #0033FF;
	background-color: #FFE2C6;
	margin: 2px;
	padding: 3px;
	border: medium doble #EEBFEB;
}
.go {
	font-family: "Times New Roman", Times, serif;
	font-size: 9px;
	font-style: normal;
	color: #FF6633;
	background-color: #FBDCBD;
	padding: 1px;
	height: auto;
	width: auto;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
}
.datos1 {	font-family: Geneva, Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-style: normal;
	text-decoration: blink;
	background-color: #CCFFCC;
	margin: 5px;
	padding: 7px;
	height: auto;
	width: auto;
	border: thin solid #0099FF;
}
.datos1 {	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 16px;
	background-color: #FDE0C1;
	margin: 2px;
	padding: 3px;
	border: medium doble #DBAED7;
}
.datos1 {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 12px;
	font-weight: normal;
	background-color: #B8F5E8;
	margin: 4px;
	padding: 5px;
	border: thin outset #009999;
}
.Estilo55 {color: #003399}
.Estilo56 {color: #FF0000}
-->
</style>
</head>

<body>
<form id="form1" name="form1" method="post" >
  <div align="center">
<table width="330" border="3" cellpadding="3" cellspacing="3" class="recaudo">
          <caption>
          <span class="Estilo1">SERVIASJUDINET</span>
          </caption>
          <caption>
          <span class="Estilo1">FIDELIZACION</span>
          </caption>
          
          <tr>
            <td colspan="2" bgcolor="#FFFFCC"><div align="center">
                <input name="consultar" type="submit" class="Estilo3" id="consultar" value="Consultar" />
            </div></td>
          </tr>
		  
    </table>
  </div>
  <p align="center">
 <input name="menu2" type="button" class="Estilo50" id="menu2" onclick="window.location.href='menu_movimiento_procesos.php'" value="IR AL MENU" />
  </p>
</form>
</body>
</html>

<?php
 
 
if(isset($_POST["consultar"]))
{

	 require_once("Conectarse.php");	
	echo "<form name='form' action='' method='post'>";
    require_once("mainfile.php");
    include ("config.php");
    global $dbi;


		 $control = mysql_query('SELECT Id, numradica, Identificacion, Nombre_Completo, tipo FROM correspondencias  WHERE  (estado = "0" || estado = "2" || estado="5") and tipo = "2" order by Nombre_Completo');
		  if (!$control) {
				die('Invalid query 1: ' . mysql_error());
			} 

                     if ((mysql_num_rows($control)!=0)) 
	                    {	   
                              echo "<TABLE width='700' border='3' align='center' cellpadding='0' cellspacing='1'>
                              <TR>
							  <TD bgcolor='#FFCC66'><div align='center'><span class='texto'>ID</span></div></TD>
							   <TD bgcolor='#FFCC66'><div align='center'><span class='texto'>CEDULA</span></div></TD>
                              <TD bgcolor='#FFCC66'><div align='center'><span class='texto'>N° RADICACION</span></div></TD>
							  <TD bgcolor='#FFCC66'><div align='center'><span class='texto'>NOMBRE</span></div></TD>
							  <TD bgcolor='#FFCC66'><div align='center'><span class='texto'>TIPO</span></div></TD>";		  
                           							  
                        
 				 while(list($id, $radica , $cedu , $nombre, $tipo ) = mysql_fetch_row($control)) 
                              {
								  $sum = $sum + 1;
								  
								  printf("<tr>
                              <td bgcolor='#F7FFE1'><div align='center' class='lista'>".$id."</span></div></td>
		                      <td bgcolor='#F7FFE1'><div align='center' class='lista'><input type='button' value=$cedu name='cedu' class=est_cont1 onClick=window.location.href='consulta_usuario_terminaciones.php?ced2=$cedu&numcon=$radica&id=$id'></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'>".$tipo."</span></div></td>");           						  
                               }
								   echo "</table>";		
								   
								   
								   
								       echo "<TABLE width='200' border='0' align='center' cellpadding='0' cellspacing='1'>
                              <TR>
                              <TD bgcolor='#FFCC66'><div align='center'><span class='texto'>TOTAL REGISTROS</span></div></TD></TD>";	
							  
							   printf("<tr>
                                 
                                   <td bgcolor='#F7FFE1'><div align='center' class='lista'>".$sum."</span></div></td></td>"); 
								   echo "</table>";	 
								   
								   
								   
                        }
  
  
  
  
echo "</form>";

	

}

 
   
?>