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/index.php
2022-02-28 05:54:57 +01:00

38 lines
953 B
PHP

<h1>Lagtabell</h1>
<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>
</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 '</tr>';
}
?>
</table>