-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheader2.php
56 lines (53 loc) · 2.03 KB
/
header2.php
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
54
55
56
<?php
require($_SERVER['DOCUMENT_ROOT']. '/api/2/orginal_db.php');
require($_SERVER['DOCUMENT_ROOT']. '/statistic.php');
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<base href="/"> <!-- https://fs-quiz.eu/ -->
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<script src="js/bootstrap.min.js"></script>
<?php
$menu = array(
'./home' => 'Home',
'./quizzes' => 'Quizzes',
'./search' => 'Search',
'http://api.fs-quiz.eu' => 'API',
'./about' => 'About'
);
?>
<title><?php echo $titel ?></title>
</head>
<body class="d-flex flex-column min-vh-100">
<div class="alert alert-info alert-dismissible fade show mb-0" role="alert">
<div class="col-lg-8 mx-auto">
I wish you good success with the quizzes
</div>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<!-- Navigation -->
<header class="p-3 bg-dark text-white">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid col-lg-8">
<a class="navbar-brand" href="./home"><img src="/img/icons/favicon/favicon-96x96.png" alt="" width="30" height="30" class="d-inline-block align-text-top me-2">FS-Quiz</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarTogglerDemo01" aria-controls="navbarTogglerDemo01" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarTogglerDemo01">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<?php foreach( $menu as $menpage => $menlabel ) : ?>
<li class="nav-item">
<a class="nav-link <?php if ($pagename == $menpage) {echo 'active';} ?>" href="<?php echo $menpage ; ?>"><?php echo $menlabel ; ?></a>
</li>
<?php endforeach ?>
</ul>
</div>
</div>
</nav>
</header>
</body>