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/public_html/ELEMENTOS/consul_lis_inicio.php
.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<title>Listado Envio Inicios de Procesos</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">
<!--
.titulos {font: 16px; color: red; 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: 11px; 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;}
.lista2 {font-family: Arial; font-size: 16px;	color: #FF6600;}
.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/azul1.jpg);
	color: #000;
}
.Estilo50 {color: #CC3333;
	font-family: "Arial Narrow";
	font-weight: bold;
}
.Estilo51 {
	color: #3366FF;
	font-weight: bold;
}
.boton1 {background-color: #FFCCCC; color:#FFFFFF; width:90px; height:25; border: 3px solid #0000CC; font-family:Arial; color:#990000;}
.boton11 {background-color: #FFCCCC; color:#FFFFFF; width:90px; height:25; border: 3px solid #0000CC; font-family:Arial; color:#990000;}
.Estilo53 {
	color: #00CC33;
	font-weight: bold;
}

a.p:link { 
    color: #0066FF; 
    text-decoration: none; 
} 
a.p:visited { 
    color: #0066FF; 
    text-decoration: none; 
} 
a.p:active { 
    color: #0066FF; 
    text-decoration: none; 
} 
a.p:hover { 
    color: #0066FF; 
    text-decoration: underline; 
} 
a.ord:link { 
    color: #000000; 
    text-decoration: none; 
} 
a.ord:visited { 
    color: #000000; 
    text-decoration: none; 
} 
a.ord:active { 
    color: #000000; 
    text-decoration: none; 
} 
a.ord:hover { 
    color: #000000; 
    text-decoration: underline; font-size: 12px;
} 
.campos{
	color: #990000;
	font-weight: bold;
	font-family: Arial;
    font-size: 11px;	
}

.letras {
	color: #000000;
	font-family: Arial;
    font-size: 11px;	
}
.Estilo62 {
	color: #FFF
}
.Estilo63 {
	color: #00FFFF;
	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">
<form name="formulario" action="" method="post">

<center> <img src="ELEMENTOS\CABEZOTE SERVIASJUDINET.jpg" WIDTH=60% > </center>
<br></br>

<table width="671" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td><fieldset><table width="669" border="0" align="center" cellpadding="2" cellspacing="2">
  <tr bgcolor="#99FF99">
    <td colspan="14" bgcolor="#0066FF" class="titulos"><div align="center" class="titulos Estilo62">CONSULTA LISTADO DE INICIOS </div></td>
  </tr>
  <tr>
        
        <td width="149" bgcolor=#CCCCCC><span class="Estilo57">FECHA Desde </span></td>
		<th width="147" scope="col" bgcolor="#CCCCCC">
            <input name="fecha1" type="text" class="Estilo66" id="fecha1" value="0000-00-00" size="10" maxlength="10" />
       </th>
		   <td width="59" bgcolor="#CCCCCC"><span class="Estilo57">Hasta </span></td>
		<th width="247" scope="col" bgcolor="#CCCCCC"><div align="left">
            <input name="fecha2" type="text" class="Estilo66" id="fecha2" value="0000-00-00" size="10" maxlength="10" />
        </div></th>
      </tr>
  

  
  <tr bgcolor="#FFCC99">
    <td colspan="14" bgcolor="#999999"><div align="center" class="Estilo51">
     <input name="consultar" id="consultar" type="submit" class="Estilo50" value="CONSULTAR">
      <input name="menu2" type="button" class="Estilo50" id="menu2" onClick="window.location.href='menu_movimiento_procesos.php'" value="IR AL MENU">
    </div></td>
  </tr>
</table>
</fieldset></td>
  </tr>
</table>


<table width="671" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td><fieldset><table width="669" border="0" align="center" cellpadding="2" cellspacing="2">
  <tr bgcolor="#99FF99">
    <td colspan="14" bgcolor="#0066FF" class="titulos"><div align="center" class="titulos Estilo62">CONSULTA POR CEDULA </div></td>
  </tr>
  <tr>
        
        <td colspan="3"width="149" bgcolor=#CCCCCC><span class="Estilo57">CEDULA hgjkh</span></td>
		<th width="147" scope="col" bgcolor="#CCCCCC">
            <input name="porcedul" type="text" class="Estilo66" id="porcedul" value="" size="20" maxlength="20" />
       </th>
		  
      </tr>
   
  
  <tr bgcolor="#FFCC99">
    <td colspan="14" bgcolor="#999999"><div align="center" class="Estilo51">
     <input name="consultar" id="consultar" type="submit" class="Estilo50" value="CONSULTAR">
      <input name="menu2" type="button" class="Estilo50" id="menu2" onClick="window.location.href='menu_movimiento_procesos.php'" value="IR AL MENU">
    </div></td>
  </tr>
</table>
</fieldset></td>
  </tr>
</table>


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

<?php

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

 $linea = '-';

	if(isset($_POST["consultar"]))
{
			
if (  $_POST["fecha2"] < $_POST["fecha1"] ){
	echo "<center>Verifique las fechas. Posiblemente la fecha inicial es posterior a la fecha final.</center>";
} else {
	
	
$control41 = mysql_query('SELECT cedula,fecha,codigo_abogado,numero_proceso FROM actuaciones WHERE fecha>= "' . $_POST["fecha1"]  . '" and  fecha <= "' . $_POST["fecha2"]  . '" and tipo_orden = "INICIO"  order by  fecha ');
			if (!$control41) {
				die('Invalid query: ' . mysql_error());
			}	 
	


if($control41 != "0"){
	echo "</font></div>"; 
echo "<table align='center' width='1400' border='0' cellspacing='1' cellpadding='0'>"; 
?>
<tr>
<td bgcolor='#99FF99' class='letras'><center>Cédula</center></td>
<td bgcolor='#99FF99' class='letras'><center>Proceso</center></td>
<td bgcolor='#99FF99' class='letras'><center>Fecha De Inicio</center></td>
<td bgcolor='#99FF99' class='letras'><center>Abogado</center></td>
<td bgcolor='#99FF99' class='letras'><center>Tipo de orden</center></td>
<td bgcolor='#99FF99' class='letras'><center>Tipo Proceso</center></td>
<td bgcolor='#99FF99' class='letras'><center>Contrato</center></td>
<td bgcolor='#99FF99' class='letras'><center>Tipo</center></td>
<td bgcolor='#99FF99' class='letras'><center>Sucursal</center></td>
<td bgcolor='#99FF99' class='letras'><center>Clase Negocio</center></td>
<td bgcolor='#99FF99' class='letras'><center>Despacho Judicial</center></td>


<?php	


 

 while  (list($ceduli,$fecha_inicio,$codigo_abogado,$numero_proceso) = mysql_fetch_row($control41))
{

$mssql = mysql_query('SELECT cedula, numero_proceso, tipo_proceso, numero_contrato, tipo_contrato, codigo_sucursal, clase_negocio, despacho_judicial, ciudad_despacho, tipo_afiliado, calidad_juridica_afiliado,tipo_orden, numero_carpeta, ultimo_folio, codigo_abogado, fecha_actuacion, actividad_proceso, estado_proceso FROM procesos WHERE cedula= "' ."$ceduli". '" and (tipo_proceso="JURIDICO"|| tipo_proceso="DISCIPLINARIO")');
			if (!$mssql) {
				die('Invalid query primero: ' . mysql_error());
			} 


							  
									list($cedula, $numero_proceso, $tipo_proceso, $numero_contrato, $tipo_contrato, $codigo_sucursal, $clase_negocio, $despacho_judicial, $ciudad_despacho, $tipo_afiliado, $calidad_juridica_afiliado, $tipo_orden, $numero_carpeta, $ultimo_folio, $codigo_abogado, $fecha_actuacion, $actividad_proceso, $estado_proceso, $to) = mysql_fetch_row($mssql);
									
									 if ((mysql_num_rows($mssql)!=0)) 
	                    {	 
									
				{  
				
				   $sucursal = mysql_query('SELECT nombre FROM sucursal WHERE codigo = "' ."$codigo_sucursal". '"  ');
			if (!$sucursal) {
				die('Invalid query: ' . mysql_error());
			} 
      if($sucursal){list($ns) = mysql_fetch_row($sucursal);}
	  
	    $control4 = mysql_query('SELECT nombre_completo FROM asjudinet_abogados WHERE codigo_abogado = "' ."$codigo_abogado". '"  ');
			if (!$control4) {
				die('Invalid query: ' . mysql_error());
			}	 
	  list($nombre_abogado) = mysql_fetch_row($control4);
	  
	  
  $sum = $sum +1 ;
	  
?> 

   <!-- tabla de resultados --> 
<tr bgcolor="#FFFFCC" onMouseOver="this.style.backgroundColor='#CCFFFF';this.style.cursor='hand';" onMouseOut="this.style.backgroundColor='#FFFFCC'"0"];" onClick="javascript:window.location.href = 'enviar_movimiento.php?cedula=<?php echo $cedula; ?>&numpro=<?php echo $numero_proceso; ?>&contrato=<?php echo $numero_contrato; ?>&tipo=<?php echo $tipo_contrato; ?>'">
    <td class="campos"><center><? echo $cedula; ?></center></td> 
    <td class="campos"><center><? echo $numero_proceso; ?></center></td> 
    <td class="campos"><center><? echo $fecha_inicio; ?></center></td>
    <td class="campos"><center><? echo $nombre_abogado; ?></center></td> 	
    <td class="campos"><center><? echo $tipo_orden; ?></center></td> 						
    <td class="campos"><center><? echo $tipo_proceso; ?></center></td> 
    <td class="campos"><center><? echo $numero_contrato; ?></center></td> 	
    <td class="campos"><center><? echo $tipo_contrato; ?></center></td> 	
    <td class="campos"><center><? echo $ns; ?></center></td> 	
    <td class="campos"><center><? echo $clase_negocio; ?></center></td> 		
    <td class="campos"><center><? echo $despacho_judicial; ?></center></td> 		
       				
</tr> 
   <!-- fin tabla resultados --> 
<? 
				}
}  
				}}
				
		echo "</table>";	
		
		echo "<TABLE width='200' border='0' align='center' cellpadding='0' cellspacing='1' bgcolor='#0000FF'>
                             <TR>
                           	  <TD bgcolor='#0066FF'><div align='center'><span class='estilo20'>TOTAL VALOR</span></div></TD>";
							printf("<tr>
                                 
								   <td bgcolor='#FFFFFF'><div align='center' class='estilo57'>".$sum."</span></div></td>");	 
	}
}



	
echo "</form>";

  
?>