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


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

require_once("Conectarse.php");

if(isset($guardar))
{

$mssql3 = mysql_query("UPDATE  debitos set  cuenta = '" . $_POST[nocuen] . "', banco = '" . $_POST[ban] . "',  valor_debitar = '" . $_POST[val] . "', cuotas = '" . $_POST[cuo] . "' , cuota_debitar = '" . $_POST[cuomes] . "',  cuotas_pend = '" . $_POST[cuotap] . "' , cuotas_desc = '" . $_POST[cuotad] . "'  WHERE cedula = '" . $HTTP_GET_VARS[cedu] . "' ");
            if (!$mssql3) {
				die('Invalid query cartera_serviasjudinet MODIFICAR: ' . mysql_error());
			}   

	echo "<script>alert('Los datos fueron modificados correctamente');</script>";	
}


$control = mysql_query('SELECT cedula, nombres, dirrecion, telefono, celular, ciudad , email, cuenta, banco, entidad_laboral, unidad_desc, codigo_desc,  valor_debitar, cuotas, cuota_debitar, cuotas_pend, cuotas_desc  FROM debitos  WHERE cedula =  "' . $HTTP_GET_VARS["cedu"] . '" ');
		  if (!$control) {
				die('Invalid query 1: ' . mysql_error());
			}
		$num=mysql_num_rows($control); 
		list($cedula, $apes, $dire, $tele, $celul, $ciud, $email, $cue, $ban, $enti, $unides, $codides, $valcon, $numcuo, $valcuo,  $cupen, $cudesc) = mysql_fetch_row($control);
?>
<!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>Documento sin t&iacute;tulo</title>
<style type="text/css">
<!--
.est_cont1 {	font-family: "Times New Roman", Times, serif;
	font-size: 12px;
	font-style: normal;
	font-weight: normal;
	color: #FFFFFF;
	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: #FFFFFF;
	height: 18px;
	width: auto;
	border: thin solid #FABF85;
}
.Estilo3 {color: #2492FF;
	font-weight: bold;
}
.Estilo4 {
	color: #CC3300;
	font-weight: bold;
}
.est_cont21 {font-family: Geneva, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: normal;
	color: #2B39EC;
	background-color: #F0F5CF;
	height: 18px;
	width: auto;
	border: thin solid #FABF85;
}
.Estilo13 {color: #0000CC; font-size: 14; font-weight: bold; }
.Estilo15 {color: #0000CC; font-weight: bold; }
-->
</style>
</head>

<body>
<form id="form1" name="form1" method="post" action="">
  <div align="center">
    <p class="Estilo4">INFORMACION ESTADO CONTABLE</p>
    <table width="662" border="2" cellpadding="1" cellspacing="1" class="est_cont1">
    <tr>
      <td width="94" bgcolor="#CCFFCC"><table width="662" border="2" cellpadding="1" cellspacing="1" class="est_cont1">
        <tr>
          <td width="110" height="23" bgcolor="#CCFFCC"><span class="Estilo13">Cedula :</span></td>
          <td width="95" bgcolor="#CCFFCC"><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="123" bgcolor="#CCFFCC"><span class="Estilo15">Apellidos y Nombres :</span></td>
          <td colspan="3" bgcolor="#CCFFCC"><div align="left">
            <input name="ape" type="text" class="est_cont2" id="ape" value="<?php echo $apes ?>" size="60" maxlength="60"/>
          </div></td>
        </tr>
        <tr>
          <td bgcolor="#CCFFCC"><span class="Estilo13">Banco :</span></td>
          <td bgcolor="#CCFFCC"><div align="left">
            <input name="ban" type="text" class="est_cont2" id="ban" value="<?php echo $ban ?>" size="18" maxlength="18" />
          </div></td>
          <td bgcolor="#CCFFCC"><span class="Estilo15">No Cuenta :</span></td>
          <td bgcolor="#CCFFCC" colspan="3"><div align="left">
            <input name="nocuen" type="text" class="est_cont2" id="nocuen" value="<?php echo $cue ?>" size="13" maxlength="13" />
          </div></td>
        </tr>
        <tr>
          <td bgcolor="#CCFFCC"><span class="Estilo13">Valor Debito:</span></td>
          <td bgcolor="#CCFFCC"><div align="left">
            <input name="val" type="text" class="est_cont2" id="val" value="<?php echo $valcon ?>" size="18" maxlength="18"/>
          </div></td>
          <td bgcolor="#CCFFCC"><span class="Estilo15">No Cuotas :</span></td>
          <td width="24" bgcolor="#CCFFCC"><div align="left">
            <input name="cuo" type="text" class="est_cont2" id="cuo" value="<?php echo $numcuo ?>" size="3" maxlength="3" />
          </div></td>
          <td width="84" bgcolor="#CCFFCC"><span class="Estilo15">Valor Cuota :</span></td>
          <td width="191" bgcolor="#CCFFCC"><div align="left">
            <input name="cuomes" type="text" class="est_cont2" id="cuomes" value="<?php echo $valcuo ?>" size="18" maxlength="18"/>
          </div></td>
        </tr>
        <tr>
                  <td bgcolor="#CCFFCC"><span class="Estilo15">Cuotas Pendientes :</span></td>
          <td bgcolor="#CCFFCC"><div align="left">
            <input name="cuotap" type="text" class="est_cont2" id="cuotap" value="<?php echo $cupen ?>" size="3" maxlength="3"/>
          </div></td>
          <td bgcolor="#CCFFCC"><span class="Estilo15">Cuotas Descontadas :</span></td>
          <td bgcolor="#CCFFCC" colspan="3"><div align="left">
            <input name="cuotad" type="text" class="est_cont2" id="cuotad" value="<?php echo $cudesc ?>" size="3" maxlength="3" />
          </div></td>
        </tr>
      </table>        <span class="Estilo15"></span></td>
    </tr>
    </table>
    <p>
      <input name="guardar" type="submit" class="Estilo3" id="guardar" value="Guardar" />
    </p>
  </div>
</form>
</body>
</html>