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

debian/bullseye debian/jessie
Last change on this file since a5d3a02 was 5149714, checked in by Joachim Langenbach <joachim.langenbach@…>, 10 years ago
  • Add favicon to webclient
  • Add icon to webclient title
  • javascript prints the numbers in the display formatted (one decimal) now
  • Property mode set to 100644
File size: 2.1 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 profile="http://www.w3.org/2005/10/profile">
40 <meta charset="utf-8"/>
41 <link rel="icon" type="image/png" href="resources/gnuboat-256-256-transparent.png"/>
42 <title>GNUBoat <?php echo (empty($headerTitle)) ? "" : " - ". $headerTitle; ?></title>
43 <link rel="stylesheet" href="css/main.css" type="text/css"/>
44<?php
45 foreach ($headerStylesheetLinks as $cssFile){
46 echo " <link rel=\"stylesheet\" content=\"text/css\" href=\"". $cssFile ."\"/>\n";
47 }
48?>
49 <script language="javascript" src="javascript/jquery-2.2.4.min.js" type="text/javascript"></script>
50 <script language="javascript" src="javascript/main.js" type="text/javascript"></script>
51<?php
52 foreach ($headerJavascriptLinks as $headerJavascriptLinks){
53 echo " <script language=\"javascript\" src=\"". $headerJavascriptLinks ."\" type=\"text/javascript\"></script>\n";
54 }
55 if(!empty($headerJavascript)){
56 echo " <script language=\"javascript\" type=\"text/javascript\">". $headerJavascript ."</script>\n";
57 }
58?>
59 </head>
60 <body>
Note: See TracBrowser for help on using the repository browser.