2020-08-08 17:26:55 +02:00
|
|
|
<?php
|
|
|
|
include('parts/header.php');
|
|
|
|
?>
|
|
|
|
|
|
|
|
<!-- Page Heading -->
|
|
|
|
<div class="d-sm-flex align-items-center justify-content-between mb-4">
|
|
|
|
<h1 class="h3 mb-0 text-gray-800">Orari</h1>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2020-08-08 18:26:50 +02:00
|
|
|
<!-- Dispositivi per orario -->
|
2020-08-08 17:26:55 +02:00
|
|
|
<div class="row">
|
2020-08-08 18:26:50 +02:00
|
|
|
<div class="col-lg-12">
|
2020-08-08 17:26:55 +02:00
|
|
|
<div class="card shadow mb-4">
|
2020-08-08 18:26:50 +02:00
|
|
|
<div class="card-header py-3">
|
|
|
|
<h6 class="m-0 font-weight-bold text-primary">Dispositivi per orario</h6>
|
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="chart-bar">
|
|
|
|
<canvas id="chart-orari"></canvas>
|
2020-08-08 17:26:55 +02:00
|
|
|
</div>
|
2020-08-08 18:26:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Dispositivi per giorno -->
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
<div class="card shadow mb-4">
|
|
|
|
<div class="card-header py-3">
|
|
|
|
<h6 class="m-0 font-weight-bold text-primary">Dispositivi per giorno</h6>
|
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="chart-bar">
|
|
|
|
<canvas id="chart-giorno"></canvas>
|
2020-08-08 17:26:55 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2020-08-08 18:26:50 +02:00
|
|
|
|
2020-08-08 17:26:55 +02:00
|
|
|
<script>
|
|
|
|
$('#menu-orari').addClass('active');
|
|
|
|
|
2020-08-08 22:23:21 +02:00
|
|
|
drawBarChart( 'chart-orari', 'get-devices-by-hour' );
|
|
|
|
drawBarChart( 'chart-giorno', 'get-devices-by-weekday' );
|
2020-08-08 17:26:55 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
include('parts/footer.php');
|