From 65735fb4575bf03b23b9d249f55dbab351779127 Mon Sep 17 00:00:00 2001 From: William Date: Sat, 5 Feb 2022 15:43:48 +0100 Subject: [PATCH] Commit --- app/view/view-teams.php | 24 ++++++++++++++++++++++++ public/static/style/main.css | 18 ++++++++++++++++++ public/view-teams.php | 9 +++++++++ 3 files changed, 51 insertions(+) create mode 100644 app/view/view-teams.php create mode 100644 public/view-teams.php 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