git-svn-id: https://192.168.0.254/svn/Proyectos.LaFactoriaVerde_Web/trunk@2 017afc1c-778d-45dc-8efe-cc7a6876851a
134 lines
3.5 KiB
HTML
134 lines
3.5 KiB
HTML
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Language" content="es-ES" />
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title>Página de registro</title>
|
|
<script language="JavaScript" type="text/javascript">
|
|
//<![CDATA[
|
|
<!--
|
|
function Form1_Validator(theForm)
|
|
{
|
|
if (theForm.firstname.value == "")
|
|
{
|
|
alert("Por favor, indica tu nombre.");
|
|
theForm.firstname.focus();
|
|
return (false);
|
|
}
|
|
|
|
if (theForm.lastname.value == "")
|
|
{
|
|
alert("Por favor, indica tus apellidos.");
|
|
theForm.lastname.focus();
|
|
return (false);
|
|
}
|
|
|
|
if (theForm.username.value == "")
|
|
{
|
|
alert("Por favor, indica un nombre de usuario.");
|
|
theForm.username.focus();
|
|
return (false);
|
|
}
|
|
if (theForm.email.value == "")
|
|
{
|
|
alert("Por favor, indica una dirección de correo electrónico correcta.");
|
|
theForm.email.focus();
|
|
return (false);
|
|
}
|
|
|
|
if (theForm.password.value == "")
|
|
{
|
|
alert("Por favor, indica una contraseña.");
|
|
theForm.password.focus();
|
|
return (false);
|
|
}
|
|
if (theForm.password.value != theForm.confirm.value)
|
|
{
|
|
alert("Las contraseñas no coinciden. Asegúrate que introduces dos veces la misma contraseña correctamente.");
|
|
theForm.confirm.focus();
|
|
return (false);
|
|
}
|
|
}
|
|
//-->
|
|
//]]>
|
|
</script>
|
|
<style type="text/css">
|
|
/*<![CDATA[*/
|
|
input.c9 {
|
|
font-family: Tahoma
|
|
}
|
|
p.c8 {
|
|
margin-top: 0;
|
|
margin-bottom: 0
|
|
}
|
|
span.c7 {
|
|
font-family: Tahoma
|
|
}
|
|
span.c6 {
|
|
font-family: Tahoma;
|
|
font-size: 80%
|
|
}
|
|
p.c5 {
|
|
font-family: Tahoma;
|
|
margin-bottom: 0;
|
|
margin-top: 0
|
|
}
|
|
span.c4 {
|
|
font-family: Tahoma;
|
|
font-size: 70%
|
|
}
|
|
strong.c3 {
|
|
font-weight: 400
|
|
}
|
|
span.c2 {
|
|
font-size: 80%
|
|
}
|
|
h1.c1 {
|
|
font-family: Tahoma;
|
|
font-size: 120%;
|
|
margin-bottom: 0;
|
|
margin-top: 0
|
|
}
|
|
/*]]>*/
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1 class="c1">Registro</h1>
|
|
<form method="post" action="register.php" onsubmit="return Form1_Validator(this)"
|
|
language="JavaScript" name="Form1">
|
|
<p class="c5"><strong class="c3"><span class="c2">Nombre:</span></strong><span class="c2"><br />
|
|
</span> <span class="c4">
|
|
<input name=
|
|
"firstname" size="25" maxlength="50" />
|
|
</span></p>
|
|
<p class="c5"><strong class="c3"><span class="c2">Apellidos:</span></strong><span class="c2"><br />
|
|
</span> <span class="c4">
|
|
<input name=
|
|
"lastname" size="25" maxlength="50" />
|
|
<br />
|
|
</span> <span class=
|
|
"c6">Usuario:</span><span class="c4"><br />
|
|
<input name="username" size="25" maxlength="50" />
|
|
</span></p>
|
|
<p class="c5"><strong class="c3"><span class=
|
|
"c2">Contraseña:</span></strong><span class="c2"><br />
|
|
</span> <span class=
|
|
"c4">
|
|
<input type="password" name="password" size="25" maxlength="25" />
|
|
<br />
|
|
</span> <span class="c2"><strong class="c3">Confirmar la contraseña:</strong></span><span class=
|
|
"c4"><br />
|
|
<input type="password" name="confirm" size="25" maxlength="25" />
|
|
</span></p>
|
|
<p class="c8"><strong class="c3"><span class="c6">Dirección de e-mail</span></strong><span class="c7"><strong class="c3"><span class=
|
|
"c2">:</span></strong><span class="c2"><br />
|
|
</span> <span class="c4">
|
|
<input type=
|
|
"text" name="email" size="25" maxlength="100" />
|
|
</span></span></p>
|
|
<p class="c8">
|
|
<input type="submit" name="submit" value="Enviar" class="c9" />
|
|
</p>
|
|
</form>
|
|
</body>
|
|
</html>
|