455 function TableMashs($row) { |
455 function TableMashs($row) { |
456 global $cost_yeasts; |
456 global $cost_yeasts; |
457 global $svg; |
457 global $svg; |
458 global $mashkg; |
458 global $mashkg; |
459 global $mashtype; |
459 global $mashtype; |
460 $vul = $this->w - $this->rMargin - $this->lMargin - 137; |
460 $vul = $this->w - $this->rMargin - $this->lMargin - 138; |
461 if ($this->GetY() > 250) |
461 if ($this->GetY() > 250) |
462 $this->AddPage(); |
462 $this->AddPage(); |
463 else |
463 else |
464 $this->Ln(); |
464 $this->Ln(); |
465 $this->AddCol($vul,'Maisch stap naam','L'); |
465 $this->AddCol($vul,'Maisch stap naam','L'); |
466 $this->AddCol(25,'Stap type','L'); |
466 $this->AddCol(25,'Stap type','L'); |
467 $this->AddCol(18,'Start '.DEG.'C','R'); |
467 $this->AddCol(16,'Start '.DEG.'C','R'); |
468 $this->AddCol(18,'Eind '.DEG.'C','R'); |
468 $this->AddCol(16,'Eind '.DEG.'C','R'); |
469 $this->AddCol(18,'Rust min','R'); |
469 $this->AddCol(15,'Rust min','R'); |
470 $this->AddCol(18,'Stap min','R'); |
470 $this->AddCol(15,'Stap min','R'); |
471 $this->AddCol(20,'L/Kg','R'); |
471 $this->AddCol(15,'L/Kg','R'); |
472 $this->AddCol(20,'Infusie L','R'); |
472 $this->AddCol(18,'Inf/dec L','R'); |
|
473 $this->AddCol(18,'Inf/dec '.DEG.'C','R'); |
473 |
474 |
474 $cMargin=$this->cMargin; |
475 $cMargin=$this->cMargin; |
475 $this->cMargin=2; |
476 $this->cMargin=2; |
476 $this->TableX=$this->lMargin; |
477 $this->TableX=$this->lMargin; |
477 $this->TableHeader(); |
478 $this->TableHeader(); |
490 $thick = $vol / $mashkg; |
491 $thick = $vol / $mashkg; |
491 else |
492 else |
492 $thick = 0; |
493 $thick = 0; |
493 $this->Cell($vul,5,$item['step_name'],0,0,'L',true); |
494 $this->Cell($vul,5,$item['step_name'],0,0,'L',true); |
494 $this->Cell(25,5,$mashtype[$item['step_type']],0,0,'L',true); |
495 $this->Cell(25,5,$mashtype[$item['step_type']],0,0,'L',true); |
495 $this->Cell(18,5,sprintf("%.1f",$item['step_temp']),0,0,'R',true); |
496 $this->Cell(16,5,sprintf("%.1f",$item['step_temp']),0,0,'R',true); |
496 $this->Cell(18,5,sprintf("%.1f",$item['end_temp']),0,0,'R',true); |
497 $this->Cell(16,5,sprintf("%.1f",$item['end_temp']),0,0,'R',true); |
497 $this->Cell(18,5,sprintf("%.0f",$item['step_time']),0,0,'R',true); |
498 $this->Cell(15,5,sprintf("%.0f",$item['step_time']),0,0,'R',true); |
498 $this->Cell(18,5,sprintf("%.0f",$item['ramp_time']),0,0,'R',true); |
499 $this->Cell(15,5,sprintf("%.0f",$item['ramp_time']),0,0,'R',true); |
499 $this->Cell(20,5,sprintf("%.2f",$thick),0,0,'R',true); |
500 $this->Cell(15,5,sprintf("%.2f",$thick),0,0,'R',true); |
500 $this->Cell(20,5,sprintf("%.1f",$item['step_infuse_amount']),0,0,'R',true); |
501 if ($item['step_type'] == 1) { |
|
502 $this->Cell(18,5,' ',0,0,'R',true); |
|
503 $this->Cell(18,5,' ',0,0,'R',true); |
|
504 } else { |
|
505 $this->Cell(18,5,sprintf("%.1f",$item['step_infuse_amount']),0,0,'R',true); |
|
506 $this->Cell(18,5,sprintf("%.1f",$item['step_infuse_temp']),0,0,'R',true); |
|
507 } |
501 $this->Ln(); |
508 $this->Ln(); |
502 } |
509 } |
503 $this->ProcessingTable=false; |
510 $this->ProcessingTable=false; |
504 $this->cMargin=$cMargin; |
511 $this->cMargin=$cMargin; |
505 $this->aCols=array(); |
512 $this->aCols=array(); |