|
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 |
|
30 |
|
31 /* The maintenance popup window */ |
|
32 function maintenance_panel() |
|
33 { |
|
34 global $my_style; |
|
35 |
|
36 $outstr = PHP_EOL; |
|
37 $outstr .= ' <div id="maintenance_window">'.PHP_EOL; |
|
38 $outstr .= ' <script type="text/javascript" src="js/maintenance_panel.js"></script>'.PHP_EOL; |
|
39 $outstr .= ' <div id="maintenance_header">'.PHP_EOL; |
|
40 $outstr .= ' Maintenance panel'.PHP_EOL; |
|
41 $outstr .= ' </div>'.PHP_EOL; |
|
42 $outstr .= ' <div id="maintenance_content">'.PHP_EOL; |
|
43 $outstr .= ' <div id="jqxTabs_maint">'.PHP_EOL; |
|
44 $outstr .= ' <ul>'.PHP_EOL; |
|
45 $outstr .= ' <li style="margin-left: 20px;">General</li>'.PHP_EOL; |
|
46 $outstr .= ' <li style="margin-left: 20px;">1-Wire Bus</li>'.PHP_EOL; |
|
47 $outstr .= ' <li style="margin-left: 20px;">Profiles</li>'.PHP_EOL; |
|
48 $outstr .= ' <li style="margin-left: 20px;">Units</li>'.PHP_EOL; |
|
49 $outstr .= ' </ul>'.PHP_EOL; |
|
50 $outstr .= ' <div>'.PHP_EOL; |
|
51 $outstr .= ' General'.PHP_EOL; |
|
52 $outstr .= ' </div>'.PHP_EOL; |
|
53 $outstr .= ' <div>'.PHP_EOL; |
|
54 $outstr .= ' <div id="jqxgrid_bus" style="margin-left: 8px; margin-top: 6px;"></div>'.PHP_EOL; |
|
55 $outstr .= ' </div>'.PHP_EOL; |
|
56 $outstr .= ' <div>'.PHP_EOL; |
|
57 $outstr .= ' Profiles'.PHP_EOL; |
|
58 $outstr .= ' </div>'.PHP_EOL; |
|
59 $outstr .= ' <div>'.PHP_EOL; |
|
60 $outstr .= ' Units'.PHP_EOL; |
|
61 $outstr .= ' </div>'.PHP_EOL; |
|
62 $outstr .= ' </div>'.PHP_EOL; |
|
63 $outstr .= ' <input type="button" id="maintenance_ok" value="Dismiss" style="margin-top: 5px; margin-left: 365px" />'.PHP_EOL; |
|
64 $outstr .= ' </div>'.PHP_EOL; |
|
65 $outstr .= ' <script type="text/javascript">'.PHP_EOL; |
|
66 $outstr .= ' $(document).ready(function () {'.PHP_EOL; |
|
67 $outstr .= ' $("#jqxTabs_maint").jqxTabs({ width: 790, height: 330, position: \'top\', theme: \''.$my_style.'\'});'.PHP_EOL; |
|
68 $outstr .= ' });'.PHP_EOL; |
|
69 $outstr .= ' </script>'.PHP_EOL; |
|
70 $outstr .= ' </div> <!-- maintenance_window -->'.PHP_EOL; |
|
71 |
|
72 return $outstr; |
|
73 } |
|
74 |