44 lines
1.3 KiB
PHP
44 lines
1.3 KiB
PHP
<h1>Endre lagtabell</h1>
|
|
<span class="float-right">[ <a class="success" href="add.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++;
|
|
// Remember to escape your values!
|
|
foreach ($team as $key => $value)
|
|
{
|
|
$team[$key] = htmlspecialchars($team[$key]);
|
|
}
|
|
|
|
echo '<tr>';
|
|
echo "<td>{$i}</td>";
|
|
echo "<td>{$team['LagNavn']}</td>";
|
|
echo "<td>{$team['Bedrift']}</td>";
|
|
echo "<td>{$team['Kortnummer']}</td>";
|
|
echo "<td>{$team['Lagleder']}</td>";
|
|
echo "<td>{$team['Telefon']}</td>";
|
|
echo "<td>{$team['Deltagere']}</td>";
|
|
echo "<td>{$team['Runder']}</td>";
|
|
echo "<td>{$team['Bestetid']}</td>";
|
|
echo "<td>";
|
|
echo "<span>[ <a class='danger' href='delete.php?item={$team['LagID']}&confirmation=true'>Slett</a> ]</span>";
|
|
echo "<span>[ <a class='info' href='update.php?item={$team['LagID']}'>Endre</a> ]</span>";
|
|
echo "</td>";
|
|
echo '</tr>';
|
|
}
|
|
?>
|
|
</table>
|