This repository was archived by the owner on Mar 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
53 lines (46 loc) · 1.34 KB
/
index.php
File metadata and controls
53 lines (46 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Projekt bazy danych</title>
<link rel="Stylesheet" type="text/css" href="style.css" />
<meta name="description" content="Baza danych">
<meta name="keywords" content="baza danych">
<meta name="author" content="Gal Anonim">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="header">
<h1>PROJEKT BAZY DANYCH</h1>
</div>
<div id="menu">
<ul>
<li><a href="index.php">Pokaż całą tabelę</a></li>
<li><a href="index.php?id=a">a)</a></li>
<li><a href="index.php?id=b">b)</a></li>
<li><a href="index.php?id=c">c)</a></li>
<li><a href="index.php?id=d">d)</a></li>
<li><a href="index.php?id=e">e)</a></li>
</ul>
</div>
<div id="content">
<br>
<?php
require('config.inc.php');
$id = isset($_GET['id']) ? $_GET['id'] : "";
switch($id)
{
case "a": require('a.html'); break;
case "b": require('b.html'); break;
case "c": require('c.html'); break;
case "d": require('d.html'); break;
case "e": require('e.html'); break;
default: require('table.html'); break;
}
?>
</div>
<div id="footer">
© 2018 Gal Anonim
</div>
</body>
</html>