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/afinanciera/listado_general_negativos_cifin.php
<?php include ('b.php');?>
<!DOCTYPE html>
<html>
<head>
<title>Reportados Cifin</title>
	<meta http-equiv="X-UA-Compatible" content="IE=8; IE=9; IE=edge" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    
<style type="text/css">
	*{margin: 0;padding: 0;}
    body{background-color:#EAEAEA;font-family:Geneva, Arial, Helvetica, sans-serif;}
    header {background-color: #B7271F; text-align: center;}
    .cerrarsesion{width: auto;background-color: #DBD8C9;color: #000;font-size: 13px;position:absolute;top: 15px;right:10px;z-index:0;padding: 10px;border-radius: 10px;cursor: pointer;}
    .cerrarsesion:hover{background-color: #ffffff;color: #000;}
    .titulo{width: 100%;text-align: center;background-color: #dbd8c9;color: #b20606;padding: 6px 0;font-size: 18px;}
    table{margin: 0 auto;border: 2px solid #bebebe; text-align: center;}
    .divirmenu{text-align: center;}
    .irmenu{width: 150px;background-color: #1c4fa0;color: #fff; padding: 4px;border-radius: 6px;}
    .irmenu:hover{background-color: #67a0d9; color: #000;}
    
    .fecha{background-color: #d6e08b; padding: 2px;color: #000;font-size: 15px; text-align: center;}
    td{border: #969696 solid 1px;}
    .tdizq{background-color: #EEE; padding: 1px 10px;color: #00135F;font-size: 13px;font-weight: 600; text-align: left;}
    .tdcen{background-color: #EEE; padding: 1px 10px;color: #00135F;font-size: 13px;font-weight: 600; text-align: center;}
    .tdder{background-color: #EEE; padding: 1px 10px;color: #00135F;font-size: 13px;font-weight: 600; text-align: right;}
	.exp{color:#8A0000; font-size:12px;}
    .boton1{width:150px;background-color: #ffffff;color: #000;padding: 2px;border:2px solid #580000;border-radius:10px;}
    .boton1:hover{background-color: #6f0000;color: #fff;cursor: pointer;}
    input[type=text]{border-radius: 5px; padding: 3px;background-color: #FFFEF4;}
	
	.tdtitulo{background-color: #e3dec0; color: #b20606; padding: 1px; text-align: center; font-size: 11px; font-weight: 700}
    .tdfull{background-color: #fff; color: #000; padding: 1px; text-align: center; font-size: 12px;}
    .botonnew{width: 90px; background-color: #e3dec0;color: #b20606;padding: 1px;border-radius:5px;}
    .botonnew:hover{width: 90px; background-color: #cbbd6a;color: #000;padding: 1px;border-radius:5px;}
</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>
<header>
    <img src="../ELEMENTS/bannerInterasjudinet.png" alt="" width=" 700" height="70">
</header>
<h3 class="titulo">LISTADO GENERAL NEGATIVOS CIFIN</h3>
<?php echo "<div class='cerrarsesion' onclick='location.href=\"../cerrar_session.php\"'>CERRAR SESION</div>";?>

<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="#0000EE"><div align="center" class="Estilo50"><span class="blanco">LISTADO GENERAL NEGATIVOS CIFIN</span></div></td>
      </tr>
     
      </table>-->
  
    <!--<p>
    
    <center>    <embed wmode="transparent" src="http://www.poodwaddle.com/clock10" width="100" height="100" type="application/x-shockwave-flash" bgcolor="#FFFFFF" /></center> 
    </p>-->
<p align="center">
   <input name="menu2" type="button" class="irmenu" id="menu2" onclick="window.location.href='menu_gerencia_financiera.php'" value="IR AL MENU" />
</p>


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

<?php
global $dbi;
$espacio = ' ';
$linea = '-';

require_once("../Conectarse.php");
      
	
$control = mysql_query('SELECT numero_identificacion,nombre_tercero,numero_obligacion,tipo_obligacion,edad_mora,
fecha_corte,fecha_inicio,fecha_terminacion,tipo_pago,cuotas_pagadas,cuotas_pactadas,cuotas_mora,valor_inicial,valor_mora,valor_saldo,valor_cuota,fecha_de_registro  FROM negativos_cifin WHERE estado!= ""');
if (!$control) {
	die('Invalid query 2: ' . mysql_error());
} 
  
///
if ((mysql_num_rows($control)!=0)) 
{	 
	echo "<TABLE width='1200' border='8' align='center' cellpadding='2' cellspacing='1'>
    <TR>
	<TD class='tdtitulo'>CEDULA</TD>
	<TD class='tdtitulo'>NOMBRE </TD>
	<TD class='tdtitulo'>NUMERO OBLIGACION</TD>
	<TD class='tdtitulo'>TIPO CONTRATO</TD>
	<TD class='tdtitulo'>CUOTAS EN MORA</TD>
	<TD class='tdtitulo'>VALOR DE MORA</TD>
	<TD class='tdtitulo'>FECHA REGISTRO</TD>";		  
            						    
                            
  	while(list($numero_identificacion,$nombre_tercero,$tipo_obligacion,$numero_obligacion,$edad_mora,
$fecha_corte,$fecha_inicio,$fecha_terminacion,$tipo_pago,$cuotas_pagadas,$cuotas_pactadas,$cuotas_mora,$valor_inicial,$valor_mora,$valor_saldo,$valor_cuota,$fecha_de_registro) = mysql_fetch_row($control))
   	{  
  		$valor_mora=$valor_mora*"1000";
										
										
		$sum = $sum + 1;
							   
		printf("<tr>    
							   
		<td class='tdfull'>".$numero_identificacion."</td>
		<td class='tdfull'>".$nombre_tercero."</td>
		<td class='tdfull'>".$numero_obligacion."</td>
		<td class='tdfull'>".$tipo_obligacion."</td>
		<td class='tdfull'>".$cuotas_mora."</td>
		<td class='tdfull'>".$valor_mora."</td>
		<td class='tdfull'>".$fecha_de_registro."</td>");              								   	}   
                               
	echo "</table>";		  
	echo "<TABLE width='200' border='0' align='center' cellpadding='0' cellspacing='1'>
	<TR>
	<TD class='tdtitulo'>TOTAL REGISTROS</TD></TD>";
								  
	printf("<tr>
	<td class='tdfull'>".$sum."</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>";

?>