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/formulario_seminario_dih.php
<?php 
require_once("mainfile.php");
include ("config.php");
require_once("Conectarse.php");   
   
   
if(isset($_POST["guardar"]))
{		
$csql = mysql_query("SELECT * FROM seminario_DIH WHERE cedula= '".$_POST["ced"]. "'  ");	
		if (!$csql) {
			die('Invalid query: ' . mysql_error());
		} 		

	if ((mysql_num_rows($csql)==0))
	{
		
$csql6 = mysql_query("INSERT INTO seminario_DIH (id, cedula, apellidos, nombres, grado, escuela, email, celular, direccion, ciudad, departamento, telefono_fijo, nombre_acudiente,celular_acudiente, estado) VALUES ('','".$_POST["ced"]."','".$_POST["apellidos"]."','".$_POST["nombres"]."','".$_POST["grado"]."','".$_POST["escuela"]."','".$_POST["email"]."','".$_POST["celu"]."','".$_POST["direccion"]."','".$_POST["ciudad"]."','".$_POST["departamento"]."','".$_POST["telfijo"]."','".$_POST["nombreacudiente"]."','".$_POST["celuacudiente"]."','0' ) ");	 
				
			if (!$csql6) { // esto es para que aparescan los errores
				die('Invalid query csql: ' . mysql_error()); 
			} 
	
		echo "<script>alert('Los datos fueron grabados correctamente');</script>"; 		
	}
		
	else
	{
		$ced=$_POST["ced"];  
		echo "<script>alert('Usuario Ya Esta Registrado desea continuar');</script>";  	
	}
}
		

?>


