Fri, 21 Sep 2018 17:10:41 +0200
Added Tinseth IBU calculation.
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 | */ |
30
f5ab22446aa5
Inventory fermentables and hops to standard weight format.
Michiel Broek <mbroek@mbse.eu>
parents:
23
diff
changeset
|
27 | //$my_style = 'ui-darkness'; |
f5ab22446aa5
Inventory fermentables and hops to standard weight format.
Michiel Broek <mbroek@mbse.eu>
parents:
23
diff
changeset
|
28 | $my_style = 'ui-mbse'; |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
29 | |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
30 | require_once($_SERVER['DOCUMENT_ROOT'].'/config.php'); |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
31 | require_once($_SERVER['DOCUMENT_ROOT'].'/version.php'); |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
32 | |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
33 | |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
34 | function page_header($title, $loadjs) { |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
35 | global $my_style; |
11 | 36 | global $my_version; |
37 | ?> | |
38 | <!DOCTYPE html> | |
39 | <html lang=nl-NL> | |
40 | <head> | |
41 | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
42 | <title>BMS v<?php echo $my_version;?> - <?php echo $title;?></title> | |
43 | <link type="text/css" href="css/style.css" rel="stylesheet" media="all" /> | |
44 | <link type="text/css" href="jqwidgets/styles/jqx.base.css" rel="stylesheet" /> | |
45 | <link type="text/css" href="jqwidgets/styles/jqx.<?php echo $my_style; ?>.css" rel="stylesheet" /> | |
46 | <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> | |
47 | <script> | |
48 | var theme = "<?php echo $my_style; ?>"; | |
49 | </script> | |
50 | <script src="js/jquery-1.11.1.min.js"></script> | |
51 | <script src="jqwidgets/jqxcore.js"></script> | |
52 | <script src="jqwidgets/jqxwindow.js"></script> | |
53 | <script src="jqwidgets/jqxmenu.js"></script> | |
50
6d94167c2697
Next steps to implement a recipe editor
Michiel Broek <mbroek@mbse.eu>
parents:
48
diff
changeset
|
54 | <script src="jqwidgets/jqxtabs.js"></script> |
11 | 55 | <script src="jqwidgets/jqxdata.js"></script> |
39 | 56 | <script src="jqwidgets/jqxdata.export.js"></script> |
11 | 57 | <script src="jqwidgets/jqxbuttons.js"></script> |
58 | <script src="jqwidgets/jqxscrollbar.js"></script> | |
59 | <script src="jqwidgets/jqxgrid.js"></script> | |
50
6d94167c2697
Next steps to implement a recipe editor
Michiel Broek <mbroek@mbse.eu>
parents:
48
diff
changeset
|
60 | <script src="jqwidgets/jqxgrid.grouping.js"></script> |
39 | 61 | <script src="jqwidgets/jqxgrid.edit.js"></script> |
62 | <script src="jqwidgets/jqxgrid.sort.js"></script> | |
11 | 63 | <script src="jqwidgets/jqxgrid.pager.js"></script> |
64 | <script src="jqwidgets/jqxgrid.filter.js"></script> | |
65 | <script src="jqwidgets/jqxgrid.selection.js"></script> | |
66 | <script src="jqwidgets/jqxnumberinput.js"></script> | |
67 | <script src="jqwidgets/jqxlistbox.js"></script> | |
68 | <script src="jqwidgets/jqxdropdownlist.js"></script> | |
69 | <script src="jqwidgets/jqxdropdownbutton.js"></script> | |
70 | <script src="jqwidgets/jqxinput.js"></script> | |
71 | <script src="jqwidgets/jqxeditor.js"></script> | |
72 | <script src="jqwidgets/jqxtooltip.js"></script> | |
73 | <script src="jqwidgets/jqxcheckbox.js"></script> | |
74 | <script src="jqwidgets/jqxdatetimeinput.js"></script> | |
75 | <script src="jqwidgets/jqxcalendar.js"></script> | |
16 | 76 | <script src="jqwidgets/jqxgauge.js"></script> |
77 | <script src="jqwidgets/jqxdraw.js"></script> | |
11 | 78 | <script src="jqwidgets/globalization/globalize.js"></script> |
79 | <script src="js/global.js"></script> | |
80 | <?php | |
81 | if (strlen($loadjs)) | |
82 | echo ' <script src="js/'.$loadjs.'.js"></script>'.PHP_EOL; | |
83 | ?> | |
84 | </head> | |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
85 | |
11 | 86 | <body class="default"> |
87 | <div id="jqxWidget"> | |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
88 | |
11 | 89 | <!-- Menu --> |
90 | <div id="jqxMenu"> | |
91 | <ul> | |
15 | 92 | <li><a href="index.php">Home</a></li> |
11 | 93 | <li>Monitoren |
94 | <ul> | |
15 | 95 | <li>Systemen |
96 | <ul> | |
97 | <?php | |
48
bdd1ec9b9c06
Start recipes import and menus.
Michiel Broek <mbroek@mbse.eu>
parents:
46
diff
changeset
|
98 | $connect = mysqli_connect(DBASE_HOST,DBASE_USER,DBASE_PASS,DBASE_NAME); |
bdd1ec9b9c06
Start recipes import and menus.
Michiel Broek <mbroek@mbse.eu>
parents:
46
diff
changeset
|
99 | $result = mysqli_query($connect, "SELECT uuid,node,online,net_address FROM mon_nodes ORDER BY node"); |
bdd1ec9b9c06
Start recipes import and menus.
Michiel Broek <mbroek@mbse.eu>
parents:
46
diff
changeset
|
100 | while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { |
16 | 101 | echo ' <li><a href="mon_node.php?uuid='.$row['uuid'].'">'.$row['node'].'</a></li>'.PHP_EOL; |
15 | 102 | } |
103 | mysqli_free_result($result); | |
104 | ?> | |
105 | </ul> | |
106 | </li> | |
107 | <li>Klimaatkasten | |
108 | <ul> | |
109 | <?php | |
48
bdd1ec9b9c06
Start recipes import and menus.
Michiel Broek <mbroek@mbse.eu>
parents:
46
diff
changeset
|
110 | $result = mysqli_query($connect, "SELECT uuid,node,alias,online,mode FROM mon_fermenters ORDER BY node,alias"); |
bdd1ec9b9c06
Start recipes import and menus.
Michiel Broek <mbroek@mbse.eu>
parents:
46
diff
changeset
|
111 | while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { |
16 | 112 | echo ' <li><a href="mon_fermenter.php?uuid='.$row['uuid'].'">'.$row['node'].'/'.$row['alias'].'</a></li>'.PHP_EOL; |
15 | 113 | } |
114 | mysqli_free_result($result); | |
115 | ?> | |
116 | </ul> | |
117 | </li> | |
11 | 118 | </ul> |
119 | </li> | |
45
95251bedfab4
Moved three inventory tables and screens to profiles
Michiel Broek <mbroek@mbse.eu>
parents:
43
diff
changeset
|
120 | <li>Productie |
95251bedfab4
Moved three inventory tables and screens to profiles
Michiel Broek <mbroek@mbse.eu>
parents:
43
diff
changeset
|
121 | </li> |
95251bedfab4
Moved three inventory tables and screens to profiles
Michiel Broek <mbroek@mbse.eu>
parents:
43
diff
changeset
|
122 | <li>Recepten |
48
bdd1ec9b9c06
Start recipes import and menus.
Michiel Broek <mbroek@mbse.eu>
parents:
46
diff
changeset
|
123 | <ul> |
50
6d94167c2697
Next steps to implement a recipe editor
Michiel Broek <mbroek@mbse.eu>
parents:
48
diff
changeset
|
124 | <li><a href="recipes.php">Recepten</a></li> |
6d94167c2697
Next steps to implement a recipe editor
Michiel Broek <mbroek@mbse.eu>
parents:
48
diff
changeset
|
125 | <li>Import</li> |
48
bdd1ec9b9c06
Start recipes import and menus.
Michiel Broek <mbroek@mbse.eu>
parents:
46
diff
changeset
|
126 | </ul> |
45
95251bedfab4
Moved three inventory tables and screens to profiles
Michiel Broek <mbroek@mbse.eu>
parents:
43
diff
changeset
|
127 | </li> |
11 | 128 | <li>Inventaris |
129 | <ul> | |
130 | <li><a href="inv_suppliers.php">Leveranciers</a></li> | |
15 | 131 | <li><a href="inv_fermentables.php">Vergistbare ingredienten</a></li> |
11 | 132 | <li><a href="inv_hops.php">Hoppen</a></li> |
15 | 133 | <li><a href="inv_yeasts.php">Gisten</a></li> |
134 | <li><a href="inv_miscs.php">Overige ingredienten</a></li> | |
46
ff9be9dbcac0
Renamed inevntory water sources to inventory waters
Michiel Broek <mbroek@mbse.eu>
parents:
45
diff
changeset
|
135 | <li><a href="inv_waters.php">Brouwwater</a></li> |
11 | 136 | <li><a href="inv_equipments.php">Brouw apparatuur</a></li> |
30
f5ab22446aa5
Inventory fermentables and hops to standard weight format.
Michiel Broek <mbroek@mbse.eu>
parents:
23
diff
changeset
|
137 | <li><a href="inv_instock.php">Voorraad lijst</a></li> |
11 | 138 | </ul> |
139 | </li> | |
45
95251bedfab4
Moved three inventory tables and screens to profiles
Michiel Broek <mbroek@mbse.eu>
parents:
43
diff
changeset
|
140 | <li>Profielen |
95251bedfab4
Moved three inventory tables and screens to profiles
Michiel Broek <mbroek@mbse.eu>
parents:
43
diff
changeset
|
141 | <ul> |
95251bedfab4
Moved three inventory tables and screens to profiles
Michiel Broek <mbroek@mbse.eu>
parents:
43
diff
changeset
|
142 | <li><a href="profile_water.php">Water profielen</a></li> |
95251bedfab4
Moved three inventory tables and screens to profiles
Michiel Broek <mbroek@mbse.eu>
parents:
43
diff
changeset
|
143 | <li><a href="profile_mash.php">Maisch schemas</a></li> |
95251bedfab4
Moved three inventory tables and screens to profiles
Michiel Broek <mbroek@mbse.eu>
parents:
43
diff
changeset
|
144 | <li><a href="profile_styles.php">Bierstijlen</a></li> |
95251bedfab4
Moved three inventory tables and screens to profiles
Michiel Broek <mbroek@mbse.eu>
parents:
43
diff
changeset
|
145 | </ul> |
95251bedfab4
Moved three inventory tables and screens to profiles
Michiel Broek <mbroek@mbse.eu>
parents:
43
diff
changeset
|
146 | </li> |
11 | 147 | <li>Over |
148 | <ul> | |
149 | <li><a href="#aboutWindow">Informatie</a></li> | |
150 | </ul> | |
151 | </li> | |
152 | </ul> | |
153 | </div> <!-- End menu --> | |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
154 | |
11 | 155 | <div id="aboutWindow"> |
156 | <div> | |
157 | Over BMS | |
158 | </div> | |
159 | <div> | |
160 | The about text comes here | |
161 | </div> | |
162 | </div> | |
163 | ||
164 | <?php | |
165 | } | |
166 | ||
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
167 | |
11 | 168 | function confirm_delete() { |
169 | ?> | |
170 | <div id="eventWindow"> | |
171 | <div> | |
172 | Bevestig verwijderen | |
173 | </div> | |
174 | <div> | |
175 | <div> | |
176 | Klik "OK" om dit record definitief te verwijderen.<br> | |
177 | Druk "Cancel" om te sluiten zonder dit record te verwijderen. | |
178 | </div> | |
179 | <div> | |
180 | <div style="float: right; margin-top: 15px; margin-bottom: 10px;"> | |
181 | <input type="button" id="delOk" value="OK" style="margin-right: 15px" /> | |
182 | <input type="button" id="delCancel" value="Cancel" style="margin-right: 65px" /> | |
183 | </div> | |
184 | </div> | |
185 | </div> | |
186 | </div> | |
187 | ||
188 | <?php | |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
189 | } |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
190 | |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
191 | |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
192 | function page_footer() { |
11 | 193 | ?> |
194 | </div> <!-- jqxWidget --> | |
195 | </body> | |
196 | </html> | |
197 | <?php | |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
198 | } |
11 | 199 | ?> |