This repository has been archived on 2023-01-06. You can view files and clone it, but cannot push or open issues or pull requests.
web/app/view/pages/teamtable/edit/index.php

44 lines
1.3 KiB
PHP
Raw Normal View History

2022-02-07 10:09:16 +00:00
<h1>Endre lagtabell</h1>
2022-02-15 11:26:15 +00:00
<span class="float-right">[&nbsp;<a class="success" href="add.php">Opprett lag</a>&nbsp;]</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++;
// Remember to escape your values!
foreach ($team as $key => $value)
2022-02-09 11:51:30 +00:00
{
2022-02-28 04:51:22 +00:00
$team[$key] = htmlspecialchars($team[$key]);
2022-02-09 11:51:30 +00:00
}
2022-02-28 04:51:22 +00:00
2022-02-05 14:43:48 +00:00
echo '<tr>';
2022-02-28 04:51:22 +00:00
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>[&nbsp;<a class='danger' href='delete.php?item={$team['LagID']}&confirmation=true'>Slett</a>&nbsp;]</span>";
echo "<span>[&nbsp;<a class='info' href='update.php?item={$team['LagID']}'>Endre</a>&nbsp;]</span>";
echo "</td>";
2022-02-05 14:43:48 +00:00
echo '</tr>';
}
?>
2022-02-28 03:14:53 +00:00
</table>