Add files via upload

This commit is contained in:
Fernando Méndez 2021-04-06 23:01:41 +02:00 committed by GitHub
parent 40ecd8bd0f
commit 7fc1008c71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 16 deletions

View File

@ -23,8 +23,9 @@ class FormLogin extends Form {
public function getReply() { public function getReply() {
if(isset($_SESSION["login"])){ if(isset($_SESSION["login"])){
$name = strtoupper($_SESSION['nombre']);
$this->reply = "<h1>Bienvenido {$_SESSION['nombre']}</h1><hr /> $this->reply = "<h1>Bienvenido {$_SESSION['nombre']}</h1><hr />
<p>{$_SESSION['nombre']} has iniciado sesión correctamente.</p> <p>{$name}, has iniciado sesión correctamente.</p>
<p>Usa los botones para navegar</p> <p>Usa los botones para navegar</p>
<a href='../'><button>Inicio</button></a> <a href='../'><button>Inicio</button></a>
<a href='../../panel_{$_SESSION["rol"]}'><button>Mi Panel</button></a>\n"; <a href='../../panel_{$_SESSION["rol"]}'><button>Mi Panel</button></a>\n";

View File

@ -21,20 +21,20 @@
<fieldset id="datos_personales"> <fieldset id="datos_personales">
<legend>Datos personales</legend> <legend>Datos personales</legend>
<div class="_name"> <div class="_name">
<input type="text" name="name" id="name" value="" placeholder="Nombre" /> <input type="text" name="name" id="name" value="" placeholder="Nombre" required/>
</div> </div>
<div class="_email"> <div class="_email">
<input type="email" name="email" id="email" value="" placeholder="Email" /> <input type="email" name="email" id="email" value="" placeholder="Email" required/>
</div> </div>
<div class="_passwd"> <div class="_passwd">
<input type="password" name="pass" id="pass" value="" placeholder="Contraseña" /> <input type="password" name="pass" id="pass" value="" placeholder="Contraseña" required/>
</div> </div>
<div class="_passwd"> <div class="_passwd">
<input type="password" name="repass" id="repass" value="" placeholder="Repita la contraseña" /> <input type="password" name="repass" id="repass" value="" placeholder="Repita la contraseña" required/>
</div> </div>
</fieldset> </fieldset>
<div class="verify"> <div class="verify">
<input type="checkbox" id="checkbox" name="terms"> <input type="checkbox" id="checkbox" name="terms" required>
<label for="terms">Marque esta casilla para verificar que ha leído nuestros términos y condiciones del servicio.</label> <label for="terms">Marque esta casilla para verificar que ha leído nuestros términos y condiciones del servicio.</label>
</div> </div>
<div class="actions"> <div class="actions">
@ -75,15 +75,15 @@
<fieldset id="datos_personales"> <fieldset id="datos_personales">
<legend>Datos personales</legend> <legend>Datos personales</legend>
<div class="_name"> <div class="_name">
<input type="text" name="name" id="name" value="" placeholder="Nombre" /> <input type="text" name="name" id="name" value="" placeholder="Nombre" required/>
</div> </div>
<!-- <!--
<div class="_email"> <div class="_email">
<input type="email" name="email" id="email" value="" placeholder="Email" /> <input type="email" name="email" id="email" value="" placeholder="Email" required/>
</div> </div>
--> -->
<div class="_passwd"> <div class="_passwd">
<input type="password" name="pass" id="pass" value="" placeholder="Contraseña" /> <input type="password" name="pass" id="pass" value="" placeholder="Contraseña" required/>
</div> </div>
</fieldset> </fieldset>
<div class="actions"> <div class="actions">