smart changes
This commit is contained in:
parent
44c0cfcfae
commit
a7f8efe628
@ -11,6 +11,7 @@ class Smart extends Page {
|
|||||||
|
|
||||||
function index()
|
function index()
|
||||||
{
|
{
|
||||||
|
$this->set('user', $_SESSION['user']->data);
|
||||||
$this->set('template', "smart.html.php");
|
$this->set('template', "smart.html.php");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,61 +15,64 @@
|
|||||||
<h1 id="<?= $dog; ?>"><?= $dog; ?></h1>
|
<h1 id="<?= $dog; ?>"><?= $dog; ?></h1>
|
||||||
|
|
||||||
<button onClick="getElementById('table_<?= $dog ?>').style.display='table'">Tabelle anzeigen</button>
|
<button onClick="getElementById('table_<?= $dog ?>').style.display='table'">Tabelle anzeigen</button>
|
||||||
<table id="table_<?= $dog ?>" class="table" style="display:none">
|
<div class="table-responsive">
|
||||||
<tr>
|
<table id="table_<?= $dog ?>" class="table" style="display:none">
|
||||||
<th>event</th>
|
|
||||||
<th>Wann wars</th>
|
|
||||||
<th>run</th>
|
|
||||||
<th>rang</th>
|
|
||||||
<th>stnr</th>
|
|
||||||
<th>teilnehmer</th>
|
|
||||||
<th>hund</th>
|
|
||||||
<th>verein</th>
|
|
||||||
<th>f</th>
|
|
||||||
<th>vw</th>
|
|
||||||
<th>zf</th>
|
|
||||||
<th>zeit</th>
|
|
||||||
<th>gf</th>
|
|
||||||
<th>msek</th>
|
|
||||||
<th>bew</th>
|
|
||||||
<th>punkte</th>
|
|
||||||
</tr>
|
|
||||||
<?php foreach ($results as $res) :
|
|
||||||
// graph data preparation
|
|
||||||
|
|
||||||
if ($res['bew'] != 'DIS' && $res['punkte'] != 'DIS')
|
|
||||||
{
|
|
||||||
$sdata['dates'][] = date("d.m.Y", strtotime($res['date']));
|
|
||||||
$sdata['speed'][] = $res['msek'] ?: 0;
|
|
||||||
$sdata['errors'][] = $res['f'] ?: 0;
|
|
||||||
$sdata['refusals'][] = $res['vw'] ?: 0;
|
|
||||||
$sdata['time'][] = $res['zeit'] ?: 0;
|
|
||||||
$sdata['points'][] = $res['punkte'];
|
|
||||||
$sdata['ranking'][] = $res['rang'];
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><?= $res['event'] ?></td>
|
<th>Event</th>
|
||||||
<td><?= $res['ago'] ?></td>
|
<th>Datum</th>
|
||||||
<td><?= $res['run'] ?></td>
|
<th>Lauf</th>
|
||||||
<td><?= $res['rang'] ?></td>
|
<th>Startnummer</th>
|
||||||
<td><?= $res['stnr'] ?></td>
|
<th>Teilnehmer</th>
|
||||||
<td><?= $res['teilnehmer'] ?></td>
|
<th>Hund</th>
|
||||||
<td><?= $res['hund'] ?></td>
|
<th>Verein</th>
|
||||||
<td><?= $res['verein'] ?></td>
|
<th>F</th>
|
||||||
<td><?= $res['f'] ?></td>
|
<th>VW</th>
|
||||||
<td><?= $res['vw'] ?></td>
|
<th>ZF</th>
|
||||||
<td><?= $res['zf'] ?></td>
|
<th>Zeit</th>
|
||||||
<td><?= $res['zeit'] ?></td>
|
<th>GF</th>
|
||||||
<td><?= $res['gf'] ?></td>
|
<th>m/sek</th>
|
||||||
<td><?= $res['msek'] ?></td>
|
<th>Bew.</th>
|
||||||
<td><?= $res['bew'] ?></td>
|
<th>Punkte</th>
|
||||||
<td><?= $res['punkte'] ?></td>
|
<th>Rang</th>
|
||||||
|
<th>Aktion</th>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php foreach ($results as $res) :
|
||||||
</table>
|
// graph data preparation
|
||||||
|
if ($res['bew'] != 'DIS' && $res['punkte'] != 'DIS')
|
||||||
|
{
|
||||||
|
$sdata['dates'][] = date("d.m.Y", strtotime($res['date']));
|
||||||
|
$sdata['speed'][] = $res['msek'] ?: 0;
|
||||||
|
$sdata['errors'][] = $res['f'] ?: 0;
|
||||||
|
$sdata['refusals'][] = $res['vw'] ?: 0;
|
||||||
|
$sdata['time'][] = $res['zeit'] ?: 0;
|
||||||
|
$sdata['points'][] = $res['punkte'];
|
||||||
|
$sdata['ranking'][] = $res['rang'];
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td><?= $res['event'] ?></td>
|
||||||
|
<td><?= date("d.m.Y", strtotime($res['date'])) ?></td>
|
||||||
|
<td><?= $res['run'] ?></td>
|
||||||
|
<td><?= $res['stnr'] ?></td>
|
||||||
|
<td><?= $res['teilnehmer'] ?></td>
|
||||||
|
<td><?= $res['hund'] ?></td>
|
||||||
|
<td><?= $res['verein'] ?></td>
|
||||||
|
<td><?= $res['f'] ?></td>
|
||||||
|
<td><?= $res['vw'] ?></td>
|
||||||
|
<td><?= $res['zf'] ?></td>
|
||||||
|
<td><?= $res['zeit'] ?></td>
|
||||||
|
<td><?= $res['gf'] ?></td>
|
||||||
|
<td><?= $res['msek'] ?></td>
|
||||||
|
<td><?= $res['bew'] ?></td>
|
||||||
|
<td><?= $res['punkte'] ?></td>
|
||||||
|
<td><?= $res['rang'] ?></td>
|
||||||
|
<td><a href="#" class="btn btn-primary" title="Importieren"><i class="fas fa-file-import"></i></a></td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
<?php if (count($results) > 0) : ?>
|
<?php if (count($results) > 0) : ?>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
placeholder="Suchen..."
|
placeholder="Suchen..."
|
||||||
hx-indicator="#indicator"
|
hx-indicator="#indicator"
|
||||||
class="form-control" id="basic-url"
|
class="form-control" id="basic-url"
|
||||||
|
value="<?= escape($user['lastname'].' '.$user['firstname']); ?>"
|
||||||
>
|
>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user