238 $this->Checkline($s); |
238 $this->Checkline($s); |
239 } |
239 } |
240 } |
240 } |
241 if ($this->Checksplit(1, $row)) |
241 if ($this->Checksplit(1, $row)) |
242 $factor = 1; |
242 $factor = 1; |
243 if ($this->GetY() > 200) |
243 if ($this->GetY() > 200 && $row['boil_time'] > 0) |
|
244 $this->AddPage(); |
|
245 else if ($this->GetY() > 270 && $row['boil_time'] == 0) |
244 $this->AddPage(); |
246 $this->AddPage(); |
245 else |
247 else |
246 $this->Ln(5); |
248 $this->Ln(5); |
247 |
249 |
248 $this->Checkheader('Koken'); |
250 $this->Checkheader('Koken'); |
249 $this->Checkline('totale kooktijd: '.$row['boil_time'].' min.'); |
251 if ($row['boil_time'] > 0) { |
250 for ($i = $row['boil_time']; $i >= 0; $i--) { |
252 $this->Checkline('totale kooktijd: '.$row['boil_time'].' min.'); |
251 if ($i == 10) { |
253 for ($i = $row['boil_time']; $i >= 0; $i--) { |
252 foreach($ferms as $item1) { |
254 if ($i == 10) { |
253 if ($item1['f_added'] == 1) { |
255 foreach($ferms as $item1) { |
254 $s = sprintf("%.3f",$item1['f_amount']*$factor).' kg `'; |
256 if ($item1['f_added'] == 1) { |
255 $s .= iconv('UTF-8','windows-1252',$item1['f_name']).'` bij 10 minuten voor einde koken'; |
257 $s = sprintf("%.3f",$item1['f_amount']*$factor).' kg `'; |
|
258 $s .= iconv('UTF-8','windows-1252',$item1['f_name']).'` bij 10 minuten voor einde koken'; |
|
259 $this->Checkline($s); |
|
260 } |
|
261 } |
|
262 if ($row['brew_cooling_method'] == 1) |
|
263 $this->Checkline('Plaats dompelkoeler bij 10 minuten voor einde koken'); |
|
264 } |
|
265 foreach($hops as $item2) { |
|
266 if (($item2['h_useat'] == 2 || $item2['h_useat'] == 3) && ($item2['h_time'] == $i)) { |
|
267 $s = sprintf("%.2f",$item2['h_amount']*1000*$factor).' gr `'; |
|
268 $s .= iconv('UTF-8','windows-1252',$item2['h_name']).'` bij '; |
|
269 if ($i > 0) |
|
270 $s .= $i.' minuten voor einde koken'; |
|
271 else |
|
272 $s .= 'vlamuit'; |
256 $this->Checkline($s); |
273 $this->Checkline($s); |
257 } |
274 } |
258 } |
275 } |
259 if ($row['brew_cooling_method'] == 1) |
276 foreach($miscs as $item3) { |
260 $this->Checkline('Plaats dompelkoeler bij 10 minuten voor einde koken'); |
277 if ($item3['m_use_use'] == 2 && $item3['m_time'] == $i) { |
261 } |
278 $unit = ($item3['m_amount_is_weight']) ? " gr ":" ml "; |
262 foreach($hops as $item2) { |
279 $s = sprintf("%.2f",$item3['m_amount']*1000*$factor).$unit.'`'; |
263 if (($item2['h_useat'] == 2 || $item2['h_useat'] == 3) && ($item2['h_time'] == $i)) { |
280 $s .= iconv('UTF-8','windows-1252',$item3['m_name']).'` bij '; |
264 $s = sprintf("%.2f",$item2['h_amount']*1000*$factor).' gr `'; |
281 if ($i > 0) |
265 $s .= iconv('UTF-8','windows-1252',$item2['h_name']).'` bij '; |
282 $s .= $i.' minuten voor einde koken'; |
266 if ($i > 0) |
283 else |
267 $s .= $i.' minuten voor einde koken'; |
284 $s .= 'vlamuit'; |
268 else |
285 $this->Checkline($s); |
269 $s .= 'vlamuit'; |
286 } |
270 $this->Checkline($s); |
287 } |
271 } |
288 |
272 } |
289 } |
273 foreach($miscs as $item3) { |
290 $s = 'doelvolume einde koken: '.sprintf("%.1f",$row['batch_size']*$factor*1.04).' liter ('; |
274 if ($item3['m_use_use'] == 2 && $item3['m_time'] == $i) { |
291 $s .= sprintf("%.1f",kettle_cm($row['batch_size']*$factor*1.04,$row['eq_kettle_volume'],$row['eq_kettle_height'])); |
275 $unit = ($item3['m_amount_is_weight']) ? " gr ":" ml "; |
292 $s .= ' cm onder de rand)'; |
276 $s = sprintf("%.2f",$item3['m_amount']*1000*$factor).$unit.'`'; |
293 $this->Checkline($s); |
277 $s .= iconv('UTF-8','windows-1252',$item3['m_name']).'` bij '; |
294 $this->Checkline('doel SG einde koken: '.density_str($row['est_og3'])); |
278 if ($i > 0) |
295 if ($this->Checksplit(2, $row)) |
279 $s .= $i.' minuten voor einde koken'; |
296 $factor = 1; |
280 else |
297 } else { |
281 $s .= 'vlamuit'; |
298 $this->Checkline('Dit is een `no-boil\' recept'); |
282 $this->Checkline($s); |
299 } |
283 } |
|
284 } |
|
285 |
|
286 } |
|
287 $s = 'doelvolume einde koken: '.sprintf("%.1f",$row['batch_size']*$factor*1.04).' liter ('; |
|
288 $s .= sprintf("%.1f",kettle_cm($row['batch_size']*$factor*1.04,$row['eq_kettle_volume'],$row['eq_kettle_height'])); |
|
289 $s .= ' cm onder de rand)'; |
|
290 $this->Checkline($s); |
|
291 $this->Checkline('doel SG einde koken: '.density_str($row['est_og3'])); |
|
292 if ($this->Checksplit(2, $row)) |
|
293 $factor = 1; |
|
294 if ($this->GetY() > 200) |
300 if ($this->GetY() > 200) |
295 $this->AddPage(); |
301 $this->AddPage(); |
296 else |
302 else |
297 $this->Ln(5); |
303 $this->Ln(5); |
298 |
304 |