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/consulta_viaticos_coas.php
<? include("seguridad_coas.php");

require_once("Conectarse.php");

$control = mysql_query('SELECT Nombre_Completo FROM Usuarios  WHERE  Login =  "' . $_SESSION["usuarioactual"]  . '"  ');
		   if (!$control) {
				die('Invalid query 2: ' . mysql_error());
					}
					list($nombre) = mysql_fetch_row($control);

?>

<!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=utf-8" />
<title>COASJUDINET- AREA DIRECTORES DE SERVICIO</title>
 <link href="coas_nueva/html/css/script.css" rel="stylesheet" type="text/css" />
        <link href="menudirectores/layout.css" rel="stylesheet" type="text/css" />
        <link href="menudirectores/menu.css" rel="stylesheet" type="text/css" />
</head>
    
    
     <style>
			body{
				background:#333 url(images_pagina_nueva/fondocoa2.jpg) repeat top left;
				font-family:Arial;
			}
			
		.negra {
	color: #040;
	font-size: 36px;
	text-align: center;
}
     .blanca {
	color: #EEE;
}


.Estilo51 {
	color: #3366FF;
	font-weight: bold;
}

.Estiloed {
	color: #FFF;
	font-weight: bold;
}


.Estiloeda {
	color: #000000;
	font-weight: bold;
}

