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_asignaciones_sin_inicio.php
<html>
<head>
<title>Control Inicios Estado 0</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: #FFFFCC; font-size: 12px; 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: #000000;}
.boton2 {font-family: Verdana; font-size: 8 pt; color: #000080; background-color: #C0C0C0; border-style: solid; width:70px; height:22px;}
body {
	background-image: url();
}
.Estilo1 {
	color: #990000;
	font-weight: bold;
}
****
.Estilo8 {
	color: #330099;
	font-weight: bold;
}

.Estilo4 {font-family: "Courier New", Courier, mono;
	color: #0033FF;
	height: 25px;
	width: 15px;
}
.boton11 {background-color: #FFCCCC; color:#FFFFFF; width:150px; height:25; border: 3px solid #0000CC; font-family:Arial; color:#990000;}
.Estilo6 {color: #0033CC; font-weight: bold; }
.Estilo6 {color: #0033CC; font-weight: bold; }

.Estilo7 {color: #FF3300}
-->
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<br><br/> 
<center> <img src="ELEMENTOS\CABEZOTE SERVIASJUDINET.jpg" WIDTH=60% > </center> 
<br><br/>
<table width="533" border="1" align="center" cellpadding="1" cellspacing="1">
  <tr>
    <td width="525" bgcolor="#CCCCCC"><div align="center" class="Estilo6 Estilo7">LISTADO ASIGNACIONES SIN INICIO</div></td>
  </tr>
</table>


<p align="center">

<input name="menu2" type="button" class="Estilo1" id="menu2" onClick="window.location.href='menu_control_inicios.php'" value="Menu">
 <input name="boton_consulta_jur" type="button" class="Estilo1" id="boton_consulta_jur" onClick="window.open('consulta_pro_jur_control.php?proceso=$numero_proceso&id=$cedula','','top=50,left=100,toolbar=yes,scrollbars=yes,width=790,height=521,status=yes')" value="Consultar por cedula">
</p>
</body>
</html>

<?php

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

 require_once("Conectarse.php");

    echo "<TABLE width='1200' border='2' align='center' cellpadding='0' cellspacing='1'>
    <TR>
    <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>CEDULA</span></div></TD>
    <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>ORDEN DE TRABAJO</span></div></TD>
	<TD bgcolor='#FFFFCC'><div align='center'<span class='Estilo6 Estilo7'>FECHA PODER</span></div></TD>
	<TD bgcolor='#FFFFCC'><div align='center'><span class='Estilo1'>FECHA ASIGNACION</span></div></TD>	
    <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>ABOGADO</span></div></TD>		  							
    <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>TIPO PROCESO</span></div></TD>		 		  
    <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>CONTRATO</span></div></TD>		 		  
    <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>TIPO</span></div></TD>
    <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>SUCURSAL</span></div></TD>
    <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>CLASE NEGOCIO</span></div></TD>		  	  		  
    <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>CARPETA</span></div></TD>	";
	

 
 
  $control = mysql_query('SELECT codigo, orden_de_trabajo,tipo_proceso,contrato,tipo,carpeta,fecha_autenticacion, sucursal, fecha_asignacion, nombre_abogado,clase_de_negocio FROM INICIOS_PROCESOS_JURIDICOS WHERE estado = "0" || estado = "2" ORDER BY codigo');
			if (!$control) {
				die('Invalid query medio 2: ' . mysql_error());
			}
           if ($control) 
            {	 
					 while(list($cedula, $numero_proceso, $tipo_proceso, $numero_contrato, $tipo_contrato,$numero_carpeta,$fecha_poder, $sucursales, $fecha_asignacion, $codigo_abogado, $clase_negocio) = mysql_fetch_row($control)) 
                      {  
                          if($actividad_proceso == 'A')
						  {
							  $actividad_proceso = 'ACTIVO';
						  
						  }
						  
						  else
						  
						   $actividad_proceso = 'INACTIVO';
                          
						  if($estado_proceso == 'V')
						  {
							  $estado_proceso = 'VIGENTE';}else $estado_proceso = 'HISTORICO';							   
      
					
		 $sucursal = mysql_query('SELECT  nombre FROM sucursal WHERE codigo = "' ."$codigo_sucursal". '" ');
			if (!$sucursal) {
				die('Invalid query 14: ' . mysql_error());
			}
				          if($sucursal){list($ns) = mysql_fetch_row($sucursal);
						  
						  }

			
///////////////

		  $abogado = mysql_query('SELECT nombre_completo FROM asjudinet_abogados WHERE codigo_abogado = "' ."$codigo_abogado". '" ');
			if (!$abogado) {
				die('Invalid query 24: ' . mysql_error());
			}
					      if($abogado)
						  {
							list($nom) = mysql_fetch_row($abogado);
							
							
							}   
							
			 $con = mysql_query('SELECT cedula FROM procesos  WHERE  cedula =  "' .$cedula. '" and codigo_abogado= "'.$codigo_abogado.'"');
		  if (!$con) {
				die('Invalid query proceso bene: ' . mysql_error());
					} 
					list($tipo) = mysql_fetch_row($con);				
							
					$fil = mysql_num_rows($con);
////////////////////////////////////


 $conta = mysql_query('SELECT cedula FROM procesos  WHERE  cedula =  "' .$cedula. '" ');
			if (!$conta) {
				die('Invalid query: ' . mysql_error());
			}
		$fil = mysql_num_rows($conta);
			
			if ($fil == 0)
			{
				
			 $conta = mysql_query('SELECT cedula FROM procesos_historicos  WHERE cedula = "'.$cedula.'" ');
		  if (!$conta) {
				die('Invalid query 2: ' . mysql_error());
					}
					 
			
			} 
					   
					   
                      
                      if ((mysql_num_rows($conta)==0)) 
	                    {	


						  
						  $total = $total  + 1;
						  
                          printf("<tr>
                                   <td bgcolor='#FFFFCC'><div align='center' class='lista'>".$cedula."</a></span></div></td>												   
                                   <td bgcolor='#FFFFCC'><div align='center' class='lista'><input type='button' value=$numero_proceso name='proceso' class=estilo6 onClick =window.open('informacion_asigaciones_sin_inicio.php?orden=$numero_proceso&cedula=$cedula','','top=50,left=100,toolbar=no,scrollbars=yes,width=1200,height=850,status=yes')></a></span></div></td>
								     
						<td bgcolor='#FFFFCC'><div align='center' class='lista'>".$fecha_poder."</span></div></td>		   
					    <td bgcolor='#FFFFCC'><div align='center'class='lista'>".$fecha_asignacion."</span></div></td>
						<td bgcolor='#FFFFCC'><div align='left' class='lista'>".$nom."</span></div></td>														
		                <td bgcolor='#FFFFCC'><div align='center' class='lista'>".$tipo_proceso."</span></div></td>
		                <td bgcolor='#FFFFCC'><div align='center' class='lista'>".$numero_contrato."</span></div></td>					
		                <td bgcolor='#FFFFCC'><div align='center' class='lista'>".$tipo_contrato."</span></div></td>					
		                <td bgcolor='#FFFFCC'><div align='center' class='lista'>".$sucursales."</span></div></td>
					    <td bgcolor='#FFFFCC'><div align='left' class='lista'>".$clase_negocio."</span></div></td>					
					    <td bgcolor='#FFFFCC'><div align='center' class='lista'>".$numero_carpeta."</span></div></td>");
                      }
				//}
         }	
		 }
                  echo "</table>";	
				  
				      echo "<TABLE width='200' border='2' align='center' cellpadding='0' cellspacing='1'>
    <TR>
    <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>Total Registros</span></div></TD></tr>";	  
	 printf("<tr>
                                   <td bgcolor='#ECE9D8'><div align='center' class='lista'>".$total."</a></span></div></td>");
?>