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/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>
</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 "<TABLE width='1200' border='2' align='center' cellpadding ='2' cellspacing='2'>
                <TR>
				             
				<TD bgcolor='#999999'><div align='center'><span class='estilo57'>CEDULA</span></div></TD>
				<TD bgcolor='#999999'><div align='center'><span class='estilo57'>PROCESO</span></div></TD>				                <TD bgcolor='#999999'><div align='center'><span class='estilo57'>FECHA DE INICIO</span></div></TD>    			                <TD bgcolor='#999999'><div align='center'><span class='estilo57'>ABOGADO</span></div></TD>
				<TD bgcolor='#999999'><div align='center'><span class='estilo57'>TIPO DE ORDEN</span></div></TD>
				<TD bgcolor='#999999'><div align='center'><span class='estilo57'>TIPO PROCESO</span></div></TD>
				<TD bgcolor='#999999'><div align='center'><span class='estilo57'>CONTRATO</span></div></TD>
				<TD bgcolor='#999999'><div align='center'><span class='estilo57'>TIPO</span></div></TD>
				<TD bgcolor='#999999'><div align='center'><span class='estilo57'>SUCURSAL</span></div></TD>
				<TD bgcolor='#999999'><div align='center'><span class='estilo57'>CLASE DE NEGOCIO</span></div></TD>
				<TD bgcolor='#999999'><div align='center'><span class='estilo57'>DESPACHO JUDICIAL</span></div></TD>";	
				

 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") and numero_proceso=  "'.$numero_proceso.'"');
			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);
	  

  //////
  
  $valida = mysql_query('SELECT nombre FROM cartera_serviasjudinet WHERE cedula = "'.$cedula.'" and numerocontrato= "' .$numero_contrato. '" ');

			if (!$valida) {
				
				die('Invalid query: ' . mysql_error());
			} 
  
  if ( (mysql_num_rows($valida) != 0)) {
	  
	  $sum = $sum +1 ;
  
  printf("<tr>
								 
<td bgcolor='#ECE9D8'><div align='center' class='Estilo21'><input type='button' value= $cedula name='proceso' class=Estilo21 onClick =	window.open('enviar_movimiento.php?cedula=$cedula&contrato=$numero_contrato&proceso=$numero_proceso','','top=30,left=50,toolbar=yes,scrollbars=yes,width=850,height=1100,status=yes')></a></span></div></td>
  								   
				<td bgcolor='#ECE9D8'><div align='center' class='lista'>".$numero_proceso."</a></span></div></td>
				<td bgcolor='#ECE9D8'><div align='center' class='lista'>".$fecha_inicio."</a></span></div></td>		
				<td bgcolor='#ECE9D8'><div align='center' class='lista'>".$nombre_abogado."</a></span></div></td>
				<td bgcolor='#ECE9D8'><div align='center' class='lista'>".$tipo_orden."</a></span></div></td>
				<td bgcolor='#ECE9D8'><div align='center' class='lista'>".$tipo_proceso."</a></span></div></td>
				<td bgcolor='#ECE9D8'><div align='center' class='lista'>".$numero_contrato."</a></span></div></td>
				<td bgcolor='#ECE9D8'><div align='center' class='lista'>".$tipo_contrato."</a></span></div></td>
				<td bgcolor='#ECE9D8'><div align='center' class='lista'>".$ns."</a></span></div></td>
				<td bgcolor='#ECE9D8'><div align='center' class='lista'>".$clase_negocio."</a></span></div></td>
				<td bgcolor='#ECE9D8'><div align='center' class='lista'>".$despacho_judicial."</a></span></div></td>"); 
  
												}
										}
									}  
								}			
							}
				
		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='#ECE9D8'><div align='center' class='estilo57'>".$sum."</span></div></td>");	 
	}
}

	
echo "</form>";

  
?>