-
Notifications
You must be signed in to change notification settings - Fork 0
/
verPartido.php
52 lines (47 loc) · 1.58 KB
/
verPartido.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
include './header.php';
require_once './CRUD/CRUDPartido.php';
require_once './CRUD/CRUDUsuario.php';
if (isset($_SESSION['usuario_logueado']) && $_SESSION['usuario_logueado']) {
if (isset($_POST['btnRegistro'])) {
registrarse();
}
if (isset($_POST['btnCancelar'])) {
cancelarSuscripcion();
}
//Muestra los datos del partido
function datosPartido() {
readPartido($_SESSION['partidoVisto']);
echo '<div id = "colPartidos1">';
echo '<fieldset>';
echo '<legend>Datos del partido</legend>';
echo 'Nombre: ' . $_SESSION['nombre_estadio'];
echo '<br>Ciudad: ' . $_SESSION['ciudad_estadio'];
echo '<br>Direccion: ' . $_SESSION['direccion_estadio'];
echo '<br>Fecha: ' . $_SESSION['fecha_partido'];
echo '<br>Hora: ' . $_SESSION['hora_partido'];
echo '</fieldset>';
echo '</div>';
echo '<div id = "colPartidos2">';
echo '<fieldset>';
echo '<legend>Jugadores (Máx. 10 personas)</legend>';
listadoJugadores();
echo '</fieldset>';
echo '</div>';
}
?>
<section class="generico">
<form action="" method = "POST">
<?php datosPartido(); ?>
</form>
<div class="form-style" style="clear: left; float: left">
<form action="partidos.php" method = "POST">
<input type="submit" class="buttonSpecial" value="Volver a partidos" name="btnVolver" />
</form>
</div>
</section>
<?php
} else {
header('location: login.php');
}
include './footer.php';