File: /home/asjudine/public_html/mod_consultorio_complementar_bono.php
<?php
require_once("mainfile.php");
include ("config.php");
require_once("Conectarse.php");
$control = mysql_query('SELECT apellidos,nombres,cedula,fecha_nacimiento,celular,email,grado,
ano_cotizado,fondo_pensiones,fecha_ingreso,fecha_retiro,tiempo_servicio,direccion_residencia,ciudad_residencia,telefono,ciudad_telefono,actuaciones FROM consultorio_bono_pensional WHERE cedula = "'.$_GET["cedula"].'" and celular = "'.$_GET["celular"].'"');
if (!$control) {
die('Invalid query 1: ' . mysql_error());
}
$num=mysql_num_rows($control);
list($ape,$nom,$cedu,$fecha_nacimiento,$celular,$email,$grado,$ano_cotizado,$fondo_pensiones,$fecha_ingreso,$fecha_retiro,$tiempo_servicio,$direccion,$ciudad,$telefono,$ciudadtelefono,$actuaciones) = mysql_fetch_row($control);
?>
<html>
<head>
<title>Registro de Formulario Juridico</title>
<style type="text/css">
<!--
img {border: 0}
body,td {font-family: Verdana,Arial; font-size: 8pt; color: #000000}
input,select {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 10pt
}
a:link, a:visited {text-decoration: none; color: #2030F0}
a:hover, a:active {text-decoration: underline; color: #D02010}
body table tr td table tr td form table tr td b {
font-size: 14pt;
}
body table tr td table tr td form table tr td b {
font-size: 10pt;
}
body table tr td table tr td form b {
font-size: 10pt;
}
body table tr td table tr td form table tr td div strong {
font-size: 10pt;
}
-->
</style>
</head>
<body bgcolor="#EFEFEF" text="#000000" topmargin="0" leftmargin="0">
<br>
<center> <img src="ELEMENTOS\CABEZOTE SERVIASJUDINET.jpg" WIDTH=61% > </center>
<br>
<table width="100%" height="75%" bgcolor="#FFFFFF" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10" valign="top">
<table width="70%" border="0" cellspacing="0" cellpadding="0">
</table>
</td>
</tr>
<tr>
<td align="center">
<table width="44%" bgcolor="#EFEFEF" align="center" border="0" cellspacing="0" cellpadding="6">
<tr>
<td align="left" bgcolor="#306090"><big style="color:#FFFFFF"><b>Complementar Datos</b></big></td>
</tr>
<tr>
<td align="center" colspan="2">
<script>
function Verificar() {
if(document.frm.nombre.value == "") {
alert("Por favor Escriba el nombre");
document.frm.nombre.focus();
return false;
}
if(document.frm.ced.value == "") {
alert("Por favor Escriba La Cedula");
document.frm.ced.focus();
return false;
}
return true;
}
</script>
<form method="post" name="frm" onSubmit="return Verificar()">
<table border="1" bgcolor="#EFEFEF" cellspacing="5">
<tr>
<td align="right" ><b>Apellidos:</b></td>
<td><input type="text" name="apellidos" value="<? echo $ape?>"size="50" maxlength="40" readonly></td>
</tr>
<tr>
<td align="right"><b>Nombres:</b></td>
<td><input type="text" name="nombre" value="<? echo $nom?>"size="50"maxlength="40" readonly></td>
</tr>
<tr>
<td align="right"><b>Cedula de Ciudadania:</b></td>
<td><input type="text" name="ced" value="<? echo $cedu?>"size="50"maxlength="40" readonly></td>
</tr>
<tr>
<td align="right"><b>Fecha Nacimiento:</b></td>
<td><input type="text" name="expedicion" value="<? echo $fecha_nacimiento ?>"size="50" maxlength="40" readonly></td>
</tr>
<tr>
<td align="right"><b>Celular:</b></td>
<td><input type="text" name="celu" value="<? echo $celular?>"size="50"maxlength="40"></td>
</tr>
<tr>
<td align="right"><b>Correo Electronico:</b></td>
<td><input type="text" name="email" value="<? echo $email?>"size="50"></td>
</tr>
<tr>
<td align="right"><b>Grado:</b></td>
<td><input type="text" name="grado" value="<? echo $grado?> "size="10" readonly></td>
</tr>
<tr>
<td align="right"><b>Ultimo Año Cotizado:</b></td>
<td><input type="text" name="ano_cotizado" value="<? echo $ano_cotizado?> "size="11" ></td>
</tr>
<tr>
<td align="right"><b>Fondo Pensiones:</b></td>
<td><input type="text" name="fondo_pensiones" value="<? echo $fondo_pensiones ?>" size="80"></td>
</tr>
<tr>
<td align="right"><b>Fecha Ingreso:</b></td>
<td><input type="text" name="fecha_ingreso" value="<? echo $fecha_ingreso ?>" size="10" readonly></td>
</tr>
<tr>
<td align="right"><b>Fecha Retiro:</b></td>
<td><input type="text" name="fecha_retiro" value="<? echo $fecha_retiro ?>" size="10" readonly></td>
</tr>
<tr>
<td align="right"><b>Tiempo De Servicio:</b></td>
<td><input type="text" name="tiempo_servicio" value="<? echo $tiempo_servicio?>" size="10" readonly></td>
</tr>
<tr>
<td align="right"><b>Direccion Residencia:</b></td>
<td><input type="text" name="dirresidencia" value="<? echo $direccion?>"size="80"></td>
</tr>
<tr>
<td align="right"><b>Ciudad Residencia:</b></td>
<td><input type="text" name="ciuresidencia" value="<? echo $ciudad ?>"size="50"></td>
</tr>
<tr>
<td align="right"><b>Telefono Fijo:</b></td>
<td><input type="text" name="telefono" value="<? echo $telefono ?>"size="12"></td>
</tr>
<tr>
<td align="right"><b>Ciudad Telefono:</b></td>
<td><input type="text" name="ciudad_telefono" value="<? echo $ciudadtelefono ?>"size="12"></td>
</tr>
</table><br>
<input name="guardar4" type="submit" class="Estilo53" id="guardar" value="Guardar " />
</form>
</td>
</tr>
</table><br>
</td>
</tr>
<tr>
<td height="10" align="center" bgcolor="#000052"><b style="font-size:7.5p;color:#FFFFFF">Registro Formulario Juridico</b></td>
</tr>
</table>
</body>
</html>
<?
if(isset($_POST["guardar4"]))
{
if ($cedu==$_GET["cedula"]);
$mssql3 = mysql_query("UPDATE consultorio_bono_pensional set apellidos = '".$_POST[apellidos]."', nombres = '".$_POST[nombre]."',cedula = '".$_POST[ced]."',fecha_nacimiento = '" . $_POST[expedicion]."', celular = '" . $_POST[celu]."',email = '".$_POST[email]."', grado = '".$_POST[grado]."',ano_cotizado = '".$_POST[ano_cotizado]."',fondo_pensiones = '".$_POST[fondo_pensiones]."',fecha_ingreso = '".$_POST[fecha_ingreso]."',fecha_retiro= '".$_POST[fecha_retiro]."',tiempo_servicio = '".$_POST[tiempo_servicio]."',direccion_residencia= '".$_POST[dirresidencia]."', ciudad_residencia = '".$_POST[ciuresidencia]."',telefono = '".$_POST[telefono]."',ciudad_telefono= '".$_POST[ciudad_telefono]."',estado='1' WHERE cedula = '".$_GET["cedula"]."' and celular = '".$_GET["celular"]."' " );
if (!$mssql3) {
die('Invalid query cartera_serviasjudinet MODIFICAR: ' . mysql_error());
}
echo "<script>alert('Los datos fueron Modificados');</script>";
echo "<script languaje='javascript' type='text/javascript'>window.close();</script>";
}
?>