-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate.php
38 lines (35 loc) · 1.15 KB
/
template.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
<?php
function emitHtmlHead( $title ) {
?>
<title><?= $title ?></title>
<link href="css/default.css" rel="stylesheet" type="text/css" />
<?php
}
function emitHeader( $title ) {
global $baseUrl;
?>
<div class="h1">
<h2><a href="<?= $baseUrl ?>/"><?= $title ?></a></h2>
</div>
<div class="tabs">
<ul>
<li><a href="<?= $baseUrl ?>/">Set Schedules</a></li>
<li><a href="<?= $baseUrl ?>/configure.php">Configure</a></li>
<li><a href="<?= $baseUrl ?>/logs.php">Logs</a></li>
<li><a href="<?= $baseUrl ?>/graphic-logs.php">Graphic logs</a></li>
<li><a href="<?= $baseUrl ?>/help.php" onclick="javascript:void window.open(
'<?= $baseUrl . "/help.php" ?>','popUpwindow',' width=1100,height=950,toolbar=0,menubar=0,location=0,status=1,scrollbars=1,resizable=1,left=0,top=0');
return false;">Help</a> <? print " ---------- "; require( 'emit-current-time.php' ); ?>
</li>
</ul>
</div>
<?php
}
function emitFooter() {
?>
<div class="footnote">
Licensed under <a href="LICENSE">GPLv3</a>.
More info: <a href="https://github.com/infinityab/Solar-IOT">https://github.com/infinityab/Solar-IOT</a></p>
</div>
<?php
}