Added Cryo Hop support to the export scripts.

Wed, 21 Aug 2019 17:16:53 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Wed, 21 Aug 2019 17:16:53 +0200
changeset 449
a1d6b9eec988
parent 448
e1a4104c609e
child 450
fa742816bb8b

Added Cryo Hop support to the export scripts.

www/prod_beerxml.php file | annotate | diff | comparison | revisions
www/prod_forum.php file | annotate | diff | comparison | revisions
www/prod_print.php file | annotate | diff | comparison | revisions
www/rec_beerxml.php file | annotate | diff | comparison | revisions
www/rec_forum.php file | annotate | diff | comparison | revisions
www/rec_print.php file | annotate | diff | comparison | revisions
--- a/www/prod_beerxml.php	Wed Aug 21 16:34:07 2019 +0200
+++ b/www/prod_beerxml.php	Wed Aug 21 17:16:53 2019 +0200
@@ -26,7 +26,7 @@
 $recipetype = array( 'Extract', 'Partial Mash', 'All Grain' );
 $styletype = array( 'Lager', 'Ale', 'Mead', 'Wheat', 'Mixed', 'Cider' );
 $hoptype = array( 'Bittering', 'Aroma', 'Both' );
-$hopform = array( 'Pellet', 'Plug', 'Leaf' );
+$hopform = array( 'Pellet', 'Plug', 'Leaf', 'Leaf', 'Leaf' );
 $hopuse = array( 'Mash', 'First wort', 'Boil', 'Aroma', 'Whirlpool', 'Dry hop' );
 $fermentabletype = array( 'Grain', 'Sugar', 'Extract', 'Dry extract', 'Adjunct' );
 $graintype = array( 'Base', 'Roast', 'Crystal', 'Kilned', 'Sour malt', 'Special', 'No malt' );
--- a/www/prod_forum.php	Wed Aug 21 16:34:07 2019 +0200
+++ b/www/prod_forum.php	Wed Aug 21 17:16:53 2019 +0200
@@ -37,7 +37,7 @@
 $colormethod = array( 'Morey', 'Mosher', 'Daniels' );
 $ibumethod   = array( 'Tinseth', 'Rager', 'Daniels' );
 $added       = array( 'Maischen', 'Koken', 'Vergisten', 'Nagisten/lageren', 'Bottelen' );
-$hopform     = array( 'Pellets', 'Plugs', 'Bellen', 'Hop nat' );
+$hopform     = array( 'Pellets', 'Plugs', 'Bellen', 'Hop nat', 'Cryo Hop' );
 $hopuse      = array( 'Maischen', 'First wort', 'Koken', 'Vlamuit', 'Whirlpool', 'Koudhop' );
 $misctype    = array( 'Specerij', 'Kruid', 'Smaakstof', 'Klaringsmiddel', 'Brouwzout', 'Gistvoeding', 'Anders' );
 $miscuse     = array( 'Starter', 'Maischen', 'Koken', 'Hoofdvergisting', 'Nagisting/lagering', 'Bottelen' );
@@ -131,8 +131,8 @@
 echo PHP_EOL . PHP_EOL;
 
 
-echo "Hop                                      Vorm      &alpha; %   IBU   Gram Toevoegen moment" . PHP_EOL;
-echo "---------------------------------------- ------- ----- ----- ------ --------------------" . PHP_EOL;
+echo "Hop                                      Vorm       &alpha; %   IBU   Gram Toevoegen moment" . PHP_EOL;
+echo "---------------------------------------- -------- ----- ----- ------ --------------------" . PHP_EOL;
 $arr = json_decode($row['json_hops'], true);
 foreach($arr as $item) {
 	$name   = formatstr($item['h_name'] . " (" . $item['h_origin'] . ")", 40);
@@ -147,7 +147,7 @@
 		$moment = $hopuse[$item['h_useat']].' '.sprintf("%.0f", $time / 1440).' dagen';
         }
 
-	echo sprintf("%s %-7s %5.1f %5.1f %6.1f %-20s", $name, $hopform[$item['h_form']], $alpha, $ibu, $amount, $moment);
+	echo sprintf("%s %-8s %5.1f %5.1f %6.1f %-20s", $name, $hopform[$item['h_form']], $alpha, $ibu, $amount, $moment);
 	echo PHP_EOL;
 }
 echo PHP_EOL . PHP_EOL;
--- a/www/prod_print.php	Wed Aug 21 16:34:07 2019 +0200
+++ b/www/prod_print.php	Wed Aug 21 17:16:53 2019 +0200
@@ -218,7 +218,7 @@
 		global $total_ibus;
 		global $cost_hops;
 		global $preboil_sg;
