-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
120 lines (116 loc) · 4.13 KB
/
index.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<html>
<head>
<?php
include "core/_header.php";
include "core/getData.php";
session_start();
try{
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// error_reporting per togliere il notice quando non trova isLogged
error_reporting(0);
include "core/dbConnection.php";
if (isset($_GET['back'])) {
$_SESSION['include'] = 'core/reports.php';
$_SESSION['search'] = null;
}
if (!$_SESSION['include']){
$_SESSION = array();
$_SESSION['include'] = 'core/selectFireman.php';
}
if ($_SESSION['reportCSV']){
$_SESSION['reportCSV'] = false;
echo "
<script>
location.href='Rapporti.csv';
setTimeout(function(){
location.reload();
}, 100);
</script>";
}
}catch(Exception $e){
}
?>
</head>
<body>
<div id="loading-div">
<div class="style-parent" style="height:100%;background-color:white;z-index:10000">
<div class="style-child">
<img src="loading.gif"></img>
</div>
</div>
</div>
<script>
// nasconde il contenuto della pagina per 2 secondi per mostrare il loading
setTimeout(function(){
document.getElementById("loading-div").remove();
document.getElementById("main").style.display = "block";
}, 1500);
// nasconde il contenuto della pagina per 2 secondi per mostrare il loading
/*
var loading = document.getElementById("loading-div");
loading.style.display = "none";
loading.setAttribute('style', 'display:none !important')
function loadingFX(){
window.onload= function(){
loading.style.display = "block";
loading.setAttribute('style', 'display:block !important')
document.getElementById("main").style.display = "none";
setTimeout(function(){
loading.remove();
document.getElementById("main").style.display = "block";
}, 1000);
};
}
loadingFX();
*/
</script>
<div class="mdl-layout mdl-js-layout">
<main class="mdl-layout__content" id="main">
<div class="page-content">
<div class="mdl-grid">
<section class="mdl-cell mdl-cell--middle mdl-cell--3-col mdl-cell--hide-phone mdl-cell--hide-tablet">
<div style="padding:5px">
<h1>
<mark style="background-color:white;border:none;border-radius:10px;padding:5px;">
<span class="style-gradient-text">Rapporti</span>
</mark>
</h1>
<h1>
<mark style="background-color:white;border:none;border-radius:10px;padding:5px;">
<span class="style-gradient-text">d'intervento</span>
</mark>
</h1>
<h3 class="style-gradient-text">
<mark style="background-color:white;border:none;border-radius:10px;padding:5px;">
<span class="style-gradient-text">vvf Pergine</span>
</mark>
<br>
<br>
<mark style="background-color:white;border:none;border-radius:10px;padding:5px;">
<span class="style-gradient-text">Valsugana</span>
</mark>
</h3>
</div>
</section>
<section class="mdl-cell mdl-cell--middle mdl-cell--9-col">
<div class="mdl-card mdl-shadow--8dp style-card" style="width:100%">
<?php
if ($error_message) {
echo "
<script>
window.onload = function(){
flatAlertClose('Accesso', 'Impossibile connettersi al database', 'error');
}
</script>";
}
include $_SESSION['include'];
?>
</div>
</section>
</div>
<?php include "core/_footer.php" ?>
</div>
</main>
</div>
</body>
</html>