2023-10-30 22:20:13 +01:00
|
|
|
<div class="container">
|
2023-10-30 22:24:26 +01:00
|
|
|
<nav aria-label="breadcrumb">
|
|
|
|
<ol class="breadcrumb">
|
2023-10-31 21:38:03 +01:00
|
|
|
<li class="breadcrumb-item">
|
|
|
|
<i class="fas fa-calendar-star"></i>
|
|
|
|
<a href="/tournaments/event/<?= $tournament_id; ?>" hx-push-url="/tournaments/event/<?= $tournament_id; ?>" hx-get="/tournaments/event/<?= $tournament_id; ?>" hx-target="#main"><?= escape($tournament['name']); ?></a>
|
|
|
|
</li>
|
|
|
|
<li class="breadcrumb-item active" aria-current="page">
|
|
|
|
<i class="far fa-running"></i> <?= escape($run['name']); ?>
|
|
|
|
</li>
|
2023-10-30 22:24:26 +01:00
|
|
|
</ol>
|
|
|
|
</nav>
|
2023-10-30 22:20:13 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-3">
|
|
|
|
<div class="card">
|
|
|
|
<?php if($run['photo']): ?><img src="<?= $run['photo'] ?>/300x170/fixedsize" class="card-img-top" alt="<?= escape($run['name']); ?>'s profile Picture"> <?php endif; ?>
|
|
|
|
<div class="card-body">
|
|
|
|
<h5 class="card-title"><?= escape($run['name']); ?></h5>
|
|
|
|
<p class="card-text">
|
|
|
|
<ul>
|
|
|
|
|
|
|
|
<li>Gehört zu <a href="/tournaments/event/<?= $tournament_id; ?>" hx-push-url="/tournaments/event/<?= $tournament_id; ?>" hx-get="/tournaments/event/<?= $tournament_id; ?>" hx-target="#main"><?= escape($tournament['name']); ?></a></li>
|
|
|
|
<?php if($run['category']): ?> <li>Typ: <?= escape($run['category']); ?></li><?php endif; ?>
|
|
|
|
<?php if($run['length']): ?> <li>Länge: <?= escape($run['length']); ?>m</li><?php endif; ?>
|
|
|
|
<?php if($run['time_standard']): ?> <li>Normzeit: <?= escape($run['time_standard']); ?>s</li><?php endif; ?>
|
|
|
|
<?php if($run['time_max']): ?> <li>Maxzeit: <?= escape($run['time_max']); ?>s</li><?php endif; ?>
|
|
|
|
<?php if($run['referee']): ?> <li>Richter: <?= escape($run['referee']); ?></li><?php endif; ?>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="d-flex justify-content-end">
|
|
|
|
<?php if($admin===true): ?>
|
|
|
|
<button type="button" class="btn btn-secondary" hx-get="/runs/edit/<?= $run_id; ?>" hx-target="#main">
|
|
|
|
<i class="fas fa-edit"></i>
|
|
|
|
</button>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-10-31 11:26:54 +01:00
|
|
|
<div class="col" id="sitemain">
|
2023-10-30 22:20:13 +01:00
|
|
|
<div class="card p-2">
|
|
|
|
<h4>Ergebnisse</h4>
|
|
|
|
<p class="card-text">
|
2023-10-31 11:26:54 +01:00
|
|
|
<button hx-get="/runs/addresults/<?= $run_id; ?>" hx-push-url="/runs/addresults/<?= $run_id; ?>" hx-target="#main" class="btn btn-primary"><i class="fas fa-plus-circle"></i> Ergebnis Eintragen</button>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Platz</th>
|
|
|
|
<th>Disqualifiziert</th>
|
|
|
|
<th>Verweigerungen</th>
|
|
|
|
<th>Fehler</th>
|
|
|
|
<th>Zeitfehler</th>
|
|
|
|
<th>Zeit</th>
|
|
|
|
<th>Gesamtfehler</th>
|
|
|
|
<th>m/Sek</th>
|
|
|
|
<th>Bewertung</th>
|
|
|
|
<th>Teilnehmer</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php foreach($results as $result) : ?>
|
|
|
|
<tr>
|
2023-10-31 15:32:29 +01:00
|
|
|
<td><?= escape($result['ranking']); ?></td>
|
|
|
|
<td><?= $result['disqualified']?'Ja':'Nein'; ?></td>
|
2023-10-31 11:26:54 +01:00
|
|
|
<td><?= escape($result['refusals']); ?></td>
|
2023-10-31 15:32:29 +01:00
|
|
|
<td><?= escape($result['errors']); ?></td>
|
|
|
|
<td><?= escape($result['timefaults']); ?></td>
|
|
|
|
<td><?= escape($result['runtime']); ?></td>
|
2023-10-31 11:26:54 +01:00
|
|
|
<td><?= escape($result['penalties']); ?></td>
|
2023-10-31 15:32:29 +01:00
|
|
|
<td><?= escape($result['speed']); ?></td>
|
|
|
|
<td><?= escape($result['rating']); ?></td>
|
2023-10-31 15:35:42 +01:00
|
|
|
<td><a href="/dogs/overview/<?= $result['dog'] ?>"><?= escape( (new Dog())->getField('name',$result['dog']) ); ?></a></td>
|
2023-10-31 11:26:54 +01:00
|
|
|
</tr>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</tbody>
|
2023-10-31 22:43:08 +01:00
|
|
|
</table>
|
2023-10-30 22:20:13 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|