125 foreach($arr as $item) { |
125 foreach($arr as $item) { |
126 $name = formatstr($item['h_name'] . " (" . $item['h_origin'] . ")", 40); |
126 $name = formatstr($item['h_name'] . " (" . $item['h_origin'] . ")", 40); |
127 $amount = floatval($item['h_amount']) * 1000; |
127 $amount = floatval($item['h_amount']) * 1000; |
128 $time = floatval($item['h_time']); |
128 $time = floatval($item['h_time']); |
129 $alpha = floatval($item['h_alpha']); |
129 $alpha = floatval($item['h_alpha']); |
130 $ibu = calc_IBU($item['h_useat'], $item['h_form'], $preboil_sg, floatval($row['batch_size']), $amount, $time, $alpha, $row['ibu_method']); |
130 $ibu = calc_IBU($item['h_useat'], $item['h_form'], $preboil_sg, floatval($row['batch_size']), $amount, $time, $alpha, |
|
131 $row['ibu_method'], $row['brew_whirlpool9'], $row['brew_whirlpool7'], $row['brew_whirlpool6']); |
131 $moment = $hopuse[$item['h_useat']]; |
132 $moment = $hopuse[$item['h_useat']]; |
132 if (($item['h_useat'] == 2) || ($item['h_useat'] == 4)) { // Boil or Whirlpool |
133 if (($item['h_useat'] == 2) || ($item['h_useat'] == 4)) { // Boil or Whirlpool |
133 $moment = $hopuse[$item['h_useat']].' '.$time." minuten"; |
134 $moment = $hopuse[$item['h_useat']].' '.$time." minuten"; |
134 } else if ($item['h_useat'] == 5) { // Dryhop |
135 } else if ($item['h_useat'] == 5) { // Dryhop |
135 $moment = $hopuse[$item['h_useat']].' '.sprintf("%.0f", $time / 1440).' dagen'; |
136 $moment = $hopuse[$item['h_useat']].' '.sprintf("%.0f", $time / 1440).' dagen'; |