www/prod_forum.php

changeset 539
fe9ac6d49c4f
parent 516
28670364bd0c
child 542
dabe1c854a0f
equal deleted inserted replaced
538:41d21817608e 539:fe9ac6d49c4f
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';

mercurial