38 lines
1.3 KiB
PHP
38 lines
1.3 KiB
PHP
<h1>Endre lagtabell</h1>
|
|
<span class="float-right">[ <a class="success" href="update.php">Opprett lag</a> ]</span>
|
|
<br>
|
|
<table>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>Navn</th>
|
|
<th>Bedrift</th>
|
|
<th>Kortnummer</th>
|
|
<th>Leder</th>
|
|
<th>Telefon</th>
|
|
<th>Deltagere</th>
|
|
<th>Runder</th>
|
|
<th>Bestetid</th>
|
|
<th>Handling</th>
|
|
</tr>
|
|
<?php
|
|
$i = 0;
|
|
foreach ($teams as $team) {
|
|
$i++;
|
|
echo '<tr>';
|
|
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>";
|
|
echo "<td>" . "Ukjent" . "</td>";
|
|
echo "<td>";
|
|
echo "<span>[ <a class='danger' href='delete.php?item={$team->id}&confirm=1'>Slett</a> ]</span>";
|
|
echo "<span>[ <a class='info' href='update.php?item={$team->id}'>Endre</a> ]</span>";
|
|
echo "</td>";
|
|
echo '</tr>';
|
|
}
|
|
?>
|
|
</table>
|