This commit is contained in:
William 2022-02-07 11:05:53 +01:00
parent f41acb88c0
commit b5cd0c82a8
3 changed files with 7 additions and 14 deletions

View File

@ -39,7 +39,11 @@
<li><a href="<?=$this->config['root_url']?>index.php">Forside</a></li>
<li><a href="<?=$this->config['root_url']?>example.php">Eksempel</a></li>
<li><a href="<?=$this->config['root_url']?>simulator.php">Simulator</a></li>
<li><a href="<?=$this->config['root_url']?>view-teams.php">Se lagtabell</a></li>
<li><a href="<?=$this->config['root_url']?>teamtable/index.php">Se lagene</a></li>
</ul>
<h4>Rettigheter</h4>
<ul>
<li><a href="<?=$this->config['root_url']?>teamtable/edit/index.php">Endre lagene</a></li>
</ul>
</div>

View File

@ -132,14 +132,12 @@ table {
}
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;
font-weight: bold;
text-align: center;
}

View File

@ -1,9 +0,0 @@
<?php
$app = require '../app/inc.php';
$sth = $app->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');