40 lines
1.3 KiB
PHP
40 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
|
|
$iterator = 0;
|
|
foreach ($teams as $row) {
|
|
++$iterator;
|
|
foreach ($row as $key => $value)
|
|
{
|
|
$row[$key] = htmlspecialchars($row[$key]);
|
|
}
|
|
echo '<tr>';
|
|
echo "<td>{$iterator}</td>";
|
|
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>";
|
|
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>";
|
|
echo '</tr>';
|
|
}
|
|
?>
|
|
</table>
|
|
<span class="float-right">[ <a class="success" href="add.php">Opprett lag</a> ]</span>
|