forked from aarpon/hrm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.inc.php
143 lines (111 loc) · 3.6 KB
/
header.inc.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<?php
// This file is part of the Huygens Remote Manager
// Copyright and license notice: see license.txt
use hrm\Util;
use hrm\System;
require_once dirname(__FILE__) . '/inc/bootstrap.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- Include jQuery -->
<script type="text/javascript" src="scripts/jquery-1.8.3.min.js"></script>
<!-- Main stylesheets -->
<link rel="stylesheet" type="text/css" href="css/fonts.css?v=3.7">
<link rel="stylesheet" type="text/css" href="css/default.css?v=3.7">
<!-- Themes -->
<link rel="stylesheet" type="text/css" href="css/themes/dark.css?v=3.7" title="dark">
<link rel="alternate stylesheet" type="text/css" href="css/themes/light.css?v=3.7" title="light">
<?php
if (Util::using_IE()) {
echo '<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>';
}
?>
<title>Huygens Remote Manager</title>
<?php
$ico = 'images/hrm_custom.ico';
if (!file_exists($ico)) {
$ico = 'images/hrm.ico';
}
echo ' <link rel="SHORTCUT ICON" href="' . $ico . '"/>';
?>
<link rel="stylesheet" href="scripts/jqTree/jqtree.css">
<link rel="stylesheet" href="css/jqtree-custom.css">
<link rel="stylesheet" href="scripts/jquery-ui/jquery-ui-1.9.1.custom.css">
<!-- Include jQuery -->
<script type="text/javascript" src="scripts/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="scripts/common.js"></script>
<?php
if (isset($script)) {
if (is_array($script)) {
foreach ($script as $current) {
// Workaround for the lack of canvas in IE
if ($current == "highcharts/excanvas.compiled.js") {
?>
<!--[if IE]>
<script type="text/javascript"
src="scripts/<?php echo $current ?>"></script>
<![endif]-->
<?php
} else {
?>
<script type="text/javascript"
src="scripts/<?php echo $current ?>"></script>
<?php
}
}
} else {
// Workaround for the lack of canvas in IE
if ($script == "highcharts/excanvas.compiled.js") {
?>
<!--[if IE]>
<script type="text/javascript"
src="scripts/<?php echo $script ?>"></script>
<![endif]-->
<?php
} else {
?>
<script type="text/javascript"
src="scripts/<?php echo $script ?>"></script>
<?php
}
}
}
if (isset($generatedScript)) {
?>
<script type="text/javascript"><?php echo $generatedScript ?></script>
<?php
}
?>
<!-- Theming support -->
<script type="text/javascript" src="scripts/theming.js"></script>
<!--[if lt IE 9]>
<h3>This browser is OBSOLETE and is known to have important issues with HRM.
Please upgrade to a later version of Internet Explorer or to a new
browser altogether.</h3>
<![endif]-->
<?php
$custom_css = "css/custom.css";
if (file_exists($custom_css)) {
echo ' <link rel="stylesheet" href="' . $custom_css . '">' . "\n";
}
?>
<script>
<!-- Apply the theme -->
apply_stored_or_default_theme();
</script>
</head>
<body>
<!--
// Use the great Tooltip JavaScript Library by Walter Zorn
-->
<script type="text/javascript" src="./scripts/wz_tooltip/wz_tooltip.js"></script>
<div id="basket">
<?php if (!isset($excludeTitle)) { ?>
<div id="title">
<h1>
Huygens Remote Manager
</h1>
</div>
<?php } ?>