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/comercial/mod_consultorio_complementar_creditos_soldados.php
<?php 
require_once("../Conectarse.php");

$control = mysql_query('SELECT apellidos,nombres,cedula,fecha_expedicion, fecha_nacimiento, lugar_nacimiento, depto_nacimiento,celular,email,grado,
direccion_residencia,ciudad_residencia,telefono,actuaciones, nombre_padre, nombre_madre, direccion_padres, barrio_padres, ciudad_padres, depto_padres, celular_familia, compania FROM consultorio_creditos_soldados 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,$expedicion,$fecha_nacimiento,$lugar_nacimiento, $depto_nacimiento,$celular,$email,$grado,$direccion,$ciudad,$telefono,$actuaciones, $nombre_padre, $nombre_madre, $direccion_padres, $barrio_padres, $ciudad_padres, $depto_padres, $celular_familia, $compania) = mysql_fetch_row($control);
		
  
?>

<html>
<head>
<title>Registro de Formulario creditos_soldados</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:#EAEAEA;font-family:Geneva, Arial, Helvetica, sans-serif;}
    header {background-color: #B7271F; text-align: center;}
    
    .titulo{width: 100%;text-align: center;background-color: #dbd8c9;color: #b20606;padding: 6px 0;font-size: 18px;}
    table{margin: 0 auto;border: 8px solid #bebebe; text-align: center;}
    .divirmenu{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{padding: 1px; border: 1px solid #a0a0a0;}
    .td{background-color: #e5e5e5; padding: 1px 30px;color: #00135F;font-size: 14px;font-weight: 600; text-align: center;}
	.direcciona{width: 200px;background-color: #D4090C;color: #fff; padding: 4px;border-radius: 3px;}
	.direcciona:hover{background-color: #67a0d9; color: #000;}
    .boton1{width:30%;background-color: #ffffff;color: #000;padding: 2px;border:2px solid #580000;border-radius:10px;}
    .boton1:hover{background-color: #6f0000;color: #fff;cursor: pointer;}
    input[type=text]{border-radius: 5px; padding: 3px;background-color: #FFFFF4;}
	  .tdder{background-color: #e5e5e5; padding: 1px 2px;color: #00135F;font-size: 12px;font-weight: 600; text-align: right;}
	.tdtitulo{background-color: #e3dec0; color: #b20606; padding: 2px; text-align: center; font-size: 12px; font-weight: 900}
    .tdfull{background-color: #fff; color: #000; padding: 1px; text-align: center; font-size: 12px;}
    .botonnew{width: 90px; background-color: #e3dec0;color: #b20606;padding: 1px;border-radius:5px;}
    .botonnew:hover{width: 90px; background-color: #cbbd6a;color: #000;padding: 1px;border-radius:5px;}
	.tdizq{background-color: #e5e5e5; padding: 1px 10px;color: #00135F;font-size: 12px;font-weight: 600; text-align: left;}
</style>
</head>
 
 
 
<body bgcolor="#EFEFEF" text="#000000" topmargin="0" leftmargin="0">
<div align="center">
<header>
    <img src="../ELEMENTS/bannerInterasjudinet.png" alt="" width=" 700" height="70">
</header>
 

  <tr>
    <td align="center">
 
      <table width="44%" bgcolor="#EFEFEF" border="0" cellspacing="0" cellpadding="6">
 <tr>
   <td align="left" bgcolor="#2E7068"><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 width="590" border="1" cellspacing="5" bgcolor="#EFEFEF">
        <tr>
  <td class="tdder">Apellidos:</td>
  <td class="tdizq"><input type="text" name="apellidos" value="<? echo $ape?>"size="50" maxlength="40"  readonly></td>
  
       </tr>
       
         <tr>
  <td class="tdder">Nombres:</td> 
  <td class="tdizq"><input type="text" name="nombre" value="<? echo $nom?>"size="50"maxlength="40" readonly></td>
       </tr>
 
   
   <tr>
  <td class="tdder">Cedula de Ciudadania:</td>
  <td class="tdizq"><input type="text" name="ced"   value="<? echo $cedu?>"size="50"maxlength="40" readonly></td>
       </tr>
       
       
  <!--<tr>
  <td class="tdder">Lugar De Expedicion:</td>
  <td class="tdizq"><input type="text" name="expedicion" value="<? echo $expedicion ?>"size="50" maxlength="40"></td>
  </tr>-->
  <tr>
  <td class="tdder">Fecha Expedicion:</td>
  <td class="tdizq"><input type="text" name="expedicion" value="<? echo $expedicion ?>"size="50" maxlength="40"></td>
  </tr>
  
  <tr>
  <td class="tdder">Fecha Nacimiento:</td>
  <td class="tdizq"><input type="text" name="fecha_nacimiento" value="<? echo $fecha_nacimiento ?>"size="50" maxlength="40"></td>
  </tr>
  
  <tr>
  <td class="tdder">Lugar Nacimiento:</td>
  <td class="tdizq"><input type="text" name="lugar_nacimiento" value="<? echo $lugar_nacimiento ?>"size="50" maxlength="40"></td>
  </tr>
  
  <tr>
  <td class="tdder">Departamento Nacimiento:</td>
  <td class="tdizq"><input type="text" name="depto_nacimiento" value="<? echo $depto_nacimiento ?>"size="50" maxlength="40"></td>
  </tr>
       
  
  <tr>
  <td class="tdder">Celular:</td>
  <td class="tdizq"><input type="text" name="celu"   value="<? echo $celular?>"size="50"maxlength="40"></td>
       </tr>
 
  <tr>
  <td class="tdder">Correo Electronico:</td>
  <td class="tdizq"><input type="text" name="email"  value="<? echo $email?>"size="50"></td>
       </tr>
         
       <tr>
  <td class="tdder">Grado:</td>
  <td class="tdizq"><input type="text" name="grado" value="<? echo $grado?>" size="10" readonly></td>
       </tr>
       

  <tr>
  <td class="tdder">Direccion Residencia:</td>
  <td class="tdizq"><input type="text" name="dirresidencia"  value="<? echo $direccion?>" size="80"></td>
       </tr>        
 <tr>
  <td class="tdder">Ciudad Residencia:</td>
  <td class="tdizq"><input type="text" name="ciuresidencia"  value="<? echo $ciudad ?>" size="50"></td>
       </tr>      
       
     <tr>
  <td class="tdder">Telefono Fijo:</td>
  <td class="tdizq"><input type="text" name="telefono"  value="<? echo $telefono ?>"size="12"></td>
       </tr>
       
  
  <tr><td class="tdder">Nombre Padre:</td>
  <td class="tdizq"><input type="text" name="nombre_padre"  value="<? echo $nombre_padre ?>"size="50"></td>
</tr>

<tr><td class="tdder">Nombre Madrde:</td>
  <td class="tdizq"><input type="text" name="nombre_madre"  value="<? echo $nombre_madre ?>"size="50"></td>
</tr>

<tr><td class="tdder">Direccion Padres:</td>
  <td class="tdizq"><input type="text" name="direccion_padres"  value="<? echo $direccion_padres ?>"size="50"></td>
</tr>

<tr><td class="tdder">Barrio Padres:</td>
  <td class="tdizq"><input type="text" name="barrio_padres"  value="<? echo $barrio_padres ?>"size="50"></td>
</tr>

<tr><td class="tdder">Ciudad Padres:</td>
  <td class="tdizq"><input type="text" name="ciudad_padres"  value="<? echo $ciudad_padres ?>"size="50"></td>
</tr>

<tr><td class="tdder">Depto Padres:</td>
  <td class="tdizq"><input type="text" name="depto_padres"  value="<? echo $depto_padres ?>"size="50"></td>
</tr>

<tr><td class="tdder">Celular Familiar:</td>
  <td class="tdizq"><input type="text" name="celular_familia"  value="<? echo $celular_familia ?>"size="50"></td>
</tr>

<tr><td class="tdder">Compa&ntilde;ia:</td>
  <td class="tdizq"><input type="text" name="compania"  value="<? echo $compania ?>"size="50"></td>
</tr>     
            
       
   </table><br>
 
     
 	 <input name="guardar4" type="submit" class="direcciona" id="guardar4" value="Complementado " />
 	 <input name="guardar" type="submit" class="direcciona" id="guardar" value="Sin Contacto " />
 
     </form>
   
   </td>
 </tr>
      </table><br>
 
    </td>
  </tr>
  
</div>
 
</body>
</html>

<?
				
$fechast = date("y").'-'.date("m").'-'.date("d");

if(isset($_POST["guardar4"]))
{
	
	if ($cedu==$_GET["cedula"]);


	$mssql3 = mysql_query("UPDATE consultorio_creditos_soldados set apellidos = '".$_POST[apellidos]."', nombres = '".$_POST[nombre]."',cedula = '".$_POST[ced]."', fecha_expedicion = '".$_POST["expedicion"]."', fecha_nacimiento = '".$_POST["fecha_nacimiento"]."', celular = '" . $_POST[celu]."',email = '".$_POST[email]."', grado = '".$_POST[grado]."',direccion_residencia= '".$_POST[dirresidencia]."', ciudad_residencia = '".$_POST[ciuresidencia]."',telefono = '".$_POST[telefono]."', fecha_complemento = '".$fechast."', estado='0',
	
	 nombre_padre = '".$_POST["nombre_padre"]."', nombre_madre = '".$_POST["nombre_madre"]."', direccion_padres = '".$_POST["direccion_padres"]."', barrio_padres = '".$_POST["barrio_padres"]."', ciudad_padres = '".$_POST["ciudad_padres"]."', depto_padres = '".$_POST["depto_padres"]."', celular_familia = '".$_POST["celular_familia"]."', compania = '".$_POST["compania"]."' 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>";
	  
	  
}


if(isset($_POST["guardar"]))
{
	
	if ($cedu==$_GET["cedula"]);

		
	$mssql3 = mysql_query("UPDATE consultorio_creditos_soldados set 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>";
	  
	  
}


?>