added styles for tables

This commit is contained in:
2022-06-07 10:20:06 +02:00
parent 7c13d2a8e9
commit 430eaa8586
5 changed files with 43 additions and 3 deletions

View File

@@ -1 +0,0 @@
<?php

View File

@@ -44,4 +44,26 @@ h1 {
h1 span{
font-weight: 400;
}
div.table-div {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
}
div.table-div table{
table-layout: flex;
display: block;
align-items: center;
justify-content: center;
border-collapse: collapse;
}
div.table-div th,td {
border: 1px solid;
padding-left: 2.5vw;
padding-right: 2.5vw;
padding-bottom: 0.5vw;
}

View File

@@ -11,8 +11,8 @@
<header>
<section>
<div id="logo">
<img src="Bilder/Jugendfeuerwehr-Altdorf.gif" alt="">
Punktesystem-KSP</div>
Punktesystem-KSP
</div>
<nav>
<a href="index.php">Home</a>
<a href="mannschaft.php">Mannschaftsverwaltung</a>

View File

@@ -0,0 +1,16 @@
<?php
function get_Station() {
try {
$dbh = new PDO('mysql:host=mysql;dbname=ksp', 'grisu', 'secret');
foreach($dbh->query('SELECT * from Station') as $row) {
print_r($row);
}
$dbh = null;
} catch(PDOException $e) {
print "Error!: " . $e->getMessage() . "<br/>";
die();
}
}
?>

View File

@@ -7,6 +7,9 @@ services:
volumes:
- ./nginx.conf:/etc/nginx/conf.d/nginx.conf
- ./app:/app
links:
- php
- mysql
php:
build:
context: .