www-thermferm/maintenance.php

changeset 173
7259ee8778e9
parent 172
f45c291c6331
child 260
ef1469dd92e7
equal deleted inserted replaced
172:f45c291c6331 173:7259ee8778e9
19 * You should have received a copy of the GNU General Public License 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 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. 21 * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
22 *****************************************************************************/ 22 *****************************************************************************/
23 23
24 require_once('utilities.php');
24 /* 25 /*
25 * Look for the style names in the jqwidgets/styles directory. 26 * Look for the style names in the jqwidgets/styles directory.
26 */ 27 */
27 $my_style = 'ui-redmond'; 28 $my_style = 'ui-redmond';
28 29
29 $outstr = '<!DOCTYPE html>'.PHP_EOL; 30 $outstr = '<!DOCTYPE html>'.PHP_EOL;
30 $outstr .= '<html>'.PHP_EOL; 31 $outstr .= '<html>'.PHP_EOL;
31 $outstr .= ' <head>'.PHP_EOL; 32 $outstr .= ' <head>'.PHP_EOL;
32 $outstr .= ' <meta http-equiv="content-type" content="text/html; charset=utf-8" />'.PHP_EOL; 33 $outstr .= ' <meta http-equiv="content-type" content="text/html; charset=utf-8" />'.PHP_EOL;
33 $outstr .= ' <title>ThermFerm monitor</title>'.PHP_EOL; 34 $outstr .= ' <title>ThermFerm - Maintenance Menu</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="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; 36 $outstr .= ' </head>'.PHP_EOL;
41
42 $outstr .= ' <body class="default">'.PHP_EOL; 37 $outstr .= ' <body class="default">'.PHP_EOL;
43 $outstr .= ' <div id="jqxWidget">'.PHP_EOL; 38 $outstr .= ' <div id="jqxWidget">'.PHP_EOL;
44 $outstr .= ' <div id="header">'.PHP_EOL; 39 $outstr .= ' <div id="header">'.PHP_EOL;
45 $outstr .= ' <form action="index.php" style="margin:30px; float:right">'.PHP_EOL; 40 $outstr .= ' <form action="index.php" style="margin:30px; float:right">'.PHP_EOL;
46 $outstr .= ' <input type="submit" class="jqx-button" style="width: 150px; height: 25px;" value="Main Screen" />'.PHP_EOL; 41 $outstr .= ' <input type="submit" style="width: 150px; height: 25px;" value="Dashboard" />'.PHP_EOL;
47 $outstr .= ' </form>'.PHP_EOL; 42 $outstr .= ' </form>'.PHP_EOL;
48 $outstr .= ' </div> <!-- header -->'.PHP_EOL; 43 $outstr .= ' </div> <!-- header -->'.PHP_EOL;
49 $outstr .= ' <div id="content">'.PHP_EOL; 44 $outstr .= ' <div id="content">'.PHP_EOL;
50 $outstr .= ' <div id="menu">'.PHP_EOL; 45 $outstr .= ' <div id="menu">'.PHP_EOL;
51 $outstr .= ' <div id="menu_header">'.PHP_EOL; 46 $outstr .= ' <div id="menu_header">'.PHP_EOL;
66 $outstr .= ' <form action="units.php" style="margin:20px;">'.PHP_EOL; 61 $outstr .= ' <form action="units.php" style="margin:20px;">'.PHP_EOL;
67 $outstr .= ' <input type="submit" class="jqx-button" style="width: 200px; height: 25px;" value="Fermentation Units" />'.PHP_EOL; 62 $outstr .= ' <input type="submit" class="jqx-button" style="width: 200px; height: 25px;" value="Fermentation Units" />'.PHP_EOL;
68 $outstr .= ' </form>'.PHP_EOL; 63 $outstr .= ' </form>'.PHP_EOL;
69 $outstr .= ' </div>'.PHP_EOL; 64 $outstr .= ' </div>'.PHP_EOL;
70 $outstr .= ' </div>'.PHP_EOL; 65 $outstr .= ' </div>'.PHP_EOL;
71 $outstr .= ' </div> <!-- content -->'.PHP_EOL; 66 $outstr .= build_footer();
72 $outstr .= ' </div> <!-- jqxWidget -->'.PHP_EOL;
73 $outstr .= ' </body>'.PHP_EOL;
74 $outstr .= '</html>'.PHP_EOL;
75 67
76 echo $outstr; 68 echo $outstr;
77 69

mercurial