Wed, 29 Aug 2018 19:58:36 +0200
Renamed inevntory water sources to inventory waters
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> | |
54 | <script src="jqwidgets/jqxdata.js"></script> | |
39 | 55 | <script src="jqwidgets/jqxdata.export.js"></script> |
11 | 56 | <script src="jqwidgets/jqxbuttons.js"></script> |
57 | <script src="jqwidgets/jqxscrollbar.js"></script> | |
58 | <script src="jqwidgets/jqxgrid.js"></script> | |
39 | 59 | <script src="jqwidgets/jqxgrid.edit.js"></script> |
60 | <script src="jqwidgets/jqxgrid.sort.js"></script> | |
11 | 61 | <script src="jqwidgets/jqxgrid.pager.js"></script> |
62 | <script src="jqwidgets/jqxgrid.filter.js"></script> | |
63 | <script src="jqwidgets/jqxgrid.selection.js"></script> | |
64 | <script src="jqwidgets/jqxnumberinput.js"></script> | |
65 | <script src="jqwidgets/jqxlistbox.js"></script> | |
66 | <script src="jqwidgets/jqxdropdownlist.js"></script> | |
67 | <script src="jqwidgets/jqxdropdownbutton.js"></script> | |
68 | <script src="jqwidgets/jqxinput.js"></script> | |
69 | <script src="jqwidgets/jqxeditor.js"></script> | |
70 | <script src="jqwidgets/jqxtooltip.js"></script> | |
71 | <script src="jqwidgets/jqxcheckbox.js"></script> | |
72 | <script src="jqwidgets/jqxdatetimeinput.js"></script> | |
73 | <script src="jqwidgets/jqxcalendar.js"></script> | |
16 | 74 | <script src="jqwidgets/jqxgauge.js"></script> |
75 | <script src="jqwidgets/jqxdraw.js"></script> | |
11 | 76 | <script src="jqwidgets/globalization/globalize.js"></script> |
77 | <script src="js/global.js"></script> | |
78 | <?php | |
79 | if (strlen($loadjs)) | |
80 | echo ' <script src="js/'.$loadjs.'.js"></script>'.PHP_EOL; | |
81 | ?> | |
82 | </head> | |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
83 | |
11 | 84 | <body class="default"> |
85 | <div id="jqxWidget"> | |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
86 | |
11 | 87 | <!-- Menu --> |
88 | <div id="jqxMenu"> | |
89 | <ul> | |
15 | 90 | <li><a href="index.php">Home</a></li> |
11 | 91 | <li>Monitoren |
92 | <ul> | |
15 | 93 | <li>Systemen |
94 | <ul> | |
95 | <?php | |
96 | $mysqli = new mysqli(DBASE_HOST,DBASE_USER,DBASE_PASS,DBASE_NAME); | |
43
dcb9ff8846fa
Renamed monitor database tables
Michiel Broek <mbroek@mbse.eu>
parents:
39
diff
changeset
|
97 | $result = $mysqli->query("SELECT uuid,node,online,net_address FROM mon_nodes ORDER BY node"); |
15 | 98 | while($row = $result->fetch_array(MYSQLI_ASSOC)) { |
16 | 99 | echo ' <li><a href="mon_node.php?uuid='.$row['uuid'].'">'.$row['node'].'</a></li>'.PHP_EOL; |
15 | 100 | } |
101 | mysqli_free_result($result); | |
102 | ?> | |
103 | </ul> | |
104 | </li> | |
105 | <li>Klimaatkasten | |
106 | <ul> | |
107 | <?php | |
43
dcb9ff8846fa
Renamed monitor database tables
Michiel Broek <mbroek@mbse.eu>
parents:
39
diff
changeset
|
108 | $result = $mysqli->query("SELECT uuid,node,alias,online,mode FROM mon_fermenters ORDER BY node,alias"); |
15 | 109 | while($row = $result->fetch_array(MYSQLI_ASSOC)) { |
16 | 110 | echo ' <li><a href="mon_fermenter.php?uuid='.$row['uuid'].'">'.$row['node'].'/'.$row['alias'].'</a></li>'.PHP_EOL; |
15 | 111 | } |
112 | mysqli_free_result($result); | |
113 | ?> | |
114 | </ul> | |
115 | </li> | |
11 | 116 | </ul> |
117 | </li> | |
45
95251bedfab4
Moved three inventory tables and screens to profiles
Michiel Broek <mbroek@mbse.eu>
parents:
43
diff
changeset
|
118 | <li>Productie |
95251bedfab4
Moved three inventory tables and screens to profiles
Michiel Broek <mbroek@mbse.eu>
parents:
43
diff
changeset
|
119 | </li> |
95251bedfab4
Moved three inventory tables and screens to profiles
Michiel Broek <mbroek@mbse.eu>
parents:
43
diff
changeset
|
120 | <li>Recepten |
95251bedfab4
Moved three inventory tables and screens to profiles
Michiel Broek <mbroek@mbse.eu>
parents:
43
diff
changeset
|
121 | </li> |
11 | 122 | <li>Inventaris |
123 | <ul> | |
124 | <li><a href="inv_suppliers.php">Leveranciers</a></li> | |
15 | 125 | <li><a href="inv_fermentables.php">Vergistbare ingredienten</a></li> |
11 | 126 | <li><a href="inv_hops.php">Hoppen</a></li> |
15 | 127 | <li><a href="inv_yeasts.php">Gisten</a></li> |
128 | <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
|
129 | <li><a href="inv_waters.php">Brouwwater</a></li> |
11 | 130 | <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
|
131 | <li><a href="inv_instock.php">Voorraad lijst</a></li> |
11 | 132 | </ul> |
133 | </li> | |
45
95251bedfab4
Moved three inventory tables and screens to profiles
Michiel Broek <mbroek@mbse.eu>
parents:
43
diff
changeset
|
134 | <li>Profielen |
95251bedfab4
Moved three inventory tables and screens to profiles
Michiel Broek <mbroek@mbse.eu>
parents:
43
diff
changeset
|
135 | <ul> |
95251bedfab4
Moved three inventory tables and screens to profiles
Michiel Broek <mbroek@mbse.eu>
parents:
43
diff
changeset
|
136 | <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
|
137 | <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
|
138 | <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
|
139 | </ul> |
95251bedfab4
Moved three inventory tables and screens to profiles
Michiel Broek <mbroek@mbse.eu>
parents:
43
diff
changeset
|
140 | </li> |
11 | 141 | <li>Over |
142 | <ul> | |
143 | <li><a href="#aboutWindow">Informatie</a></li> | |
144 | </ul> | |
145 | </li> | |
146 | </ul> | |
147 | </div> <!-- End menu --> | |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
148 | |
11 | 149 | <div id="aboutWindow"> |
150 | <div> | |
151 | Over BMS | |
152 | </div> | |
153 | <div> | |
154 | The about text comes here | |
155 | </div> | |
156 | </div> | |
157 | ||
158 | <?php | |
159 | } | |
160 | ||
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
161 | |
11 | 162 | function confirm_delete() { |
163 | ?> | |
164 | <div id="eventWindow"> | |
165 | <div> | |
166 | Bevestig verwijderen | |
167 | </div> | |
168 | <div> | |
169 | <div> | |
170 | Klik "OK" om dit record definitief te verwijderen.<br> | |
171 | Druk "Cancel" om te sluiten zonder dit record te verwijderen. | |
172 | </div> | |
173 | <div> | |
174 | <div style="float: right; margin-top: 15px; margin-bottom: 10px;"> | |
175 | <input type="button" id="delOk" value="OK" style="margin-right: 15px" /> | |
176 | <input type="button" id="delCancel" value="Cancel" style="margin-right: 65px" /> | |
177 | </div> | |
178 | </div> | |
179 | </div> | |
180 | </div> | |
181 | ||
182 | <?php | |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
183 | } |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
184 | |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
185 | |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
186 | function page_footer() { |
11 | 187 | ?> |
188 | </div> <!-- jqxWidget --> | |
189 | </body> | |
190 | </html> | |
191 | <?php | |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
192 | } |
11 | 193 | ?> |