228 if (($item['h_useat'] == 2) || ($item['h_useat'] == 4)) { // Boil or Whirlpool |
228 if (($item['h_useat'] == 2) || ($item['h_useat'] == 4)) { // Boil or Whirlpool |
229 $moment = $hopuse[$item['h_useat']].' '.$time." min"; |
229 $moment = $hopuse[$item['h_useat']].' '.$time." min"; |
230 } else if ($item['h_useat'] == 5) { // Dryhop |
230 } else if ($item['h_useat'] == 5) { // Dryhop |
231 $moment = $hopuse[$item['h_useat']].' '.sprintf("%.0f", $time / 1440).' dagen'; |
231 $moment = $hopuse[$item['h_useat']].' '.sprintf("%.0f", $time / 1440).' dagen'; |
232 } |
232 } |
233 $ibu = calc_IBU($item['h_useat'], $item['h_form'], $preboil_sg, floatval($row['batch_size']), $mass, $time, $alpha, $row['ibu_method']); |
233 $ibu = calc_IBU($item['h_useat'], $item['h_form'], $preboil_sg, floatval($row['batch_size']), $mass, $time, $alpha, |
|
234 $row['ibu_method'], $row['brew_whirlpool9'], $row['brew_whirlpool7'], $row['brew_whirlpool6']); |
234 $total_ibus += $ibu; |
235 $total_ibus += $ibu; |
235 |
236 |
236 if ($amount > 1) |
237 if ($amount > 1) |
237 $amount = sprintf("%.3f",$amount).' kg'; |
238 $amount = sprintf("%.3f",$amount).' kg'; |
238 else |
239 else |