2022-02-07 10:09:16 +00:00
|
|
|
<h1>Endre lagtabell</h1>
|
2022-02-15 11:26:15 +00:00
|
|
|
<span class="float-right">[ <a class="success" href="add.php">Opprett lag</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-15 12:07:18 +00:00
|
|
|
$iterator = 0;
|
2022-02-05 14:43:48 +00:00
|
|
|
foreach ($teams as $row) {
|
2022-02-15 12:07:18 +00:00
|
|
|
++$iterator;
|
2022-02-09 11:51:30 +00:00
|
|
|
foreach ($row as $key => $value)
|
|
|
|
{
|
|
|
|
$row[$key] = htmlspecialchars($row[$key]);
|
|
|
|
}
|
2022-02-05 14:43:48 +00:00
|
|
|
echo '<tr>';
|
2022-02-15 12:07:18 +00:00
|
|
|
echo "<td>{$iterator}</td>";
|
2022-02-09 02:13:46 +00:00
|
|
|
echo "<td>{$row['LagNavn']}</td>";
|
|
|
|
echo "<td>{$row['Bedrift']}</td>";
|
|
|
|
echo "<td>{$row['Kortnummer']}</td>";
|
|
|
|
echo "<td>{$row['Lagleder']}</td>";
|
|
|
|
echo "<td>{$row['Telefon']}</td>";
|
|
|
|
echo "<td>{$row['Deltagere']}</td>";
|
|
|
|
echo "<td>{$row['Runder']}</td>";
|
|
|
|
echo "<td>{$row['Bestetid']}</td>";
|
2022-02-14 01:52:59 +00:00
|
|
|
echo "<td><span>[ <a class='danger' href='delete.php?item={$row['LagID']}&confirmation=true'>Slett</a> ]</span> <span>[ <a class='info' href='update.php?item={$row['LagID']}'>Endre</a> ]</span></td>";
|
2022-02-05 14:43:48 +00:00
|
|
|
echo '</tr>';
|
|
|
|
}
|
|
|
|
?>
|
2022-02-14 01:52:59 +00:00
|
|
|
</table>
|
2022-02-15 11:26:15 +00:00
|
|
|
<span class="float-right">[ <a class="success" href="add.php">Opprett lag</a> ]</span>
|