www/prod_forum.php

branch
stable
changeset 366
a14a31bfc73b
parent 357
74d56bed75b9
child 392
544d7d0183b2
--- a/www/prod_forum.php	Sun May 12 19:24:34 2019 +0200
+++ b/www/prod_forum.php	Sun May 12 19:41:18 2019 +0200
@@ -150,8 +150,8 @@
 }
 echo PHP_EOL . PHP_EOL;
 
-echo "Specerij, kruid, brouwzout etc Type grondstof  Gebruik tijdens         Hoeveel" . PHP_EOL;
-echo "------------------------------ --------------- -------------------- ----------" . PHP_EOL;
+echo "Specerij, kruid, brouwzout etc Type grondstof  Gebruik tijdens          Hoeveel" . PHP_EOL;
+echo "------------------------------ --------------- -------------------- -----------" . PHP_EOL;
 $arr = json_decode($row['json_miscs'], true);
 foreach($arr as $item) {
 	$amount  = floatval($item['m_amount']) * 1000;
@@ -163,9 +163,9 @@
         	$gebruik = sprintf("%s %d min",$miscuse[$use_use],$time);
         else
         	$gebruik = $miscuse[$use_use];
-	$hoeveel = sprintf("%.1f %s",$amount,$aiw ? "gr":"ml");
+	$hoeveel = sprintf("%.2f %s",$amount,$aiw ? "gr":"ml");
 
-	echo sprintf("%s %-15s %-20s %10s", formatstr($item['m_name'], 30), $misctype[$item['m_type']], $gebruik, $hoeveel) . PHP_EOL;
+	echo sprintf("%s %-15s %-20s %11s", formatstr($item['m_name'], 30), $misctype[$item['m_type']], $gebruik, $hoeveel) . PHP_EOL;
 }
 echo PHP_EOL . PHP_EOL;
 

mercurial