Ejemplo de programa que sirve para ingresar datos.
Corresponde al mecanismo "Ingreso de datos" visto en el programa avanzado de certificación.
Se puede ver funcionando en la página: http://www.globalwebtechnologies.com/demos/209/02reservacionsencilla.html
En este archivo hay 3 programas:
El primero es el que tiene la forma de entrada de datos, el segundo es la acción si todo
va bien y el tercero si hay fallas
+-----------------------------------------------------------------------------------+
| PROGRAMA PRINCIPAL: 02reservacionsencilla.html |
+-----------------------------------------------------------------------------------+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- EJEMPLO DE ENTRADA DE DATOS
Es la simplificación de la pantalla http://www.globalwebtechnologies.com/demos/209/02reservacionsencilla.html
(Se han eliminado los adornos y todo lo que no está relacionado con la forma)
-->
<html>
<head>
<title>: : : : C L I E N T E : : : :</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
function completar() {
// Aquí deben venir las validaciones. Si todo está OK, escribir "return true;" y si no "return false;"
return true;
}
</script>
</head>
<body>
<!------------------------------------- FORMA DE ENTRADA DE DATOS ------------------------------------>
<!------------------------------------- Campos de control ------------------------------------>
<form name="forma" method="post" onSubmit="return completar();" action="http://www.net2client.com/new/inter/entra.php">
<input type='hidden' name='EEE' value='GWT101209'><!------ Poner aquí la base de datos ----->
<input type='hidden' name='Tabla' value='SOLICITUDES'><!------ Poner aquí la tabla a la cual se están ingresando valores ----->
<input type='hidden' name='ResultadoOK' value='http://www.globalwebtechnologies.com/demos/209/02OKsencillo.html'>
<input type='hidden' name='ResultadoNO' value='http://www.globalwebtechnologies.com/demos/209/02NOsencillo.html'>
<input type='hidden' name='Perfil' value='Internet'><!------ No olvidar que este perfil debe tener la autorización ----->
<input type='hidden' name='Idioma' value='esp'>
<!------------------------------------- Campos de datos ------------------------------------>
<input type='hidden' name='Status_Solicitud' value='Asignada'>
<input type='hidden' name='Producto' value="12">
<input type='hidden' name='Número_Agente' value="4">
<table border='0' cellspacing=1 style='border-collapse: collapse' bordercolor='#111111' width='100%'>
<tr>
<td width='200' height="21" align='right' class="Textos"> <p class='nbecampo'><strong>Nombre
Solicitante</strong></p></td>
<b>
<td width='550'><input name='Nombre_Solicitante' type='text' size='80'></td>
</b></tr>
<input type='hidden' name='AGEPerfil'>
<input type='hidden' name='AGEPassword'>
<tr>
<td width='200' align='right' class="Textos"> <p class='nbecampo'><strong>
Email </b></strong></p></td>
<td width='550'><input name='Email' type='text' size='40'></td>
</tr>
<tr>
<td width='200' align='right' class="Textos"> <p class='nbecampo'><strong>
Teléfono </b></strong></p></td>
<td width='550'><input name='Teléfono' type='text' size='15'></td>
</tr>
<tr>
<td width='200' align='right' class="Textos"> <p class='nbecampo'><strong>
Fecha Inicio </strong></p></td>
<td width='550'><input name='Fecha_Inicio' type='text' size='12'>
<span class="Textos"> AAAA-MM-DD</span></td>
</tr>
<tr>
<td width='200' align='right' class="Textos"> <p class='nbecampo'><strong>
Número Noches </strong></p></td>
<td width='550'><input name='Número_Noches' type='text' size='3'></td>
</tr>
<tr>
<td width='200' align='right' class="Textos"> <p class='nbecampo'><strong>
Número Pasajeros </strong></p></td>
<td width='550'><input name='Número_Pasajeros' type='text' size='3'></td>
</tr>
<tr>
<td width='200' align='right' class="Textos"> <p class='nbecampo'><strong>
Lugar de origen </b></strong></p></td>
<td width='550'><input name='Lugar_de_origen' type='text' size='40'></td>
</tr>
<tr>
<td width='200' align='right' class="Textos"> <p class='nbecampo'><strong>
Nombre Pasajero 2 </b></strong></p></td>
<td width='550'><input name='Nombre_Pasajero_2' type='text' size='40'></td>
</tr>
<tr>
<td width='200' align='right' class="Textos"> <p class='nbecampo'><strong>
Nombre Pasajero 3 </b></strong></p></td>
<td width='550'><input name='Nombre_Pasajero_3' type='text' size='40'></td>
</tr>
<tr>
<td width='200' align='right' class="Textos"> <p class='nbecampo'><strong>
Nombre Pasajero 4 </b></strong></p></td>
<td width='550'><input name='Nombre_Pasajero_4' type='text' size='40'></td>
</tr>
<tr>
<td width='200' align='right' class="Textos"> <p class='nbecampo'><strong>
Nombre Pasajero 5 </b></strong></p></td>
<td width='550'><input name='Nombre_Pasajero_5' type='text' size='40'></td>
</tr>
<tr>
<td width='200' align='right' class="Textos"> <p class='nbecampo'><strong>
Observaciones </b></strong></p></td>
<td width='550'><textarea name='Observaciones' cols='40' rows='4'></textarea></td>
</tr>
</table>
<p style='text-align: center;'><input type='submit' value='OK' name='B1'>
<input type='reset' value='Limpiar'></p></form>
</body>
</html>
+-----------------------------------------------------------------------------------+
| PROGRAMA OK: 02OKsencillo.html |
+-----------------------------------------------------------------------------------+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p align="center" class="Titulos">MUCHAS GRACIAS POR INSCRIBIRSE</p>
</body>
</html>
+-----------------------------------------------------------------------------------+
| PROGRAMA NO: 02NOsencillo.html |
+-----------------------------------------------------------------------------------+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<body>
<p>DISCULPE, Hubo un problema con su inscripción</p>
<script language="JavaScript">
param=location.search;
document.write (param);
</script>
</body>
</html>