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/modificar_datos_basicos.php
<?php
require_once("mainfile.php");
include ("config.php");
global $dbi;

if(isset($_POST["consultar"]))
{
	$sqlnom = "select cedula, apellidos_noms, codigo, grado, direccion, ciudad, celular, telefono, email, entidad_laboral from datos_basicos_rc where cedula = '$ced'";
     	$num=mysql_num_rows($sqlnom); 
		$control = mysql_query($sqlnom, $dbi) or die(mysql_error());	 
		list($cedu, $noms, $cod, $gra, $dir, $ciu, $cel, $tel, $em, $ent) = mysql_fetch_array($control);
}

if(isset($_POST["enviar"]))
{
	$mssql = "update datos_basicos_rc set apellidos_noms='$apenom',
					  codigo='$codg',  
	                  grado='$grad', 
					  direccion='$dire', 
					  celular='$celu', 
					  telefono='$tele', 
					  ciudad='$ciud', 
					  email='$email',
					  entidad_laboral='$entlab' where cedula = '$cedb' ";
					  
    mysql_query($mssql, $dbi) or die(mysql_error()); 
            
    echo "<script>alert('Los DATOS BASICOS fueron modificados correctamente');</script>";
	
	$sqlnom2 = "select cedula, apellidos_noms, codigo, grado, direccion, ciudad, celular, telefono, email, entidad_laboral from datos_basicos_rc where cedula = '$cedb'";
     	$num2=mysql_num_rows($sqlnom2); 
		$control2 = mysql_query($sqlnom2, $dbi) or die(mysql_error());	 
		list($cedu, $noms, $cod, $gra, $dir, $ciu, $cel, $tel, $em, $ent) = mysql_fetch_array($control2);	
}

?>
<!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>MODIFICAR DATOS BASICOS</title>
<style type="text/css">
<!--
.Estilo1 {	color: #FF6633;
	font-size: 24px;
	font-style: italic;
}
.Estilo2 {	color: #FF6633;
	font-size: 16px;
}
.Estilo3 {	color: #2492FF;
	font-weight: bold;
}
.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;
}
.Estilo12 {font-size: 14px}
.Estilo8 {	font-size: 20px;
	font-weight: bold;
}
.campo1 {	background-color: #B7FFFF;
	border: thin dashed #B6B6B6;
}
.campo1 {	font-family: "Courier New", Courier, monospace;
	font-size: 16px;
	font-style: normal;
	font-weight: bold;
	background-color: #E1EFFD;
	border: thin doble #009999;
}
.campo1 {	font-family: "Courier New", Courier, monospace;
	font-size: 16px;
	color: #5151FF;
	background-color: #C4E4FD;
	border: thin solid #009999;
}
.datos2 {	font-family: "Courier New", Courier, monospace;
	font-size: 16px;
	font-style: normal;
	font-weight: normal;
	color: #0033FF;
	background-color: #FFE2C6;
	margin: 2px;
	padding: 3px;
	border: medium doble #EEBFEB;
}
.Estilo50 {color: #CC3333;
	font-family: "Arial Narrow";
	font-weight: bold;
}
-->
</style>
</head>

<body>
<form id="form1" name="form1" method="post" action="">
  <div align="center">
    <table width="330" border="3" cellpadding="3" cellspacing="3" class="recaudo">
      <caption>
      <span class="Estilo1">MODIFICAR DATOS BASICOS </span>
      </caption>
      <tr>
        <th colspan="2" scope="col"><label>Digite el Numero de Cedula </label></th>
      </tr>
      <tr>
        <td width="162"><div align="center"><span class="Estilo2">CEDULA : </span></div></td>
        <td width="135"><div align="center">
            <input name="ced" type="text" id="ced" size="20" maxlength="20" />
        </div></td>
      </tr>
      <tr>
        <td colspan="2"><div align="center">
            <input name="consultar" type="submit" class="Estilo3" id="consultar" value="Consultar" />
        </div></td>
      </tr>
    </table>
    <table width="718" border="3" cellpadding="3" cellspacing="3" class="datos2">
      <caption>&nbsp;
      </caption>
      <tr>
        <td width="154"><span class="Estilo12"><strong>Apellidos y Nombres </strong></span></td>
        <td colspan="3"><div align="left">
            <input name="apenom" type="text" class="campo1" id="apenom" value="<?php echo $noms ?>" size="50" maxlength="50" />
        </div></td>
      </tr>
      <tr>
        <td><div align="center" class="Estilo12"><strong>Cedula : </strong></div></td>
        <td width="159"><div align="left">
            <input name="cedb" type="text" class="campo1" id="cedb" value="<?php echo $cedu ?>" size="15" maxlength="15" readonly="" />
        </div></td>
        <td width="96"><div align="center" class="Estilo12"><strong>Codigo : </strong></div></td>
        <td width="256"><div align="left">
            <input name="codg" type="text" class="campo1" id="codg" value="<?php echo $cod ?>" size="15" maxlength="15" />
        </div></td>
      </tr>
      <tr>
        <td><div align="center" class="Estilo12"><strong>Grado : </strong></div></td>
        <td><div align="left">
            <input name="grad" type="text" class="campo1" id="grad" value="<?php echo $gra ?>" size="15" maxlength="15" />
        </div></td>
        <td><div align="center" class="Estilo12"><strong>Direccion : </strong></div></td>
        <td><div align="left">
            <input name="dire" type="text" class="campo1" id="dire" value="<?php echo $dir ?>" size="30" maxlength="30" />
        </div></td>
      </tr>
      <tr>
        <td><div align="center" class="Estilo12"><strong>Celular : </strong></div></td>
        <td><div align="left">
            <input name="celu" type="text" class="campo1" id="celu" value="<?php echo $cel ?>" size="15" maxlength="15" />
        </div></td>
        <td><div align="center" class="Estilo12"><strong>Telefono : </strong></div></td>
        <td><div align="left">
            <input name="tele" type="text" class="campo1" id="tele" value="<?php echo $tel ?>" size="15" maxlength="15" />
        </div></td>
      </tr>
      <tr>
        <td><div align="center" class="Estilo12"><strong>Ciudad : </strong></div></td>
        <td colspan="3"><div align="left">
            <input name="ciud" type="text" class="campo1" id="ciud" value="<?php echo $ciu ?>" size="25" maxlength="25" />
        </div></td>
      </tr>
      <tr>
        <td><div align="center" class="Estilo12"><strong>Email : </strong></div></td>
        <td colspan="3"><div align="left">
            <input name="email" type="text" class="campo1" id="email" value="<?php echo $em ?>" size="25" maxlength="25" />
        </div></td>
      </tr>
      <tr>
        <td><div align="center" class="Estilo12"><strong>Entidad Laboral: </strong></div></td>
        <td colspan="3"><div align="left">
            <input name="entlab" type="text" class="campo1" id="entlab" value="<?php echo $ent ?>" size="35" maxlength="35" />
        </div></td>
      </tr>
    </table>
    <p>
      <input name="enviar" type="submit" class="campo1" id="enviar" value="Enviar" />
    </p>
    <p>
      <input name="menu2" type="button" class="Estilo50" id="menu2" onclick="window.location.href='menu_recaudo_cartera.php'" value="IR AL MENU" />
    </p>
  </div>
</form>
</body>
</html>