Adds example data notice in charts under construction
parent
0318670bce
commit
7e09815835
|
@ -1,18 +1,23 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// FIXME example data
|
// FIXME example data
|
||||||
|
$one = date('Y-m-d',strtotime("-5 days"));
|
||||||
|
$two = date('Y-m-d',strtotime("-4 days"));
|
||||||
|
$three = date('Y-m-d',strtotime("-2 days"));
|
||||||
|
$four = date('Y-m-d',strtotime("-1 days"));
|
||||||
|
|
||||||
$graph[0]['data0'] = [
|
$graph[0]['data0'] = [
|
||||||
['date' => '2024-10-06', 'value' => 10],
|
['date' => $one, 'value' => 10],
|
||||||
['date' => '2024-10-07', 'value' => 20],
|
['date' => $two, 'value' => 20],
|
||||||
['date' => '2024-10-10', 'value' => 15],
|
['date' => $three, 'value' => 15],
|
||||||
['date' => '2024-10-11', 'value' => 25],
|
['date' => $four, 'value' => 25],
|
||||||
];
|
];
|
||||||
|
|
||||||
$graph[0]['data1'] = [
|
$graph[0]['data1'] = [
|
||||||
['date' => '2024-10-06', 'value' => 12],
|
['date' => $one, 'value' => 12],
|
||||||
['date' => '2024-10-07', 'value' => 23],
|
['date' => $two, 'value' => 23],
|
||||||
['date' => '2024-10-10', 'value' => 11],
|
['date' => $three, 'value' => 11],
|
||||||
['date' => '2024-10-11', 'value' => 27],
|
['date' => $four, 'value' => 27],
|
||||||
];
|
];
|
||||||
|
|
||||||
$graph[0]['graph_name'] = 'conferences';
|
$graph[0]['graph_name'] = 'conferences';
|
||||||
|
@ -21,17 +26,17 @@ $graph[0]['graph_data0_label'] = 'Conferences from Jitsi logs (Jilo)';
|
||||||
$graph[0]['graph_data1_label'] = 'Conferences from Jitsi API (Jilo Agents)';
|
$graph[0]['graph_data1_label'] = 'Conferences from Jitsi API (Jilo Agents)';
|
||||||
|
|
||||||
$graph[1]['data0'] = [
|
$graph[1]['data0'] = [
|
||||||
['date' => '2024-10-06', 'value' => 20],
|
['date' => $one, 'value' => 20],
|
||||||
['date' => '2024-10-07', 'value' => 30],
|
['date' => $two, 'value' => 30],
|
||||||
['date' => '2024-10-10', 'value' => 15],
|
['date' => $three, 'value' => 15],
|
||||||
['date' => '2024-10-11', 'value' => 55],
|
['date' => $four, 'value' => 55],
|
||||||
];
|
];
|
||||||
|
|
||||||
$graph[1]['data1'] = [
|
$graph[1]['data1'] = [
|
||||||
['date' => '2024-10-06', 'value' => 22],
|
['date' => $one, 'value' => 22],
|
||||||
['date' => '2024-10-07', 'value' => 33],
|
['date' => $two, 'value' => 33],
|
||||||
['date' => '2024-10-10', 'value' => 11],
|
['date' => $three, 'value' => 11],
|
||||||
['date' => '2024-10-11', 'value' => 57],
|
['date' => $four, 'value' => 57],
|
||||||
];
|
];
|
||||||
|
|
||||||
$graph[1]['graph_name'] = 'participants';
|
$graph[1]['graph_name'] = 'participants';
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
|
|
||||||
|
<hr /><p class="m-3">NB: This functionality is still under development. The data is just an example.</p><hr /><!-- FIXME remove when implemented -->
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="card w-auto bg-light border-light card-body filter-results">
|
<div class="card w-auto bg-light border-light card-body filter-results">
|
||||||
<div class="btn-group" role="group">
|
<div class="btn-group" role="group">
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
|
|
||||||
<div class="collapse show" id="collapse<?= htmlspecialchars($widget['name']) ?>">
|
<div class="collapse show" id="collapse<?= htmlspecialchars($widget['name']) ?>">
|
||||||
<div class="mb-5">
|
<div class="mb-5">
|
||||||
|
<hr /><p class="m-3">NB: This functionality is still under development. The data is just an example.</p><hr /><!-- FIXME remove when implemented -->
|
||||||
<?php if ($widget['full'] === true) { ?>
|
<?php if ($widget['full'] === true) { ?>
|
||||||
<table class="table table-results table-striped table-hover table-bordered">
|
<table class="table table-results table-striped table-hover table-bordered">
|
||||||
<thead class="thead-dark">
|
<thead class="thead-dark">
|
||||||
|
@ -39,7 +40,6 @@
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<p class="m-3">No records found.</p>
|
<p class="m-3">No records found.</p>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<hr /><p class="m-3">NB: This functionality is still under development.</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- /widget "<?= htmlspecialchars($widget['name']) ?>" -->
|
<!-- /widget "<?= htmlspecialchars($widget['name']) ?>" -->
|
||||||
|
|
Loading…
Reference in New Issue