Sun, 30 Jun 2019 20:05:44 +0200
Merged with default.
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 | |
68 | 33 | if (isset($_GET['record'])) |
34 | $my_record = $_GET['record']; | |
35 | else | |
36 | $my_record = -1; | |
180
a5aa3502310c
Updated README. Getfermenter and getnode scripts return 0 and 1 instead of false and true for boolean values. Global variable my_uuid added. Moved the javascript out of mon_fermenter.php. Added log chart view button in the fermenter monitor.
Michiel Broek <mbroek@mbse.eu>
parents:
172
diff
changeset
|
37 | if (isset($_GET['uuid'])) |
a5aa3502310c
Updated README. Getfermenter and getnode scripts return 0 and 1 instead of false and true for boolean values. Global variable my_uuid added. Moved the javascript out of mon_fermenter.php. Added log chart view button in the fermenter monitor.
Michiel Broek <mbroek@mbse.eu>
parents:
172
diff
changeset
|
38 | $my_uuid = $_GET['uuid']; |
a5aa3502310c
Updated README. Getfermenter and getnode scripts return 0 and 1 instead of false and true for boolean values. Global variable my_uuid added. Moved the javascript out of mon_fermenter.php. Added log chart view button in the fermenter monitor.
Michiel Broek <mbroek@mbse.eu>
parents:
172
diff
changeset
|
39 | else |
a5aa3502310c
Updated README. Getfermenter and getnode scripts return 0 and 1 instead of false and true for boolean values. Global variable my_uuid added. Moved the javascript out of mon_fermenter.php. Added log chart view button in the fermenter monitor.
Michiel Broek <mbroek@mbse.eu>
parents:
172
diff
changeset
|
40 | $my_uuid = ''; |
68 | 41 | if (isset($_GET['return'])) |
42 | $my_return = $_GET['return']; | |
43 | else | |
44 | $my_return = ''; | |
172
684c651dd165
Added fermentation graph screen
Michiel Broek <mbroek@mbse.eu>
parents:
167
diff
changeset
|
45 | if (isset($_GET['code'])) |
684c651dd165
Added fermentation graph screen
Michiel Broek <mbroek@mbse.eu>
parents:
167
diff
changeset
|
46 | $my_code = $_GET['code']; |
684c651dd165
Added fermentation graph screen
Michiel Broek <mbroek@mbse.eu>
parents:
167
diff
changeset
|
47 | else |
684c651dd165
Added fermentation graph screen
Michiel Broek <mbroek@mbse.eu>
parents:
167
diff
changeset
|
48 | $my_code = ''; |
684c651dd165
Added fermentation graph screen
Michiel Broek <mbroek@mbse.eu>
parents:
167
diff
changeset
|
49 | if (isset($_GET['name'])) |
684c651dd165
Added fermentation graph screen
Michiel Broek <mbroek@mbse.eu>
parents:
167
diff
changeset
|
50 | $my_name = $_GET['name']; |
684c651dd165
Added fermentation graph screen
Michiel Broek <mbroek@mbse.eu>
parents:
167
diff
changeset
|
51 | else |
684c651dd165
Added fermentation graph screen
Michiel Broek <mbroek@mbse.eu>
parents:
167
diff
changeset
|
52 | $my_name = ''; |
302
d0f7b4ab000f
Added product export screen with choices to export to beerxml, duplicate product or copy to recipe. Products in wait state can now be deleted.
Michiel Broek <mbroek@mbse.eu>
parents:
297
diff
changeset
|
53 | if (isset($_GET['select'])) |
d0f7b4ab000f
Added product export screen with choices to export to beerxml, duplicate product or copy to recipe. Products in wait state can now be deleted.
Michiel Broek <mbroek@mbse.eu>
parents:
297
diff
changeset
|
54 | $my_select = $_GET['select']; |
d0f7b4ab000f
Added product export screen with choices to export to beerxml, duplicate product or copy to recipe. Products in wait state can now be deleted.
Michiel Broek <mbroek@mbse.eu>
parents:
297
diff
changeset
|
55 | else |
d0f7b4ab000f
Added product export screen with choices to export to beerxml, duplicate product or copy to recipe. Products in wait state can now be deleted.
Michiel Broek <mbroek@mbse.eu>
parents:
297
diff
changeset
|
56 | $my_select = ''; |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
57 | |
100
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
58 | $escapers = array("\\", "/", "\"", "\n", "\r", "\t", "\x08", "\x0c"); |
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
59 | $replacements = array("\\\\", "\\/", "\\\"", "\\n", "\\r", "\\t", "\\f", "\\b"); |
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
60 | |
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
61 | /* Load setup record */ |
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
62 | #Connect to the database |
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
63 | $connect = mysqli_connect(DBASE_HOST, DBASE_USER, DBASE_PASS, DBASE_NAME); |
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
64 | if (! $connect) { |
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
65 | die('Connect Error (' . mysqli_connect_errno() . ') ' . mysqli_connect_error()); |
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
66 | } |
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
67 | mysqli_set_charset($connect, "utf8" ); |
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
68 | $my_default_water = $my_brewery_name = $my_ibu_method = $my_color_method = ''; |
289
4082c41f45e9
Added the use and calculation of wet hops. Assume 5.5 times more hops needed by weight.
Michiel Broek <mbroek@mbse.eu>
parents:
231
diff
changeset
|
69 | $my_factor_mashhop = $my_factor_fwh = $my_factor_pellet = $my_factor_plug = $my_factor_wethop = 0; |
100
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
70 | $my_brix_correction = $my_grain_absorbtion = 1.0; |
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
71 | |
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
72 | $result = mysqli_query($connect, "SELECT * FROM profile_setup WHERE record='1'") or die("SQL Error 1: " . mysqli_error($connect)); |
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
73 | if ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { |
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
74 | /* search water name */ |
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
75 | $wresult = mysqli_query($connect, "SELECT name FROM inventory_waters WHERE record='".$row['default_water']."';"); |
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
76 | if ($wrow = mysqli_fetch_array($wresult, MYSQLI_ASSOC)) |
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
77 | $my_default_water = str_replace($escapers, $replacements, $wrow['name']); |
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
78 | $my_brewery_name = str_replace($escapers, $replacements, $row['brewery_name']); |
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
79 | $my_factor_mashhop = floatval($row['factor_mashhop']); |
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
80 | $my_factor_fwh= floatval($row['factor_fwh']); |
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
81 | $my_factor_pellet= floatval($row['factor_pellet']); |
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
82 | $my_factor_plug= floatval($row['factor_plug']); |
289
4082c41f45e9
Added the use and calculation of wet hops. Assume 5.5 times more hops needed by weight.
Michiel Broek <mbroek@mbse.eu>
parents:
231
diff
changeset
|
83 | $my_factor_wethop = floatval($row['factor_wethop']); |
4082c41f45e9
Added the use and calculation of wet hops. Assume 5.5 times more hops needed by weight.
Michiel Broek <mbroek@mbse.eu>
parents:
231
diff
changeset
|
84 | $my_ibu_method = $row['ibu_method']; |
4082c41f45e9
Added the use and calculation of wet hops. Assume 5.5 times more hops needed by weight.
Michiel Broek <mbroek@mbse.eu>
parents:
231
diff
changeset
|
85 | $my_color_method = $row['color_method']; |
100
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
86 | $my_brix_correction = floatval($row['brix_correction']); |
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
87 | $my_grain_absorbtion = floatval($row['grain_absorbtion']); |
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
88 | } |
172
684c651dd165
Added fermentation graph screen
Michiel Broek <mbroek@mbse.eu>
parents:
167
diff
changeset
|
89 | |
100
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
90 | |
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
91 | |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
92 | function page_header($title, $loadjs) { |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
93 | global $my_style; |
11 | 94 | global $my_version; |
68 | 95 | global $my_record; |
180
a5aa3502310c
Updated README. Getfermenter and getnode scripts return 0 and 1 instead of false and true for boolean values. Global variable my_uuid added. Moved the javascript out of mon_fermenter.php. Added log chart view button in the fermenter monitor.
Michiel Broek <mbroek@mbse.eu>
parents:
172
diff
changeset
|
96 | global $my_uuid; |
68 | 97 | global $my_return; |
172
684c651dd165
Added fermentation graph screen
Michiel Broek <mbroek@mbse.eu>
parents:
167
diff
changeset
|
98 | global $my_name; |
684c651dd165
Added fermentation graph screen
Michiel Broek <mbroek@mbse.eu>
parents:
167
diff
changeset
|
99 | global $my_code; |
302
d0f7b4ab000f
Added product export screen with choices to export to beerxml, duplicate product or copy to recipe. Products in wait state can now be deleted.
Michiel Broek <mbroek@mbse.eu>
parents:
297
diff
changeset
|
100 | global $my_select; |
100
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
101 | global $my_brewery_name; |
101
5b6bb99bc52a
IBU calculations now use the setup values. All setup values are now global available.
Michiel Broek <mbroek@mbse.eu>
parents:
100
diff
changeset
|
102 | global $my_factor_mashhop; |
5b6bb99bc52a
IBU calculations now use the setup values. All setup values are now global available.
Michiel Broek <mbroek@mbse.eu>
parents:
100
diff
changeset
|
103 | global $my_factor_fwh; |
5b6bb99bc52a
IBU calculations now use the setup values. All setup values are now global available.
Michiel Broek <mbroek@mbse.eu>
parents:
100
diff
changeset
|
104 | global $my_factor_pellet; |
5b6bb99bc52a
IBU calculations now use the setup values. All setup values are now global available.
Michiel Broek <mbroek@mbse.eu>
parents:
100
diff
changeset
|
105 | global $my_factor_plug; |
289
4082c41f45e9
Added the use and calculation of wet hops. Assume 5.5 times more hops needed by weight.
Michiel Broek <mbroek@mbse.eu>
parents:
231
diff
changeset
|
106 | global $my_factor_wethop; |
101
5b6bb99bc52a
IBU calculations now use the setup values. All setup values are now global available.
Michiel Broek <mbroek@mbse.eu>
parents:
100
diff
changeset
|
107 | global $my_ibu_method; |
5b6bb99bc52a
IBU calculations now use the setup values. All setup values are now global available.
Michiel Broek <mbroek@mbse.eu>
parents:
100
diff
changeset
|
108 | global $my_color_method; |
5b6bb99bc52a
IBU calculations now use the setup values. All setup values are now global available.
Michiel Broek <mbroek@mbse.eu>
parents:
100
diff
changeset
|
109 | global $my_brix_correction; |
5b6bb99bc52a
IBU calculations now use the setup values. All setup values are now global available.
Michiel Broek <mbroek@mbse.eu>
parents:
100
diff
changeset
|
110 | global $my_grain_absorbtion; |
5b6bb99bc52a
IBU calculations now use the setup values. All setup values are now global available.
Michiel Broek <mbroek@mbse.eu>
parents:
100
diff
changeset
|
111 | global $my_default_water; |
11 | 112 | ?> |
113 | <!DOCTYPE html> | |
114 | <html lang=nl-NL> | |
115 | <head> | |
116 | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
117 | <title>BMS v<?php echo $my_version;?> - <?php echo $title;?></title> | |
118 | <link type="text/css" href="css/style.css" rel="stylesheet" media="all" /> | |
119 | <link type="text/css" href="jqwidgets/styles/jqx.base.css" rel="stylesheet" /> | |
120 | <link type="text/css" href="jqwidgets/styles/jqx.<?php echo $my_style; ?>.css" rel="stylesheet" /> | |
369 | 121 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
11 | 122 | <script> |
123 | var theme = "<?php echo $my_style; ?>"; | |
68 | 124 | var my_record = "<?php echo $my_record; ?>"; |
125 | var my_return = "<?php echo $my_return; ?>"; | |
302
d0f7b4ab000f
Added product export screen with choices to export to beerxml, duplicate product or copy to recipe. Products in wait state can now be deleted.
Michiel Broek <mbroek@mbse.eu>
parents:
297
diff
changeset
|
126 | var my_name = "<?php echo $my_name; ?>"; |
d0f7b4ab000f
Added product export screen with choices to export to beerxml, duplicate product or copy to recipe. Products in wait state can now be deleted.
Michiel Broek <mbroek@mbse.eu>
parents:
297
diff
changeset
|
127 | var my_code = "<?php echo $my_code; ?>"; |
d0f7b4ab000f
Added product export screen with choices to export to beerxml, duplicate product or copy to recipe. Products in wait state can now be deleted.
Michiel Broek <mbroek@mbse.eu>
parents:
297
diff
changeset
|
128 | var my_uuid = "<?php echo $my_uuid; ?>"; |
d0f7b4ab000f
Added product export screen with choices to export to beerxml, duplicate product or copy to recipe. Products in wait state can now be deleted.
Michiel Broek <mbroek@mbse.eu>
parents:
297
diff
changeset
|
129 | var my_select = "<?php echo $my_select; ?>"; |
100
08c92cb740b9
Fix for missing coor info on fermentables during recipes import. Log when srm or ebc values are negatie during conversions. Load setup record in global.inc.php and make some variables available for PHP and JS.
Michiel Broek <mbroek@mbse.eu>
parents:
99
diff
changeset
|
130 | var my_brewery_name = "<?php echo $my_brewery_name; ?>"; |
101
5b6bb99bc52a
IBU calculations now use the setup values. All setup values are now global available.
Michiel Broek <mbroek@mbse.eu>
parents:
100
diff
changeset
|
131 | var my_factor_mashhop = "<?php echo $my_factor_mashhop; ?>"; |
5b6bb99bc52a
IBU calculations now use the setup values. All setup values are now global available.
Michiel Broek <mbroek@mbse.eu>
parents:
100
diff
changeset
|
132 | var my_factor_fwh = "<?php echo $my_factor_fwh; ?>"; |
5b6bb99bc52a
IBU calculations now use the setup values. All setup values are now global available.
Michiel Broek <mbroek@mbse.eu>
parents:
100
diff
changeset
|
133 | var my_factor_pellet = "<?php echo $my_factor_pellet; ?>"; |
5b6bb99bc52a
IBU calculations now use the setup values. All setup values are now global available.
Michiel Broek <mbroek@mbse.eu>
parents:
100
diff
changeset
|
134 | var my_factor_plug = "<?php echo $my_factor_plug; ?>"; |
289
4082c41f45e9
Added the use and calculation of wet hops. Assume 5.5 times more hops needed by weight.
Michiel Broek <mbroek@mbse.eu>
parents:
231
diff
changeset
|
135 | var my_factor_wethop = "<?php echo $my_factor_wethop; ?>"; |
101
5b6bb99bc52a
IBU calculations now use the setup values. All setup values are now global available.
Michiel Broek <mbroek@mbse.eu>
parents:
100
diff
changeset
|
136 | var my_ibu_method = "<?php echo $my_ibu_method; ?>"; |
5b6bb99bc52a
IBU calculations now use the setup values. All setup values are now global available.
Michiel Broek <mbroek@mbse.eu>
parents:
100
diff
changeset
|
137 | var my_color_method = "<?php echo $my_color_method; ?>"; |
5b6bb99bc52a
IBU calculations now use the setup values. All setup values are now global available.
Michiel Broek <mbroek@mbse.eu>
parents:
100
diff
changeset
|
138 | var my_brix_correction = "<?php echo $my_brix_correction; ?>"; |
5b6bb99bc52a
IBU calculations now use the setup values. All setup values are now global available.
Michiel Broek <mbroek@mbse.eu>
parents:
100
diff
changeset
|
139 | var my_grain_absorbtion = "<?php echo $my_grain_absorbtion; ?>"; |
5b6bb99bc52a
IBU calculations now use the setup values. All setup values are now global available.
Michiel Broek <mbroek@mbse.eu>
parents:
100
diff
changeset
|
140 | var my_default_water = "<?php echo $my_default_water; ?>"; |
11 | 141 | </script> |
142 | <script src="js/jquery-1.11.1.min.js"></script> | |
143 | <script src="jqwidgets/jqxcore.js"></script> | |
144 | <script src="jqwidgets/jqxwindow.js"></script> | |
145 | <script src="jqwidgets/jqxmenu.js"></script> | |
50
6d94167c2697
Next steps to implement a recipe editor
Michiel Broek <mbroek@mbse.eu>
parents:
48
diff
changeset
|
146 | <script src="jqwidgets/jqxtabs.js"></script> |
11 | 147 | <script src="jqwidgets/jqxdata.js"></script> |
39 | 148 | <script src="jqwidgets/jqxdata.export.js"></script> |
129
7f41b61c3faf
Added a loader during recipe load. Recalculate percentages if a fermentable row is deleted. Don't edit amounts if using weight percentages. Update grid percentages if a fermentable amount is changed. Recalculate IBU's after changes with fermentables.
Michiel Broek <mbroek@mbse.eu>
parents:
114
diff
changeset
|
149 | <script src="jqwidgets/jqxloader.js"></script> |
11 | 150 | <script src="jqwidgets/jqxbuttons.js"></script> |
151 | <script src="jqwidgets/jqxscrollbar.js"></script> | |
152 | <script src="jqwidgets/jqxgrid.js"></script> | |
50
6d94167c2697
Next steps to implement a recipe editor
Michiel Broek <mbroek@mbse.eu>
parents:
48
diff
changeset
|
153 | <script src="jqwidgets/jqxgrid.grouping.js"></script> |
39 | 154 | <script src="jqwidgets/jqxgrid.edit.js"></script> |
155 | <script src="jqwidgets/jqxgrid.sort.js"></script> | |
11 | 156 | <script src="jqwidgets/jqxgrid.pager.js"></script> |
157 | <script src="jqwidgets/jqxgrid.filter.js"></script> | |
158 | <script src="jqwidgets/jqxgrid.selection.js"></script> | |
159 | <script src="jqwidgets/jqxnumberinput.js"></script> | |
160 | <script src="jqwidgets/jqxlistbox.js"></script> | |
161 | <script src="jqwidgets/jqxdropdownlist.js"></script> | |
162 | <script src="jqwidgets/jqxdropdownbutton.js"></script> | |
163 | <script src="jqwidgets/jqxinput.js"></script> | |
164 | <script src="jqwidgets/jqxeditor.js"></script> | |
165 | <script src="jqwidgets/jqxtooltip.js"></script> | |
183
a810539dc218
Added cmd_fermenter.php which interfaces http POST commands to MQTT using mosquitto_pub in a shell. Several chnges to the monitor fermenter screen.
Michiel Broek <mbroek@mbse.eu>
parents:
180
diff
changeset
|
166 | <script src="jqwidgets/jqxswitchbutton.js"></script> |
a810539dc218
Added cmd_fermenter.php which interfaces http POST commands to MQTT using mosquitto_pub in a shell. Several chnges to the monitor fermenter screen.
Michiel Broek <mbroek@mbse.eu>
parents:
180
diff
changeset
|
167 | <script src="jqwidgets/jqxradiobutton.js"></script> |
11 | 168 | <script src="jqwidgets/jqxcheckbox.js"></script> |
169 | <script src="jqwidgets/jqxdatetimeinput.js"></script> | |
170 | <script src="jqwidgets/jqxcalendar.js"></script> | |
16 | 171 | <script src="jqwidgets/jqxgauge.js"></script> |
172
684c651dd165
Added fermentation graph screen
Michiel Broek <mbroek@mbse.eu>
parents:
167
diff
changeset
|
172 | <script src="jqwidgets/jqxchart.core.js"></script> |
684c651dd165
Added fermentation graph screen
Michiel Broek <mbroek@mbse.eu>
parents:
167
diff
changeset
|
173 | <script src="jqwidgets/jqxchart.rangeselector.js"></script> |
16 | 174 | <script src="jqwidgets/jqxdraw.js"></script> |
139
eb1ac7487710
Added EBC color examples. Added simple progessbars for hop flavour and aroma contribution. We need something better. In the fermentables tab, above the grid display the malt color and OG estimates. Display supplier as well in the fermentables grid.
Michiel Broek <mbroek@mbse.eu>
parents:
129
diff
changeset
|
175 | <script src="jqwidgets/jqxprogressbar.js"></script> |
297
5e2424bfbc4a
Added import brew json logfiles
Michiel Broek <mbroek@mbse.eu>
parents:
292
diff
changeset
|
176 | <script src="jqwidgets/jqxfileupload.js"></script> |
5e2424bfbc4a
Added import brew json logfiles
Michiel Broek <mbroek@mbse.eu>
parents:
292
diff
changeset
|
177 | <script src="jqwidgets/jqxpanel.js"></script> |
11 | 178 | <script src="jqwidgets/globalization/globalize.js"></script> |
179 | <script src="js/global.js"></script> | |
180 | <?php | |
181 | if (strlen($loadjs)) | |
182 | echo ' <script src="js/'.$loadjs.'.js"></script>'.PHP_EOL; | |
183 | ?> | |
184 | </head> | |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
185 | |
11 | 186 | <body class="default"> |
187 | <div id="jqxWidget"> | |
129
7f41b61c3faf
Added a loader during recipe load. Recalculate percentages if a fermentable row is deleted. Don't edit amounts if using weight percentages. Update grid percentages if a fermentable amount is changed. Recalculate IBU's after changes with fermentables.
Michiel Broek <mbroek@mbse.eu>
parents:
114
diff
changeset
|
188 | <div id="jqxLoader"> |
7f41b61c3faf
Added a loader during recipe load. Recalculate percentages if a fermentable row is deleted. Don't edit amounts if using weight percentages. Update grid percentages if a fermentable amount is changed. Recalculate IBU's after changes with fermentables.
Michiel Broek <mbroek@mbse.eu>
parents:
114
diff
changeset
|
189 | </div> |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
190 | |
11 | 191 | <!-- Menu --> |
192 | <div id="jqxMenu"> | |
193 | <ul> | |
344
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
194 | <li style='width: 80px;'> |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
195 | <a href="index.php">Home</a> |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
196 | </li> |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
197 | <li style='width: 80px;'>Monitoren |
345
dd1eb3f7fbf4
Added icons to the monitor menus
Michiel Broek <mbroek@mbse.eu>
parents:
344
diff
changeset
|
198 | <ul style='width: 200px;'> |
dd1eb3f7fbf4
Added icons to the monitor menus
Michiel Broek <mbroek@mbse.eu>
parents:
344
diff
changeset
|
199 | <li><img style='float: left; margin-right: 5px;' src='images/computer.png' />Systemen |
dd1eb3f7fbf4
Added icons to the monitor menus
Michiel Broek <mbroek@mbse.eu>
parents:
344
diff
changeset
|
200 | <ul style='width: 150px;'> |
15 | 201 | <?php |
48
bdd1ec9b9c06
Start recipes import and menus.
Michiel Broek <mbroek@mbse.eu>
parents:
46
diff
changeset
|
202 | $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
|
203 | $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
|
204 | while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { |
345
dd1eb3f7fbf4
Added icons to the monitor menus
Michiel Broek <mbroek@mbse.eu>
parents:
344
diff
changeset
|
205 | if ($row['online'] == "Y") |
dd1eb3f7fbf4
Added icons to the monitor menus
Michiel Broek <mbroek@mbse.eu>
parents:
344
diff
changeset
|
206 | $img = "network-idle.png"; |
dd1eb3f7fbf4
Added icons to the monitor menus
Michiel Broek <mbroek@mbse.eu>
parents:
344
diff
changeset
|
207 | else |
dd1eb3f7fbf4
Added icons to the monitor menus
Michiel Broek <mbroek@mbse.eu>
parents:
344
diff
changeset
|
208 | $img = "network-error.png"; |
dd1eb3f7fbf4
Added icons to the monitor menus
Michiel Broek <mbroek@mbse.eu>
parents:
344
diff
changeset
|
209 | echo ' <li><img style="float: left; margin-right: 5px;" src="images/'.$img.'" /><a href="mon_node.php?uuid='.$row['uuid'].'">'.$row['node'].'</a></li>'.PHP_EOL; |
15 | 210 | } |
211 | mysqli_free_result($result); | |
212 | ?> | |
345
dd1eb3f7fbf4
Added icons to the monitor menus
Michiel Broek <mbroek@mbse.eu>
parents:
344
diff
changeset
|
213 | </ul> |
15 | 214 | </li> |
345
dd1eb3f7fbf4
Added icons to the monitor menus
Michiel Broek <mbroek@mbse.eu>
parents:
344
diff
changeset
|
215 | <li><img style='float: left; margin-right: 5px;' src='images/fridge.png' />Klimaatkasten |
dd1eb3f7fbf4
Added icons to the monitor menus
Michiel Broek <mbroek@mbse.eu>
parents:
344
diff
changeset
|
216 | <ul style='width: 200px;'> |
15 | 217 | <?php |
48
bdd1ec9b9c06
Start recipes import and menus.
Michiel Broek <mbroek@mbse.eu>
parents:
46
diff
changeset
|
218 | $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
|
219 | while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { |
345
dd1eb3f7fbf4
Added icons to the monitor menus
Michiel Broek <mbroek@mbse.eu>
parents:
344
diff
changeset
|
220 | if ($row['online'] == "Y") |
dd1eb3f7fbf4
Added icons to the monitor menus
Michiel Broek <mbroek@mbse.eu>
parents:
344
diff
changeset
|
221 | $img = "network-idle.png"; |
dd1eb3f7fbf4
Added icons to the monitor menus
Michiel Broek <mbroek@mbse.eu>
parents:
344
diff
changeset
|
222 | else |
dd1eb3f7fbf4
Added icons to the monitor menus
Michiel Broek <mbroek@mbse.eu>
parents:
344
diff
changeset
|
223 | $img = "network-error.png"; |
dd1eb3f7fbf4
Added icons to the monitor menus
Michiel Broek <mbroek@mbse.eu>
parents:
344
diff
changeset
|
224 | echo ' <li><img style="float: left; margin-right: 5px;" src="images/'.$img.'" /><a href="mon_fermenter.php?uuid='.$row['uuid'].'">'.$row['node'].'/'.$row['alias'].'</a></li>'.PHP_EOL; |
15 | 225 | } |
226 | mysqli_free_result($result); | |
227 | ?> | |
228 | </ul> | |
229 | </li> | |
11 | 230 | </ul> |
231 | </li> | |
344
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
232 | <li style='width: 80px;'>Productie |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
233 | <ul style='width: 200px;'> |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
234 | <li><img style='float: left; margin-right: 5px;' src='images/beerstyles.png' /><a href="prod_inprod.php">In bewerking</a></li> |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
235 | <li><img style='float: left; margin-right: 5px;' src='images/list-add.png' /><a href="prod_new.php?return=index.php">Start nieuw</a></li> |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
236 | <li><img style='float: left; margin-left: 3px; margin-right: 8px;' src='images/database.png' />Archief |
109
3c334f3ca7f9
Noted some ideas and added some in the menu.
Michiel Broek <mbroek@mbse.eu>
parents:
101
diff
changeset
|
237 | <ul> |
290 | 238 | <li><a href="prod_archive_name.php">Op naam</a></li> |
292
90cd3798edc2
Added archive view on date and code.
Michiel Broek <mbroek@mbse.eu>
parents:
290
diff
changeset
|
239 | <li><a href="prod_archive_code.php">Op code</a></li> |
90cd3798edc2
Added archive view on date and code.
Michiel Broek <mbroek@mbse.eu>
parents:
290
diff
changeset
|
240 | <li><a href="prod_archive_date.php">Op datum</a></li> |
109
3c334f3ca7f9
Noted some ideas and added some in the menu.
Michiel Broek <mbroek@mbse.eu>
parents:
101
diff
changeset
|
241 | </ul> |
3c334f3ca7f9
Noted some ideas and added some in the menu.
Michiel Broek <mbroek@mbse.eu>
parents:
101
diff
changeset
|
242 | </li> |
344
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
243 | <li><img style='float: left; margin-right: 5px;' src='images/insert-object.png' />Import |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
244 | <ul style='width: 200px;'> |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
245 | <li><img style='float: left; margin-right: 5px;' src='images/insert-object.png' /><a href="prod_impbrew.php">Brouw log</a></li> |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
246 | <li><img style='float: left; margin-right: 5px;' src='images/insert-image.png' />Etiket</li> |
114
4935e86b2775
Small fixes for prject import from Brouwhulp. Fixes for poduct database read/write. New menu entries. Equipment select in product editor. Started brewday editor. Added conditions on some buttons and edit fields. Screen layout changes.
Michiel Broek <mbroek@mbse.eu>
parents:
111
diff
changeset
|
247 | </ul> |
4935e86b2775
Small fixes for prject import from Brouwhulp. Fixes for poduct database read/write. New menu entries. Equipment select in product editor. Started brewday editor. Added conditions on some buttons and edit fields. Screen layout changes.
Michiel Broek <mbroek@mbse.eu>
parents:
111
diff
changeset
|
248 | </li> |
344
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
249 | <li><img style='float: left; margin-right: 7px;' src='images/calendar.png' />Kalender</li> |
109
3c334f3ca7f9
Noted some ideas and added some in the menu.
Michiel Broek <mbroek@mbse.eu>
parents:
101
diff
changeset
|
250 | </ul> |
45
95251bedfab4
Moved three inventory tables and screens to profiles
Michiel Broek <mbroek@mbse.eu>
parents:
43
diff
changeset
|
251 | </li> |
344
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
252 | <li style='width: 80px;'>Recepten |
347
e6e7ec9e33e0
Finished bitterness and cl/so4 ratio calculations and design aids. Translated water error messages. Fixed recipes menu width.
Michiel Broek <mbroek@mbse.eu>
parents:
345
diff
changeset
|
253 | <ul style='width: 200px;'> |
344
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
254 | <li><img style='float: left; margin-right: 5px;' src='images/beerstyles.png' /><a href="rec_main.php">Recepten</a></li> |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
255 | <li><img style='float: left; margin-right: 5px;' src='images/insert-object.png' /><a href="rec_import.php">Import beerxml</a></li> |
48
bdd1ec9b9c06
Start recipes import and menus.
Michiel Broek <mbroek@mbse.eu>
parents:
46
diff
changeset
|
256 | </ul> |
45
95251bedfab4
Moved three inventory tables and screens to profiles
Michiel Broek <mbroek@mbse.eu>
parents:
43
diff
changeset
|
257 | </li> |
344
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
258 | <li style='width: 80px;'>Inventaris |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
259 | <ul style='width: 250px;'> |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
260 | <li><img style='float: left; margin-right: 5px;' src='images/address-book.png' /><a href="inv_suppliers.php">Leveranciers</a></li> |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
261 | <li><img style='float: left; margin-right: 5px;' src='images/graan.png' /><a href="inv_fermentables.php">Vergistbare ingredienten</a></li> |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
262 | <li><img style='float: left; margin-right: 5px;' src='images/hop.png' /><a href="inv_hops.php">Hoppen</a></li> |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
263 | <li><img style='float: left; margin-left: 4px; margin-right: 9px;' src='images/erlenmeyer.png' /><a href="inv_yeasts.php">Gisten</a></li> |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
264 | <li><img style='float: left; margin-right: 5px;' src='images/peper.png' /><a href="inv_miscs.php">Overige ingredienten</a></li> |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
265 | <li><img style='float: left; margin-left: 3px; margin-right: 9px;' src='images/water.png' /><a href="inv_waters.php">Brouwwater</a></li> |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
266 | <li><img style='float: left; margin-right: 5px;' src='images/mash.png' /><a href="inv_equipments.php">Brouw apparatuur</a></li> |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
267 | <li><img style='float: left; margin-left: 3px; margin-right: 8px;' src='images/database.png' /><a href="inv_instock.php">Voorraad lijst</a></li> |
11 | 268 | </ul> |
269 | </li> | |
344
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
270 | <li style='width: 80px;'>Instellingen |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
271 | <ul style='width: 200px;'> |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
272 | <li><img style='float: left; margin-left: 3px; margin-right: 9px;' src='images/water.png' /><a href="profile_water.php">Water profielen</a></li> |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
273 | <li><img style='float: left; margin-right: 5px;' src='images/mash.png' /><a href="profile_mash.php">Maisch schemas</a></li> |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
274 | <li><img style='float: left; margin-right: 5px;' src='images/beerstyles.png' /><a href="profile_styles.php">Bierstijlen</a></li> |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
275 | <li><img style='float: left; margin-right: 5px;' src='images/fermenter.png' /><a href="profile_fermentation.php">Vergisting profielen</a></li> |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
276 | <li><img style='float: left; margin-right: 5px;' src='images/preferences.png' /><a href="profile_setup.php">Instellingen</a></li> |
45
95251bedfab4
Moved three inventory tables and screens to profiles
Michiel Broek <mbroek@mbse.eu>
parents:
43
diff
changeset
|
277 | </ul> |
95251bedfab4
Moved three inventory tables and screens to profiles
Michiel Broek <mbroek@mbse.eu>
parents:
43
diff
changeset
|
278 | </li> |
344
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
279 | <li style='width: 80px;'>Over |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
280 | <ul style='width: 150px;'> |
e25bbf19619d
First pass to add icons to the menus.
Michiel Broek <mbroek@mbse.eu>
parents:
307
diff
changeset
|
281 | <li><img style='float: left; margin-right: 5px;' src='images/help-about.png' /><a href="gen_about.php">Informatie</a></li> |
11 | 282 | </ul> |
283 | </li> | |
284 | </ul> | |
285 | </div> <!-- End menu --> | |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
286 | |
11 | 287 | <?php |
288 | } | |
289 | ||
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
290 | |
11 | 291 | function confirm_delete() { |
292 | ?> | |
293 | <div id="eventWindow"> | |
294 | <div> | |
295 | Bevestig verwijderen | |
296 | </div> | |
297 | <div> | |
298 | <div> | |
299 | Klik "OK" om dit record definitief te verwijderen.<br> | |
300 | Druk "Cancel" om te sluiten zonder dit record te verwijderen. | |
301 | </div> | |
302 | <div> | |
303 | <div style="float: right; margin-top: 15px; margin-bottom: 10px;"> | |
304 | <input type="button" id="delOk" value="OK" style="margin-right: 15px" /> | |
305 | <input type="button" id="delCancel" value="Cancel" style="margin-right: 65px" /> | |
306 | </div> | |
307 | </div> | |
308 | </div> | |
309 | </div> | |
310 | ||
311 | <?php | |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
312 | } |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
313 | |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
314 | |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
315 | function page_footer() { |
11 | 316 | ?> |
317 | </div> <!-- jqxWidget --> | |
318 | </body> | |
319 | </html> | |
320 | <?php | |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
321 | } |
11 | 322 | ?> |