www/prod_forum.php

changeset 357
74d56bed75b9
parent 341
9c4bc199be9e
child 392
544d7d0183b2
equal deleted inserted replaced
356:36c72e368948 357:74d56bed75b9
148 echo sprintf("%s %-7s %5.1f %5.1f %6.1f %-20s", $name, $hopform[$item['h_form']], $alpha, $ibu, $amount, $moment); 148 echo sprintf("%s %-7s %5.1f %5.1f %6.1f %-20s", $name, $hopform[$item['h_form']], $alpha, $ibu, $amount, $moment);
149 echo PHP_EOL; 149 echo PHP_EOL;
150 } 150 }
151 echo PHP_EOL . PHP_EOL; 151 echo PHP_EOL . PHP_EOL;
152 152
153 echo "Specerij, kruid, brouwzout etc Type grondstof Gebruik tijdens Hoeveel" . PHP_EOL; 153 echo "Specerij, kruid, brouwzout etc Type grondstof Gebruik tijdens Hoeveel" . PHP_EOL;
154 echo "------------------------------ --------------- -------------------- ----------" . PHP_EOL; 154 echo "------------------------------ --------------- -------------------- -----------" . PHP_EOL;
155 $arr = json_decode($row['json_miscs'], true); 155 $arr = json_decode($row['json_miscs'], true);
156 foreach($arr as $item) { 156 foreach($arr as $item) {
157 $amount = floatval($item['m_amount']) * 1000; 157 $amount = floatval($item['m_amount']) * 1000;
158 $aiw = $item['m_amount_is_weight']; 158 $aiw = $item['m_amount_is_weight'];
159 $use_use = $item['m_use_use']; 159 $use_use = $item['m_use_use'];
161 161
162 if ($use_use == 2) // Boil 162 if ($use_use == 2) // Boil
163 $gebruik = sprintf("%s %d min",$miscuse[$use_use],$time); 163 $gebruik = sprintf("%s %d min",$miscuse[$use_use],$time);
164 else 164 else
165 $gebruik = $miscuse[$use_use]; 165 $gebruik = $miscuse[$use_use];
166 $hoeveel = sprintf("%.1f %s",$amount,$aiw ? "gr":"ml"); 166 $hoeveel = sprintf("%.2f %s",$amount,$aiw ? "gr":"ml");
167 167
168 echo sprintf("%s %-15s %-20s %10s", formatstr($item['m_name'], 30), $misctype[$item['m_type']], $gebruik, $hoeveel) . PHP_EOL; 168 echo sprintf("%s %-15s %-20s %11s", formatstr($item['m_name'], 30), $misctype[$item['m_type']], $gebruik, $hoeveel) . PHP_EOL;
169 } 169 }
170 echo PHP_EOL . PHP_EOL; 170 echo PHP_EOL . PHP_EOL;
171 171
172 echo "Gistlab en code Omschrijving Gebruik Vorm Hoeveel" . PHP_EOL; 172 echo "Gistlab en code Omschrijving Gebruik Vorm Hoeveel" . PHP_EOL;
173 echo "-------------------- ------------------------------ ------------ ------------ ----------" . PHP_EOL; 173 echo "-------------------- ------------------------------ ------------ ------------ ----------" . PHP_EOL;

mercurial