formatting

This commit is contained in:
Andrea Moro 2024-11-11 08:15:39 +01:00
parent ba05612a57
commit 6664acbdfe
4 changed files with 35 additions and 25 deletions

View file

@ -1,7 +1,6 @@
<?php
global $votes;
include "includes/security.php";
?>
<!DOCTYPE HTML>
@ -9,7 +8,7 @@ include "includes/security.php";
<head>
<title>Login</title>
<?php require "includes/head.php" ?>
<?php require "includes/head.php"; ?>
</head>
<body>
@ -21,7 +20,7 @@ include "includes/security.php";
<canvas id='statisicheBrowser'></canvas>
</div>
<?php require "includes/footer.php" ?>
<?php require "includes/footer.php"; ?>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
@ -35,7 +34,9 @@ include "includes/security.php";
labels: ['Pellegrini', 'Egonu', 'Vio'],
datasets: [{
label: '# of Votes',
data: [<?= $votes["voto_Pellegrini"] ?>, <?= $votes["voto_Egonu"] ?>, <?= $votes["voto_Vio"] ?>,],
data: [<?= $votes["voto_Pellegrini"] ?>, <?= $votes[
"voto_Egonu"
] ?>, <?= $votes["voto_Vio"] ?>,],
borderWidth: 1
}]
},
@ -55,7 +56,9 @@ include "includes/security.php";
labels: ['Totti', 'Tamberi', 'Rossi'],
datasets: [{
label: '# of Votes',
data: [<?= $votes["voto_Totti"] ?>, <?= $votes["voto_Tamberi"] ?>, <?= $votes["voto_Rossi"] ?>,],
data: [<?= $votes["voto_Totti"] ?>, <?= $votes[
"voto_Tamberi"
] ?>, <?= $votes["voto_Rossi"] ?>,],
borderWidth: 1
}]
},
@ -74,7 +77,9 @@ include "includes/security.php";
labels: ['Maschi', 'Femmine'],
datasets: [{
label: '# of Votes',
data: [<?= $_COOKIE["votiMaschili"] ?>, <?= $_COOKIE["votiFemminili"] ?>],
data: [<?= $_COOKIE["votiMaschili"] ?>, <?= $_COOKIE[
"votiFemminili"
] ?>],
borderWidth: 1
}]
},