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/acobranzas/consultar_cobranzas_vigentes_aux2.php
<?php
global $dbi;

require_once("../Conectarse.php");


$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 ,cuotas_mora ,valor_mora,clausula_permanencia , fecha_anulacion, carta_aceptacion, fecha_afiliacion FROM cobranzas WHERE cedula = "' . $_GET["id"] . '" and numero_carpeta = "' . $_GET["carpeta"] . '" and tipo = "'.$_GET["tipo"].'" ');
			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, $cuotas_mora ,$valor_mora,$clausula_permanencia , $fecha_anulacion, $carta_aceptacion, $fecha_afiliacion) = 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);									
         }
        
		
		$deuda_total= $deuda_total+$interes_prejuridico+$interes_cobroejecutivo+$capital_clausula;
		
		
		
		  $perit = mysql_query('SELECT telefono, direccion, celular, ciudad FROM cartera_serviasjudinet WHERE cedula = "' . $_GET["id"] . '" ');
			
		
		
        if ( (mysql_num_rows($perit) != 0)) 
	    {	 		 
 list($telefono, $direccion, $celular, $ciudad) = mysql_fetch_row($perit);            									   
          		
        }
		
 $per = mysql_query('SELECT cuenta_cobro, numero_carpeta, cedula, motivo, capital_recuperado, oficio_dev_num, fecha, unidad FROM devolucion_carpeta WHERE cedula = "'.$_GET["id"].'" and numero_carpeta = "'.$_GET["carpeta"].'" ');
			
		
		
        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 = "";
	     }	
			   
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Documento sin t&iacute;tulo</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:#FFFFFF;font-family:"Lucida Sans Unicode", "Lucida Grande", 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;}
	.subtitulos{width: 100%;text-align: left;color: #b20606;padding: 2px 0;font-size: 13px;}
    table{margin: 0 auto;border: 8px solid #bebebe; text-align: center;}
    .irmenu{width: 200px;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: #D7D7D7 solid 0.2px;}
    .tdizq{background-color: #EEE; padding: 1px 1px;color: #00135F;font-size: 14px;font-weight: 500; text-align: left;}
    .tdcen{background-color: #EEE; padding: 1px 1px;color: #00135F;font-size: 14px;font-weight: 500; text-align: center;}
    .tdder{background-color: #EEE; padding: 1px 1px;color: #00135F;font-size: 14px;font-weight: 500; text-align: right;}
	.tdroja{background-color: #EEE; padding: 1px 1px;color: #CC0005;font-size: 14px;font-weight: 600; text-align: right;}
	.tdi{background-color: #FDF8D5; padding: 1px 1px;color: #C0292E;font-size: 14px;font-weight: 500; text-align: left;}
    .tdc{background-color: #FDF8D5; padding: 1px 1px;color: #C0292E;font-size: 14px;font-weight: 500; text-align: center;}
    .tdd{background-color: #FDF8D5; padding: 1px 1px;color: #C0292E;font-size: 14px;font-weight: 500; text-align: right;}
	.exp{color:#8A0000; font-size:12px;}
    .boton1{width:200px;background-color: #ffffff;color: #000;padding: 4px;border:1px solid #580000;border-radius:2px;}
    .boton1:hover{background-color: #6f0000;color: #fff;cursor: pointer;}
	.direcciona{width: 200px;background-color: #D4090C;color: #fff; padding: 4px;border-radius: 3px;}
	.direcciona:hover{background-color: #67a0d9; color: #000;}
    input[type=text]{border:groove #191919 0.5px; border-radius: 3px; padding: 3px;background-color: #FFFFFF; font-weight:700px;}
	select{border:solid #191919 0.5px; border-radius: 3px; padding: 3px;background-color: #FFFFFF; font-weight:600px; }
	
	.tdtitulo{background-color: #e3dec0; color: #b20606; padding: 2px; text-align: center; font-size: 12px; font-weight: 900}
    .tdfull{background-color: #fff; color: #000; padding: 5px; text-align: center; font-size: 12px; font-family:Verdana, Geneva, sans-serif;}
	.tdjustify{background-color: #fff; color: #000; padding: 5px; text-align: justify; font-size: 12px; font-family:Verdana, Geneva, sans-serif;}
    .botonnew{width: 25px; background-color: #C0292E;color: #FFFFFF;padding: 1px;border-radius:5px;}
    .botonnew:hover{background-color: #cbbd6a;color: #000;padding: 1px;border-radius:5px;}
</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()">
<header>
    <img src="../ELEMENTS/bannerInterasjudinet.png" alt="" width=" 700" height="70">
</header>
<h3 class="titulo">CONSULTA DE  DATOS DE COBRANZAS VIGENTES</h3>
	
	
	
<form method="post" name="formulario" action="" onSubmit="return validar(this)">
<table width="900" border="0" align="center" cellpadding="3" cellspacing="3">    
<!--<tr>
    <td colspan="6" >CONSULTA DE  DATOS DE COBRANZAS VIGENTES</td>
</tr>-->

<tr>
    <td colspan="6" class="fecha"><script languaje="JavaScript">Mostrar_Fecha()</script></div></td>
</tr>

<tr>
	<td class="tdder" width="196" >C&eacute;dula, apellidos y nombres</span></td>
    <td class="tdizq"><input name="identi" type="text" id="identi" value="<?php echo $cedula; ?>" size="8" maxlength="8" readonly></td>
    <td class="tdizq" colspan="4"><input name="nombre_completo" type="text" id="nombre_completo3" value="<?php echo $nombre_completo; ?>" size="50" maxlength="50" readonly></td>
</tr>

     <tr >
	<td class="tdder">N&uacute;mero de Contrato:</td>
    <td class="tdizq" width="63"><input name="numero" type="text" id="numero" value="<?php echo $numero; ?>" size="6" maxlength="6" readonly></td>
   	<td class="tdder" width="217">Tipo:</div></td>
    <td class="tdizq" width="58"><input name="tipo" type="text" id="tipo" value="<?php echo $tipo; ?>" size="4" maxlength="4" readonly></td>
    <td class="tdder" width="58" >Unidad: </td>
    <td class="tdizq"width="96"><input name="unidad" type="text" id="unidad" value="<?php echo $unidadc; ?>" size="4" maxlength="4" readonly></td>
</tr>
     
<tr>
	<td class="tdder">Telefono</td>
    <td class="tdizq"><input name="telefono" type="text" id="telefono" value="<?php echo $telefono; ?>" size="20" maxlength="20" readonly></td>
    <td class="tdder">Direccion:</td>
    <td class="tdizq" colspan="3"><input name="direccion" type="text" id="direccion" value="<?php echo $direccion; ?>" size="20" maxlength="20" readonly></td>
</tr>      
      
<tr>
	<td class="tdder">Ciudad</td>
   	<td class="tdizq"><input name="ciudad" type="text" id="ciudad" value="<?php echo $ciudad; ?>" size="10" maxlength="10" readonly></td>
    <td class="tdder">Celular:</td>
    <td class="tdizq" colspan="3"><input name="email" type="text" id="email" value="<?php echo $celular; ?>" size="20" maxlength="20" readonly></td>
</tr>   
      
<tr>
	<td class="tdder">Capital Per&iacute;odo actual </td>
   	<td class="tdizq"><input name="capital_periodo" type="text" id="capital_periodo" value="<?php echo  number_format($capital_periodo, 0, ".",","); ?>" size="10" maxlength="10" readonly></td>
    <td class="tdder">Capital renovaci&oacute;n Autom&aacute;tica: </td>
    <td class="tdizq" colspan="3"><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>
	<td class="tdd">Carta Aceptacion</td>
   	<td class="tdi" colspan="1" ><input name="fecha_afiliacion" type="text" id="fecha_afiliacion" value="<?php echo $carta_aceptacion; ?>" size="10" maxlength="10" readonly></td> 
  
                
   	<td class="tdd">Fecha Afiliacion:</td>
    <td class="tdi" colspan="3" ><input name="fecha_afiliacion" type="text" id="fecha_afiliacion" value="<?php echo $fecha_afiliacion; ?>" size="10" maxlength="10" readonly></td>
</tr>
  
  
  
<tr >
	<td class="tdd">Cuotas En Mora:</td>   
    <td class="tdi"><input name="cuotas_mora" type="text" id="cuotas_mora" value="<?php echo $cuotas_mora; ?>" size="10" maxlength="10"></td>
	<td class="tdd">Valor Cuotas En Mora: </td>  
    <td class="tdi"colspan="3" ><input name="valor_mora" type="text" id="valor_mora" value="<?php echo  $valor_mora; ?>" size="35" maxlength="10"></td>
</tr>
  
  
<tr>
	<td class="tdd">Clausula De Permanencia Meses:</td>
    <td class="tdi"><input name="clausula_permanencia" type="text" id="clausula_permanencia" value="<?php echo  $clausula_permanencia; ?>" size="10" maxlength="10"></td>
      
	<td class="tdd">Fecha Anulacion:</td>
    <td class="tdi" colspan="3"><input name="fecha_anulacion" type="text" id="fecha_anulacion" value="<?php echo $fecha_anulacion; ?>" size="15" maxlength="10" readonly></td>
</tr>

<tr>
	<td class="tdder">Intereses Cobro Prejur&iacute;dico </td>
    <td class="tdizq"><input name="interes_prejuridico" type="text" id="interes_prejuridico" value="<?php echo number_format($interes_prejuridico, 0, ".",","); ?>" size="10" maxlength="10" readonly></td>
    <td class="tdder">Honorarios:</td>
    <td class="tdizq" colspan="3"><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>
	<td class="tdder">Capital cl&aacute;usula penal:</td>
    <td class="tdizq"><input name="capital_clausula" type="text" id="interes_prejuridico3" value="<?php echo number_format($capital_clausula, 0, ".",","); ?>" size="10" maxlength="10" readonly></td>
    <td class="tdder">Deuda Total:</td>
    <td class="tdizq" colspan="3"><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>
  	<td class="tdder">Oficio de envi&oacute; No.</td>
    <td class="tdizq"><input name="oficio_numero" type="text" id="oficio_numero" value="<?php echo $oficio_numero; ?>" size="4" maxlength="4" readonly></td>
    <td class="tdder">Fecha dd/mm/aaaa:</td>
    <td class="tdizq" colspan="3"><input name="fecha_oficio" type="text" id="fecha_oficio" value="<?php echo $fecha_oficio; ?>" size="10" maxlength="10" readonly></td>
</tr>


<tr>
	<td class="tdd">N&uacute;mero Carpeta:</td>
   	<td class="tdi"><input name="numero_carpeta" type="text" id="numero_carpeta" value="<?php echo $_GET["carpeta"]; ?>" size="4" maxlength="4" readonly></td>
    <td class="tdd">Unidad:</td>
    <td class="tdi" colspan="3"><input name="unidad" type="text" id="unidad" value="<?php echo $unidadd; ?>" size="4" maxlength="4" readonly></td>
</tr>


<tr>
	<td class="tdd">Cuenta de cobro No:</td>
    <td class="tdi"><input name="cuenta_cobro" type="text" id="cuenta_cobro" value="<?php echo $cuenta_cobro; ?>" size="4" maxlength="4" readonly></td>
    <td class="tdd">Capital recuperado:</td>
    <td class="tdi" colspan="3"><input name="capital_recuperado" type="text" value="<?php echo number_format($capital_recuperado, 0, ".",","); ?>" size="10" maxlength="10" readonly></td>
</tr>

<tr>
	<td class="tdd">N&uacute;mero de oficio devoluci&oacute;n:</td>
    <td class="tdi"><input name="oficio_dev_num" type="text" value="<?php echo $oficio_dev_num; ?>" size="4" maxlength="4" readonly></td>
    <td class="tdd">Fecha devoluci&oacute;n <span class="exp">dd/mm/aaaa</span>:</td>
    <td class="tdi" colspan="3" ><input name="fecha_dev" type="text" id="fecha_dev" value="<?php echo $fecha_dev; ?>"  size="10" maxlength="10" readonly></td>
</tr>


<tr>
	<td class="tdd">Motivo de la devoluci&oacute;n:</td>
  <td class="tdi" colspan="5" ><input name="motivo" type="text" id="deuda_total" value="<?php echo $motivo; ?>" size="40" maxlength="40" readonly></td>
</tr>
</table>  

</form>  


<?php
global $dbi;
$i=0;
	 
echo "<table width=930 border=1 align=center cellpadding=1 cellspacing=1>

<tr align=center>
	<td width='34' class='tdtitulo'>#</td>
    <td width='400' class='tdtitulo'>ACTUACION</td>
    <td width='60' class='tdtitulo'>FECHA</td>
    <td width='200' class='tdtitulo'>NOMBRE DEL FUNCIONARIO</td>
    <td width='34' class='tdtitulo'>CODIGO</td>
</tr>";

$result = mysql_query('SELECT actuacion, fecha, cedula_usuario, codigo_gestion FROM actuaciones_cobranzas WHERE cedula = "'.$_GET["id"] . '" and numero_carpeta = "'.$_GET["carpeta"].'" order by fecha');
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);
			
		$user = mysql_query('SELECT Nombre_Completo FROM Usuarios WHERE Cedula = "' . "$cedula". '" ');
		if (!$user) {
			die('Invalid query user: ' . mysql_error());
		}
	
		if($result){list($nom) = mysql_fetch_row($user);}
			  
					 
		echo "<tr class=Estilo20>
		<td class='tdfull'>$i</td>
		<td class='tdjustify'><a  top=50,left=100,toolbar=no,scrollbars=no,width=790,height=521,status=yes>$act</a></td>
		<td class='tdfull'>$fecha</td>					  
		<td class='tdfull'>$nom</td>
		<td class='tdfull'>$cod</td></tr>";
					 
					 
	} //Terminación del ciclo while					    
	echo "</tr></table>";
}					 
	   
?>

<table width="663" align="center">
<tr>
	<td><div align="center">
    <input name="button" type="button" class="boton1" onClick="javascript:window.close()" value="Cerrar Ventana">
      
    <input name="menu2" type="button" class="irmenu" onClick="window.location.href='seguimiento_cobranza1_asistente2.php?id=<?php echo $_GET["id"]; ?>&tipo=<?php echo $_GET["tipo"]; ?>&carpeta=<?php echo $_GET["carpeta"]; ?>'" value="CAPTURAR GESTION">
    </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>