-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpersonaggi.php
40 lines (38 loc) · 1.07 KB
/
personaggi.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
<!doctype html>
<html lang="it" class="h-100">
<head>
<?php
require("navbarhead.php");
?>
<link href="css/table.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<?php
session_start();
if(empty($_SESSION['id'])){
die("<div class ='error'>non sei loggato</div>");
}
elseif($_SESSION['role'] == 'player'){
require_once('logged_navbar.html');
}
else{
die("<div class ='error'>devi essere loggato come giocatore</div>");
}
?>
<div class="container">
<ul class="responsive-table">
<li class="table-header">
<div class="col col-1">Nome</div>
<div class="col col-2">Classe</div>
<div class="col col-3">Razza</div>
</li>
<?php
require_once("php/tabellaPersonaggi.php");
?>
<a href="creazione_personaggio.php"><h4>crea un nuovo personaggio?</h4></a>
</ul>
</div>
</body>
</html>
<script src="js/ricerca.js"></script>