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/estado_contable_servi_dirs.php
<?php 


require_once("mainfile.php");
include ("config.php");
global $dbi;
function Conectarse()
	{
	   if (!($link=@mysql_connect("localhost","asjudine","as2006")))
	   {
		  echo "Error conectando con el servidor.";
		  exit();
	   }
	   $dbname = "asjudinet";
	   if (!@mysql_select_db($dbname,$link))
	   {
		  echo "Error seleccionando la base de datos.";
		  exit();
	   }
	   return $link;
	}
	Conectarse();

	


			$control4 = mysql_query('SELECT cedula, nombre, numerocontrato , tipocontrato , diaafiliacion, mesafiliacion, anoafiliacion,  valorcontrato, numerocuotas, valorcuota, mescomienzopago, anocomienzopago, saldoanteior, cuotaspendientes, saldonuevo, cuotasdescontadas FROM asjudinet_cartera  WHERE cedula = "' . $HTTP_GET_VARS["ced2"]  . '" ');
		  if (!$control4) {
				die('Invalid query 2: ' . mysql_error());
			}  
				list($cedula, $apellidos_noms, $contrato,  $cplan , $dis, $mee, $anis, $val_contrato, $cuotas, $valor_cuota, $mi, $ai, $saldo_ant, $cuotas_pend, $nuevo_saldo, $cuotas_desc) = mysql_fetch_row($control4);
	
	$cont = mysql_query('SELECT diaconsignacion , mesconsignacion, anoconsignacion FROM asjudinet_consignaciones  WHERE cedula = "' . $HTTP_GET_VARS["ced2"]  . '" and  cuota = "' ."$cuotas_desc". '" ');
			if (!$cont) {
				die('Invalid query consignacion: ' . mysql_error());
			}
	list($di, $me, $an ) = mysql_fetch_row($cont);
	

	
?>

    
<!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=utf-8" />
<title>Estado Contable - Serviasjudinet</title>
<style type="text/css">
<!--
.recaudo {font-family: "Courier New", Courier, monospace;
	font-size: 12px;
	font-style: normal;
	font-weight: bold;
	font-variant: normal;
	color: #000000;
	background-color: #B6CBDC;
	margin: 4px;
	padding: 8px;
	width: auto;
	border: medium outset #339966;
}
.est_cont1 {
	font-family: "Times New Roman", Times, serif;
	font-size: 12px;
	font-style: normal;
	font-weight: normal;
	color: #4068F4;
	background-color: #E6FFF1;
	margin: 1px;
	padding: 1px;
	height: auto;
	width: auto;
	border: thin double #33CC66;
}
.est_cont2 {
	font-family: Geneva, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: normal;
	color: #000000;
	background-color: #F0F5CF;
	height: 15px;
	width: auto;
	border: thin solid #FABF85;
}
.est_cont3 {
	font-family: "Courier New", Courier, monospace;
	font-size: 12px;
	font-style: normal;
	font-weight: normal;
	color: #EA261C;
	background-color: #DEDDE8;
	height: auto;
	width: auto;
	border: thin outset #FC9F67;
}
.est_cont5 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: normal;
	background-color: #D6ECFE;
	margin: 2px;
	padding: 2px;
	height: auto;
	width: auto;
	border: thin groove #E9AAF0;
	color: #C72350;
}
.Estilo1 {
	color: #CC0000;
	font-weight: bold;
}
.col_cre2 {	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: bold;
	color: #F92F0B;
	background-color: #B3D9F0;
	height: auto;
	width: auto;
	border: medium groove #FC9227;
}
-->
</style>
</head>

