Wed, 23 Jul 2014 21:14:20 +0200
Added the maintenance 1-Wire display tab
127
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
1 | <?php |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
2 | /***************************************************************************** |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
3 | * Copyright (C) 2014 |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
4 | * |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
5 | * Michiel Broek <mbroek at mbse dot eu> |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
6 | * |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
7 | * This file is part of ThermFerm |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
8 | * |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
9 | * This is free software; you can redistribute it and/or modify it |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
10 | * under the terms of the GNU General Public License as published by the |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
11 | * Free Software Foundation; either version 2, or (at your option) any |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
12 | * later version. |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
13 | * |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
14 | * ThermFerm is distributed in the hope that it will be useful, but |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
15 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
17 | * General Public License for more details. |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
18 | * |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
19 | * You should have received a copy of the GNU General Public License |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
20 | * along with ThermFerm; see the file COPYING. If not, write to the Free |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
21 | * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
22 | *****************************************************************************/ |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
23 | |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
24 | /* |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
25 | * Look for the style names in the jqwidgets/styles directory. |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
26 | */ |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
27 | $my_style = 'ui-redmond'; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
28 | |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
29 | |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
30 | |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
31 | /* The maintenance popup window */ |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
32 | function maintenance_panel() |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
33 | { |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
34 | global $my_style; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
35 | |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
36 | $outstr = PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
37 | $outstr .= ' <div id="maintenance_window">'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
38 | $outstr .= ' <script type="text/javascript" src="js/maintenance_panel.js"></script>'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
39 | $outstr .= ' <div id="maintenance_header">'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
40 | $outstr .= ' Maintenance panel'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
41 | $outstr .= ' </div>'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
42 | $outstr .= ' <div id="maintenance_content">'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
43 | $outstr .= ' <div id="jqxTabs_maint">'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
44 | $outstr .= ' <ul>'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
45 | $outstr .= ' <li style="margin-left: 20px;">General</li>'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
46 | $outstr .= ' <li style="margin-left: 20px;">1-Wire Bus</li>'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
47 | $outstr .= ' <li style="margin-left: 20px;">Profiles</li>'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
48 | $outstr .= ' <li style="margin-left: 20px;">Units</li>'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
49 | $outstr .= ' </ul>'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
50 | $outstr .= ' <div>'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
51 | $outstr .= ' General'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
52 | $outstr .= ' </div>'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
53 | $outstr .= ' <div>'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
54 | $outstr .= ' <div id="jqxgrid_bus" style="margin-left: 8px; margin-top: 6px;"></div>'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
55 | $outstr .= ' </div>'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
56 | $outstr .= ' <div>'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
57 | $outstr .= ' Profiles'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
58 | $outstr .= ' </div>'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
59 | $outstr .= ' <div>'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
60 | $outstr .= ' Units'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
61 | $outstr .= ' </div>'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
62 | $outstr .= ' </div>'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
63 | $outstr .= ' <input type="button" id="maintenance_ok" value="Dismiss" style="margin-top: 5px; margin-left: 365px" />'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
64 | $outstr .= ' </div>'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
65 | $outstr .= ' <script type="text/javascript">'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
66 | $outstr .= ' $(document).ready(function () {'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
67 | $outstr .= ' $("#jqxTabs_maint").jqxTabs({ width: 790, height: 330, position: \'top\', theme: \''.$my_style.'\'});'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
68 | $outstr .= ' });'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
69 | $outstr .= ' </script>'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
70 | $outstr .= ' </div> <!-- maintenance_window -->'.PHP_EOL; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
71 | |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
72 | return $outstr; |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
73 | } |
f2f45c44942f
Added the maintenance 1-Wire display tab
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
74 |