fix for ylvie
All checks were successful
Build and push / Pulling repo on server (push) Successful in 2s

This commit is contained in:
Chris 2023-11-29 13:55:28 +01:00
parent 153e5d6305
commit 3b7df5e29d

View File

@ -8,14 +8,15 @@
<?php foreach ($dogs as $dog) : <?php foreach ($dogs as $dog) :
$dogid=preg_replace("/[^A-Za-z0-9]/", '', $dog);
$results = $results_dogs[$dog]; $results = $results_dogs[$dog];
$sdata = []; $sdata = [];
?> ?>
<h1 id="<?= $dog; ?>"><?= $dog; ?></h1> <h1 id="<?= $dogid; ?>"><?= $dog; ?></h1>
<button onClick="getElementById('table_<?= $dog ?>').style.display='table'">Tabelle anzeigen</button> <button onClick="getElementById('table_<?= $dogid ?>').style.display='table'">Tabelle anzeigen</button>
<table id="table_<?= $dog ?>" class="table" style="display:none"> <table id="table_<?= $dogid ?>" class="table" style="display:none">
<tr> <tr>
<th>event</th> <th>event</th>
<th>Wann wars</th> <th>Wann wars</th>
@ -74,7 +75,7 @@
<?php if (count($results) > 0) : ?> <?php if (count($results) > 0) : ?>
<div class="col"> <div class="col">
<?= partial('graph.html.php', [ <?= partial('graph.html.php', [
'id' => 'graph1'.$dog, 'id' => 'graph1'.$dogid,
'title' => 'Fehler und Verweigerungen', 'title' => 'Fehler und Verweigerungen',
'xaxis' => $sdata['dates'], 'xaxis' => $sdata['dates'],
'seriesdata' => [ 'seriesdata' => [
@ -87,7 +88,7 @@
<div class="col"> <div class="col">
<?= partial('graph.html.php', [ <?= partial('graph.html.php', [
'id' => 'graph2'.$dog, 'id' => 'graph2'.$dogid,
'title' => 'Geschwindigkeit', 'title' => 'Geschwindigkeit',
'xaxis' => $sdata['dates'], 'xaxis' => $sdata['dates'],
'seriesdata' => [ 'seriesdata' => [
@ -99,7 +100,7 @@
<div class="col"> <div class="col">
<?= partial('graph.html.php', [ <?= partial('graph.html.php', [
'id' => 'graph3'.$dog, 'id' => 'graph3'.$dogid,
'title' => 'Platzierung', 'title' => 'Platzierung',
'xaxis' => $sdata['dates'], 'xaxis' => $sdata['dates'],
'seriesdata' => [ 'seriesdata' => [