This commit is contained in:
William 2022-02-09 03:13:46 +01:00
parent 55b92a3783
commit 843fc4ec33
3 changed files with 13 additions and 6 deletions

View File

@ -2,7 +2,6 @@
<br>
<table>
<tr>
<th>ID</th>
<th>Navn</th>
<th>Bedrift</th>
<th>Kortnummer</th>
@ -11,13 +10,20 @@
<th>Deltagere</th>
<th>Runder</th>
<th>Bestetid</th>
<th>Handling</th>
</tr>
<?php
foreach ($teams as $row) {
echo '<tr>';
foreach ($row as $key) {
echo "<td>$key</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><a href='delete.php?item={$row['LagID']}'>Slett</td>";
echo '</tr>';
}
?>

View File

@ -14,6 +14,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST')
$app->session->flash("Velkommen {$_POST['username']}!");
$app->redirect('index.php');
}
http_response_code(401);
$app->session->flash('Feil påloggingsinformasjon', 'danger');
}

View File

@ -131,7 +131,7 @@ table {
width: 100%;
}
table td, table th {
border: 0.05rem solid #aaa;
border-bottom: 0.05rem solid #aaa;
padding: 0.05rem 0.25rem 0.05rem 0.25rem;
}
table tr:nth-child(even) {
@ -139,5 +139,5 @@ table tr:nth-child(even) {
}
table th {
font-weight: bold;
text-align: center;
text-align: left;
}