From 10ba38abb650917df04102a69f03eb21197d1e72 Mon Sep 17 00:00:00 2001 From: asdf1899 Date: Wed, 14 Nov 2018 09:59:10 +0100 Subject: [PATCH] Add rescues per hours chart --- core/_header.php | 1 + core/getStats.php | 1 + stats.php | 97 ++++++++++++++++++++++++----------------------- 3 files changed, 52 insertions(+), 47 deletions(-) diff --git a/core/_header.php b/core/_header.php index 5d909d5..5736437 100644 --- a/core/_header.php +++ b/core/_header.php @@ -16,3 +16,4 @@ + diff --git a/core/getStats.php b/core/getStats.php index 337e078..f9c28f5 100644 --- a/core/getStats.php +++ b/core/getStats.php @@ -71,5 +71,6 @@ function getHours($anno, $db_conn){ while($ris = mysqli_fetch_array ($risultato, MYSQLI_ASSOC)){ $hours[$ris['ora']] = $ris['n_inter']; } + return $hours; } ?> diff --git a/stats.php b/stats.php index 93d9b85..7300198 100644 --- a/stats.php +++ b/stats.php @@ -61,7 +61,7 @@
-
+

Statistiche


-
-
- + - -
Numeri di interventi nell'anno:
+ +
Fascie orarie:
- - -
+ + +
+ +
+
+
' ); + jQuery('stats-container').css('max-height', jQuery(document).height() - '100px');