-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
255 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
<?php | ||
/* | ||
+-------------------------------------------------------------------------+ | ||
| Copyright 2010-2018, Davide Franco | | ||
| | | ||
| This program is free software; you can redistribute it and/or | | ||
| modify it under the terms of the GNU General Public License | | ||
| as published by the Free Software Foundation; either version 2 | | ||
| of the License, or (at your option) any later version. | | ||
| | | ||
| This program is distributed in the hope that it will be useful, | | ||
| but WITHOUT ANY WARRANTY; without even the implied warranty of | | ||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | | ||
| GNU General Public License for more details. | | ||
+-------------------------------------------------------------------------+ | ||
*/ | ||
|
||
class HtmlHelper | ||
{ | ||
|
||
/** | ||
* Return html header | ||
* @return string | ||
*/ | ||
|
||
public static function getHtmlHeader() { | ||
|
||
$htmlHeader = '<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>Bacula-Web - Application error</title> | ||
<!-- Bootstrap front-end framework --> | ||
<link rel="stylesheet" href="vendor/twbs/bootstrap/dist/css/bootstrap.min.css"> | ||
<link rel="stylesheet" href="vendor/twbs/bootstrap/dist/css/bootstrap-theme.min.css"> | ||
<!-- Custom css --> | ||
<link rel="stylesheet" href="application/assets/css/default.css"> | ||
<!-- Font Awesome --> | ||
<link rel="stylesheet" href="vendor/components/font-awesome/css/font-awesome.min.css"> | ||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" > | ||
</head> | ||
<body>'; | ||
|
||
return $htmlHeader; | ||
} | ||
|
||
/** | ||
* Return Bootstrap navbar | ||
* @return string | ||
*/ | ||
|
||
public static function getNavBar() { | ||
$navbar = '<div class="navbar navbar-inverse navbar-fixed-top" role="navigation"> | ||
<div class="container-fluid"> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse"> | ||
<span class="sr-only">Toggle navigation</span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<a class="navbar-brand" href="index.php">Bacula-Web</a> | ||
</div> <!-- div class="navbar-header" --> | ||
</div> <!-- div class="collapse navbar-collapse"--> | ||
</div> <!-- div class="container-fluid" --> | ||
</div> <!-- class="navbar" --> | ||
'; | ||
return $navbar; | ||
} | ||
|
||
/** | ||
* Return html footer | ||
* @return string | ||
*/ | ||
|
||
public static function getHtmlFooter() { | ||
|
||
$htmlFooter = '<!-- JQuery and Bootstrap Javascript --> | ||
<script src="vendor/components/jquery/jquery.min.js"></script> | ||
<script src="vendor/moment/moment/min/moment-with-locales.js"></script> | ||
<script src="vendor/twbs/bootstrap/dist/js/bootstrap.min.js"></script> | ||
<script src="vendor/components/bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js"></script> | ||
<script src="vendor/1000hz/bootstrap-validator/dist/validator.min.js"></script> | ||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug --> | ||
<script src="application/assets/js/ie10-viewport-bug-workaround.js"></script> | ||
</body> | ||
</html>'; | ||
|
||
return $htmlFooter; | ||
} | ||
} | ||
|
||
// end class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.