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

require_once("Conectarse.php");
if ($_POST[guardar])	
{

$nuevafecha = $_POST[ano_act]."-".$_POST[mes_act]."-".$_POST[dia_act];
		

    $caus = mysql_query('SELECT concepto FROM codigos_gestion_cobranzas WHERE codigo = "' . $_POST["codigo3"]  . '" ');
			if (!$caus) {
				die('Invalid query caus: ' . mysql_error());
			}
 	list($causal) = mysql_fetch_row($caus);

 $insertar = mysql_query("INSERT INTO actuaciones_cobranzas (cedula, numero_carpeta, oficio_numero, actuacion, fecha, cedula_usuario, codigo_gestion) VALUES ('" . $HTTP_GET_VARS[id]  . "', '" . $HTTP_GET_VARS[carpeta]  . "', '" . $_POST["oficio_numero"]  . "', '" . $_POST["actuacion"]  . "',NOW(),  '" . $_POST["usuario"]  . "', '" . $_POST["codigo3"]  . "')");
	if (! $insertar) {
				die('Invalid query insertar: ' . mysql_error());
			}
			
							$modificarcob = mysql_query("UPDATE cobranzas set  codigo_gestion = '" . $_POST[codigo3] . "', cedula_funcionario = '" . $_POST[usuario] . "' , fecha_gestion = ' $nuevafecha ' , causal = '" .$causal. "' , estado = '0' WHERE cedula = '" . $HTTP_GET_VARS["id"] . "' and numero_carpeta = '" . $HTTP_GET_VARS["carpeta"] . "' ");
			if (! $modificarcob) {
				die('Invalid query: ' . mysql_error());
			}


echo "<SCRIPT LANGUAGE='javascript'>window.location.href='cobranzas_jur_his.php?'</SCRIPT>";
}	



         $result = mysql_query('SELECT numero_carpeta, cedula, nombre_completo, numero, tipo, capital_periodo, capital_renovacion, interes_prejuridico, interes_cobroejecutivo, capital_clausula, deuda_total, oficio_numero, fecha_oficio, cedula_funcionario, unidad FROM cobranzas WHERE cedula = "' . $HTTP_GET_VARS["id"] . '" and numero_carpeta = "' . $HTTP_GET_VARS["carpeta"] . '"');
			if (!$result) {
				die('Invalid query: ' . mysql_error());
			}
			

         if ((mysql_num_rows($result) != 0)) 
	     {	 
            list($numero_carpeta, $cedula, $nombre_completo, $numero, $tipo, $capital_periodo, $capital_renovacion, $interes_prejuridico, $interes_cobroejecutivo, $capital_clausula, $deuda_total, $oficio_numero, $fecha_oficio, $cedfun, $unidadc) = mysql_fetch_row($result);
                      $tres=substr($fecha_oficio, 0, 4);
                      $dos=substr($fecha_oficio, 5, 2);
                      $uno=substr($fecha_oficio, 8, 2);
                      $fecha_oficio = ($uno."-".$dos."-".$tres);									
         }
        
		
		  $per = mysql_query('SELECT cuenta_cobro, numero_carpeta, cedula, motivo, capital_recuperado, oficio_dev_num, fecha, unidad FROM devolucion_carpeta WHERE cedula = "' . $HTTP_GET_VARS["id"] . '" and numero_carpeta = "' . $HTTP_GET_VARS["carpeta"] . '"');
			
		//$dev = mysql_query("select cuenta_cobro, numero_carpeta, cedula, motivo, capital_recuperado, oficio_dev_num, fecha, unidad from devolucion_carpeta where cedula = $cedula and numero_carpeta = $carpeta",$dbi);
		//$per = mysql_num_rows($result); 
		
        if ( (mysql_num_rows($per) != 0)) 
	    {	 		 
            list($cuenta_cobro, $num_carpeta, $cedula, $motivo, $capital_recuperado, $oficio_dev_num, $fecha_dev, $unidadd) = mysql_fetch_row($per);            									   
            $tres=substr($fecha_dev, 0, 4);
            $dos=substr($fecha_dev, 5, 2);
            $uno=substr($fecha_dev, 8, 2);
            $fecha_dev = ($uno."-".$dos."-".$tres);			
        }
		else
		{
		    $num_carpeta = "";
	     }	
		 
		 
	$sql3 = mysql_query('SELECT * FROM codigos_gestion_cobranzas WHERE estado = "0" order by codigo  ');
			if (!$sql3) {
				die('Invalid query: ' . mysql_error());
			}
