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