Mon, 13 Aug 2018 19:49:42 +0200
Waters import and home page
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
1 | <?php |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
2 | /***************************************************************************** |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
3 | * Copyright (C) 2014-2018 |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
4 | * |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
5 | * Michiel Broek <mbroek at mbse dot eu> |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
6 | * |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
7 | * This file is part of Brewery Management System |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
8 | * |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
9 | * This is free software; you can redistribute it and/or modify it |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
10 | * under the terms of the GNU General Public License as published by the |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
11 | * Free Software Foundation; either version 2, or (at your option) any |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
12 | * later version. |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
13 | * |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
14 | * BrewCloud is distributed in the hope that it will be useful, but |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
15 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
17 | * General Public License for more details. |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
18 | * |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
19 | * You should have received a copy of the GNU General Public License |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
20 | * along with ThermFerm; see the file COPYING. If not, write to the Free |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
21 | * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
22 | *****************************************************************************/ |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
23 | |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
24 | /* |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
25 | * Look for the style names in the jqwidgets/styles directory. |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
26 | * |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
27 | * energyblue of ui-redmond |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
28 | */ |
11 | 29 | //$my_style = 'ui-redmond'; |
30 | //$my_style = 'black'; | |
31 | //$my_style = 'dark'; | |
32 | //$my_style = 'metrodark'; | |
33 | $my_style = 'ui-darkness'; | |
34 | //$my_style = 'ui-start'; | |
35 | //$my_style = 'ui-sunny'; | |
36 | //$my_style = 'android'; | |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
37 | |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
38 | require_once($_SERVER['DOCUMENT_ROOT'].'/config.php'); |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
39 | require_once($_SERVER['DOCUMENT_ROOT'].'/version.php'); |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
40 | |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
41 | |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
42 | function page_header($title, $loadjs) { |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
43 | global $my_style; |
11 | 44 | global $my_version; |
45 | ?> | |
46 | <!DOCTYPE html> | |
47 | <html lang=nl-NL> | |
48 | <head> | |
49 | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
50 | <title>BMS v<?php echo $my_version;?> - <?php echo $title;?></title> | |
51 | <link type="text/css" href="css/style.css" rel="stylesheet" media="all" /> | |
52 | <link type="text/css" href="jqwidgets/styles/jqx.base.css" rel="stylesheet" /> | |
53 | <link type="text/css" href="jqwidgets/styles/jqx.<?php echo $my_style; ?>.css" rel="stylesheet" /> | |
54 | <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> | |
55 | <script> | |
56 | var theme = "<?php echo $my_style; ?>"; | |
57 | </script> | |
58 | <script src="js/jquery-1.11.1.min.js"></script> | |
59 | <script src="jqwidgets/jqxcore.js"></script> | |
60 | <script src="jqwidgets/jqxwindow.js"></script> | |
61 | <script src="jqwidgets/jqxmenu.js"></script> | |
62 | <script src="jqwidgets/jqxwindow.js"></script> | |
63 | <script src="jqwidgets/jqxdata.js"></script> | |
64 | <script src="jqwidgets/jqxbuttons.js"></script> | |
65 | <script src="jqwidgets/jqxscrollbar.js"></script> | |
66 | <script src="jqwidgets/jqxgrid.js"></script> | |
67 | <script src="jqwidgets/jqxgrid.pager.js"></script> | |
68 | <script src="jqwidgets/jqxgrid.filter.js"></script> | |
69 | <script src="jqwidgets/jqxgrid.selection.js"></script> | |
70 | <script src="jqwidgets/jqxnumberinput.js"></script> | |
71 | <script src="jqwidgets/jqxlistbox.js"></script> | |
72 | <script src="jqwidgets/jqxdropdownlist.js"></script> | |
73 | <script src="jqwidgets/jqxdropdownbutton.js"></script> | |
74 | <script src="jqwidgets/jqxinput.js"></script> | |
75 | <script src="jqwidgets/jqxeditor.js"></script> | |
76 | <script src="jqwidgets/jqxtooltip.js"></script> | |
77 | <script src="jqwidgets/jqxcheckbox.js"></script> | |
78 | <script src="jqwidgets/jqxdatetimeinput.js"></script> | |
79 | <script src="jqwidgets/jqxcalendar.js"></script> | |
80 | <script src="jqwidgets/globalization/globalize.js"></script> | |
81 | <script src="js/global.js"></script> | |
82 | <?php | |
83 | if (strlen($loadjs)) | |
84 | echo ' <script src="js/'.$loadjs.'.js"></script>'.PHP_EOL; | |
85 | ?> | |
86 | </head> | |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
87 | |
11 | 88 | <body class="default"> |
89 | <div id="jqxWidget"> | |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
90 | |
11 | 91 | <!-- Menu --> |
92 | <div id="jqxMenu"> | |
93 | <ul> | |
15 | 94 | <li><a href="index.php">Home</a></li> |
11 | 95 | <li>Monitoren |
96 | <ul> | |
15 | 97 | <li>Systemen |
98 | <ul> | |
99 | <?php | |
100 | $mysqli = new mysqli(DBASE_HOST,DBASE_USER,DBASE_PASS,DBASE_NAME); | |
101 | $result = $mysqli->query("SELECT uuid,node,online,net_address FROM nodes"); | |
102 | while($row = $result->fetch_array(MYSQLI_ASSOC)) { | |
103 | echo ' <li><a href="mon_node.php?node='.$row['node'].'">'.$row['node'].'</a></li>'.PHP_EOL; | |
104 | } | |
105 | mysqli_free_result($result); | |
106 | ?> | |
107 | </ul> | |
108 | </li> | |
109 | <li>Klimaatkasten | |
110 | <ul> | |
111 | <?php | |
112 | $result = $mysqli->query("SELECT uuid,node,alias,online,mode FROM fermenters"); | |
113 | while($row = $result->fetch_array(MYSQLI_ASSOC)) { | |
114 | echo ' <li><a href="mon_fermenter.php?node='.$row['node'].'&alias='.$row['alias'].'">'.$row['node'].'/'.$row['alias'].'</a></li>'.PHP_EOL; | |
115 | } | |
116 | mysqli_free_result($result); | |
117 | ?> | |
118 | </ul> | |
119 | </li> | |
11 | 120 | <li><a href="monitor.php">Probeersel</a></li> |
121 | </ul> | |
122 | </li> | |
123 | <li>Inventaris | |
124 | <ul> | |
125 | <li><a href="inv_suppliers.php">Leveranciers</a></li> | |
15 | 126 | <li><a href="inv_fermentables.php">Vergistbare ingredienten</a></li> |
11 | 127 | <li><a href="inv_hops.php">Hoppen</a></li> |
15 | 128 | <li><a href="inv_yeasts.php">Gisten</a></li> |
129 | <li><a href="inv_miscs.php">Overige ingredienten</a></li> | |
130 | <li><a href="inv_water_sources.php">Water bronnen</a></li> | |
131 | <li><a href="inv_water_profiles.php">Water profielen</a></li> | |
132 | <li><a href="inv_mashs.php">Maisch schemas</a></li> | |
11 | 133 | <li><a href="inv_equipments.php">Brouw apparatuur</a></li> |
15 | 134 | <li><a href="inv_styles.php">Bierstijlen</a></li> |
11 | 135 | </ul> |
136 | </li> | |
137 | <li>Over | |
138 | <ul> | |
139 | <li><a href="#aboutWindow">Informatie</a></li> | |
140 | </ul> | |
141 | </li> | |
142 | </ul> | |
143 | </div> <!-- End menu --> | |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
144 | |
11 | 145 | <div id="aboutWindow"> |
146 | <div> | |
147 | Over BMS | |
148 | </div> | |
149 | <div> | |
150 | The about text comes here | |
151 | </div> | |
152 | </div> | |
153 | ||
154 | <?php | |
155 | } | |
156 | ||
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
157 | |
11 | 158 | function confirm_delete() { |
159 | ?> | |
160 | <div id="eventWindow"> | |
161 | <div> | |
162 | Bevestig verwijderen | |
163 | </div> | |
164 | <div> | |
165 | <div> | |
166 | Klik "OK" om dit record definitief te verwijderen.<br> | |
167 | Druk "Cancel" om te sluiten zonder dit record te verwijderen. | |
168 | </div> | |
169 | <div> | |
170 | <div style="float: right; margin-top: 15px; margin-bottom: 10px;"> | |
171 | <input type="button" id="delOk" value="OK" style="margin-right: 15px" /> | |
172 | <input type="button" id="delCancel" value="Cancel" style="margin-right: 65px" /> | |
173 | </div> | |
174 | </div> | |
175 | </div> | |
176 | </div> | |
177 | ||
178 | <?php | |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
179 | } |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
180 | |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
181 | |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
182 | function page_footer() { |
11 | 183 | ?> |
184 | </div> <!-- jqxWidget --> | |
185 | </body> | |
186 | </html> | |
187 | <?php | |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
188 | } |
11 | 189 | ?> |