|
1 <?php |
|
2 /***************************************************************************** |
|
3 * Copyright (C) 2024 |
|
4 * |
|
5 * Michiel Broek <mbroek at mbse dot eu> |
|
6 * |
|
7 * This file is part of mbsePi-apps |
|
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 * BrewCloud 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 //$my_style = 'ui-mbse'; |
|
29 |
|
30 require_once($_SERVER['DOCUMENT_ROOT'].'/version.php'); |
|
31 |
|
32 |
|
33 function page_header($title, $loadjs) { |
|
34 global $my_style; |
|
35 global $my_version; |
|
36 ?> |
|
37 <!DOCTYPE html> |
|
38 <html lang=en-US> |
|
39 <head> |
|
40 <meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
|
41 <title>ThermFerm v<?php echo $my_version;?> - <?php echo $title;?></title> |
|
42 <!-- <link type="text/css" href="css/style.css" rel="stylesheet" media="all" /> --> |
|
43 <link type="text/css" href="jqwidgets/styles/jqx.base.css" rel="stylesheet" /> |
|
44 <link type="text/css" href="jqwidgets/styles/jqx.<?php echo $my_style; ?>.css" rel="stylesheet" /> |
|
45 <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
|
46 <script> |
|
47 var theme = "<?php echo $my_style; ?>"; |
|
48 </script> |
|
49 <script src="js/jquery-1.11.1.js"></script> |
|
50 <script src="js/reconnecting-websocket.min.js"></script> |
|
51 <script src="jqwidgets/jqxcore.js"></script> |
|
52 <script src="jqwidgets/jqxwindow.js"></script> |
|
53 <script src="jqwidgets/jqxmenu.js"></script> |
|
54 <script src="jqwidgets/jqxtabs.js"></script> |
|
55 <script src="jqwidgets/jqxloader.js"></script> |
|
56 <script src="jqwidgets/jqxbuttons.js"></script> |
|
57 |
|
58 <script src="jqwidgets/globalization/globalize.js"></script> |
|
59 <script src="js/global.js"></script> |
|
60 <?php |
|
61 if (strlen($loadjs)) |
|
62 echo ' <script src="js/'.$loadjs.'.js"></script>'.PHP_EOL; |
|
63 ?> |
|
64 </head> |
|
65 |
|
66 <body class="default"> |
|
67 <div id="jqxWidget"> |
|
68 <div id="jqxLoader"> |
|
69 </div> |
|
70 |
|
71 <!-- Menu --> |
|
72 <div id="jqxMenu" style='float: left;'> |
|
73 <ul> |
|
74 <li style='width: 80px;'><a href="index.php">Home</a></li> |
|
75 <li style='width: 80px;'>Setup |
|
76 <ul style='width: 200px;'> |
|
77 <li><img style='float: left; margin-right: 5px;' src='images/preferences.png' /><a href="set_global.php">Global</a></li> |
|
78 <li><img style='float: left; margin-right: 5px;' src='images/database.png' /><a href="set_devices.php">Devices</a></li> |
|
79 <li><img style='float: left; margin-right: 5px;' src='images/fermenter.png' /><a href="set_fermenters.php">Fermenters</a></li> |
|
80 <li><img style='float: left; margin-right: 5px;' src='images/computer.png' /><a href="set_simulators.php">Simulators</a></li> |
|
81 </ul> |
|
82 <li style='width: 80px;'><a href="gen_about.php">Over</a></li> |
|
83 </ul> |
|
84 </div> <!-- End menu --> |
|
85 |
|
86 <?php |
|
87 } |
|
88 |
|
89 |
|
90 function confirm_delete() { |
|
91 ?> |
|
92 <div id="eventWindow"> |
|
93 <div> |
|
94 Bevestig verwijderen |
|
95 </div> |
|
96 <div> |
|
97 <div> |
|
98 Klik "OK" om dit record definitief te verwijderen.<br> |
|
99 Druk "Cancel" om te sluiten zonder dit record te verwijderen. |
|
100 </div> |
|
101 <div> |
|
102 <div style="float: right; margin-top: 15px; margin-bottom: 10px;"> |
|
103 <input type="button" id="delOk" value="OK" style="margin-right: 15px" /> |
|
104 <input type="button" id="delCancel" value="Cancel" style="margin-right: 65px" /> |
|
105 </div> |
|
106 </div> |
|
107 </div> |
|
108 </div> |
|
109 |
|
110 <?php |
|
111 } |
|
112 |
|
113 |
|
114 function page_footer() { |
|
115 ?> |
|
116 </div> <!-- jqxWidget --> |
|
117 </body> |
|
118 </html> |
|
119 <?php |
|
120 } |
|
121 ?> |