-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheleccionEstadisticas.php
58 lines (47 loc) · 1.62 KB
/
eleccionEstadisticas.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
53
54
55
56
57
58
<?php
session_start();
require_once("gestionBD.php");
require_once("gestionMiembros.php");
require_once("consultasSql.php");
if(isset($_SESSION['login'])){
$nickUsuario = $_SESSION['login'];
}else{
Header("Location: login.php");
}
?>
<!DOCTYPE html>
<html lang="es">
<head>
<title>Jugadores</title>
<?php include_once("headComun.php"); ?>
<link rel="stylesheet" type="text/css" href="css/jugadores.css">
<link href="https://fonts.googleapis.com/css2?family=Indie+Flower&display=swap" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.1.1.min.js" type="text/javascript"></script>
<script src="js/eventos_jugadores.js" type="text/javascript"></script>
</head>
<body>
<?php
if(isset($_SESSION['ADMIN'])){
include_once("navegacion_ADMIN.php");
}else{
include_once("navegacion.php");
}
?>
<h4>Elige un Videojuego para ver las estadísticas del equipo</h4>
<?php
$conexion = crearConexionBD();
$videojuegos = obtenVideojuegos($conexion);
foreach($videojuegos as $videojuego) {
$nombre_videojuego = $videojuego["NOMBREVIDEOJUEGO"];
?>
<form action="estadisticas.php" method="GET">
<input id="nVideojuegos" name="nVideojuegos" type="hidden" value="<?php echo $videojuego["NOMBREVIDEOJUEGO"];?>">
<center><input class="videojuego" type="submit" value="<?php echo $videojuego["NOMBREVIDEOJUEGO"];?>" >
</form>
</center>
<?php
}
cerrarConexionBD($conexion);
?>
</body>
</html>