Thu, 29 Nov 2018 23:21:42 +0100
Inventory database script added missing fields. Product database script added JOIN with the prod_recipes table.
68 | 1 | <?php |
2 | require_once($_SERVER['DOCUMENT_ROOT'].'/includes/global.inc.php'); | |
3 | page_header('Recept wijzigen', 'rec_edit'); | |
4 | // met POST commando's record ophalen. | |
5 | ?> | |
6 | ||
7 | <!-- Editor tabs. --> | |
8 | <div id="jqxTabs"> | |
9 | <ul> | |
10 | <li>Algemeen</li> | |
11 | <li>Vergistbaar</li> | |
12 | <li>Hoppen</li> | |
13 | <li>Diversen</li> | |
14 | <li>Gist</li> | |
15 | <li>Water</li> | |
16 | <li>Maischen</li> | |
17 | </ul> | |
18 | ||
19 | <div> <!-- tab algemeen --> | |
20 | <div style="overflow: hidden;"> | |
73
454fc4558609
Added style selector in recipe editer. Better formatting of cellsrenderer fields. Added When field to the fermentables list. Attempts to calculate the fermentables.
Michiel Broek <mbroek@mbse.eu>
parents:
72
diff
changeset
|
21 | <table style="width: 100%;"> |
68 | 22 | <tr> |
23 | <td style="vertical-align: top; float: right; padding: 3px;">Recept naam:</td> | |
24 | <td align="left" colspan="5" style="vertical-align: top; padding: 3px;"><input id="name" /></td> | |
25 | </tr> | |
26 | <tr> | |
27 | <td style="vertical-align: top; float: right; padding: 3px;">Opmerkingen:</td> | |
28 | <td colspan="5" style="padding: 3px;"><textarea id="notes"></textarea></td> | |
29 | </tr> | |
30 | <tr> | |
31 | <td style="vertical-align: top; float: right; padding: 3px;">Brouw type:</td> | |
95 | 32 | <td align="left" style="padding: 3px;"><div id="type"></div></td> |
33 | <td style="vertical-align: top; float: right; padding: 3px;">Brouwzaal rendement:</td> | |
34 | <td colspan="3" style="padding: 3px;"><div id="efficiency"></div></td> | |
68 | 35 | </tr> |
36 | <tr> | |
37 | <td style="vertical-align: top; float: right; padding: 3px;">Brouw volume:</td> | |
38 | <td style="padding: 3px;"><div id="batch_size"></div></td> | |
39 | <td style="vertical-align: top; float: right; padding: 3px;">Kooktijd minuten:</td> | |
40 | <td style="padding: 3px;"><div id="boil_time"></div></td> | |
95 | 41 | <td style="vertical-align: top; float: right; padding: 3px;">Kook volume:</td> |
42 | <td style="padding: 3px;"><div id="boil_size"></div></td> | |
68 | 43 | </tr> |
44 | <tr> | |
73
454fc4558609
Added style selector in recipe editer. Better formatting of cellsrenderer fields. Added When field to the fermentables list. Attempts to calculate the fermentables.
Michiel Broek <mbroek@mbse.eu>
parents:
72
diff
changeset
|
45 | <td colspan="6"><hr></td> |
454fc4558609
Added style selector in recipe editer. Better formatting of cellsrenderer fields. Added When field to the fermentables list. Attempts to calculate the fermentables.
Michiel Broek <mbroek@mbse.eu>
parents:
72
diff
changeset
|
46 | </tr> |
454fc4558609
Added style selector in recipe editer. Better formatting of cellsrenderer fields. Added When field to the fermentables list. Attempts to calculate the fermentables.
Michiel Broek <mbroek@mbse.eu>
parents:
72
diff
changeset
|
47 | <tr> |
454fc4558609
Added style selector in recipe editer. Better formatting of cellsrenderer fields. Added When field to the fermentables list. Attempts to calculate the fermentables.
Michiel Broek <mbroek@mbse.eu>
parents:
72
diff
changeset
|
48 | <td></td> |
454fc4558609
Added style selector in recipe editer. Better formatting of cellsrenderer fields. Added When field to the fermentables list. Attempts to calculate the fermentables.
Michiel Broek <mbroek@mbse.eu>
parents:
72
diff
changeset
|
49 | <th>Bierstijl gegevens</th> |
454fc4558609
Added style selector in recipe editer. Better formatting of cellsrenderer fields. Added When field to the fermentables list. Attempts to calculate the fermentables.
Michiel Broek <mbroek@mbse.eu>
parents:
72
diff
changeset
|
50 | <td></td> |
454fc4558609
Added style selector in recipe editer. Better formatting of cellsrenderer fields. Added When field to the fermentables list. Attempts to calculate the fermentables.
Michiel Broek <mbroek@mbse.eu>
parents:
72
diff
changeset
|
51 | <td align="left" colspan="3"><div id="styleSelect">Stylenlijst</div></td> |
72
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
52 | </tr> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
53 | <tr> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
54 | <td style="vertical-align: top; float: right; padding: 3px;">Stijlgids:</td> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
55 | <td align="left" style="vertical-align: top; padding: 3px;"><input readonly="1" id="st_guide" /></td> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
56 | <td style="vertical-align: top; float: right; padding: 3px;">Bier stijl:</td> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
57 | <td align="left" style="vertical-align: top; padding: 3px;"><input readonly="1" id="st_name" /></td> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
58 | <td style="vertical-align: top; float: right; padding: 3px;">Bier groep:</td> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
59 | <td align="left" style="vertical-align: top; padding: 3px;"><input readonly="1" id="st_letter" /></td> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
60 | </tr> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
61 | <tr> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
62 | <td style="vertical-align: top; float: right; padding: 3px;">Stijl type:</td> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
63 | <td align="left" style="vertical-align: top; padding: 3px;"><input readonly="1" id="st_type" /></td> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
64 | <td style="vertical-align: top; float: right; padding: 3px;">Categorie:</td> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
65 | <td align="left" style="vertical-align: top; padding: 3px;"><input readonly="1" id="st_category" /></td> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
66 | <td style="vertical-align: top; float: right; padding: 3px;">Categorie nr:</td> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
67 | <td style="padding: 3px;"><div id="st_category_number"></div></td> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
68 | </tr> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
69 | <tr> |
68 | 70 | <td style="vertical-align: top; float: right; padding: 3px;">Start SG:</td> |
72
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
71 | <td style="padding: 3px;"><div style="float: left;" id="est_og"></div><div style="float: left; margin-left: 15px;" id="st_og_min"></div><div style="float: left; margin-left: 5px;" id="st_og_max"></div></td> |
68 | 72 | <td style="vertical-align: top; float: right; padding: 3px;">Eind SG:</td> |
72
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
73 | <td style="padding: 3px;"><div style="float: left;" id="est_fg"></div><div style="float: left; margin-left: 15px;" id="st_fg_min"></div><div style="float: left; margin-left: 5px;" id="st_fg_max"></div></td> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
74 | <td style="vertical-align: top; float: right; padding: 3px;">Alcohol vol%:</td> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
75 | <td style="padding: 3px;"><div style="float: left;" id="est_abv"></div><div style="float: left; margin-left: 15px;" id="st_abv_min"></div><div style="float: left; margin-left: 5px;" id="st_abv_max"></div></td> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
76 | </tr> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
77 | <tr> |
68 | 78 | <td style="vertical-align: top; float: right; padding: 3px;">Kleur EBC:</td> |
72
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
79 | <td style="padding: 3px;"><div style="float: left;" id="est_color"></div><div style="float: left; margin-left: 15px;" id="st_color_min"></div><div style="float: left; margin-left: 5px;" id="st_color_max"></div></td> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
80 | <td style="vertical-align: top; float: right; padding: 3px;">Kleur methode:</td> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
81 | <td style="padding: 3px;"><div style="float: left;" id="color_method"></div></td> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
82 | <td style="vertical-align: top; float: right; padding: 3px;">Koolzuur vol:</td> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
83 | <td style="padding: 3px;"><div style="float: left;" id="est_carb"></div><div style="float: left; margin-left: 15px;" id="st_carb_min"></div><div style="float: left; margin-left: 5px;" id="st_carb_max"></div></td> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
84 | </tr> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
85 | <tr> |
68 | 86 | <td style="vertical-align: top; float: right; padding: 3px;">Bitterheid IBU:</td> |
72
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
87 | <td style="padding: 3px;"><div style="float: left;" id="est_ibu"></div><div style="float: left; margin-left: 15px;" id="st_ibu_min"></div><div style="float: left; margin-left: 5px;" id="st_ibu_max"></div></td> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
88 | <td style="vertical-align: top; float: right; padding: 3px;">Bitterheid methode:</td> |
93a0be4f5be3
Added category and type to the recipe style. Added tooltips in the edit screen. Added Alcohol and Carbonation to the recipe style. Redesigned the main edit window and added the style limits.
Michiel Broek <mbroek@mbse.eu>
parents:
68
diff
changeset
|
89 | <td style="padding: 3px;"><div style="float: left;" id="ibu_method"></div></td> |
68 | 90 | <td></td> |
91 | <td></td> | |
92 | </tr> | |
93 | </table> | |
73
454fc4558609
Added style selector in recipe editer. Better formatting of cellsrenderer fields. Added When field to the fermentables list. Attempts to calculate the fermentables.
Michiel Broek <mbroek@mbse.eu>
parents:
72
diff
changeset
|
94 | <div style="float: right; margin-top: 30px; margin-bottom: 10px;"> |
79 | 95 | <input style="margin-right: 100px;" type="button" id="Print" value="Print" /> |
96 | <input style="margin-right: 100px;" type="button" id="Delete" value="Delete" /> | |
97 | <input style="margin-right: 100px;" type="button" id="Save" value="Save" /> | |
98 | <input style="margin-right: 320px;" type="button" id="Cancel" value="Cancel" /> | |
68 | 99 | </div> |
100 | </div> | |
101 | </div> <!-- tab algemeen --> | |
102 | ||
103 | <div> <!-- tab vergistbaar --> | |
104 | <div style="overflow: hidden;"> | |
105 | <table> | |
106 | <tr> | |
107 | <td align="right" style="vertical-align: top;">Ingredienten:</td> | |
108 | <td align="left" colspan="3"><div id="fermentableGrid">Graat</div></td> | |
109 | </tr> | |
110 | </table> | |
111 | </div> | |
112 | </div> <!-- tab vergistbaar --> | |
113 | ||
114 | <div> <!-- tab hoppen --> | |
115 | <div style="overflow: hidden;"> | |
116 | <table> | |
117 | <tr> | |
118 | <td align="right" style="vertical-align: top;">Hoppen:</td> | |
119 | <td align="left" colspan="3"><div id="hopGrid">Graat</div></td> | |
120 | </tr> | |
121 | </table> | |
122 | </div> | |
123 | </div> <!-- tab hoppen --> | |
124 | ||
125 | <div> <!-- tab misc --> | |
126 | <div style="overflow: hidden;"> | |
127 | <table> | |
128 | <tr> | |
129 | <td align="right" style="vertical-align: top;">Diversen:</td> | |
130 | <td align="left" colspan="3"><div id="miscGrid">Graat</div></td> | |
131 | </tr> | |
132 | </table> | |
133 | </div> | |
134 | </div> <!-- tab misc --> | |
135 | ||
136 | <div> <!-- tab gisten --> | |
137 | <div style="overflow: hidden;"> | |
138 | <table> | |
139 | <tr> | |
140 | <td align="right" style="vertical-align: top;">Gisten:</td> | |
141 | <td align="left" colspan="3"><div id="yeastGrid">Graat</div></td> | |
142 | </tr> | |
143 | </table> | |
144 | </div> | |
145 | </div> <!-- tab gisten --> | |
146 | ||
147 | <div> <!-- tab water --> | |
148 | <div style="overflow: hidden;"> | |
149 | <table> | |
150 | <tr> | |
151 | <td style="vertical-align: top; padding: 3px;float: right:">Water:</td> | |
152 | <td style="padding: 3px; float: left;"><div id="waterGrid"></div></td> | |
153 | </tr> | |
154 | <tr> | |
155 | <td></td> | |
156 | <td> | |
157 | <div id='water_totals'> | |
158 | <table style="width: 100%;"> | |
159 | <caption>Water overzicht</caption> | |
160 | <tr> | |
161 | <td></td> | |
162 | <td style="width: 80px; padding: 3px;">Volume</td> | |
163 | <td style="width: 80px; padding: 3px;">Ca</td> | |
164 | <td style="width: 80px; padding: 3px;">Mg</td> | |
165 | <td style="width: 80px; padding: 3px;">Na</td> | |
166 | <td style="width: 80px; padding: 3px;">CaCO3</td> | |
167 | <td style="width: 80px; padding: 3px;">Cl</td> | |
168 | <td style="width: 80px; padding: 3px;">SO4</td> | |
169 | <td style="width: 80px; padding: 3px;">pH</td> | |
170 | </tr> | |
171 | <tr> | |
172 | <td style="vertical-align: top; padding: 3px; float: left;">Gemengd water:</td> | |
173 | <td><div id="wg_volume"></div></td> | |
174 | <td><div id="wg_calcium"></div></td> | |
175 | <td><div id="wg_magnesium"></div></td> | |
176 | <td><div id="wg_sodium"></div></td> | |
177 | <td><div id="wg_total_alkalinity"></div></td> | |
178 | <td><div id="wg_chloride"></div></td> | |
179 | <td><div id="wg_sulfate"></div></td> | |
180 | <td><div id="wg_ph"></div></td> | |
181 | </tr> | |
182 | <tr> | |
183 | <td style="vertical-align: top; padding: 3px; float: left;">Behandeld water:</td> | |
184 | <td><div></div></td> | |
185 | <td><div id="wb_calcium"></div></td> | |
186 | <td><div id="wb_magnesium"></div></td> | |
187 | <td><div id="wb_sodium"></div></td> | |
188 | <td><div id="wb_total_alkalinity"></div></td> | |
189 | <td><div id="wb_chloride"></div></td> | |
190 | <td><div id="wb_sulfate"></div></td> | |
191 | <td><div></div></td> | |
192 | </tr> | |
193 | </table> | |
194 | </div> | |
195 | </td> | |
196 | </tr> | |
197 | </table> | |
198 | </div> | |
199 | </div> <!-- tab water --> | |
200 | ||
201 | <div> <!-- tab maischen --> | |
202 | <div style="overflow: hidden;"> | |
203 | <table> | |
204 | <tr> | |
205 | <td style="vertical-align: top; float: right; padding: 3px;">Maischchema:</td> | |
206 | <td align="left" style="vertical-align: top; padding: 3px;"><input id="mash_name" /></td> | |
207 | <td style="vertical-align: top; float: right; padding: 3px;">Maish pH:</td> | |
208 | <td style="padding: 3px;"><div id="mash_ph"></div></td> | |
209 | <td style="vertical-align: top; float: right; padding: 3px;">Spoelwater temp:</td> | |
210 | <td style="padding: 3px;"><div id="mash_sparge_temp"></div></td> | |
211 | </tr> | |
212 | <tr> | |
213 | <td align="right" style="vertical-align: top; padding: 3px;">Stappen:</td> | |
214 | <td align="left" colspan="5" style="padding: 3px;"><div id="mashGrid">Graat</div></td> | |
215 | </tr> | |
216 | </table> | |
217 | </div> | |
218 | </div> <!-- tab maischen --> | |
219 | ||
220 | </div> <!-- jqxTabs --> | |
221 | ||
222 | <?php | |
223 | confirm_delete(); | |
224 | page_footer(); | |
225 | ?> |