-		$hopform = array( 'Pellets', 'Plugs', 'Bellen', 'Hop nat' );
+		$hopform = array( 'Pellets', 'Plugs', 'Bellen', 'Hop nat', 'Cryo Hop' );
 		$hopuse  = array( 'Maischen', 'First wort', 'Koken', 'Vlamuit', 'Whirlpool', 'Koudhop' );
 		$vul = $this->w - $this->rMargin - $this->lMargin - 122;
 		$this->Ln();
--- a/www/rec_beerxml.php	Wed Aug 21 16:34:07 2019 +0200
+++ b/www/rec_beerxml.php	Wed Aug 21 17:16:53 2019 +0200
@@ -26,7 +26,7 @@
 $recipetype = array( 'Extract', 'Partial Mash', 'All Grain' );
 $styletype = array( 'Lager', 'Ale', 'Mead', 'Wheat', 'Mixed', 'Cider' );
 $hoptype = array( 'Bittering', 'Aroma', 'Both' );
-$hopform = array( 'Pellet', 'Plug', 'Leaf' );
+$hopform = array( 'Pellet', 'Plug', 'Leaf', 'Leaf', 'Leaf' );
 $hopuse = array( 'Mash', 'First wort', 'Boil', 'Aroma', 'Whirlpool', 'Dry hop' );
 $fermentabletype = array( 'Grain', 'Sugar', 'Extract', 'Dry extract', 'Adjunct' );
 $graintype = array( 'Base', 'Roast', 'Crystal', 'Kilned', 'Sour malt', 'Special', 'No malt' );
--- a/www/rec_forum.php	Wed Aug 21 16:34:07 2019 +0200
+++ b/www/rec_forum.php	Wed Aug 21 17:16:53 2019 +0200
@@ -37,7 +37,7 @@
 $colormethod = array( 'Morey', 'Mosher', 'Daniels' );
 $ibumethod   = array( 'Tinseth', 'Rager', 'Daniels' );
 $added       = array( 'Maischen', 'Koken', 'Vergisten', 'Nagisten/lageren', 'Bottelen' );
-$hopform     = array( 'Pellets', 'Plugs', 'Bellen', 'Hop nat' );
+$hopform     = array( 'Pellets', 'Plugs', 'Bellen', 'Hop nat', 'Cryo Hop' );
 $hopuse      = array( 'Maischen', 'First wort', 'Koken', 'Vlamuit', 'Whirlpool', 'Koudhop' );
 $misctype    = array( 'Specerij', 'Kruid', 'Smaakstof', 'Klaringsmiddel', 'Brouwzout', 'Gistvoeding', 'Anders' );
 $miscuse     = array( 'Starter', 'Maischen', 'Koken', 'Hoofdvergisting', 'Nagisting/lagering', 'Bottelen' );
@@ -131,8 +131,8 @@
 echo PHP_EOL . PHP_EOL;
 
 
-echo "Hop                                      Vorm      &alpha; %   IBU   Gram Toevoegen moment" . PHP_EOL;
-echo "---------------------------------------- ------- ----- ----- ------ --------------------" . PHP_EOL;
+echo "Hop                                      Vorm       &alpha; %   IBU   Gram Toevoegen moment" . PHP_EOL;
+echo "---------------------------------------- -------- ----- ----- ------ --------------------" . PHP_EOL;
 $arr = json_decode($row['json_hops'], true);
 foreach($arr as $item) {
 	$name   = formatstr($item['h_name'] . " (" . $item['h_origin'] . ")", 40);
@@ -147,7 +147,7 @@
 		$moment = $hopuse[$item['h_useat']].' '.sprintf("%.0f", $time / 1440).' dagen';
         }
 
-	echo sprintf("%s %-7s %5.1f %5.1f %6.1f %-20s", $name, $hopform[$item['h_form']], $alpha, $ibu, $amount, $moment);
+	echo sprintf("%s %-8s %5.1f %5.1f %6.1f %-20s", $name, $hopform[$item['h_form']], $alpha, $ibu, $amount, $moment);
 	echo PHP_EOL;
 }
 echo PHP_EOL . PHP_EOL;
--- a/www/rec_print.php	Wed Aug 21 16:34:07 2019 +0200
+++ b/www/rec_print.php	Wed Aug 21 17:16:53 2019 +0200
@@ -188,7 +188,7 @@
 		global $total_ibus;
 		global $cost_hops;
 		global $preboil_sg;
-		$hopform = array( 'Pellets', 'Plugs', 'Bellen', 'Hop nat' );
+		$hopform = array( 'Pellets', 'Plugs', 'Bellen', 'Hop nat', 'Cryo Hop' );
 		$hopuse  = array( 'Maischen', 'First wort', 'Koken', 'Vlamuit', 'Whirlpool', 'Koudhop' );
 		$vul = $this->w - $this->rMargin - $this->lMargin - 122;
 		$this->Ln();

mercurial