source: src/webapp/webclient/root/inc/header.php@ b5208ff

0.5 app-cordova debian/bullseye debian/jessie
Last change on this file since b5208ff was e62038b, checked in by Joachim Langenbach <joachim.langenbach@…>, 10 years ago

Added construction plans and therefore restructered the folder structure

Signed-off-by: Joachim Langenbach <joachim.langenbach@…>

  • Property mode set to 100644
File size: 2.0 KB
Line 
1<?php
2/*
3 Copyright (C) 2016 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19// error_reporting(E_WARNING & E_ERROR);
20error_reporting(E_ALL);
21ini_set('display_errors', true);
22
23if(!isset($headerStylesheetLinks)){
24 $headerStylesheetLinks = Array();
25}
26if(!isset($headerJavascriptLinks)){
27 $headerJavascriptLinks = Array();
28}
29if(!isset($headerTitle)){
30 $headerTitle = "";
31}
32if(!isset($headerJavascript)){
33 $headerJavascript = "";
34}
35
36?>
37 <!DOCTYPE HTML>
38 <html>
39 <head>
40 <meta charset="utf-8"/>
41 <title>GNUBoat <?php echo (empty($headerTitle)) ? "" : " - ". $headerTitle; ?></title>
42 <link rel="stylesheet" href="css/main.css" type="text/css"/>
43<?php
44 foreach ($headerStylesheetLinks as $cssFile){
45 echo " <link rel=\"stylesheet\" content=\"text/css\" href=\"". $cssFile ."\"/>\n";
46 }
47?>
48 <script language="javascript" src="javascript/jquery-2.2.4.min.js" type="text/javascript"></script>
49 <script language="javascript" src="javascript/main.js" type="text/javascript"></script>
50<?php
51 foreach ($headerJavascriptLinks as $headerJavascriptLinks){
52 echo " <script language=\"javascript\" src=\"". $headerJavascriptLinks ."\" type=\"text/javascript\"></script>\n";
53 }
54 if(!empty($headerJavascript)){
55 echo " <script language=\"javascript\" type=\"text/javascript\">". $headerJavascript ."</script>\n";
56 }
57?>
58 </head>
59 <body>
Note: See TracBrowser for help on using the repository browser.