Skip to content

Commit

Permalink
Init stats page
Browse files Browse the repository at this point in the history
  • Loading branch information
anas-araid committed Nov 8, 2018
1 parent 7ee771d commit f881d3d
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/reports.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ class="mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-color--
onclick="location.href='core/exportCSV.php'">
<i class="material-icons style-gradient-text">save</i>
</button>
<button id="btn-stats"
type="reset"
class="mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-color--white"
onclick="location.href='stats.php'">
<i class="material-icons style-gradient-text">save</i>
</button>
</form>
</div>

Expand Down
73 changes: 73 additions & 0 deletions stats.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<html>
<head>
<?php
include "core/_header.php";
session_start();
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// error_reporting per togliere il notice quando non trova isLogged
//error_reporting(0);
include "core/dbConnection.php";
include "core/getData.php";
include "core/functions.php";

if ($error_message) {
echo "
<script>
flatAlert('Accesso', 'Impossibile connettersi al database', 'error', 'index.php');
</script>";
}
?>
</head>
<body>
<div class="mdl-layout mdl-js-layout">
<main class="mdl-layout__content">
<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>
<div class="mdl-cell mdl-cell--middle mdl-cell--12-col">
<button class="mdl-button mdl-js-button mdl-button--raised style-gradient style-button"
style="width:100%;height:35px;color:white;border:none;border-radius:20px;;text-align:center;margin-bottom:15px"
type="reset"
onclick="location.href='index.php?back=true'">
Indietro
<i class="material-icons">cancel</i>
</button>
</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%">

</div>
</section>
</div>
<?php include "core/_footer.php" ?>
</div>
</main>
</div>
</body>

</html>

0 comments on commit f881d3d

Please sign in to comment.