-
Notifications
You must be signed in to change notification settings - Fork 6
/
info.php
64 lines (52 loc) · 1.67 KB
/
info.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
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Info</title>
<!-- Required stylesheets -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<!-- Required fonts -->
<link href="https://fonts.googleapis.com/css?family=Oswald:400,700|Vollkorn:400,700" rel="stylesheet">
<!-- Required scripts -->
<script src="js/jquery.min.js" charset="utf-8"></script>
<script src="js/bootstrap.min.js" charset="utf-8"></script>
<script src="js/scripts.js" charset="utf-8"></script>
</head>
<body>
<!-- Including the navbar -->
<?php
include('connect.php');
$_SESSION['page'] = 'info';
?>
<!-- Including the header -->
<?php include('header.php'); ?>
<?php
$alert_class = '';
if (isset($_SESSION['message']) && isset($_SESSION['type'])) {
if ($_SESSION['type'] == 'error') {
$alert_class = 'alert-danger';
}elseif ($_SESSION['type'] == 'success') {
$alert_class = 'alert-success';
}
}
?>
<!-- Site body -->
<div class="container-fluid site-body">
<div class="row info-row">
<div class="col-sm-4 col-sm-offset-4">
<div class="alert <?php echo($alert_class); ?>">
<?php echo($_SESSION['message']); ?>
<?php
unset($_SESSION['message']);
unset($_SESSION['type']);
?>
</div>
</div>
</div>
</div> <!-- /site-body -->
<!-- Including the footer -->
<?php include('footer.php'); ?>
</body>
</html>