Sun, 19 Aug 2018 15:36:13 +0200
Inventory fermentables and hops to standard weight format.
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 = 'black'; |
30
f5ab22446aa5
Inventory fermentables and hops to standard weight format.
Michiel Broek <mbroek@mbse.eu>
parents:
23
diff
changeset
|
30 | //$my_style = 'ui-darkness'; |
f5ab22446aa5
Inventory fermentables and hops to standard weight format.
Michiel Broek <mbroek@mbse.eu>
parents:
23
diff
changeset
|
31 | $my_style = 'ui-mbse'; |
11 | 32 | //$my_style = 'android'; |
10
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 | require_once($_SERVER['DOCUMENT_ROOT'].'/config.php'); |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
35 | require_once($_SERVER['DOCUMENT_ROOT'].'/version.php'); |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
36 | |
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 | function page_header($title, $loadjs) { |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
39 | global $my_style; |
11 | 40 | global $my_version; |
41 | ?> | |
42 | <!DOCTYPE html> | |
43 | <html lang=nl-NL> | |
44 | <head> | |
45 | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
46 | <title>BMS v<?php echo $my_version;?> - <?php echo $title;?></title> | |
47 | <link type="text/css" href="css/style.css" rel="stylesheet" media="all" /> | |
48 | <link type="text/css" href="jqwidgets/styles/jqx.base.css" rel="stylesheet" /> | |
49 | <link type="text/css" href="jqwidgets/styles/jqx.<?php echo $my_style; ?>.css" rel="stylesheet" /> | |
50 | <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> | |
51 | <script> | |
52 | var theme = "<?php echo $my_style; ?>"; | |
53 | </script> | |
54 | <script src="js/jquery-1.11.1.min.js"></script> | |
55 | <script src="jqwidgets/jqxcore.js"></script> | |
56 | <script src="jqwidgets/jqxwindow.js"></script> | |
57 | <script src="jqwidgets/jqxmenu.js"></script> | |
58 | <script src="jqwidgets/jqxwindow.js"></script> | |
59 | <script src="jqwidgets/jqxdata.js"></script> | |
60 | <script src="jqwidgets/jqxbuttons.js"></script> | |
61 | <script src="jqwidgets/jqxscrollbar.js"></script> | |
62 | <script src="jqwidgets/jqxgrid.js"></script> | |
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 | |
98 | $mysqli = new mysqli(DBASE_HOST,DBASE_USER,DBASE_PASS,DBASE_NAME); | |
99 | $result = $mysqli->query("SELECT uuid,node,online,net_address FROM nodes"); | |
100 | while($row = $result->fetch_array(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 | |
110 | $result = $mysqli->query("SELECT uuid,node,alias,online,mode FROM fermenters"); | |
111 | while($row = $result->fetch_array(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> | |
120 | <li>Inventaris | |
121 | <ul> | |
122 | <li><a href="inv_suppliers.php">Leveranciers</a></li> | |
15 | 123 | <li><a href="inv_fermentables.php">Vergistbare ingredienten</a></li> |
11 | 124 | <li><a href="inv_hops.php">Hoppen</a></li> |
15 | 125 | <li><a href="inv_yeasts.php">Gisten</a></li> |
126 | <li><a href="inv_miscs.php">Overige ingredienten</a></li> | |
127 | <li><a href="inv_water_sources.php">Water bronnen</a></li> | |
128 | <li><a href="inv_water_profiles.php">Water profielen</a></li> | |
23
4b157d7a1cee
Added first part of mash profiles. Steps are in the database but not in the web ui.
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
129 | <li><a href="inv_mash_profiles.php">Maisch schemas</a></li> |
11 | 130 | <li><a href="inv_equipments.php">Brouw apparatuur</a></li> |
15 | 131 | <li><a href="inv_styles.php">Bierstijlen</a></li> |
30
f5ab22446aa5
Inventory fermentables and hops to standard weight format.
Michiel Broek <mbroek@mbse.eu>
parents:
23
diff
changeset
|
132 | <li><a href="inv_instock.php">Voorraad lijst</a></li> |
11 | 133 | </ul> |
134 | </li> | |
135 | <li>Over | |
136 | <ul> | |
137 | <li><a href="#aboutWindow">Informatie</a></li> | |
138 | </ul> | |
139 | </li> | |
140 | </ul> | |
141 | </div> <!-- End menu --> | |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
142 | |
11 | 143 | <div id="aboutWindow"> |
144 | <div> | |
145 | Over BMS | |
146 | </div> | |
147 | <div> | |
148 | The about text comes here | |
149 | </div> | |
150 | </div> | |
151 | ||
152 | <?php | |
153 | } | |
154 | ||
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
155 | |
11 | 156 | function confirm_delete() { |
157 | ?> | |
158 | <div id="eventWindow"> | |
159 | <div> | |
160 | Bevestig verwijderen | |
161 | </div> | |
162 | <div> | |
163 | <div> | |
164 | Klik "OK" om dit record definitief te verwijderen.<br> | |
165 | Druk "Cancel" om te sluiten zonder dit record te verwijderen. | |
166 | </div> | |
167 | <div> | |
168 | <div style="float: right; margin-top: 15px; margin-bottom: 10px;"> | |
169 | <input type="button" id="delOk" value="OK" style="margin-right: 15px" /> | |
170 | <input type="button" id="delCancel" value="Cancel" style="margin-right: 65px" /> | |
171 | </div> | |
172 | </div> | |
173 | </div> | |
174 | </div> | |
175 | ||
176 | <?php | |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
177 | } |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
178 | |
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 | function page_footer() { |
11 | 181 | ?> |
182 | </div> <!-- jqxWidget --> | |
183 | </body> | |
184 | </html> | |
185 | <?php | |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
186 | } |
11 | 187 | ?> |