.Estilo21 {font-family: "Arial Narrow"; font-weight: bold; font-size: 14; color: #990000; }

     </style>
    
<body>
       
<div align="center">

  <tr>   
    <td bgcolor="#FFFFFF"><table width="1131" border="8" cellspacing="0" cellpadding="0">
     
    
     
      <tr>
       
		<br>
        <td width="1089"  background="coas_nueva/html/images/top-bg.gif"> <center><img src="coas_nueva/html/images/coas.jpg" width="1050" height="100" /></center></td>
      </tr>
    

    </table>  
      <center><table width="1200" border="2" cellspacing="1" cellpadding="1">
        <tr>
        
        </tr>  
      </table>
      
      </center> 
      <br>
        <p>
   <center> <input name="menu2" type="button" class="Estilo51" id="menu2" onclick="window.location.href='salir_coas.php'" value="CERRAR SESION" /></center>
	</p>
</div>
<br>
<CENTER>
<script languaje="JavaScript">
 	      mesarray=new Array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio","Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre");
	      diaarray=new Array( "Domingo","Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado");
	      hoy = new Date();
	      dias = hoy.getDate();
	      dia = hoy.getDay();
	      mes = hoy.getMonth();
	      mes=mesarray[mes];
	      dia =diaarray[dia];
	      anno = hoy.getYear();
	      if (anno <200)
	        anno = anno+1900;
	      document.write('<TABLE WIDTH="60" height="60" BORDER="2" BGCOLOR="#FFFFFF"><TR><TD><CENTER>');
	      document.write('<FONT SIZE="2" COLOR="#000000"> <B>'+mes+'</B></FONT><br>');
	      document.write('<FONT SIZE="1" COLOR="#000000">'+anno+'</FONT><br>');
	      document.write('<FONT SIZE="4" COLOR="#000000" FACE="Arial"><B>'+dias+'</B></FONT><br>');
	      document.write('<FONT SIZE="1" COLOR="#000000">'+dia+'</FONT><br>');
	      document.write('</CENTER></TR></TD></TABLE>');
		  
		  <!--
var from = 2;
var to = 12;
var delay = 55;
var glowColor = "#0000ff";
var i = to;
var j = 0;

textPulseDown();

function textPulseUp()
   {
   if (!document.all)
      return
   if (i < to)
      {
      TexteBat.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")";
      i++;
      theTimeout = setTimeout('textPulseUp()',delay);
      return 0;
      }

   if (i = to)
      {
      theTimeout = setTimeout('textPulseDown()',delay);
      return 0;
      }
   }

function textPulseDown()
   {
   if (!document.all)
      return
   if (i > from)
      {
      TexteBat.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")";
      i--;
      theTimeout = setTimeout('textPulseDown()',delay);
      return 0;
      }
   if (i = from)
      {
      theTimeout = setTimeout('textPulseUp()',delay);
      return 0;
      }
   }


//--></CENTER>
		  
		  
	      </script>




</CENTER>
<br>

<table  width="800" border="6" align="center" cellpadding="2" cellspacing="3"  >
<tr>
<td>
<fieldset>

        
          <ul id="nav2">
       			<li><a href="consulta_viaticos_coas.php"><center>Solicitud Viaticos</center></a></li>
                <li><a href="#"><center>Asignación Procesos</center></a></li>
                <li><a href="#"><center>Ingresar Inicios Procesos Nuevos</center></a></li>
                <li><a href="#"><center>Resultado Solicitud Viáticos</center></a></li>
                <li><a href="#"><center>Ingresar Citas Sin Contrato</center></a></li>
                <li><a href="#"><center>Central de Citas</center></a></li>
                <li><a href="#"><center>Ingresar Información Formulario</center></a></li>
                <li><a href="#"><center>Ingresar Acción Tomada</center></a></li>
                <li><center>
                  <a href="#"><span>Diligencias Judiciales <span class="home-bottom">></span></a>
                </center>
                  <ul class="subs">
                    <li><a href="#"><center>Ingresar Diligencia</center></a></li>
                     <li><a href="#"><center>Consultas Judiciales</center></a></li>
             	  </ul>
            </li>
                <li><a href="#"><span><center>Consultas Atenciones <img src="coas_nueva/html/images/s.gif" alt=""/></center></span></a>
                <ul class="subs">
                     <li><a href="#"><center>Agenda Sucursal</center></a></li>
                     <li><a href="#"><center>Agenda Abogado</center></a></li>
                     <li><a href="#"><center>Atención Por Cédula</center></a></li>
                     <li><a href="#"><center>Listado Verificación</center></a></li>
                  </ul>
                </li>
                <li><a href="#"><center>Consulta Informe de Evaluación</center></a></li>
                <li><a href="#"><center>Requerimientos Pendientes Directores</center></a></li>
                <li><a href="#"><center>Solicitar Reconsideración Injustificado</center></a></li>
                <li><a href="#"><center>Consulta Requerimientos Injustificados</center></a></li>
                <li><a href="#"><center>Consulta Atenciones Rechazadas</center></a></li>
                <li><a href="#"><center>Informe Novedades Diarias</center></a></li>
                 
                
               
        </ul>


</div>
</fieldset>	


<td bgcolor="#FFFFFF">
<fieldset>

 
<h3 align="center"><span style="width:100%"><font color="#3a6ca3"><font size="+5">SOLICITUD VIATICOS</font>
 </font><font color="#666666">
 <!--  -->
 <script>              
<!--

var from = 5;                      
var to = 11;                        
var delay = 55;                     
var glowColor = "red";              
var glowColor2 = "orange";         
var glowColor3 = "yellow";        
var glowColor4 = "lime";            
var glowColor5 = "blue";            
var glowColor6 = "magenta";         
//no more editing
var i = to;
var j = 0;
textPulseDown();
function textPulseUp()
{
if (!document.all)
return
if (i < to)
{
theText.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")";
i++;
theTimeout = setTimeout('textPulseUp()',delay);
return 0;
}
if (i = to)
{
theTimeout = setTimeout('textPulseDown()',delay);
return 0;
}
}
function textPulseDown()
{
if (!document.all)
return
if (i > from)
{
theText.style.filter = "Glow(Color=" + glowColor2 + ", Strength=" + i + ")";
i--;
theTimeout = setTimeout('textPulseDown()',delay);
return 0;
}
if (i = from)
{
theTimeout = setTimeout('textPulseUp2()',delay);
return 0;
}
}

function textPulseUp2()
{
if (!document.all)
return
if (i < to)
{
theText.style.filter = "Glow(Color=" + glowColor3 + ", Strength=" + i + ")";
i++;
theTimeout = setTimeout('textPulseUp2()',delay);
return 0;
}
if (i = to)
{
theTimeout = setTimeout('textPulseDown2()',delay);
return 0;
}
}
function textPulseDown2()
{
if (!document.all)
return
if (i > from)
{
theText.style.filter = "Glow(Color=" + glowColor4 + ", Strength=" + i + ")";
i--;
theTimeout = setTimeout('textPulseDown2()',delay);
return 0;
}
if (i = from)
{
theTimeout = setTimeout('textPulseUp3()',delay);
return 0;
}
}
function textPulseUp3()
{
if (!document.all)
return
if (i < to)
{
theText.style.filter = "Glow(Color=" + glowColor5 + ", Strength=" + i + ")";
i++;
theTimeout = setTimeout('textPulseUp3()',delay);
return 0;
}
if (i = to)
{
theTimeout = setTimeout('textPulseDown3()',delay);
return 0;
}
}
function textPulseDown3()
{
if (!document.all)
return
if (i > from)
{
theText.style.filter = "Glow(Color=" + glowColor6 + ", Strength=" + i + ")";
i--;
theTimeout = setTimeout('textPulseDown3()',delay);
return 0;
}
if (i = from)
{
theTimeout = setTimeout('textPulseUp()',delay);
return 0;
}
}

 

//-->
</script></font></span></h3>



<strong><table width="650" border="12" align="center" cellpadding="5" cellspacing="5" bgcolor="black">

			
  <tr >
<form name="formulario" action="" method="post">
<table width="468" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#085049">
  <tr>
    <td width="572"><fieldset><table width="466" border="8" align="center" cellpadding="2" cellspacing="2"  bgcolor="#085049" >
 <tr bgcolor="#FFFFCC">
    <td colspan="2" bgcolor="#085049" ><div align="center" class="NEGRA"> <strong>CONSULTAR NUMERO DE CEDULA</strong></div></td>
  </tr>
  <tr bgcolor="#ECE9D8">
    <td height="22" colspan="2" bgcolor="#FFFFFF" class="fecha"><div align="center">
      <script languaje="JavaScript">Mostrar_Fecha()</script>
    </div></td>
  </tr>
  

  <tr bgcolor="#FFCC99">
    <td width="217" bgcolor="#CCCCCC"><div align="center"><span class="Estilo51">Cedula : </span></div></td>
    <td width="282" bgcolor="#CCCCCC"><label>
      <input name="ced" type="text" id="ced" size="15" maxlength="15">
    </label></td>
  </tr>
  <tr bgcolor="#FFCC99">
    <td colspan="2" bgcolor="#CCCCCC"><div align="center"><span class="Estilo51">
      <input name="consultar" id="consultar" type="submit" class="Estilo21" value="Consultar">
    </span></div></td>
  </tr>
  

</table>
</fieldset></td>
  </tr>
</table>
</form>
</body>
</html>  
<br><br/>
<?php 

if(isset($_POST["consultar"]))
{
	
	echo "<form name='form' action='' method='post'>";
    require_once("mainfile.php");
    include ("config.php");
    global $dbi;

   require_once("Conectarse.php");
   
  
//$mssql = mysql_query("select * from procesos where cedula = '$ced'",$dbi);
$mssql = mysql_query('SELECT * FROM procesos WHERE cedula = "' . $_POST[ced] . '" ');
			if (!$mssql) {
				die('Invalid query: ' . mysql_error());
			}
   if($mssql)
   {
         $filas = mysql_num_rows($mssql);
         if ($filas > 0)
         {

					  
$control = mysql_query('SELECT cedula, numero_proceso, tipo_proceso, despacho_judicial, ciudad_despacho FROM procesos WHERE cedula = "' . $_POST[ced] . '" order by numero_proceso ');
			if (!$control) {
				die('Invalid query: ' . mysql_error());
			} 
			/////  ///
			
			
			
			
			
                      if ((mysql_num_rows($control)!=0)) 
	                    {	 
                              echo "<TABLE width='800' border='0' align='center' cellpadding='0' cellspacing='1'>
                              <TR>
                              <TD bgcolor='#085049'><div align='center'><span class='Estiloed'>CEDULA</span></div></TD>
                              <TD bgcolor='#085049'><div align='center'><span class='Estiloed'>NOMBRE</span></div></TD>		 
                              <TD bgcolor='#085049'><div align='center'><span class='Estiloed'>No PROCESO</span></div></TD>
                              <TD bgcolor='#085049'><div align='center'><span class='Estiloed'>TIPO</span></div></TD>
							  <TD bgcolor='#085049'><div align='center'><span class='Estiloed'>DESPACHO JUDICIAL</span></div></TD>
                              <TD bgcolor='#085049'><div align='center'><span class='Estiloed'>CIUDAD</span></div></TD>";		  
                           							   
                        

                             while(list($cedula, $numero_proceso, $tipo_proceso, $despacho_judicial, $ciudad_despacho) = mysql_fetch_row($control)) 
                              {  
								  // $sqlnom2 = "select apellidos_noms from datos_basicos_rc where cedula = '$cedula'";
     //	$control2 = mysql_query($sqlnom2, $dbi) or die(mysql_error());
	 
	 
	 
	 //*/*/*///
	 
	 $control31 = mysql_query('SELECT orden_de_trabajo FROM INICIOS_PROCESOS_JURIDICOS WHERE codigo ="'.$_GET["ced"].'" and contrato ="'.$numero_contrato.'" ');
			if (!$control31) {
				die('Invalid query: ' . mysql_error());
			} 
		$num3=mysql_num_rows($control31); 
		
		list($ordentrabajo) = mysql_fetch_row($control31);	
	 
	 
	 
	 
		$control2 = mysql_query('SELECT nombre FROM cartera_serviasjudinet  WHERE cedula = "' .$cedula. '" ');
			if (!$control2) {
				die('Invalid query: ' . mysql_error());
			}	 
    	$fil = mysql_num_rows($control2);
		
		if ($fil=="0"){
			
			$control20 = mysql_query('SELECT nombre FROM beneficiarios  WHERE cedula = "' .$_POST[ced]. '" ');
			if (!$control20) { 
				die('Invalid query: ' . mysql_error());
			}	 
    	list($nombre) = mysql_fetch_row($control20);
				
			}
			
			else {
				
				list($nombre) = mysql_fetch_row($control2);
				}
								   
								   printf("<tr>
                                   <td bgcolor='#8899AA'><div align='center' class='Estiloeda'>".$cedula."</span></div></td>
								   <td bgcolor='#8899AA'><div align='center' class='Estiloeda'>".$nombre."</span></div></td>
								   <td bgcolor='#8899AA'><div align='center' class='Estiloeda'><input type='button' value=$numero_proceso name='cedu' class=Estilo21 onClick =window.open('solicitud_viaticos.php?ced=$cedula&pro=$numero_proceso','','top=50,left=100,toolbar=yes,scrollbars=yes,width=850,height=550,status=yes')></a></span></div></td>
								   <td bgcolor='#8899AA'><div align='center'  class='Estiloeda'>".$tipo_proceso."</span></div></td>
								   <td bgcolor='#8899AA'><div align='center'  class='Estiloeda'>".$despacho_judicial."</span></div></td>
								   <td bgcolor='#8899AA'><div align='center'  class='Estiloeda'>".$ciudad_despacho."</span></div></td>");              								     
                               }
			                       
								   echo "</table>";		  
                        }
						
		       
	      }
     }
    

echo "</form>";

	
 
}
///////////////////////////

 require_once("mainfile.php");
    include ("config.php");
    global $dbi;

   require_once("Conectarse.php");


$control = mysql_query('SELECT orden_de_trabajo,codigo, apellidos_y_nombres,tipo_proceso,sucursal FROM INICIOS_PROCESOS_JURIDICOS  WHERE  codigo = "'.$_POST["ced"].'" and orden_de_trabajo!="'.$numero_proceso.'" and estado= "0"');
						  if (!$control) {
								die('Invalid query 2: ' . mysql_error());
									}

                      if ((mysql_num_rows($control)!=0)) 
	                    {	 
                              echo "<TABLE width='900' border='0' align='center' cellpadding='0' cellspacing='1'>
							  <tr><div align='center' colspan='8'> <span class='campo' align='center'>CONTROL INICIOS</span></div></tr>
                              <TR>
							  <TD bgcolor='#8899AA'><div align='center'><span class='Estiloed'>CEDULA</span></div></TD>
							  <TD bgcolor='#8899AA'><div align='center'><span class='Estiloed'>NOMBRE</span></div></TD>
                              <TD bgcolor='#8899AA'><div align='center'><span class='Estiloed'>ORDEN DE TRABAJO</span></div></TD>
							  <TD bgcolor='#8899AA'><div align='center'><span class='Estiloed'>TIPO</span></div></TD>	
                              <TD bgcolor='#8899AA'><div align='center'><span class='Estiloed'>SUCURSAL</span></div>";		  
                           							  
                        
    while(list($numero_proceso,$cedula,  $nombres, $tipo,$sucursal) = mysql_fetch_row($control)) 
                              {  
											if($estado == 0)
											{
											$esta = "HISTORICO";
											}
											else
											{																																     										$esta = "VIGENTE";
											}    
											$cedut = $cedula; 
											$numcon = $numcon;  
								   printf("<tr>
                                  <td bgcolor='#8899AA'><div align='center' class='Estiloeda'>".$cedula."</span></div></td>
								  <td bgcolor='#8899AA'><div align='center' class='Estiloeda'>".$nombres."</span></div></td>
								  <td bgcolor='#8899AA'><div align='center' class='Estiloeda'><input type='button' value=$numero_proceso name='cedu' class=Estilo51 onClick =window.open('solicitud_viaticos_inicios.php?ced=$cedula&pro=$numero_proceso','','top=50,left=100,toolbar=yes,scrollbars=yes,width=850,height=550,status=yes')></a></span></div></td>	 
                                   <td bgcolor='#8899AA'><div align='center' class='Estiloeda'>".$tipo."</span></div></td>
								   <td bgcolor='#8899AA'><div align='center' class='Estiloeda'>".$sucursal."</span></div></td>");   
								  						   
                               }
			                          
								   echo "</table>";		
						}  

?>


 
</table>
 


	
	
</form>   

    <br>
      
     
</td>
</tr>     



      <div align="center">
      
      
        <table width="1000" border="3" cellspacing="2" cellpadding="2">
        
          <tr>
        <td  width="1000" bgcolor="#e1e7e7" class="home-bottom"><a href="prueba_paginanueva3.php">INFORMACION CORPORATIVA</a>  |  <a href="#">NUESTROS PRODUCTOS</a>  |  <a href="sucursales_coas.php">NUESTRAS SEDES</a>  |  <a href="#">SISTEMA PREPAGO</a>  |  <a href="#">ASUNTOS DE INTERES</a>  |  <a href="#">CONTACTENOS</a><br />
              <span class="home-bottom-new">Copyright &copy; 2014 Coasjudinet. All Rights Reserved.</span></td>
          </tr>
          
        </table>
    </div>

                	
</body>
    
</html>