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/afinanciera/formulario_consultorio_policia_A.php
<?php
require_once("../Conectarse.php");   
   
$control = mysql_query('SELECT apellidos,nombres,cedula,celular,email,grado,estado_civil,unidad,direccion_residencia,
ciudad_residencia,actuaciones,correo_alterno FROM consultorio_policia WHERE cedula = "'.$_GET["ced"].'" ');
if (!$control) {
die('Invalid query 1: ' . mysql_error());
}
$num=mysql_num_rows($control); 
list($ape, $nom, $cedu, $celular, $email, $grado,$ecivil, $unidad, $dirresidencia,$ciuresidencia,$actuaciones,$correoalt) = mysql_fetch_row($control);
		
		
		
		
   
if(isset($_POST["guardar"]))
{
	$fecha_asignac = date("Y")."-".date("m")."-".date("d");
	$nombre_completo =$_POST["nombre"]." ".$_POST["apellidos"] ;
		
		
		
	$csql = mysql_query("SELECT cedula FROM consultorio_policia WHERE cedula= '".$_POST["ced"]. "' || apellidos= '".$_POST["apellidos"]. "' and nombres= '".$_POST["nombre"]. "' ");	
	if (!$csql) {
		die('Invalid query: ' . mysql_error());
	} 		

	if ((mysql_num_rows($csql)!=0))
	{
		$cedal=$_POST["ced"].'A';
		echo $_POST["condicion"];
		echo $_POST["proceso"];
	
		echo $cedal;
		
		$csql6 = mysql_query("INSERT INTO consultorio_policia (apellidos,nombres,cedula,celular,email,grado,
estado_civil,unidad,direccion_residencia,ciudad_residencia,actuaciones,estado,correo_alterno,tipo_proceso)
 VALUES ('".$_POST["apellidos"]."','".$_POST["nombre"]."','".$cedal."','".$_POST["celular"]."','".$_POST["email"]."','".$_POST["grado"]."','".$_POST["ecivil"]."','" .$_POST["unidad"]. "',  '" .$_POST["direccion"]. "', '".$_POST["ciudad"]."','".$_POST["mensaje"]."','".$_POST["condicion"]."','".$_POST["emailalt"]."' ,'".$_POST["proceso"]."')");	 
				
		if (!$csql6) { // esto es para que aparescan los errores
			die('Invalid query csql: ' . mysql_error()); 
				
		} 
							

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

		

?>


<html>
<head>
<title>Registro de Formulario Subsidio</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;}
    .cerrarsesion{width: auto;background-color: #DBD8C9;color: #000;font-size: 13px;position:absolute;top: 15px;right:10px;z-index:0;padding: 10px;border-radius: 10px;cursor: pointer;}
    .cerrarsesion:hover{background-color: #ffffff;color: #000;}
    .titulo{width: 100%;text-align: center;background-color: #dbd8c9;color: #b20606;padding: 6px 0;font-size: 18px;}
    .divirmenu{text-align: center;}
    .irmenu{width: 100px;background-color: #1c4fa0;color: #fff; padding: 4px;border-radius: 6px;}
    .irmenu:hover{background-color: #67a0d9; color: #000;}
	table{border:#7C0509 2px solid;}
    td{padding:2px;}
    .fecha{background-color: #d6e08b; padding: 2px;color: #000;font-size: 15px; text-align: center;}
    .tdizq{background-color: #EEE; padding: 1px 10px;color: #00135F;font-size: 13px;font-weight: 700; text-align: left;}
    .tdcen{background-color: #EEE; padding: 1px 10px;color: #00135F;font-size: 13px;font-weight: 700; text-align: center;}
    .tdder{background-color: #EEE; padding: 1px 10px;color: #00135F;font-size: 13px;font-weight: 700; text-align: right;}
	.exp{color:#8A0000; font-size:14px;}
    .boton1{width:100px;background-color: #ffffff;color: #000;padding: 2px;border:2px solid #580000;border-radius:3px;}
    .boton1:hover{background-color: #6f0000;color: #fff;cursor: pointer;}
    input[type=text]{border-radius: 2px; padding: 2px;background-color: #FEFEED; height:22px;}
	select{border-radius: 2px; padding: 2px;background-color: #FEFEED;}
	.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;}
</style>
</head>
 
<body bgcolor="#EFEFEF" text="#000000" topmargin="0" leftmargin="0">
<header>
    <img src="../ELEMENTS/bannerInterasjudinet.png" alt="" width=" 700" height="70">
</header>
<h3 class="titulo">Duplicar Afiliado</h3>
<?php echo "<div class='cerrarsesion' onclick='location.href=\"../cerrar_session.php\"'>CERRAR SESION</div>";?>

<!--<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="80%" bgcolor="#EFEFEF" align="center" border="0" cellspacing="0" cellpadding="6">
 <tr>
   <td align="center" bgcolor="#306090"><big style="color:#FFFFFF"><b>DUPLICAR AFILIADO</b></big></td>
  
 </tr>
 
 <tr>
   <td align="center" colspan="2">-->
 
<script>
function Verificar() {
	
	
if(document.frm.apellidos.value == "") {
  alert("Por Favor Escriba Los Apellidos");
  document.frm.apellidos.focus();
  return false;
 }	

 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 El Numero De Cedula");
  document.frm.ced.focus();
  return false;
 }
 
 if(document.frm.ecivil.value == "") {
  alert("Por Favor Escriba El Estado Civil");
  document.frm.ecivil.focus();
  return false;
 } 
 
 


 
 return true;
}
</script>
 
  <form method="post" name="frm" onSubmit="return Verificar()">
 <center>
	<table border="0" bgcolor="#EFEFEF" cellspacing="2" align="center">
 <!-- <td><div align="right"><strong> Fecha Registro</strong></div></td>
    <td><div align="left">
      <input name="dia" type="text" id="dia2" value="<?php echo date("d"); ?>" size="2" maxlength="2" readonly>
      <input name="mes" type="text" id="mes2" value="<?php echo date("m"); ?>" size="2" maxlength="2" readonly>
      <input name="ano" type="text" id="ano2" value="<?php echo date("Y"); ?>" size="4" maxlength="4" readonly>
    </div></td>
  </tr>  -->
  <tr>
    <td class="tdder">Apellidos:</td>
    <td class="tdizq"><input type="text" name="apellidos"  value="<?php echo $ape ?>" size="50" maxlength="40"></td>
  </tr>
  <tr>
    <td class="tdder">Nombres:</td>
    <td class="tdizq"><input type="text" name="nombre" value="<?php echo $nom ?>" size="50" maxlength="40"></td>
  </tr>
  <tr>
    <td class="tdder">Cedula de Ciudadania:</td>
    <td class="tdizq"><input type="text" name="ced" value="<?php echo $cedu ?>" size="50" maxlength="40"></td>
  </tr>
  <tr>
    <td class="tdder">Celular:</td>
    <td class="tdizq"><input type="text" name="celular" value="<?php echo $celular ?>" size="50" maxlength="40"></td>
  </tr>
  <tr>
    <td class="tdder">Correo Electronico:</td>
    <td class="tdizq"><input type="text" name="email"  value="<?php echo $email ?>" size="50"></td>
  </tr>
  
  
    <tr>
    <td class="tdder">Correo Alterno:</td>
    <td class="tdizq"><input type="text" name="emailalt" value="<?php echo $correoalt ?>" size="50"></td>
  </tr>
  
  <tr>
    <td class="tdder">Grado:</td>
    <td class="tdizq"><input type="text" name="grado" value="<?php echo $grado ?>" size="50"></td>
  </tr>
  
    <tr>
    <td class="tdder">Estado Civil:</td>
    <td class="tdizq"><input type="text" name="ecivil" value="<?php echo $ecivil ?>" size="5"></td>
  </tr>
  
  
    <tr>
    <td class="tdder">Unidad:</td>
    <td class="tdizq"><input type="text" name="unidad" value="<?php echo $unidad ?>" size="50"></td>
  </tr>


  <tr>
    <td class="tdder">Direccion Residencia:</td>
    <td class="tdizq"><input type="text" name="direccion" value="<?php echo $dirresidencia ?>" size="50"></td>
  </tr>
  <tr>
    <td class="tdder">Ciudad Residencia:</td>
    <td class="tdizq"><input type="text" name="ciudad" value="<?php echo $ciuresidencia ?>" size="50"></td>
  </tr>
  <tr>
  
   <td class="tdder">Agregar Letra:</td>
   <td class="tdizq">
            <select name="letra" id="letra">
              <option value="">--Letra--</option>
              <option value="A">A</option>
              <option value="B">B</option>
              <option value="C">C</option>
  

  </select>
  </td>
  </tr>
  <tr>
     <td class="tdder">Tipo De Proceso:</td>
     <td class="tdizq">
            <select name="proceso" id="proceso">
              <option value="">--Tipo Proceso--</option>
              <option value="SUBSIDIO FAMILIAR">SUBSIDIO FAMILIAR</option>
              <option value="I.P.C.">I.P.C.</option>
              <option value="RELIQUIDACION PRESTACIONES">RELIQUIDACION PRESTACIONES</option>
              <option value="ASCENSO SUPERIOR">ASCENSO SUPERIOR</option>
              <option value="NIVELACION SALARIAL">NIVELACION SALARIAL</option>
              <option value="RETIRO DISCRECIONAL">RETIRO DISCRECIONAL</option>
  

  </select>
  </td>
  
  </tr>


<tr>
     <td class="tdder">Condicion Contraactual:</td>
        <td  class="tdizq">
            <select name="condicion" id="condicion">
              <option value="">--Condicion Contraactual--</option>
              <option value="6">Afiliado</option>
              <option value="4">Interesado</option>
             
  </select>
  </td>
  
  </tr>


      </table>           
      </table><br>
 <p align="center" class="exp">
 <b>Gestion De Telemercadeo</b><br>
     
 	 <textarea name="mensaje" cols="100" rows="8"><? echo $moticonsu?></textarea><br><br>
	  
	 
 	<input name="menu2" type="button" class="irmenu" id="menu2" onClick="window.location.href='consulta_ced_info_servi_ventas.php'" value="REGRESAR" />  
    <input name="guardar" type="submit" class="boton1" id="guardar" value="ENVIAR " /></td>
    
 </p>
 </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>