www-thermferm/maintenance.php

changeset 134
f05601490415
child 172
f45c291c6331
equal deleted inserted replaced
133:345307762220 134:f05601490415
1 <?php
2 /*****************************************************************************
3 * Copyright (C) 2014
4 *
5 * Michiel Broek <mbroek at mbse dot eu>
6 *
7 * This file is part of ThermFerm
8 *
9 * This is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by the
11 * Free Software Foundation; either version 2, or (at your option) any
12 * later version.
13 *
14 * ThermFerm is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with ThermFerm; see the file COPYING. If not, write to the Free
21 * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
22 *****************************************************************************/
23
24 /*
25 * Look for the style names in the jqwidgets/styles directory.
26 */
27 $my_style = 'ui-redmond';
28
29 $outstr = '<!DOCTYPE html>'.PHP_EOL;
30 $outstr .= '<html>'.PHP_EOL;
31 $outstr .= ' <head>'.PHP_EOL;
32 $outstr .= ' <meta http-equiv="content-type" content="text/html; charset=utf-8" />'.PHP_EOL;
33 $outstr .= ' <title>ThermFerm monitor</title>'.PHP_EOL;
34 $outstr .= ' <link type="text/css" href="css/style.css" rel="stylesheet" media="all" />'.PHP_EOL;
35 $outstr .= ' <link type="text/css" href="jqwidgets/styles/jqx.base.css" rel="stylesheet" />'.PHP_EOL;
36 $outstr .= ' <link type="text/css" href="jqwidgets/styles/jqx.'.$my_style.'.css" rel="stylesheet" />'.PHP_EOL;
37 $outstr .= ' <script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>'.PHP_EOL;
38 $outstr .= ' <script type="text/javascript" src="jqwidgets/jqxcore.js"></script>'.PHP_EOL;
39 $outstr .= ' <script type="text/javascript" src="jqwidgets/jqxbuttons.js"></script>'.PHP_EOL;
40 $outstr .= ' </head>'.PHP_EOL;
41
42 $outstr .= ' <body class="default">'.PHP_EOL;
43 $outstr .= ' <div id="jqxWidget">'.PHP_EOL;
44 $outstr .= ' <div id="header">'.PHP_EOL;
45 $outstr .= ' <form action="index.php" style="margin:30px; float:right">'.PHP_EOL;
46 $outstr .= ' <input type="submit" class="jqx-button" value="Main Screen" />'.PHP_EOL;
47 $outstr .= ' </form>'.PHP_EOL;
48 $outstr .= ' </div> <!-- header -->'.PHP_EOL;
49 $outstr .= ' <div id="content">'.PHP_EOL;
50 $outstr .= ' Content'.PHP_EOL;
51 $outstr .= ' <ul>'.PHP_EOL;
52 $outstr .= ' <li><a href="global.php">Global Configuration</a></li>'.PHP_EOL;
53 $outstr .= ' <li><a href="devices.php">1-Wire Bus Devices</a></li>'.PHP_EOL;
54 $outstr .= ' <li><a href="profiles.php">Fermentation Profiles</a></li>'.PHP_EOL;
55 $outstr .= ' <li><a href="units.php">Fermentation Units</a></li>'.PHP_EOL;
56 $outstr .= ' </ul>'.PHP_EOL;
57 $outstr .= ' </div> <!-- content -->'.PHP_EOL;
58 $outstr .= ' </div> <!-- jqxWidget -->'.PHP_EOL;
59 $outstr .= ' </body>'.PHP_EOL;
60 $outstr .= '</html>'.PHP_EOL;
61
62 echo $outstr;
63

mercurial