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/listado_afiliaciones_control_subsidio.php
.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>CONSULTA INGRESAR PROCESO</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">
<!--
.titulos {
	font: 16px;
	color: #F00;
	font-family:Arial;
	font-weight:bold
}
.boton {background-color: #FFCCCC; color:#FFFFFF; width:90px; height:25; border: 3px solid #0000CC; font-family:Arial; color:#990000;}
.texto {background-color: #CCFFCC; font-size: 11px; font-family: Arial; color:#0000CC; display: block;}
.fecha {font-size: 12px; font-family: Arial; color:#990000; display: block; }
.campo {background-color:#FFFFAA; width: 100px; border:2px solid #990000;}
.lista {font-family: Arial; font-size: 11px;	color: #990000;}
.Estilo2 {font-family: Arial;	font-size: 16px;	color: #990000;}
.boton2 {font-family: Verdana; font-size: 8 pt; color: #000080; background-color: #C0C0C0; border-style: solid; width:70px; height:22px;}
body {
		background-image: url(ELEMENTOS/gri06.jpg );  
	color: #666;
}
.Estilo50 {color: #CC3333;
	font-family: "Arial Narrow";
	font-weight: bold;
}
-->
</style>
<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>
<script language="javascript">
function AbreGral()
{ 
    var menu;   
	menu=window.open("mostrar_ingreso.php","","toolbar=no,scrollbars=no,width=800,height=500,status=yes");  
	menu.focus();  
	var ventana = window.self;  
	ventana.opener = window.self;  
	ventana.close();
}
</script>
</head>
<body onLoad="document.formulario.cedula.focus()" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
 <center> <img src="ELEMENTOS\CABEZOTE SERVIASJUDINET.jpg"WIDTH=60% > </center>
 
 
<form name="formulario" action="" method="post">
<table width="671" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td><table width="669" border="15" align="center" cellpadding="2" cellspacing="2">
  <tr bgcolor="#FFFFCC">
    <td bgcolor="#CCCCFF" class="titulos"><div align="center">LISTADO AFILIADOS CONTROL SUBSIDIO</div></td>
  </tr>
  <tr bgcolor="#ECE9D8">
    <td height="22" bgcolor="#FFFFFF" class="fecha"><div align="center">
      <script languaje="JavaScript">Mostrar_Fecha()</script>
    </div></td>
 
</table>

<html>
<!--<script type="text/javascript" language="Javascript">
<!-- Begin
document.oncontextmenu = function(){return false}
// End -->
<!--</script>

<script language="JavaScript1.2">

function disabletext(e){
return false
}

function reEnable(){
return true
}

//if the browser is IE4+
document.onselectstart=new Function ("return false")

//if the browser is NS6
if (window.sidebar){
document.onmousedown=disabletext
document.onclick=reEnable
}
</script> -->

<center>
<form action="registro.php" method ="POST">
  <br>  
	 
     
     <input name="Regresar"  type="button" class="Estilo51" onClick="window.location.href='menu_director_subsidio.php'" value="IR AL MENU DIRECTOR">
      </br>  
             
</form>

<br>

</html>


<?php

/////////////////////////COMENTARIADO DESDE ACA PARA VERIFICAR FUNCIONAMIENTO

/*  ///////////////SE AGREGA ACA 


require_once("Conectarse.php");
    require_once("mainfile.php");
    include ("config.php");


$sucu =$_GET["sucu"] ;
$nom =$_GET["nom"] ;
$ced =$_GET["ced"] ;
 

$diser=$_POST["nombredir"];


/*$control = mysql_query('SELECT apellidos,nombres,cedula,celular,email,unidad,grado,direccion_residencia,ciudad_residencia,tipo_proceso FROM consultorio_policia  WHERE estado= "6" and exportado = " " ');
		  if (!$control) {   
				die('Invalid query 0: ' . mysql_error());
			}			
			*/	
			
			/////|| tipo_proceso = "SUBSIDIO FAMILIAR" 
			
/*		///////////////SE AGREGA ACA 
		
			
			
$control = mysql_query('SELECT nombre,cedula,celular,email,unidad_descuento,grado,direccion,ciudad,tipo_proceso,fecha_afiliacion FROM cartera_serviasjudinet  WHERE tipo_proceso = "SUBSIDIO FAMILIAR" order by fecha_afiliacion asc');
		  if (!$control) { 
				die('Invalid query 0: ' . mysql_error());
			}					
				          
					  if ((mysql_num_rows($control)!=0)) 
	                    {	 
         echo "<TABLE width='750' border='2' align='center' cellpadding ='0' cellspacing='1' bgcolor='#000000'>
                      
			<TR>
			<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>CEDULA</span></div></TD>  					            <TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>GRADO</span></div></TD>
			<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>UNIDAD</span></div></TD>
			<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>NOMBRES</span></div></TD>
			<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>CELULAR</span></div></TD> 
			<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>CORREO ELECTRONICO </span></div></TD>			  			<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>TIPÓ DE PROCESO</span></div></TD>
			<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>INGRESO</span></div></TD>
			<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>FECHA AFILIACION</span></div></TD>";		 		  
            
			
/* while(list($apellidos,$nombre,$cedula,$celular,$email,$unidad,$grado,$direccion_residencia,$ciudad_residencia,$proceso) = mysql_fetch_row($control))
*/

/* /////////////////////SE AGREGA ACA 


while(list($nombre,$cedula,$celular,$email,$unidad,$grado,$direccion_residencia,$ciudad_residencia,$proceso,$fecha_afiliacion) = mysql_fetch_row($control))
 
                              {  
							  
				/*	if ($proceso=="")
{
	
$control2 = mysql_query('SELECT tipo_proceso FROM solicitud_credito WHERE cedula = "'.$cedula.'"');
		  if (!$control2) {
				die('Invalid query 1: ' . mysql_error());
			}
		$num=mysql_num_rows($control2); 
		
		list($proceso) = mysql_fetch_row($control2);		
	

$control3 = mysql_query('SELECT fecha_afiliacion FROM cartera_serviasjudinet WHERE cedula = "'.$cedula.'" and tipo_proceso = "'.$proceso.'"');
		  if (!$control2) {
				die('Invalid query 1: ' . mysql_error());
			}
		$num=mysql_num_rows($control3); 
		
		list($fecha_afiliacion) = mysql_fetch_row($control3);	

	
}		  
						
				*/		
						//////////////////
			
/* //////////////////SE AGREGA ACA 							  
							  
$controla = mysql_query('SELECT apellidos FROM consultorio_policia  WHERE cedula = "'.$cedula.'"  and exportado = " " and estado = "6"');
		  if (!$controla) {   
				die('Invalid query 0: ' . mysql_error());
			}			  
  
  if ((mysql_num_rows($controla)!=0)) 
	                    {	
  
  if ($proceso=="SUBSIDIO FAMILIAR")
  
  {
	  $codproce="1";
	  	  
	   
	  } 
  
  
  else {
	  
	   $codproce="2";
	  
	  }
	  
	  
	  
	 $controlasubsipol = mysql_query('SELECT cedula FROM consultorio_policia WHERE email = "'.$email.'"  and exportado = " " and estado = "6" and tipo_proceso ="'.$proceso.'"');
		  if (!$controlasubsipol) {   
				die('Invalid query 0: ' . mysql_error());
			}
	  
	  list($cedulaverifi) = mysql_fetch_row($controlasubsipol);
	  
	  
$nom=A;	  
	  
	  $controltotal = mysql_query('SELECT cedula FROM consultorio_policia  WHERE estado= "6" and exportado = " " and cedula LIKE "'."%$nom%".'" and email =  "'.$email.'"  and tipo_proceso ="'.$proceso.'" ');
		  if (!$controltotal ) {    
				die('Invalid query 0: ' . mysql_error());
			}	
			
			list($cedulatotal) = mysql_fetch_row($controltotal);
			

	 // if ($controltotal==" " )
	  
	 if ((mysql_num_rows($controltotal)=='0')) 
	  {
  
$tota = $tota + 1;
								 printf("<tr>   
	 					<td bgcolor='#CCCCFF'><div align='center' class='Estilo21'><input type='button' value=$cedula name='proceso' class=Estilo21 onClick =	window.open('consultorio_juridico_control.php?cedula=$cedula&celular=$celular&proceso=$codproce','','top=30,left=50,toolbar=yes,scrollbars=yes,width=900,height=800,status=yes')></a></span></div></td> 
		      		
				   <td bgcolor='#CCCCFF'><div align='center' class='lista'>".$grado."</a></span></div></td>
	    		   <td bgcolor='#CCCCFF'><div align='center' class='lista'>".$unidad."</a></span></div></td>
	    		   <td bgcolor='#CCCCFF'><div align='center' class='lista'>".$nombre."</a></span></div></td>
   			       <td bgcolor='#CCCCFF'><div align='center' class='lista'>".$celular."</a></span></div></td>
				   <td bgcolor='#CCCCFF'><div align='center' class='lista'>".$email."</a></span></div></td>
				   <td bgcolor='#CCCCFF'><div align='center' class='lista'>".$proceso."</a></span></div></td>
				   <td bgcolor='#CCCCFF'><div align='center' class='Estilo21'><input type='button' value=INGRESO name='proceso' class=Estilo21 onClick =	window.open('consultorio_juridico_control2.php?cedula=$cedula&celular=$celular&proceso=$codproce','','top=30,left=50,toolbar=yes,scrollbars=yes,width=900,height=800,status=yes')></a></span></div></td>
		          <td bgcolor='#CCCCFF'><div align='center' class='lista'>".$fecha_afiliacion."</a></span></div></td> ");
							  }
						}
						}
						
						
						}
						
						echo "<TABLE width='200' border='0' align='center' cellpadding ='0' cellspacing='1'>
                        <TR>
                        <TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>TOTAL</span></div></TD>";		 		  
                              
						
					printf("<tr>   
								   
					<td bgcolor='#CCCCFF'><div align='center' class='lista'>".$tota."</a></span></div></td>");	
  

echo "</form>";  

/////////////////////              SE AGREGA ACA */

///////////////////////////////DESDE ACA EMPIEZA CODIGO AGREGADO 

/*desde aca 24/04/2017

require_once("Conectarse.php");
require_once("mainfile.php");
include ("config.php");


$sucu =$_GET["sucu"] ;
$nom =$_GET["nom"] ;
$ced =$_GET["ced"] ;
 

$diser=$_POST["nombredir"];



$control = mysql_query('SELECT nombre,cedula,celular,email,unidad_descuento,grado,direccion,ciudad,tipo_proceso,
fecha_afiliacion FROM cartera_serviasjudinet  WHERE tipo_proceso = "SUBSIDIO FAMILIAR" order by fecha_afiliacion asc');
		  if (!$control) { 
				die('Invalid query 0: ' . mysql_error());
			}					
				          
					  if ((mysql_num_rows($control)!=0)) 
	                    {	 
         echo "<TABLE width='750' border='2' align='center' cellpadding ='0' cellspacing='1' bgcolor='#000000'>
                      
			<TR>
			<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>CEDULA</span></div></TD>  					            <TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>GRADO</span></div></TD>
			<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>TIPO CONTRATO</span></div></TD>
			<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>NOMBRES</span></div></TD>
			<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>CELULAR</span></div></TD> 
			<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>CORREO ELECTRONICO </span></div></TD>			  					            <TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>TIPÓ DE PROCESO</span></div></TD>
			<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>INGRESO</span></div></TD>
			<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>FECHA AFILIACION</span></div></TD>";		 		  
            
			

while(list($nombre,$cedula,$celular,$email,$unidad,$grado,$direccion_residencia,$ciudad_residencia,$proceso,$fecha_afiliacion) = mysql_fetch_row($control))
 
 {  
	
						
						//////////////////
			/*				  
							  
$controla = mysql_query('SELECT apellidos FROM consultorio_policia  WHERE cedula = "'.$cedula.'"  and exportado = " " and estado = "6"');
		  if (!$controla) {   
				die('Invalid query 0: ' . mysql_error());
			}			  
  
  if ((mysql_num_rows($controla)!=0)) 
	                    {	
  
  if ($proceso=="SUBSIDIO FAMILIAR")
  
  {
	  $codproce="1";
	  	  
	   
	  } 
  
  
  else {
	  
	   $codproce="2";
	  
	  }
	  
	  
						}
	 
	 */
	 
/*desde aca 24/04/2017	 
	 
$controltotal = mysql_query('SELECT cedula FROM consultorio_policia WHERE estado= "6" and exportado = " " and cedula LIKE "'."%$cedula%".'" and email =  "'.$email.'"  and tipo_proceso ="'.$proceso.'" ');
		  if (!$controltotal ) {    
				die('Invalid query 0: ' . mysql_error());
			}	
			
			list($cedulatotal) = mysql_fetch_row($controltotal);
			
	 if ((mysql_num_rows($controltotal)=='0')) 
	  {
	 
$tota = $tota + 1;
								 printf("<tr>   
	 					<td bgcolor='#CCCCFF'><div align='center' class='Estilo21'><input type='button' value=$cedula name='proceso' class=Estilo21 onClick =	window.open('consultorio_juridico_control.php?cedula=$cedula&celular=$celular&proceso=$codproce','','top=30,left=50,toolbar=yes,scrollbars=yes,width=900,height=800,status=yes')></a></span></div></td> 
		      		
				   <td bgcolor='#CCCCFF'><div align='center' class='lista'>".$grado."</a></span></div></td>
	    		   <td bgcolor='#CCCCFF'><div align='center' class='lista'>".$unidad."</a></span></div></td>
	    		   <td bgcolor='#CCCCFF'><div align='center' class='lista'>".$nombre."</a></span></div></td>
   			       <td bgcolor='#CCCCFF'><div align='center' class='lista'>".$celular."</a></span></div></td>
				   <td bgcolor='#CCCCFF'><div align='center' class='lista'>".$email."</a></span></div></td>
				   <td bgcolor='#CCCCFF'><div align='center' class='lista'>".$proceso."</a></span></div></td>
				   <td bgcolor='#CCCCFF'><div align='center' class='Estilo21'><input type='button' value=INGRESO name='proceso' class=Estilo21 onClick =	window.open('consultorio_juridico_control2.php?cedula=$cedula&celular=$celular&proceso=$codproce','','top=30,left=50,toolbar=yes,scrollbars=yes,width=900,height=800,status=yes')></a></span></div></td>
		          <td bgcolor='#CCCCFF'><div align='center' class='lista'>".$fecha_afiliacion."</a></span></div></td> ");
								  }
							
 }
						
						}
						
						echo "<TABLE width='200' border='0' align='center' cellpadding ='0' cellspacing='1'>
                        <TR>
                        <TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>TOTAL</span></div></TD>";		 		  
                              
						
					printf("<tr>   
								   
					<td bgcolor='#CCCCFF'><div align='center' class='lista'>".$tota."</a></span></div></td>");	
  

echo "</form>"; 

finaliza 24/04/2017

*/ 
require_once("Conectarse.php");
    require_once("mainfile.php");
    include ("config.php");


$sucu =$_GET["sucu"] ;
$nom =$_GET["nom"] ;
$ced =$_GET["ced"] ;
 
		
$controla = mysql_query('SELECT cedula,celular,email,unidad,grado,direccion_residencia,ciudad_residencia,
tipo_proceso FROM consultorio_policia WHERE estado= "6" and exportado = " " ');

			
if ((mysql_num_rows($controla)!=0)) 
{	 
  	echo "<TABLE width='1200' border='2' align='center' cellpadding ='0' cellspacing='1' bgcolor='#000000'>
                      
	<TR>
	<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>CEDULA</span></div></TD>
	<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>GRADO</span></div></TD>
	<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>UNIDAD</span></div></TD>
	<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>APELLIDOS Y NOMBRES</span></div></TD>
	<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>CELULAR</span></div></TD>
	<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>CORREO ELECTRONICO</span></div></TD> 
	<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>TIPÓ DE PROCESO </span></div></TD>
	<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>INGRESO</span></div></TD>
	<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>FECHA AFILIACION</span></div></TD>
	<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>NUMERO CONTRATO</span></div></TD>
	<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>TIPO CONTRATO</span></div></TD>";
	
	
	while(list($cedula,$celular,$email,$unidad,$grado,$direccion_residencia,$ciudad_residencia,$proceso) = mysql_fetch_row($controla))
	{  
							
		$control = mysql_query('SELECT cedula,nombre,numerocontrato,tipocontrato,celular,email,unidad_descuento,
grado,direccion,ciudad,tipo_proceso,fecha_afiliacion FROM cartera_serviasjudinet  WHERE (tipo_proceso = "SUBSIDIO FAMILIAR" || tipo_proceso2 = "SUBSIDIO FAMILIAR" || tipo_proceso3 = "SUBSIDIO FAMILIAR") and cedula = "'.$cedula.'" ');
		if (!$control) { 
			die('Invalid query 0: ' . mysql_error());
		}	


 		list($cedula,$nombre,$numerocotr,$tipocontr,$celular,$email,$unidad,$grado,$direccion_residencia,$ciudad_residencia,$proceso,$fecha_afiliacion) = mysql_fetch_row($control);	

		$fil = mysql_num_rows($control);
		$codproce="1";
		$procesonombre = "SUBSIDIO FAMILIAR";
		
		
		if ($fil != 0)
		{
			
			$tota = $tota + 1;

			/*
			<td bgcolor='#CCCCFF'><div align='center' class='Estilo21'><input type='button' value=$cedula name='proceso' class=Estilo21 onClick =	window.open('consultorio_juridico_control.php?cedula=$cedula&celular=$celular&proceso=$codproce','','top=30,left=50,toolbar=yes,scrollbars=yes,width=1200,height=800,status=yes')></a></span></div></td>
			*/
			
			printf("<tr>   
	 					 
		   	<td bgcolor='#CCCCFF'><div align='center' class='lista'>".$cedula."</a></span></div></td>
			<td bgcolor='#CCCCFF'><div align='center' class='lista'>".$grado."</a></span></div></td>
	    	<td bgcolor='#CCCCFF'><div align='center' class='lista'>".$unidad."</a></span></div></td>
	    	<td bgcolor='#CCCCFF'><div align='center' class='lista'>".$nombre."</a></span></div></td>
   			<td bgcolor='#CCCCFF'><div align='center' class='lista'>".$celular."</a></span></div></td>
			<td bgcolor='#CCCCFF'><div align='center' class='lista'>".$email."</a></span></div></td>
			<td bgcolor='#CCCCFF'><div align='center' class='lista'>".$procesonombre."</a></span></div></td>
			<td bgcolor='#CCCCFF'><div align='center' class='Estilo21'><input type='button' value=INGRESO name='proceso' class=Estilo21 onClick =	window.open('consultorio_juridico_control2.php?cedula=$cedula&celular=$celular&proceso=$codproce','','top=30,left=50,toolbar=yes,scrollbars=yes,width=900,height=800,status=yes')></a></span></div></td>
		   	<td bgcolor='#CCCCFF'><div align='center' class='lista'>".$fecha_afiliacion."</a></span></div></td>
			<td bgcolor='#CCCCFF'><div align='center' class='lista'>".$numerocotr."</a></span></div></td>
			<td bgcolor='#CCCCFF'><div align='center' class='lista'>".$tipocontr."</a></span></div></td>");
		}
	}	
}
						
echo "<TABLE width='200' border='0' align='center' cellpadding ='0' cellspacing='1'>
<TR>
<TD bgcolor='#CCCCCC'><div align='center'><span class='fecha'>TOTAL</span></div></TD>";		 		  
                              
						
printf("<tr>   
<td bgcolor='#CCCCFF'><div align='center' class='lista'>".$tota."</a></span></div></td>");	
  

echo "</form>";  
?>