www-thermferm/index.php

Fri, 11 Jul 2014 22:53:33 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 11 Jul 2014 22:53:33 +0200
changeset 100
012576d7386d
parent 99
5dccd1d8d817
child 112
d82c5499285c
permissions
-rw-r--r--

Basic web idea

97
4a9dbee41a6c Added initial set for the thermferm web interface
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
1 <?php
4a9dbee41a6c Added initial set for the thermferm web interface
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
2 /*****************************************************************************
4a9dbee41a6c Added initial set for the thermferm web interface
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
3 * Copyright (C) 2014
4a9dbee41a6c Added initial set for the thermferm web interface
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
4 *
4a9dbee41a6c Added initial set for the thermferm web interface
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
5 * Michiel Broek <mbroek at mbse dot eu>
4a9dbee41a6c Added initial set for the thermferm web interface
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
6 *
4a9dbee41a6c Added initial set for the thermferm web interface
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
7 * This file is part of ThermFerm
4a9dbee41a6c Added initial set for the thermferm web interface
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
8 *
4a9dbee41a6c Added initial set for the thermferm web interface
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
9 * This is free software; you can redistribute it and/or modify it
4a9dbee41a6c Added initial set for the thermferm web interface
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
10 * under the terms of the GNU General Public License as published by the
4a9dbee41a6c Added initial set for the thermferm web interface
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
11 * Free Software Foundation; either version 2, or (at your option) any
4a9dbee41a6c Added initial set for the thermferm web interface
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
12 * later version.
4a9dbee41a6c Added initial set for the thermferm web interface
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
13 *
4a9dbee41a6c Added initial set for the thermferm web interface
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
14 * ThermFerm is distributed in the hope that it will be useful, but
4a9dbee41a6c Added initial set for the thermferm web interface
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
4a9dbee41a6c Added initial set for the thermferm web interface
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4a9dbee41a6c Added initial set for the thermferm web interface
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
17 * General Public License for more details.
4a9dbee41a6c Added initial set for the thermferm web interface
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
18 *
4a9dbee41a6c Added initial set for the thermferm web interface
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
19 * You should have received a copy of the GNU General Public License
4a9dbee41a6c Added initial set for the thermferm web interface
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
20 * along with ThermFerm; see the file COPYING. If not, write to the Free
4a9dbee41a6c Added initial set for the thermferm web interface
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
21 * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
4a9dbee41a6c Added initial set for the thermferm web interface
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
22 *****************************************************************************/
99
5dccd1d8d817 Cleanup
Michiel Broek <mbroek@mbse.eu>
parents: 98
diff changeset
23
5dccd1d8d817 Cleanup
Michiel Broek <mbroek@mbse.eu>
parents: 98
diff changeset
24
100
012576d7386d Basic web idea
Michiel Broek <mbroek@mbse.eu>
parents: 99
diff changeset
25 require_once('liveview.php');
012576d7386d Basic web idea
Michiel Broek <mbroek@mbse.eu>
parents: 99
diff changeset
26
012576d7386d Basic web idea
Michiel Broek <mbroek@mbse.eu>
parents: 99
diff changeset
27
99
5dccd1d8d817 Cleanup
Michiel Broek <mbroek@mbse.eu>
parents: 98
diff changeset
28 $outstr = '<!DOCTYPE html>'.PHP_EOL;
5dccd1d8d817 Cleanup
Michiel Broek <mbroek@mbse.eu>
parents: 98
diff changeset
29 $outstr .= '<html>'.PHP_EOL;
5dccd1d8d817 Cleanup
Michiel Broek <mbroek@mbse.eu>
parents: 98
diff changeset
30 $outstr .= ' <head>'.PHP_EOL;
5dccd1d8d817 Cleanup
Michiel Broek <mbroek@mbse.eu>
parents: 98
diff changeset
31 $outstr .= ' <meta http-equiv="content-type" content="text/html; charset=utf-8" />'.PHP_EOL;
5dccd1d8d817 Cleanup
Michiel Broek <mbroek@mbse.eu>
parents: 98
diff changeset
32 $outstr .= ' <title>ThermFerm monitor</title>'.PHP_EOL;
5dccd1d8d817 Cleanup
Michiel Broek <mbroek@mbse.eu>
parents: 98
diff changeset
33 $outstr .= ' <link type="text/css" href="css/style.css" rel="stylesheet" media="all" />'.PHP_EOL;
5dccd1d8d817 Cleanup
Michiel Broek <mbroek@mbse.eu>
parents: 98
diff changeset
34 $outstr .= ' </head>'.PHP_EOL;
5dccd1d8d817 Cleanup
Michiel Broek <mbroek@mbse.eu>
parents: 98
diff changeset
35 $outstr .= ' <body class="page">'.PHP_EOL;
5dccd1d8d817 Cleanup
Michiel Broek <mbroek@mbse.eu>
parents: 98
diff changeset
36 $outstr .= ' <div id="container" class="container_16">'.PHP_EOL;
5dccd1d8d817 Cleanup
Michiel Broek <mbroek@mbse.eu>
parents: 98
diff changeset
37 $outstr .= ' <div id="header">'.PHP_EOL;
5dccd1d8d817 Cleanup
Michiel Broek <mbroek@mbse.eu>
parents: 98
diff changeset
38 $outstr .= ' <div id="logo">'.PHP_EOL;
100
012576d7386d Basic web idea
Michiel Broek <mbroek@mbse.eu>
parents: 99
diff changeset
39 $outstr .= ' <img src="images/thermferm_logo.png" width="94" height="80">'.PHP_EOL;
99
5dccd1d8d817 Cleanup
Michiel Broek <mbroek@mbse.eu>
parents: 98
diff changeset
40 $outstr .= ' </div>'.PHP_EOL;
5dccd1d8d817 Cleanup
Michiel Broek <mbroek@mbse.eu>
parents: 98
diff changeset
41 $outstr .= ' <button class="script-status ui-state-error"></button>'.PHP_EOL;
5dccd1d8d817 Cleanup
Michiel Broek <mbroek@mbse.eu>
parents: 98
diff changeset
42 $outstr .= ' <button id="maintenance" class="ui-state-default">Maintenance panel</button>'.PHP_EOL;
5dccd1d8d817 Cleanup
Michiel Broek <mbroek@mbse.eu>
parents: 98
diff changeset
43 $outstr .= ' </div> <!-- header -->'.PHP_EOL;
5dccd1d8d817 Cleanup
Michiel Broek <mbroek@mbse.eu>
parents: 98
diff changeset
44 $outstr .= ' <div id="content">'.PHP_EOL;
100
012576d7386d Basic web idea
Michiel Broek <mbroek@mbse.eu>
parents: 99
diff changeset
45 $outstr .= liveview();
99
5dccd1d8d817 Cleanup
Michiel Broek <mbroek@mbse.eu>
parents: 98
diff changeset
46 $outstr .= ' </div> <!-- content -->'.PHP_EOL;
5dccd1d8d817 Cleanup
Michiel Broek <mbroek@mbse.eu>
parents: 98
diff changeset
47 $outstr .= ' </div> <!-- container -->'.PHP_EOL;
5dccd1d8d817 Cleanup
Michiel Broek <mbroek@mbse.eu>
parents: 98
diff changeset
48 $outstr .= ' </body>'.PHP_EOL;
5dccd1d8d817 Cleanup
Michiel Broek <mbroek@mbse.eu>
parents: 98
diff changeset
49 $outstr .= '</html>'.PHP_EOL;
5dccd1d8d817 Cleanup
Michiel Broek <mbroek@mbse.eu>
parents: 98
diff changeset
50
5dccd1d8d817 Cleanup
Michiel Broek <mbroek@mbse.eu>
parents: 98
diff changeset
51 echo $outstr;
5dccd1d8d817 Cleanup
Michiel Broek <mbroek@mbse.eu>
parents: 98
diff changeset
52

mercurial