Add files via upload
This commit is contained in:
115
login/index.php
115
login/index.php
@ -22,76 +22,51 @@
|
||||
$htmlFormLogin = $formLogin->gestiona();
|
||||
$formRegister = new FormRegister();
|
||||
$htmlFormRegister = $formRegister->gestiona();
|
||||
?>
|
||||
<!DOCTYPE HTML>
|
||||
<!--
|
||||
Práctica - Sistemas Web | Grupo D
|
||||
CompluCine - FDI-cines
|
||||
-->
|
||||
<html lang="es">
|
||||
<!-- Head -->
|
||||
<?php
|
||||
$template->print_head();
|
||||
?>
|
||||
<body>
|
||||
<!-- Header -->
|
||||
<?php
|
||||
$template->print_header();
|
||||
?>
|
||||
|
||||
<!-- Main -->
|
||||
<?php
|
||||
$template->print_main();
|
||||
?>
|
||||
|
||||
<!-- Login / Register -->
|
||||
<section id="login_register">
|
||||
<div class ="row">
|
||||
<?php
|
||||
if($isLogin){
|
||||
echo "<!-- Login -->
|
||||
<div class='column left'>
|
||||
<div class='code info'>
|
||||
<h2>¿No tienes una cuenta?</h2>
|
||||
<hr />
|
||||
<p>Para crear una cuenta de usuario es necesario haber rellenado el formulario de registro previamente</p>
|
||||
<p>Haz click en el botón para registrate.</p>
|
||||
<form method='post'>
|
||||
<button type='submit' name='register' id='_register'>Registrate</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class='column right'>
|
||||
<h2>Iniciar Sesión</h2>
|
||||
".$htmlFormLogin."
|
||||
</div>"."\n";
|
||||
} else {
|
||||
echo "<!-- Register -->
|
||||
<div class='column left'>
|
||||
<h2>Registro</h2>
|
||||
".$htmlFormRegister."
|
||||
</div>
|
||||
<div class='column right'>
|
||||
<div class='code info'>
|
||||
<h2>¿Ya estás registrado?</h2>
|
||||
<hr />
|
||||
<p>Si dispones de una cuenta de usuario, no es necesario que rellenes este formulario nuevamente</p>
|
||||
<p>Haz click en el botón para iniciar sesión.</p>
|
||||
<form method='post'>
|
||||
<button type='submit' name='login' id='_login'>Inicia Sesión</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>"."\n";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</section>
|
||||
if($isLogin){
|
||||
$form = "<!-- Login -->
|
||||
<div class='column left'>
|
||||
<div class='code info'>
|
||||
<h2>¿No tienes una cuenta?</h2>
|
||||
<hr />
|
||||
<p>Para crear una cuenta de usuario es necesario haber rellenado el formulario de registro previamente</p>
|
||||
<p>Haz click en el botón para registrate.</p>
|
||||
<form method='post'>
|
||||
<button type='submit' name='register' id='_register'>Registrate</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class='column right'>
|
||||
<h2>Iniciar Sesión</h2>
|
||||
".$htmlFormLogin."
|
||||
</div>"."\n";
|
||||
} else {
|
||||
$form = "<!-- Register -->
|
||||
<div class='column left'>
|
||||
<h2>Registro</h2>
|
||||
".$htmlFormRegister."
|
||||
</div>
|
||||
<div class='column right'>
|
||||
<div class='code info'>
|
||||
<h2>¿Ya estás registrado?</h2>
|
||||
<hr />
|
||||
<p>Si dispones de una cuenta de usuario, no es necesario que rellenes este formulario nuevamente</p>
|
||||
<p>Haz click en el botón para iniciar sesión.</p>
|
||||
<form method='post'>
|
||||
<button type='submit' name='login' id='_login'>Inicia Sesión</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>"."\n";
|
||||
}
|
||||
|
||||
<!-- Footer -->
|
||||
<?php
|
||||
$template->print_footer();
|
||||
?>
|
||||
//Specific page content:
|
||||
$section = '<!-- Login / Register -->
|
||||
<section id="login_register">
|
||||
<div class ="row">
|
||||
'.$form.'
|
||||
</div>
|
||||
</section>';
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
//General page content:
|
||||
require RAIZ_APP.'/HTMLtemplate.php';
|
||||
?>
|
Reference in New Issue
Block a user