This commit is contained in:
FlyInTheBox 2023-05-17 14:39:43 +02:00
parent da496f7908
commit 6f6723d927
13 changed files with 92 additions and 0 deletions

View file

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

View file

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

View file

@ -0,0 +1,41 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Biblioteka</title>
<link rel="stylesheet" href="style/style.css">
</head>
<body>
<nav>
<a class="linki" href="?PAGE=mainpage">Strona główna</a>
<a class="linki" href="?PAGE=db_conn">Test Połączenia</a>
<a class="linki" href="?PAGE=listatabel">Lista tabel</a>
<a class="linki" href="?PAGE=czytelnicy">Tabela czytelnicy</a>
<a class="linki" href="?PAGE=dzialy">Tabela działy</a>
<a class="linki" href="?PAGE=ksiazki">Tabela książki</a>
<a class="linki" href="?PAGE=pracownicy">Tabela pracownicy</a>
<a class="linki" href="?PAGE=stanowiska">Tabela stanowiska</a>
<a class="linki" href="?PAGE=wypozyczenia">Tabela wypożyczenia</a>
<hr>
<a class="linki" href="?PAGE=login">Logowanie</a>
</nav>
<div class="container">
<div class="content">
<?php
if (isset($_GET['PAGE'])) {
if (file_exists('pages/' . $_GET['PAGE'] . '.php'))
include('pages/' . $_GET['PAGE'] . '.php');
else
echo '<h2>Ta strona nie istnieje</h2>';
}
?>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1 @@
<h1>Tabela czytelnicy</h1>

View file

@ -0,0 +1 @@
<h1>Tabela działy</h1>

View file

@ -0,0 +1 @@
<h1>Tabela książki</h1>

View file

@ -0,0 +1 @@
<h1>Lista tabel</h1>

View file

@ -0,0 +1 @@
<h1>Logowanie</h1>

View file

@ -0,0 +1 @@
<h1>Strona główna</h1>

View file

@ -0,0 +1 @@
<h1>Tabela pracownicy</h1>

View file

@ -0,0 +1 @@
<h1>Tabela stanowiska</h1>

View file

@ -0,0 +1 @@
<h1>Tabela wypożyczenia</h1>

View file

@ -0,0 +1,40 @@
body{
font-family: "Droid Sans";
}
nav {
position: absolute;
left: 0;
top: 0;
height: 100vh;
width: 15vw;
background-color: darkorange;
display: flex;
flex-direction: column;
}
.container {
position: absolute;
width: 85vw;
height: 100vh;
top: 0;
right: 0;
}
.content {
padding: 2vw;
position: absolute;
width: 81vw;
background-color: burlywood;
top: 0;
}
.linki {
width: 13.7vw;
text-decoration: none;
color: aliceblue;
padding-left: 1.3vw;
line-height: 6vh;
animation: ease 200ms;
}
.linki:hover{
background-color: chocolate;
}