File: /home/asjudine/www/listado_excluir_cifin.php
<!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>Reportados Cifin</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(ELEMENTOS/beig.jpg);
}
.Estilo50 {
color: #00F;
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;}
.Estilo54 {color: #333399; font-family: "Arial Narrow"; font-weight: bold; }
.Estilo57 {color: #006600}
.blanco {
color: #FFF;
}
-->
</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>
<form action="" method="post" name="form1" class="provd" id="form1">
<div align="center">
<BR></BR>
<table width="655" border="5" cellpadding="5" cellspacing="5" bgcolor="red">
<tr>
<td colspan="3" bgcolor="#0099FF"><div align="center" class="Estilo50"><span class="blanco">LISTADO GENERAL PARA EXCLUIR</span></div></td>
</tr>
</table>
<p>
<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>
</p>
<p>
<input name="menu2" type="button" class="Estilo50" id="menu2" onclick="window.location.href='menu_gerencia_financiera.php'" value="IR AL MENU" />
</p>
</div>
</form>
</body>
</html>
<?php
require_once("mainfile.php");
include ("config.php");
global $dbi;
$espacio = ' ';
$linea = '-';
require_once("Conectarse.php");
$control = mysql_query('SELECT numero_identificacion,nombre_tercero,numero_obligacion,edad_mora,
tipo_pago,cuotas_pagadas,cuotas_mora,valor_mora,valor_saldo,valor_cuota,fecha_de_registro FROM negativos_cifin WHERE estado= "1"');
if (!$control) {
die('Invalid query 2: ' . mysql_error());
}
///
if ((mysql_num_rows($control)!=0))
{
echo "<TABLE width='1200' border='2' align='center' cellpadding='2' cellspacing='1'>
<TR>
<TD bgcolor='#6699FF'><div align='center'><span class='lista'>CEDULA</span></div></TD>
<TD bgcolor='#6699FF'><div align='center'><span class='lista'>NOMBRE </span></div></TD>
<TD bgcolor='#6699FF'><div align='center'><span class='lista'>NUMERO OBLIGACION</span></div></TD>
<TD bgcolor='#6699FF'><div align='center'><span class='lista'>CUOTAS EN MORA</span></div></TD>
<TD bgcolor='#6699FF'><div align='center'><span class='lista'>VALOR DE MORA</span></div></TD>
<TD bgcolor='#6699FF'><div align='center'><span class='lista'>FECHA REGISTRO</span></div></TD>";
while(list($numero_identificacion,$nombre_tercero,$numero_obligacion,$edad_mora,$tipo_pago,$cuotas_pagadas,$cuotas_mora,$valor_mora,$valor_saldo,$valor_cuota,$fecha_de_registro) = mysql_fetch_row($control))
{
$sum = $sum + 1;
printf("<tr>
<td bgcolor='#FFFFFF'><div align='center' class='lista'><input type='button' value=$numero_identificacion name='ced' class=Estilo4 onClick =window.open('exclusion_morosos_cifin.php?id=$numero_identificacion&contrato=$numero_obligacion&tipo=$tipo','','top=50,left=100,toolbar=yes,scrollbars=yes,width=1200,height=1000,status=yes')></a></span></div></td>
<td bgcolor='#FFFFFF'><div align='center' class='lista'>".$nombre_tercero."</span></div></td>
<td bgcolor='#FFFFFF'><div align='center' class='lista'>".$numero_obligacion."</span></div></td>
<td bgcolor='#FFFFFF'><div align='center' class='lista'>".$cuotas_mora."</span></div></td>
<td bgcolor='#FFFFFF'><div align='center' class='lista'>".$valor_mora."</span></div></td>
<td bgcolor='#FFFFFF'><div align='center' class='lista'>".$fecha_de_registro."</span></div></td>"); }
echo "</table>";
echo "<TABLE width='200' border='0' align='center' cellpadding='0' cellspacing='1' bgcolor='#0000FF'>
<TR>
<TD bgcolor='#6699FF'><div align='center'><span class='estilo20'>TOTAL REGISTROS</span></div></TD></TD>";
printf("<tr>
<td bgcolor='#FFFFFF'><div align='center' class='lista'>".$sum."</span></div></td></td>");
echo "</table>";
}
if(isset($_POST["guardar"]))
{
$fecha_asignac = date("Y")."-".date("m")."-".date("d");
$conttre = mysql_query('UPDATE negativos_cifin set estado = "1" WHERE estado = "0" ');
if (!$conttre) {
die('Invalid query 42: ' . mysql_error());
}
echo "<script>alert('VALIDACION CORRECTA ');</script>";
}
echo "</form>";
?>