diff --git a/app/view/view-teams.php b/app/view/view-teams.php new file mode 100644 index 0000000..cf9c5b1 --- /dev/null +++ b/app/view/view-teams.php @@ -0,0 +1,24 @@ +

Lagtabell

+
+ + + + + + + + + + + + + '; + foreach ($row as $key) { + echo ""; + } + echo ''; + } + ?> +
IDNavnBedriftKortnummerLederTelefonDeltagereRunderBestetid
$key
\ No newline at end of file diff --git a/public/static/style/main.css b/public/static/style/main.css index edc9e9f..65979d1 100644 --- a/public/static/style/main.css +++ b/public/static/style/main.css @@ -118,4 +118,22 @@ a { background: #fff3cd; border-color: #dfc678; background: linear-gradient(0deg, rgb(251, 229, 161) 0%, rgb(255, 243, 205) 100%); +} + +table { + border-collapse: collapse; + width: 100%; +} +table td, table th { + border: 0.05rem solid #aaa; + font-weight: normal; + padding: 0.05rem 0.25rem 0.05rem 0.25rem; +} +table tr:nth-child(even) { + background-color: #fff; +} +table th { + text-align: left; + background-color: #222; + color: #eee; } \ No newline at end of file diff --git a/public/view-teams.php b/public/view-teams.php new file mode 100644 index 0000000..0115699 --- /dev/null +++ b/public/view-teams.php @@ -0,0 +1,9 @@ +database->conn->query('SELECT * FROM lagtabell'); +$teams = $sth->fetchAll(PDO::FETCH_ASSOC); + +$app->view('template/header', ['title' => 'Lagtabell']); +$app->view('view-teams', ["teams" => $teams]); +$app->view('template/footer'); \ No newline at end of file