added first version of the subpages

This commit is contained in:
2022-04-20 23:23:25 +02:00
parent 844e3f3226
commit 117cba0e2c
6 changed files with 59 additions and 7 deletions

View File

@@ -1,7 +1,14 @@
FROM php:fpm
# update the image
RUN apt update && apt upgrade -y
# install pdo mysql extension
RUN docker-php-ext-install pdo pdo_mysql
# install xdebug for php
RUN pecl install xdebug && docker-php-ext-enable xdebug
# install ldap module
RUN apt install -y libldap2-dev
RUN docker-php-ext-install ldap

1
app/database_queries.php Normal file
View File

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

View File

@@ -1,8 +1,19 @@
<?php
$pdo = new PDO('mysql:dbname=tutorial;host=mysql', 'grisu', 'secret', [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]);
<!DOCTYPE html>
<html>
<head>
<title>Punktesystem</title>
</head>
$query = $pdo->query('SHOW VARIABLES like "version"');
<header>
<nav>
<p><a href="mannschaft.php">Mannschaftsverwaltung</a></p>
<p><a href="stationen.php">Stationen</a></p>
<p><a href="statistik.php">Statistik</a></p>
</nav>
</header>
$row = $query->fetch();
echo 'MySQL version:' . $row['Value'];
<body>
<h1></h1>
<p><?php phpinfo() ?></p>
</body>
</html>

11
app/public/mannschaft.php Normal file
View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<head>
<title>Punktesystem</title>
</head>
<header>
<nav>
<p><a href="index.php">Startseite</a></p>
<p><a href="stationen.php">Stationen</a></p>
<p><a href="statistik.php">Statistik</a></p>
</nav>
</header>

11
app/public/stationen.php Normal file
View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<head>
<title>Punktesystem</title>
</head>
<header>
<nav>
<p><a href="mannschaft.php">Mannschaftsverwaltung</a></p>
<p><a href="index.php">Startseite</a></p>
<p><a href="statistik.php">Statistik</a></p>
</nav>
</header>

11
app/public/statistik.php Normal file
View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<head>
<title>Punktesystem</title>
</head>
<header>
<nav>
<p><a href="mannschaft.php">Mannschaftsverwaltung</a></p>
<p><a href="stationen.php">Stationen</a></p>
<p><a href="index.php">Startseite</a></p>
</nav>
</header>