$row_sql3 = mysql_fetch_assoc($sql3);
$totalRows_sql3 = mysql_num_rows($sql3);	 
		 	
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Pasar Historico Cobranzas 1</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.Estilo1 {font-family: "Arial Narrow"}
.Estilo2 {
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
}
.Estilo10 {font-weight: bold}
.Estilo17 {font-size: 14}
.Estilo18 {font-family: "Arial Narrow"; font-weight: bold; font-size: 14; }
.Estilo19 {font-family: "Arial Narrow"; font-weight: bold; }
.Estilo24 {color: #FF0000}
.Estilo26 {
	color: #000099;
	font-weight: bold;
}
.Estilo28 {
	color: #CC0000;
	font-weight: bold;
}
.Estilo29 {font-weight: bold}
-->
</style>

<script Language="JavaScript"><!--
function validar(formulario)
{
  if (formulario.dia_act.value > 31)
  {
    alert("El número de día no se debe exceder de 31");
    formulario.dia_act.focus();
    return (false);
  }

  if (formulario.mes_act.value > 12)
  {
    alert("El número del mes no se debe exceder de 12");
    formulario.mes_act.focus();
    return (false);
  }
  return (true);
}
//--></script>

<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>
mesk=new Array();mesk[10]="A";mesk[11]="B";mesk[12]="C";mesk[13]="D";mesk[14]="E";mesk[15]="F";A=10;B=11;C=12;D=13;E=14;F=15;let="ABCDEF";function mes(num){if(let.indexOf(num) != -1){return eval(num)};else{if(num < 10){return eval(num)};else{return mesk[num]}}};
function color(begin,einde,stappen,stap){
hh1=(mes(begin.charAt(0))*16)+mes(begin.charAt(1));
hh2=(mes(begin.charAt(2))*16)+mes(begin.charAt(3));
hh3=(mes(begin.charAt(4))*16)+mes(begin.charAt(5));
pp1=(mes(einde.charAt(0))*16)+mes(einde.charAt(1));
pp2=(mes(einde.charAt(2))*16)+mes(einde.charAt(3));
pp3=(mes(einde.charAt(4))*16)+mes(einde.charAt(5));

if(hh1 < pp1){ff1=hh1+Math.floor((pp1-hh1)/stappen*stap);
ff1=eval("\'"+mes(Math.floor(ff1/16))+"\'")+eval("\'"+mes(ff1-(Math.floor(ff1/16)*16))+"\'");}
;else{ff1=hh1-Math.floor((hh1-pp1)/stappen*stap);
ff1=eval("\'"+mes(Math.floor(ff1/16))+"\'")+eval("\'"+mes(ff1-(Math.floor(ff1/16)*16))+"\'");}
if(hh2 < pp2){ff2=hh2+Math.floor((pp2-hh2)/stappen*stap);
ff2=eval("\'"+mes(Math.floor(ff2/16))+"\'")+eval("\'"+mes(ff2-(Math.floor(ff2/16)*16))+"\'");}
;else{ff2=hh2-Math.floor((hh2-pp2)/stappen*stap);
ff2=eval("\'"+mes(Math.floor(ff2/16))+"\'")+eval("\'"+mes(ff2-(Math.floor(ff2/16)*16))+"\'");}
if(hh3 < pp3){ff3=hh3+Math.floor((pp3-hh3)/stappen*stap);
ff3=eval("\'"+mes(Math.floor(ff3/16))+"\'")+eval("\'"+mes(ff3-(Math.floor(ff3/16)*16))+"\'");}
;else{ff3=hh3-Math.floor((hh3-pp3)/stappen*stap);
ff3=eval("\'"+mes(Math.floor(ff3/16))+"\'")+eval("\'"+mes(ff3-(Math.floor(ff3/16)*16))+"\'");}
;return ff1+ff2+ff3}
mesf=new Array();mesh=new Array();num2=0;num3=0;num4=0;txt="";function shape(){colorsh.innerHTML="<font color='#"+background_color+"'>"+mesf[num2]+"<\/font>";for(i=0;i != mesf[num2].length;i++){mesh[i]=background_color;};for(i=0;i != mesf[num2].length;i++){mesh[i+mesf[num2].length]=color(background_color,text_color,mesf[num2].length,i);};for(i=(mesf[num2].length*2);i != (mesf[num2].length*3);i++){mesh[i]=text_color};shape2()};function shape2(){for(i=0;i != mesf[num2].length;i++){txt=txt+"<font color='"+mesh[i+num3]+"'>"+mesf[num2].charAt(i)+"<\/font>";};colorsh.innerHTML=txt;txt="";if(num3 != (mesf[num2].length*2)){num3++;setTimeout("shape2()",50)};else{num2=0;num3=0;txt=background_color;background_color=text_color;text_color=txt;txt="";setTimeout("shape()",1000);}}
</script>

</head>
<body onload="document.formulario.cedula.focus()">
<form method="post" name="formulario" action="" onSubmit="return validar(this)">
<table width="745" border="0" align="center" cellpadding="3" cellspacing="3">    
  <tr valign="baseline" bgcolor="#0099FF">
    <td colspan="6" align="right" nowrap bgcolor="#FFFDE8"><div align="center"><span class="Estilo2">PASAR HISTORICO COBRANZAS </span></div></td>
  </tr>
  <tr valign="baseline" bgcolor="#0099FF">
    <td colspan="6" align="right" nowrap bgcolor="#FFFDE8"><div align="center" class="Estilo2"><script languaje="JavaScript">Mostrar_Fecha()</script></div></td>
  </tr>
  <tr valign="baseline" bgcolor="#0099FF">
    <td width="196" align="right" nowrap bgcolor="#FFFDE8"><span class="Estilo18">C&eacute;dula, apellidos y nombres</span></td>
    <td bgcolor="#FFFDE8"><input name="identi" type="text" id="identi" value="<?php echo $cedula; ?>" size="8" maxlength="8" readonly=""></td>
    <td colspan="4" bgcolor="#FFFDE8"><input name="nombre_completo" type="text" id="nombre_completo3" value="<?php echo $nombre_completo; ?>" size="50" maxlength="50" readonly=""></td>
    </tr>
  <tr valign="baseline" bgcolor="#0099FF">
      <td bgcolor="#FFFDE8"><div align="left" class="Estilo4 Estilo10 Estilo17 Estilo1">
        <div align="right"><span class="Estilo5">N&uacute;mero de Contrato:</span></div>
      </div></td>
      <td width="63" bgcolor="#FFFDE8"><input name="numero" type="text" id="numero" value="<?php echo $numero; ?>" size="6" maxlength="6" readonly=""></td>
      <td width="217" bgcolor="#FFFDE8"><div align="right" class="Estilo18">Tipo:</div></td>
      <td width="58" bgcolor="#FFFDE8"><input name="tipo" type="text" id="tipo" value="<?php echo $tipo; ?>" size="4" maxlength="4" readonly=""></td>
      <td width="58" bgcolor="#FFFDE8" class="Estilo18">Unidad: </td>
      <td width="96" bgcolor="#FFFDE8"><input name="unidad" type="text" id="unidad" value="<?php echo $unidadc; ?>" size="4" maxlength="4" readonly=""></td>
  </tr>
    <tr valign="baseline" bgcolor="#0099FF">
      <td align="right" nowrap bgcolor="#FFFDE8"><div align="left" class="Estilo4 Estilo10 Estilo17 Estilo1">
        <div align="right"><span class="Estilo5">Capital Per&iacute;odo actual </span></div>
      </div></td>
      <td bgcolor="#FFFDE8"><input name="capital_periodo" type="text" id="capital_periodo" value="<?php echo  number_format($capital_periodo, 0, ".",","); ?>" size="10" maxlength="10" readonly=""></td>
      <td bgcolor="#FFFDE8"><div align="right" class="Estilo18">Capital renovaci&oacute;n Autom&aacute;tica: </div></td>
      <td colspan="3" bgcolor="#FFFDE8"><input name="capital_renovacion" type="text" id="capital_renovacion" value="<?php echo number_format($capital_renovacion, 0, ".",","); ?>" size="10" maxlength="10" readonly=""></td>
    </tr>
    <tr valign="baseline" bgcolor="#0099FF">
      <td align="right" nowrap bgcolor="#FFFDE8"><span class="Estilo18">Intereses Cobro Prejur&iacute;dico </span></td>
      <td bgcolor="#FFFDE8"><input name="interes_prejuridico" type="text" id="interes_prejuridico" value="<?php echo number_format($interes_prejuridico, 0, ".",","); ?>" size="10" maxlength="10" readonly=""></td>
      <td bgcolor="#FFFDE8"><div align="right" class="Estilo18">Honorarios: </div></td>
      <td colspan="3" bgcolor="#FFFDE8"><input name="interes_cobroejecutivo" type="text" id="interes_cobroejecutivo" value="<?php echo number_format($interes_cobroejecutivo, 0, ".",","); ?>" size="10" maxlength="10" readonly=""></td>
    </tr>
    <tr valign="baseline" bgcolor="#0099FF">
      <td align="right" nowrap bgcolor="#FFFDE8"><div align="left" class="Estilo4 Estilo10 Estilo17 Estilo1">
        <div align="right"><span class="Estilo5">Capital cl&aacute;usula penal:</span></div>
      </div></td>
      <td bgcolor="#FFFDE8"><input name="capital_clausula" type="text" id="interes_prejuridico3" value="<?php echo number_format($capital_clausula, 0, ".",","); ?>" size="10" maxlength="10" readonly=""></td>
      <td bgcolor="#FFFDE8"><div align="right" class="Estilo18"><span class="Estilo5">Deuda Total:</span></div></td>
      <td colspan="3" bgcolor="#FFFDE8"><input name="deuda_total" type="text" id="deuda_total3" value="<?php echo number_format($deuda_total, 0, ".",","); ?>" size="10" maxlength="10" readonly=""></td>
    </tr>
    <tr valign="baseline" bgcolor="#0099FF">
      <td align="right" nowrap bgcolor="#FFFDE8"><span class="Estilo18">Oficio de env&oacute; No. </span></td>
      <td bgcolor="#FFFDE8"><input name="oficio_numero" type="text" id="oficio_numero" value="<?php echo $oficio_numero; ?>" size="4" maxlength="4" readonly=""></td>
      <td bgcolor="#FFFDE8"><div align="right" class="Estilo19">Fecha dd/mm/aaaa:</div></td>
      <td colspan="3" bgcolor="#FFFDE8"><span class="Estilo18">
      <input name="fecha_oficio" type="text" id="fecha_oficio" value="<?php echo $fecha_oficio; ?>" size="10" maxlength="10" readonly="">
      </span></td>
    </tr>
    <tr valign="baseline" bgcolor="#FFFFCC">
      <td align="right" nowrap bgcolor="#FFFDE8"><span class="Estilo1 Estilo29"><strong>N&uacute;mero Carpeta:</strong></span></td>
      <td align="right" nowrap bgcolor="#FFFDE8"><div align="left" class="Estilo19">
          <input name="numero_carpeta" type="text" id="numero_carpeta" value="<?php echo $num_carpeta; ?>" size="4" maxlength="4" readonly="">
      </div></td>
      <td align="right" nowrap bgcolor="#FFFDE8" class="Estilo19">Unidad:</td>
      <td colspan="3" align="right" nowrap bgcolor="#FFFDE8"><div align="left"><span class="Estilo19">
          <input name="unidad" type="text" id="unidad" value="<?php echo $unidadd; ?>" size="4" maxlength="4" readonly="">
      </span></div></td>
    </tr>
    <tr valign="baseline" bgcolor="#FFFFCC">
      <td align="right" nowrap bgcolor="#FFFDE8"><span class="Estilo1 Estilo29"><strong>Cuenta de cobro No:</strong></span></td>
      <td align="right" nowrap bgcolor="#FFFDE8"><div align="left"><span class="Estilo19">
          <input name="cuenta_cobro" type="text" id="cuenta_cobro" value="<?php echo $cuenta_cobro; ?>" size="4" maxlength="4" readonly="">
      </span></div></td>
      <td align="right" nowrap bgcolor="#FFFDE8"><span class="Estilo1 Estilo29"><strong>Capital recuperado:</strong></span></td>
      <td colspan="3" align="right" nowrap bgcolor="#FFFDE8"><div align="left"><span class="Estilo19">
          <input name="capital_recuperado" type="text" value="<?php echo number_format($capital_recuperado, 0, ".",","); ?>" size="10" maxlength="10" readonly="">
      </span></div></td>
    </tr>
    <tr valign="baseline" bgcolor="#FFFFCC">
      <td align="right" nowrap bgcolor="#FFFDE8"><span class="Estilo1 Estilo29"><strong>N&uacute;mero de oficio devoluci&oacute;n:</strong></span></td>
      <td align="right" nowrap bgcolor="#FFFDE8"><div align="left"><span class="Estilo1">
        <input name="oficio_dev_num" type="text" value="<?php echo $oficio_dev_num; ?>" size="4" maxlength="4" readonly="">
      </span></div></td>
      <td align="right" nowrap bgcolor="#FFFDE8"><span class="Estilo1 Estilo29"><strong>Fecha devoluci&oacute;n <span class="Estilo24">dd/mm/aaaa</span>:</strong></span> </td>
      <td colspan="3" align="right" nowrap bgcolor="#FFFDE8"><div align="left"><span class="Estilo19"><span class="Estilo17">
        <input name="fecha_dev" type="text" id="fecha_dev" value="<?php echo $fecha_dev; ?>"  size="10" maxlength="10" readonly="">
      </span></span></div></td>
    </tr>
    <tr valign="baseline" bgcolor="#FFFFCC">
      <td align="right" nowrap bgcolor="#FFFDE8"><span class="Estilo1 Estilo29"><strong>Motivo de la devoluci&oacute;n:</strong></span></td>
      <td colspan="5" align="right" nowrap bgcolor="#FFFDE8"><div align="left" class="Estilo19">
        <input name="motivo" type="text" id="deuda_total" value="<?php echo $motivo; ?>" size="40" maxlength="40" readonly="">
</div></td>
    </tr>
  </table>  


	<BR>

<table width="639" border="0" align="center" cellpadding="3" cellspacing="3">    
    <tr valign="baseline" bgcolor="#0099FF">
      <td colspan="4" align="right" nowrap bgcolor="#CCFFCC"><div align="center" class="Estilo33"><span class="Estilo32 Estilo28">PASAR HISTORICO </span></div></td>
    </tr>
    <tr valign="baseline" bgcolor="#0099FF">
      <td width="55" align="right" nowrap bgcolor="#CCFFCC"><span class="Estilo26">Fecha:</span></td>
      <td width="175" align="right" nowrap bgcolor="#CCFFCC">
        <div align="left" class="Estilo33"><span class="Estilo29">
		<input name="dia_act" type="text" id="dia" value="<?php echo date("d"); ?>" size="2" maxlength="2" readonly="">
		-
        <input name="mes_act" type="text" id="mes" value="<?php echo date("m"); ?>" size="2" maxlength="2" readonly="">
		-
        <input name="ano_act" type="text" id="ano" value="<?php echo date("Y"); ?>" size="4" maxlength="4" readonly="">
  <span class="Estilo33">dd/mm/aaaa</span></span></div></td>
      <td width="161" bgcolor="#CCFFCC"><div align="right"><span class="Estilo26">Causal Terminacion</span></div></td>
        <td width="209" align="left" bgcolor="#CCFFCC" >
		<select name="codigo3" class="Estilo66" id="codigo3">
          <option value="">--SELECIONE CODIGO--</option>
          <?php
     do {  
?>
          <option value="<?php echo $row_sql3['codigo'];?>"><?php echo $row_sql3['concepto']?></option>
          <?php
} while ($row_sql3 = mysql_fetch_assoc($sql3));
  $rows3 = mysql_num_rows($sql3);
  if($rows3 > 0) {
      mysql_data_seek($sql3, 0);
       $row_sql3 = mysql_fetch_assoc($sql3);
  }
?>
        </select>      </td>
    </tr>
    <tr valign="baseline" bgcolor="#0099FF">
      <td colspan="4" align="right" nowrap bgcolor="#CCFFCC">
      <textarea name="actuacion" cols="70" rows="5" id="actuacion"></textarea></td>
    </tr>
    <tr valign="baseline" bgcolor="#0099FF">
      <td colspan="4" align="right" nowrap bgcolor="#CCFFCC"><div align="center">
          <input name="guardar" type="submit" class="Estilo28" id="guardar"  value ="Pasar Historico">
          <span class="Estilo10">
          <input name="button4" type="button" class="Estilo26"  onClick="window.location.href='menu_cobranzas_jur.php'" value="Volver al Menú">
          <span class="Estilo29">
          <input name="button2" type="button" class="Estilo26"  onClick="history.back()" value="Atr&aacute;s">
          </span></span>
          <input name="button3" type="button" class="Estilo26"  onClick="window.location.reload()" value="Actualizar">
          <span class="Estilo10">          </span>                		  
      </div></td>
    </tr>
  </table>
<table width="651" align="center">
  <tr bgcolor="#ECE9D8">
    <td width="159"><span class="Estilo36">Nombre del usuario: </span></td>
 <td><select name="usuario">
   <option value="">--------SELECCIONE USUARIO--------</option>

   <option value="524229281">LOMBO IBARRA ELIANA</option>
  
 </select></td>
  </tr>
</table>


</form>  

<table width="870" border="1" cellspacing="3" cellpadding="3" align="center">
  <tr valign="baseline" bgcolor="#0099FF">
  <td width="38" align="center" nowrap><span class="Estilo18">#</span></div></td>  
  <td width="456" align="center" nowrap><span class="Estilo18">ACTUACION</span></div></td>
  <td width="103" align="center" nowrap><span class="Estilo18">FECHA</span></div></td>
  <td width="181" align="center" nowrap><span class="Estilo18">NOMBRE DEL FUNCIONARIO</span></div></td>
  <td width="43" align="center" nowrap><span class="Estilo18">CODIGO</span></div></td>  
  </tr>

<?php
	 require_once("mainfile.php");
     include ("config.php");
     global $dbi;
	 $i=0;
	 
	 $result = mysql_query('SELECT actuacion, fecha, cedula_usuario, codigo_gestion FROM actuaciones_cobranzas WHERE cedula = "' . $HTTP_GET_VARS["id"] . '" and numero_carpeta = "' . $HTTP_GET_VARS["carpeta"] . '" ');
			if (!$result) {
				die('Invalid query: ' . mysql_error());
			}

     if($result)
     {				 
                 while(list($act, $fecha, $cedula, $cod) = mysql_fetch_row($result)) 
                  { 
				    $i=$i + 1;
                    $tres=substr($fecha, 0, 4);
                    $dos=substr($fecha, 5, 2);
                    $uno=substr($fecha, 8, 2);
                    $fecha = ($uno."-".$dos."-".$tres);
			
		 $resul = mysql_query('SELECT Nombre_Completo FROM Usuarios WHERE Cedula = "' . "$cedula". '" ');
			if (!$resul) {
				die('Invalid query: ' . mysql_error());
			}
											
  		  
				    if($result){list($nom) = mysql_fetch_row($resul);}
                     printf("<tr>
                     <td bgcolor='#ECE9D8'><div align='center' class='Estilo14 Estilo1'>".$i."</a></span></div></td>					 
		             <td bgcolor='#C5D6FC'><div align='left' class='Estilo14 Estilo1'>".$act."</span></div></td>
					 <td bgcolor='#C5D6FC'><div align='center' class='Estilo14 Estilo1'>".$fecha."</span></div></td>
					 <td bgcolor='#C5D6FC'><div align='center' class='Estilo14 Estilo1'>".$nom."</span></div></td>
					 <td bgcolor='#C5D6FC'><div align='center' class='Estilo14 Estilo1'>".$cod."</span></div></td>");
				  } //Terminación del ciclo while					    
			         echo "</tr></table>";
       }					 
	   
?>

<table width="663" align="center">
  <tr>
    <td><div align="center">
      <input name="button" type="button" style="font-family: Verdana; font-size: 8 pt; color: #000080; background-color: #C0C0C0; border-style: solid" onClick="javascript:window.close()" value="Cerrar Ventana">
    </div></td>
  </tr>
  <tr>
    <td><div align="center">		  
<h3><center><div id="colorsh" style="cursor:hand"></div></center></h3>
<script>
background_color=	"3a6ca3" // use capital letters
text_color=		"99FFFF" // use capital letters
mesf[0]=		"PARA SALIR HACER CLICK EN EL BOTON CERRAR VENTANA"
shape()
</script>
</div>
</td>
  </tr>
</table>

<p>&nbsp;</p><p>  </font></p>
</body>
</html>