2022-02-07 10:09:16 +00:00
|
|
|
<h1>Endre lagtabell</h1>
|
2022-03-07 10:11:33 +00:00
|
|
|
<span class="float-right">[ <a class="success" href="update.php">Opprett lag</a> ]</span>
|
2022-03-20 21:02:26 +00:00
|
|
|
<span class="float-right">[ <a class="danger" href="../reset.php">Nullstill runder</a> ] </span>
|
2022-02-05 14:43:48 +00:00
|
|
|
<br>
|
|
|
|
<table>
|
|
|
|
<tr>
|
2022-02-15 12:07:18 +00:00
|
|
|
<th>#</th>
|
2022-02-05 14:43:48 +00:00
|
|
|
<th>Navn</th>
|
|
|
|
<th>Bedrift</th>
|
|
|
|
<th>Kortnummer</th>
|
|
|
|
<th>Leder</th>
|
|
|
|
<th>Telefon</th>
|
|
|
|
<th>Deltagere</th>
|
|
|
|
<th>Runder</th>
|
|
|
|
<th>Bestetid</th>
|
2022-02-09 02:13:46 +00:00
|
|
|
<th>Handling</th>
|
2022-02-05 14:43:48 +00:00
|
|
|
</tr>
|
|
|
|
<?php
|
2022-02-28 04:54:57 +00:00
|
|
|
$i = 0;
|
2022-02-28 04:51:22 +00:00
|
|
|
foreach ($teams as $team) {
|
|
|
|
$i++;
|
2022-02-05 14:43:48 +00:00
|
|
|
echo '<tr>';
|
2022-03-07 06:13:17 +00:00
|
|
|
echo "<td>" . $i . "</td>";
|
|
|
|
echo "<td>" . htmlspecialchars($team->name) . "</td>";
|
|
|
|
echo "<td>" . htmlspecialchars($team->company) . "</td>";
|
|
|
|
echo "<td>" . htmlspecialchars($team->cardnumber) . "</td>";
|
|
|
|
echo "<td>" . htmlspecialchars($team->leader) . "</td>";
|
|
|
|
echo "<td>" . htmlspecialchars($team->phone) . "</td>";
|
|
|
|
echo "<td>" . htmlspecialchars($team->participants) . "</td>";
|
|
|
|
echo "<td>" . htmlspecialchars($team->rounds) . "</td>";
|
2022-03-14 10:36:45 +00:00
|
|
|
echo "<td>" . htmlspecialchars(($team->bestTime === NULL) ? "Ukjent" : $team->bestTime) . "</td>";
|
2022-02-28 04:51:22 +00:00
|
|
|
echo "<td>";
|
2022-03-20 21:02:26 +00:00
|
|
|
echo "<span>[ <a class='danger' href='delete.php?item={$team->id}'>Slett</a> ] </span>";
|
2022-03-07 06:13:17 +00:00
|
|
|
echo "<span>[ <a class='info' href='update.php?item={$team->id}'>Endre</a> ]</span>";
|
2022-02-28 04:51:22 +00:00
|
|
|
echo "</td>";
|
2022-02-05 14:43:48 +00:00
|
|
|
echo '</tr>';
|
|
|
|
}
|
|
|
|
?>
|
2022-02-28 03:14:53 +00:00
|
|
|
</table>
|