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_control_cero_soldados.php
<?php
require_once("mainfile.php");
include ("config.php");
global $dbi;

require_once("Conectarse.php");

?>
<html>
<head>
<title>Documento sin t&iacute;tulo</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:150px; border: 4px solid #0000CC; font-family:Arial; color:#990000;}
.texto {background-color: #CCFFCC; font-size: 13px; font-family: Arial; color:#0000CC; display: block;}
.fecha {background-color: #CCFFCC; font-size: 12px; font-family: Arial; color: #000099; width:10px display: block;}
.campo {background-color: #FFFFCC; border:1px solid #990000;}
.lista { background-color:#99FFFF; font-family: Arial; font-size: 11px;	color: #990000;}
.label {background-color: #00CCFF ; font-size: 14px; font-family: Arial; color:#0000CC; display: block;}
.area {background-color: #CCFFCC; font-size: 13px; width:40px font-family: Arial; color:#0000CC; display: block;}
.variables {background-color: #CCFFCC; font-size: 12px; font-family: Arial; color: #003333 ; width:10px display: block; border: 2px solid #006633;}
.sel { background-color:#DDFFFF; width:400px; border: 1px solid #0099FF; font-family:Arial; font-style:italic; color:#990000 }
.seleccion { background-color: #CCFFCC; width:340px; border: 1px solid #0099FF; font-family:Arial; color:#990000;}
.boton2 {font-family: Verdana; font-size: 8 pt; color: #000080; background-color: #C0C0C0; border-style: solid; }
body {
	background-image: url(fondo_argollado.gif);
}
.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;}
.campo1 {background-color: #FFFFCC; border:1px solid #990000; font-family:Arial;  font-size:11px; height: inherit}
.boton3 {background-color: #FFCCCC; color:#FFFFFF; width:150px; border: 4px solid #0000CC; font-family:Arial; color:#990000;}
.lista {background-color: #306090; font-size: 14px; font-family: Arial; color: #FFFFFF; width:10px display: block; text-align:center; padding:10px;}
.polici2 {background-color: #EBEBEB; font-size: 14px; font-family: Arial; color: #000000; width:10px display: block;}
-->
</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 validar()
{

	var uf, pf, sf=0;
	uf = formulario.ultimo_folio.value;
	pf = formulario.folio1.value;
	sf = parseInt(formulario.ultimo_folio.value)+1;

	if(!(pf == uf || pf == sf))
	{	 
     	   alert('El folio ingresado debe ser igual o inmediatamente posterior al último');
           formulario.folio1.focus();
           return (false);	
	}

  if (formulario.folio2.value == "")
  {
    alert("Falta ingresar el Folio2");
    formulario.folio2.focus();
    return (false);
  }   

	if(formulario.folio2.value < pf)
	{	 
     	   alert('El folio2 no debe ser menor que el folio1');
           formulario.folio2.focus();
           return (false);	
	}	

  if (formulario.actuacion.value == "")
  {
    alert("Falta ingresar la actuación");
    formulario.actuacion.focus();
    return (false);
  }

  if (formulario.codigo_funcionario.value == "")
  {
    alert("Falta seleccionar el nombre del funcionario");
    formulario.codigo_funcionario.focus();
    return (false);
  }

return (true);
}
//--></script>

<SCRIPT LANGUAGE='JavaScript'>
var default1 = "VENTANA PARA LA MODIFICACION DE REVISTAS JURIDICAS"; // only shown once at page load
var text1 = "El primer encabezado muestra en detalle los datos del proceso seleccionado";
var text2 = "la segunda parte muestra el record de actuaciones";
var text3 = "Revise bien las actuaciones y los número de folios";
var changeRate = 3000; // 1000 = 1 second
var messageNumber = 0;

function changeStatus()
{
  if (messageNumber == 0) {
     window.status=default1;
     document.title=default1;
    }
  else if (messageNumber == 1) {
     window.status=text1;
    }
  else if (messageNumber == 2) {
     window.status=text2;
     }
  else if (messageNumber == 3) {
     window.status=text3;
     messageNumber = 0;
     }
  messageNumber++;
  setTimeout("changeStatus();",changeRate);
}
changeStatus(); // leave here to run right away
// -->
</SCRIPT>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="document.formulario.folio1.focus()">


<?php


 $result = mysql_query('SELECT id,cedula,actuaciones,fecha,funcionario,estado FROM actuaciones_consultorio_control_soldados WHERE cedula =  "'.$_GET["cedula"].'" and estado= "0" order by fecha');
			if (!$result) {
				die('Error de consulta: ' . mysql_error());
			}
if(mysql_num_rows($result) != 0)
{
   echo "<table width=750 border=1 align=center cellpadding=1 cellspacing=1>
  <tr>
    <td colspan=5 bgcolor=#ECE9D8><div align=center class='titulos'>LISTADO DE ACTUACIONES SOLDADOS</div></td>
  </tr>
  <tr align=center>
    <td width='34' class=lista>Cedula</td>
    <td width='34' class=lista>Actuaciones</td>
    <td width='75' class=lista>Fecha</td>
    <td width='65' class=lista>Funcionario</td>
	<td width='65' class=lista>Estado</td>
  </tr>";

   while(list($id,$cedula, $actuaciones, $fecha, $funcionario,$estado) = mysql_fetch_row($result))
   {
	   
	   //pasa el nombre
	   $controlcartera = mysql_query('SELECT nombre FROM cartera_serviasjudinet WHERE cedula = "'.$cedula.'"');    
		  if (!$controlcartera) {
				die('Invalid query 1: ' . mysql_error()); 
			}
		$num=mysql_num_rows($controlcartera);   
		list($nombre) = mysql_fetch_row($controlcartera);
       	   
		echo  "<tr>
		<td class='polici2' align=center>$cedula</td>
		<td class='polici2'><a href=\"control_modifica_actuacion_cero_soldados.php?id=$id&cedula=$cedula&nombre=$nombre\" target=_blank  top=50,left=100,toolbar=no,scrollbars=no,width=790,height=521,status=yes>$actuaciones</a></td>
		<td class='polici2' align=center>$fecha</td>
		<td class='polici2' align=center>$funcionario</td>
		<td class='polici2' align=center>$estado</td></tr>";
   }
}
?>
</table>