-
Notifications
You must be signed in to change notification settings - Fork 0
/
FullScreenLayout.php
63 lines (59 loc) · 1.83 KB
/
FullScreenLayout.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
<?php
class FullScreenLayout {
private $headerHTML, $footerHTML;
function header() {
$this->headerHTML = <<<EOT
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<link rel="icon" href="../assets/img/target.png" type="image/gif" sizes="16x16">
<title>CRUD</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="../assets/css/bootstrap.min.css" rel="stylesheet">
<link href="../assets/css/mdb.min.css" rel="stylesheet">
<link href="../assets/css/style.css" rel="stylesheet">
<script type="text/javascript" src="../assets/js/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="../assets/js/popper.min.js"></script>
<script type="text/javascript" src="../assets/js/bootstrap.min.js"></script>
<script type="text/javascript" src="../assets/js/mdb.min.js"></script>
<script>
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
});
</script>
<style>
</style>
</head>
<body>
<nav class="navbar">
<a class="navbar-brand" href="../view/index.php">Asset Management</a>
<a href="../view/create.php">
<button type="button" class="btn btn-primary btn-sm" >
<i class="fa fa-plus"></i> ADD
</button>
</a>
</nav>
<div class="container-fluid">
EOT;
return $this->headerHTML;
}
function footer() {
$year = date('Y');
$this->footerHTML = <<<EOT
</div>
<footer class="page-footer">
<div class="footer-copyright py-3 text-center">
© $year Copyright Reserved
<a href="../view/index.php"></a>
</div>
</footer>
</body>
</html>
EOT;
return $this->footerHTML;
}
}
?>