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 /* |
|
25 * Look for the style names in the jqwidgets/styles directory. |
|
26 */ |
|
27 $my_style = 'fresh'; |
24 |
28 |
25 require_once('liveview.php'); |
29 require_once('liveview.php'); |
26 |
30 |
27 |
31 |
28 $outstr = '<!DOCTYPE html>'.PHP_EOL; |
32 $outstr = '<!DOCTYPE html>'.PHP_EOL; |
29 $outstr .= '<html>'.PHP_EOL; |
33 $outstr .= '<html>'.PHP_EOL; |
30 $outstr .= ' <head>'.PHP_EOL; |
34 $outstr .= ' <head>'.PHP_EOL; |
31 $outstr .= ' <meta http-equiv="content-type" content="text/html; charset=utf-8" />'.PHP_EOL; |
35 $outstr .= ' <meta http-equiv="content-type" content="text/html; charset=utf-8" />'.PHP_EOL; |
32 $outstr .= ' <title>ThermFerm monitor</title>'.PHP_EOL; |
36 $outstr .= ' <title>ThermFerm monitor</title>'.PHP_EOL; |
33 $outstr .= ' <link type="text/css" href="css/style.css" rel="stylesheet" media="all" />'.PHP_EOL; |
37 $outstr .= ' <link type="text/css" href="css/style.css" rel="stylesheet" media="all" />'.PHP_EOL; |
34 $outstr .= ' <script src="js/jquery-2.1.1.min.js"></script>'.PHP_EOL; |
38 $outstr .= ' <link type="text/css" href="jqwidgets/styles/jqx.base.css" rel="stylesheet" />'.PHP_EOL; |
|
39 $outstr .= ' <link type="text/css" href="jqwidgets/styles/jqx.'.$my_style.'.css" rel="stylesheet" />'.PHP_EOL; |
|
40 $outstr .= ' <script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>'.PHP_EOL; |
|
41 $outstr .= ' <script type="text/javascript" src="jqwidgets/jqxcore.js"></script>'.PHP_EOL; |
|
42 $outstr .= ' <script type="text/javascript" src="jqwidgets/jqxtabs.js"></script>'.PHP_EOL; |
|
43 $outstr .= ' <script type="text/javascript" src="jqwidgets/jqxcheckbox.js"></script>'.PHP_EOL; |
|
44 $outstr .= ' <script type="text/javascript" src="jqwidgets/jqxbuttons.js"></script>'.PHP_EOL; |
|
45 $outstr .= ' <script type="text/javascript" src="jqwidgets/jqxradiobutton.js"></script>'.PHP_EOL; |
|
46 $outstr .= ' <script type="text/javascript">'.PHP_EOL; |
|
47 $outstr .= ' $(document).ready(function () {'.PHP_EOL; |
|
48 $outstr .= ' // Create jqxTabs.'.PHP_EOL; |
|
49 $outstr .= ' $(\'#jqxTabs\').jqxTabs({ width: \'978\', height: 448, position: \'top\', theme: \''.$my_style.'\'});'.PHP_EOL; |
|
50 $outstr .= ' $("#maintenance").jqxButton({ width: \'150\', height: \'25\', theme: \''.$my_style.'\'});'.PHP_EOL; |
|
51 $outstr .= ' });'.PHP_EOL; |
|
52 $outstr .= ' </script>'.PHP_EOL; |
35 $outstr .= ' </head>'.PHP_EOL; |
53 $outstr .= ' </head>'.PHP_EOL; |
36 $outstr .= ' <body class="page">'.PHP_EOL; |
54 $outstr .= ' <body class="default">'.PHP_EOL; |
37 $outstr .= ' <div id="container" class="container_16">'.PHP_EOL; |
55 $outstr .= ' <div id="jqxWidget">'.PHP_EOL; |
38 $outstr .= ' <div id="header">'.PHP_EOL; |
56 $outstr .= ' <div id="header">'.PHP_EOL; |
39 $outstr .= ' <div id="logo">'.PHP_EOL; |
|
40 $outstr .= ' <img src="images/thermferm_logo.png" width="94" height="80">'.PHP_EOL; |
|
41 $outstr .= ' </div>'.PHP_EOL; |
|
42 $outstr .= ' <button class="script-status ui-state-error">Status</button>'.PHP_EOL; |
57 $outstr .= ' <button class="script-status ui-state-error">Status</button>'.PHP_EOL; |
43 $outstr .= ' <button id="maintenance" class="ui-state-default">Maintenance panel</button>'.PHP_EOL; |
58 $outstr .= ' <button id="maintenance">Maintenance panel</button>'.PHP_EOL; |
44 $outstr .= ' </div> <!-- header -->'.PHP_EOL; |
59 $outstr .= ' </div> <!-- header -->'.PHP_EOL; |
45 $outstr .= ' <div id="content">'.PHP_EOL; |
|
46 $outstr .= liveview(); |
60 $outstr .= liveview(); |
47 $outstr .= ' </div> <!-- content -->'.PHP_EOL; |
61 $outstr .= ' </div> <!-- jqxWidget -->'.PHP_EOL; |
48 $outstr .= ' </div> <!-- container -->'.PHP_EOL; |
|
49 $outstr .= ' <!-- Load scripts after the body, so they don\'t block rendering of the page -->'.PHP_EOL; |
62 $outstr .= ' <!-- Load scripts after the body, so they don\'t block rendering of the page -->'.PHP_EOL; |
50 $outstr .= ' </body>'.PHP_EOL; |
63 $outstr .= ' </body>'.PHP_EOL; |
51 $outstr .= '</html>'.PHP_EOL; |
64 $outstr .= '</html>'.PHP_EOL; |
52 |
65 |
53 echo $outstr; |
66 echo $outstr; |