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/histoser_listado_aten_pro.php
<?php 
require_once("mainfile.php");
include ("config.php");
global $dbi;
$espacio = ' ';
$linea = '-';

require_once("Conectarse.php");

/*
$sql2 = mysql_query('SELECT * FROM descuentos order by unidad  ');
			if (!$sql2) {
				die('Invalid query: ' . mysql_error());
			}
$row_sql2 = mysql_fetch_assoc($sql2);
$totalRows_sql2 = mysql_num_rows($sql2);  
*/

?>


<!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=iso-8859-1" />
<title>Listado Atenciones Consecutivas</title>
<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: 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: #000066;}
.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:90px;
	height:22px;
}
body {
	background-image: url();
}
.Estilo50 {color: #CC3333;
	font-family: "Arial Narrow";
	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;}
.Estilo58 {color: #000000}
.Estilo66 {color: #000066; font-size: 16px; font-weight: bold; }
-->
</style>
<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>

<body>

<center> <img src="ELEMENTOS\CABEZOTE SERVIASJUDINET.jpg" WIDTH=60% > </center>
<br></br>
<form action="" method="post" name="form1" class="provd" id="form1">
  <div align="center">
    <table width="655" border="3" cellpadding="3" cellspacing="3" bgcolor="#CCFFFF">
      <tr>
        <td colspan="3"><div align="center" class="Estilo50">LISTADO DE ATENCIONES CONSECUTIVAS</div></td>
      </tr>

      </table>
  
    <p>

   <input name="menu2" type="button" class="Estilo50" id="menu2" onclick="window.location.href='menu_histoser.php'" value="IR AL MENU" />

    </p>

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

<?php

$control = mysql_query('SELECT id, cedula, atencion,  fecha_servicio , funcionario , proceso FROM atenciones_sin_proceso WHERE  estado = "0" and (proceso="SIN" || proceso="CON") order by  cedula');
if (!$control) {
	die('Invalid query 2: ' . mysql_error());
} 

if ((mysql_num_rows($control) != 0)) 
{	 
	echo "<TABLE width='850' border='2' align='center' cellpadding='2' cellspacing='1'>
   	<TR>
   	<TD bgcolor='#CCFFCC'><div align='center'><span class='texto'>CEDULA</span></div></TD>
	<TD bgcolor='#CCFFCC'><div align='center'><span class='texto'>ATENCION</span></div></TD>
	<TD bgcolor='#CCFFCC'><div align='center'><span class='texto'>FECHA SERVICIO</span></div></TD>
	<TD bgcolor='#CCFFCC'><div align='center'><span class='texto'>NOMBRE</span></div></TD>
	<TD bgcolor='#CCFFCC'><div align='center'><span class='texto'>PROCESO</span></div></TD>
	<TD bgcolor='#CCFFCC'><div align='center'><span class='texto'>ACCION TOMADA</span></div></TD>
	<TD bgcolor='#CCFFCC'><div align='center'><span class='texto'>REQUERIMIENTO</span></div></TD>
	<TD bgcolor='#CCFFCC'><div align='center'><span class='texto'>JUSTIFICADO</span></div></TD>";	                  							  
                        
  	while(list($id,  $cedula, $atencion, $fecha, $nombre, $deta) = mysql_fetch_row($control)) 
    {
		$misql4 = mysql_query('SELECT nombre_completo FROM asjudinet_abogados WHERE cedula  = "' ."$nombre". '" ');
		if (!$misql4) {
			die('Invalid query: ' . mysql_error());
		}
		list($nombre) = mysql_fetch_row($misql4);
				
		
		$sum = $sum + 1;
					
		if ($deta == "SIN")
		{
			printf("<tr>    
<td bgcolor='#DEFEFD'><div align='center' class='lista'><input type='button' value=$cedula name='cedu' class=Estilo51 onClick =window.open('modificar_atencion.php?id=$cedula&atencion=$atencion','','top=20,left=100,toolbar=no,scrollbars=yes,width=790,height=600,status=yes')></a></span></div></td>
                              
			<td bgcolor='#FFFFCC'><div align='center' class='lista'>".$atencion."</span></div></td>
			<td bgcolor='#FFFFCC'><div align='center' class='lista'>".$fecha."</span></div></td>
			<td bgcolor='#FFFFCC'><div align='center' class='lista'>".$nombre."</span></div></td> 
			<td bgcolor='#FFFFCC'><div align='center' class='Estilo50'>".$deta."</span></div></td> 
			
			<td bgcolor='#DEFEFD'><div align='center' class='lista'><input type='button' value=Accion Tomada name='cedu' class=Estilo51 onClick =window.open('accion_tomada_consulta_histoser.php?cedula=$cedula&atencion=$atencion&id=$id','','top=20,left=100,toolbar=no,scrollbars=yes,width=790,height=600,status=yes')></a></span></div></td> 
			<td bgcolor='#DEFEFD'><div align='center' class='lista'><input type='button' value=Requerimiento name='cedu' class=Estilo51 onClick =window.open('requerimiento_histoser.php?cedula=$cedula&atencion=$atencion','','top=20,left=100,toolbar=no,scrollbars=yes,width=790,height=600,status=yes')></a></span></div></td>
			
			<td bgcolor='#DEFEFD'><div align='center' class='lista'><input type='button' value=Justificado name='cedu' class=Estilo50 onClick =window.open('histoser_guardar_jus.php?ced=$cedula&atencion=$atencion&id=$id','','top=20,left=100,toolbar=no,scrollbars=yes,width=790,height=600,status=yes')></a></span></div></td> ");   
		
		}
		else
		{
			printf("<tr>    
<td bgcolor='#DEFEFD'><div align='center' class='lista'><input type='button' value=$cedula name='cedu' class=Estilo51 onClick =window.open('modificar_atencion.php?id=$cedula&atencion=$atencion','','top=20,left=100,toolbar=no,scrollbars=yes,width=790,height=600,status=yes')></a></span></div></td>
                              
			<td bgcolor='#FFFFCC'><div align='center' class='lista'>".$atencion."</span></div></td>
			<td bgcolor='#FFFFCC'><div align='center' class='lista'>".$fecha."</span></div></td>
			<td bgcolor='#FFFFCC'><div align='center' class='lista'>".$nombre."</span></div></td> 
			<td bgcolor='#FFFFCC'><div align='center' class='Estilo66'>".$deta."</span></div></td>
			
			<td bgcolor='#DEFEFD'><div align='center' class='lista'><input type='button' value=Accion name='cedu' class=Estilo51 onClick =window.open('accion_tomada_consulta_histoser.php?cedula=$cedula&atencion=$atencion&id=$id','','top=20,left=100,toolbar=no,scrollbars=yes,width=790,height=600,status=yes')></a></span></div></td> 
			
			<td bgcolor='#DEFEFD'><div align='center' class='lista'><input type='button' value=Requerimiento name='cedu' class=Estilo51 onClick =window.open('requerimiento_histoser.php?cedula=$cedula&atencion=$atencion&id=$id','','top=20,left=100,toolbar=no,scrollbars=yes,width=790,height=600,status=yes')></a></span></div></td> 
			
			<td bgcolor='#DEFEFD'><div align='center' class='lista'><input type='button' value=Justificado name='cedu' class=Estilo50 onClick =window.open('histoser_guardar_jus.php?ced=$cedula&atencion=$atencion&id=$id','','top=20,left=100,toolbar=no,scrollbars=yes,width=790,height=600,status=yes')></a></span></div></td> ");   
		}           					
								  
	}
                              
	echo "</table>";		  
	echo "<TABLE width='200' border='0' align='center' cellpadding='0' cellspacing='1'>
    <TR>
    <TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>TOTAL REGISTROS</span></div></TD></TD>";	
	printf("<tr>
    <td bgcolor='#C5D6FC'><div align='center' class='lista'>".$sum."</span></div></td></td>"); 
	echo "</table>";	
}
						
echo "</form>";


?>