<body>
<form id="form1" name="form1" method="post" action="">
  <div align="center">
    <p class="Estilo1">ESTADO CONTABLE - SERVIASJUDINET</p>
    <div align="left"></div>
    <div align="left"></div>
    <div align="right"></div>
    <table width="630" border="2" cellpadding="1" cellspacing="1" class="est_cont1">
      <tr>
        <td width="83" height="23">Cedula :</td>
        <td width="99"><div align="left">
          <input name="ced" type="text" class="est_cont2" id="ced" value="<?php echo $cedula ?>" size="18" maxlength="18" readonly="" />
        </div></td>
        <td width="111">Apellidos y Nombres :</td>
        <td colspan="3"><div align="left">
          <input name="ape" type="text" class="est_cont2" id="ape" value="<?php echo $apellidos_noms ?>" size="60" maxlength="60" readonly="" />
        </div></td>
      </tr>
      <tr>
        <td>Contrato :</td>
        <td><div align="left">
          <input name="con" type="text" class="est_cont2" id="con" value="<?php echo $contrato ?>" size="7" maxlength="6" readonly="" />
        </div></td>
        <td>Tipo :</td>
        <td width="69"><div align="left">
          <input name="tip" type="text" class="est_cont2" id="tip" value="<?php echo $cplan ?>" size="13" maxlength="13" readonly="" />
        </div></td>
        <td width="132">Fecha Afiliacion :</td>
        <td width="101"><div align="left">
          <input name="fecafi" type="text" class="est_cont2" id="fecafi" value="<?php echo $dis.' - '.$mee.' - '.$anis ?>" size="10" maxlength="10" readonly="" />
        </div></td>
      </tr>
      <tr>
        <td>Valor :</td>
        <td><div align="left">
          <input name="val" type="text" class="est_cont2" id="val" value="<?php echo $val_contrato ?>" size="18" maxlength="18" readonly="" />
        </div></td>
        <td>Cuotas :</td>
        <td><div align="left">
          <input name="cuo" type="text" class="est_cont2" id="cuo" value="<?php echo $cuotas ?>" size="3" maxlength="2" readonly="" />
        </div></td>
        <td>Cuota Mes :</td>
        <td><div align="left">
          <input name="nue" type="text" class="est_cont2" id="nue" value="<?php echo $nuevo_saldo ?>" size="18" maxlength="18" readonly="" />
          <input name="cuomes" type="text" class="est_cont2" id="cuomes" value="<?php echo $valor_cuota ?>" size="18" maxlength="18" readonly="" />
        </div></td>
      </tr>
      <tr>
        <td>Saldo Anterior :</td>
        <td><div align="left">
          <input name="sal" type="text" class="est_cont2" id="sal" value="<?php echo $saldo_ant ?>" size="18" maxlength="18" readonly="" />
        </div></td>
        <td>Cuotas Pendientes :</td>
        <td><div align="left">
          <input name="cuopen" type="text" class="est_cont2" id="cuopen" value="<?php echo $cuotas_pend ?>" size="3" maxlength="2" readonly="" />
        </div></td>
        <td>Nuevo Saldo :</td>
        <td><div align="left"></div></td>
      </tr>
      <tr>
        <td>Fecha Inicio :</td>
        <td><div align="left">
          <input name="fecini" type="text" class="est_cont2" id="fecini" value="<?php echo $mi.' - '.$ai ?>" size="10" maxlength="10" readonly="" />
        </div></td>
        <td>Cuotas Descontadas :</td>
        <td><div align="left">
          <input name="cuodes" type="text" class="est_cont2" id="cuodes" value="<?php echo $cuotas_desc ?>" size="3" maxlength="2" readonly="" />
        </div></td>
        <td>Fecha Ultimo Descuento :</td>
        <td><div align="left">
          <input name="fecult" type="text" class="est_cont2" id="fecult" value="<?php echo $di.' - '.$me.' - '.$an  ?>" size="10" maxlength="10" readonly="" />
        </div></td>
      </tr>
    </table>
   
  </div>
</form>
</body>
</html>
<?php


echo "<form id='form2' name='form2' method='post' action=''>";


require_once("mainfile.php");
include ("config.php");
global $dbi;

  
   $mssql = mysql_query('SELECT * FROM asjudinet_consignaciones  ');
		  if (!$mssql) {
				die('Invalid query 2: ' . mysql_error());
			}
   if($mssql)
   {
         $filas = mysql_num_rows($mssql);
         if ($filas > 0)
         {
		  
             
                      //$sql = "select valor, cuota, mes_inicio, cod_descuento, fecha_registro from relacion_pagos where codigo = '$cod2' order by cuota";
                    //  $control = mysql_query($sql, $dbi) or die(mysql_error());	 
					  $control = mysql_query('SELECT valorconsignacion, cuota, mescuota , formapago , diaconsignacion, mesconsignacion , anoconsignacion FROM asjudinet_consignaciones  WHERE cedula  = "' . $HTTP_GET_VARS["ced2"]  . '" order by cuota ');
			if (!$control) {
				die('Invalid query: ' . mysql_error());
			}
                      if ((mysql_num_rows($control)!=0)) 
	                    {	 
                               
							
						echo "<table width='716' border='2' align='center' cellpadding='1' cellspacing='1' class='est_cont5'>
                        <tr>
        					<td width='103'><div align='center'><strong>VALOR</strong></div></td>
        					<td width='47'><div align='center'><strong>CUOTA</strong></div></td>
        					<td width='59'><div align='center'><strong>MES</strong></div></td>
       						<td width='344'><div align='center'><strong>ENTIDAD DESCUENTO</strong></div></td>
        					<td width='133'><div align='center'><strong>FECHA REGISTRO</strong></div></td>
      					</tr>";		  
                           							  
                        

                             while(list($valor, $cuota, $mes_inicio, $cod_descuento, $dir, $mer, $anr) = mysql_fetch_row($control)) 
                              {  					   
								   printf("<TR>
                                   <TD bgcolor='#C5D6FC'><div align='center' class='lista'>".$valor."</span></div></TD>
                                   <TD bgcolor='#C5D6FC'><div align='center' class='lista'>".$cuota."</span></div></TD>
								   <TD bgcolor='#C5D6FC'><div align='center' class='lista'>".$mes_inicio."</span></div></TD>
								   <TD bgcolor='#C5D6FC'><div align='center' class='lista'>".$cod_descuento."</span></div></TD>						   
		                           <TD bgcolor='#C5D6FC'><div align='center' class='lista'>".$dir.' - '.$mer.' - '.$anr ."</span></div></TD>	</TR>");              								   
                               }
			                       
								   echo "</table>";		  
                        }
						
					
		       
	      }
     }
    

echo "</form>";


?>