<html>
<head>
<title>Registro Seminario DIH</title>
<style type="text/css">
<!--
img {border: 0}
body,td {font-family: Verdana,Arial; font-size: 8pt; color: #000000}
input,select {font-family: Verdana,Arial; font-size: 7.5pt}
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 {
	font-size: 14px;
	font-family: Georgia, "Times New Roman", Times, serif;
}
body table tr td table tr td form table tr td div strong {
	font-size: 10pt;
}
body table tr td table tr td form table tr td div strong {
	font-size: 9pt;
}
body table tr td table tr td form table tr td b {
	font-size: 9pt;
}
body table tr td table tr td form table tr td div {
	font-size: 7pt;
}
-->
</style>
</head>
 
<body bgcolor="#EFEFEF" text="#000000" topmargin="0" leftmargin="0">
<br>
<center> <img src="ELEMENTOS\CABEZOTE SERVIASJUDINET.jpg" WIDTH=60% > </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="center" bgcolor="#306090"><big style="color:#FFFFFF"><b>FORMULARIO INSCRIPCION SEMINARIO DDHH - D.I.H</b></big></td>
  
 </tr>
 
 <tr>
   <td align="center" colspan="2">
 
<script>
function Verificar() {

if(document.frm.ced.value == "") {
  alert("Por Favor Escriba El Numero De Cedula");
  document.frm.ced.focus();
  return false;
 }
	
if(document.frm.apellidos.value == "") {
  alert("Por Favor Escriba Los Apellidos");
  document.frm.apellidos.focus();
  return false;
 }	

 if(document.frm.nombres.value == "") {
  alert("Por Favor Escriba El Nombre");
  document.frm.nombres.focus();
  return false;
 }
 
 if(document.frm.grado.value == "") {
  alert("Por Favor Escriba El grado");
  document.frm.grado.focus();
  return false;
 }
 
 if(document.frm.escuela.value == "") {
  alert("Por Favor Seleccione la escuela");
  document.frm.escuela.focus();
  return false;
 }
 
 if(document.frm.email.value == "") {
  alert("Por Favor Escriba el Email");
  document.frm.email.focus();
  return false;
 }
 
 if(document.frm.celular.value == "") {
  alert("Por Favor Escriba El Celular");
  document.frm.celular.focus();
  return false;
 }
 
 if(document.frm.direccion.value == "") {
  alert("Por Favor Escriba la Direccion");
  document.frm.direccion.focus();
  return false;
 }
 
 if(document.frm.ciudad.value == "") {
  alert("Por Favor Escriba la Ciudad");
  document.frm.ciudad.focus();
  return false;
 }
 
  if(document.frm.telfijo.value == "") {
  alert("Por Favor Escriba el telefono Fijo");
  document.frm.ciudad.focus();
  return false;
 }
 
 if(document.frm.departamento.value == "") {
  alert("Por Favor Escriba El Departamento");
  document.frm.ciudad.focus();
  return false;
 }
 
  if(document.frm.nombreacudiente.value == "") {
  alert("Por Favor Escriba El Nombre del Acudiente");
  document.frm.ciudad.focus();
  return false;
 }
 
  if(document.frm.celularacudiente.value == "") {
  alert("Por Favor Escriba El Celular Del Acudiente");
  document.frm.ciudad.focus();
  return false;
 }
 return true;
}
</script>
 <form method="post" name="frm" onSubmit="return Verificar()">
       <table border="0" bgcolor="#EFEFEF" cellspacing="5">
 <!-- <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 align="right"><b>Cedula:</b></td>
    <td><input type="text" name="ced" size="50" maxlength="40"></td>
    <td style="color:#F00"><p>Sin puntos</p></td>
  </tr>
  <tr>
    <td align="right"><b>Apellidos:</b></td>
    <td><input type="text" name="apellidos" size="50" maxlength="40"></td>
  </tr>
  <tr>
    <td align="right"><b>Nombres:</b></td>
    <td><input type="text" name="nombres" size="50" maxlength="40"></td>
  </tr>
  <tr>
    <td align="right"><b>Grado:</b></td>
    <td><input type="text" name="grado" size="50" maxlength="40" value="PT"></td>
    
  </tr>
  <tr>
    <td align="right"><b>Escuela:</b></td>
    <!--<td><input type="text" name="escuela" size="50" maxlength="40"></td>-->
    <td><select name="escuela" class="Estilo66" id="escuela">
                <option value="">--SELECIONE ESCUELA--</option>
                <option value="ALEJANDRO GUTIERREZ">ALEJANDRO GUTIERREZ</option>
                <option value="ALFONSO PUMAREJO">ALFONSO PUMAREJO</option>
                <option value="CARLOS EUGENIO RESTREPO">CARLOS EUGENIO RESTREPO</option>
                <option value="CARLOS HOLGUIN">CARLOS HOLGUIN</option>
                <option value="DE POLICIA YUTO">DE POLICIA YUTO</option>
                <option value="EDUARDO CUEVAS GARCIA">EDUARDO CUEVAS GARCIA</option>
                <option value="GABRIEL GONZALEZ">GABRIEL GONZALEZ</option>
                <option value="METROPOLITANA DE BOGOTA">METROPOLITANA DE BOGOTA</option>
                <option value="PROVINCIA DE VELEZ">PROVINCIA DE VELEZ</option>
                <option value="PROVINCIA DE SUMAPAZ">PROVINCIA DE SUMAPAZ</option>
                <option value="RAFAEL NUÑEZ">RAFAEL NUÑEZ</option>
                <option value="RAFAEL REYES">RAFAEL REYES</option>
                <option value="SIMON BOLIVAR">SIMON BOLIVAR</option>
    </SELECT>
    </td>
  </tr>
 
  <tr>
    <td align="right"><b>Correo Electronico:</b></td>
    <td><input type="text" name="email" size="50"></td>
  </tr>
  
  <tr>
    <td height="24" align="right"><b>Celular:</b></td>
    <td><input type="text" name="celu" size="50" maxlength="40"></td>
  </tr>
  
  <tr>
    <td align="right"><b>Direccion:</b></td>
    <td><input type="text" name="direccion" size="50"></td>
  </tr>
  
    <tr>
    <td align="right"><b>Ciudad:</b></td>
    <td><input type="text" name="ciudad" size="50"></td>
  </tr>
  
  
  <!--
  <tr>
        <td align="right"><b>Sucursal:</b></td>
        <td><SELECT NAME="sucursal">
            <OPTION value="">--Sucursal--</OPTION>
            <?php
do {  
?>
        <option value="<?php echo $row_Recordset2['codigo']?>"><?php echo $row_Recordset2['nombre']?></option>
            <?php
} while ($row_Recordset2 = mysql_fetch_assoc($Recordset2));
  $rows = mysql_num_rows($Recordset2);
  if($rows > 0) {
      mysql_data_seek($Recordset2, 0);
	  $row_Recordset2 = mysql_fetch_assoc($Recordset2);
  }
?>
          </SELECT>
        </td>
        </tr>
        -->
  
  
    <tr>
    <td align="right"><b>Telefono Fijo/Celular:</b></td>
    <td><input type="text" name="telfijo" size="50"></td>
  </tr>


  <tr>
    <td align="right"><b>Departamento:</b></td>
    <td><input type="text" name="departamento" size="50"></td>
  </tr>
  <tr>
    <td align="right"><b>Nombre Acudiente:</b></td>
    <td><input type="text" name="nombreacudiente" size="50"></td>
  </tr>
  <tr>
    <td align="right"><b>Celular Acudiente:</b></td>
    <td><input type="text" name="celuacudiente" size="50"></td>
  </tr>
  
  
  
  
  
         </table>           
      </table><br>
 
	  
	 
 	<input name="menu2" type="button" class="Estilo50" id="menu2" onClick="window.location.href='menu_seminario.php'" value="IR AL MENU" />  
    <input name="guardar" type="submit" class="Estilo53" id="guardar" value="ENVIAR " /></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>