80 |
87 |
81 $this->SetFont('Helvetica','',9); |
88 $this->SetFont('Helvetica','',9); |
82 $this->SetFillColor(210,245,255); |
89 $this->SetFillColor(210,245,255); |
83 |
90 |
84 $this->SetX($this->TableX); |
91 $this->SetX($this->TableX); |
85 $this->Cell(35,5,'Type',0,0,'L',true); |
92 $this->Cell(35,5,'Brouw type',0,0,'L',true); |
86 $this->Cell(45,5,$recipetype[$row['type']],0,0,'L',true); |
93 $this->Cell(45,5,$recipetype[$row['type']],0,0,'L',true); |
87 $this->Cell($vul,5,'',0,0,'L',false); |
94 $this->Cell($vul,5,'',0,0,'L',false); |
88 $this->Cell(35,5,'Batch grootte',0,0,'L',true); |
95 $this->Cell(35,5,'Batch grootte',0,0,'L',true); |
89 $this->Cell(45,5,$row['batch_size'].' liter',0,0,'L',true); |
96 if ($divide_parts == 0) |
|
97 $this->Cell(45,5,$row['batch_size'].' liter',0,0,'L',true); |
|
98 else |
|
99 $this->Cell(45,5,$row['batch_size'].' van '.($row['batch_size'] * (1 / $divide_factor)).' liter',0,0,'L',true); |
90 $this->Ln(); |
100 $this->Ln(); |
91 |
101 |
92 $this->SetX($this->TableX); |
102 $this->SetX($this->TableX); |
93 $this->Cell(35,5,'Kooktijd',0,0,'L',true); |
103 $this->Cell(35,5,'Kooktijd',0,0,'L',true); |
94 $this->Cell(45,5,$row['boil_time'].' minuten',0,0,'L',true); |
104 $this->Cell(45,5,$row['boil_time'].' minuten',0,0,'L',true); |
102 $this->Cell(45,5,$row['st_name'],0,0,'L',true); |
112 $this->Cell(45,5,$row['st_name'],0,0,'L',true); |
103 $this->Cell($vul,5,'',0,0,'L',false); |
113 $this->Cell($vul,5,'',0,0,'L',false); |
104 $this->Cell(35,5,'Installatie',0,0,'L',true); |
114 $this->Cell(35,5,'Installatie',0,0,'L',true); |
105 $this->Cell(45,5,$row['eq_name'],0,0,'L',true); |
115 $this->Cell(45,5,$row['eq_name'],0,0,'L',true); |
106 $this->Ln(); |
116 $this->Ln(); |
|
117 |
|
118 if ($divide_parts) { |
|
119 $this->SetX($this->TableX); |
|
120 $this->Cell(35,5,'Batch splits moment',0,0,'L',true); |
|
121 $this->Cell(45,5,$splitat[$row['divide_type']],0,0,'L',true); |
|
122 $this->Ln(); |
|
123 } |
107 |
124 |
108 $this->cMargin=$cMargin; |
125 $this->cMargin=$cMargin; |
109 } |
126 } |
110 |
127 |
111 function TableFermentables($row) { |
128 function TableFermentables($row) { |
153 $yield = floatval($item['f_yield']); |
170 $yield = floatval($item['f_yield']); |
154 $moisture = floatval($item['f_moisture']); |
171 $moisture = floatval($item['f_moisture']); |
155 $color = floatval($item['f_color']); |
172 $color = floatval($item['f_color']); |
156 $percent = floatval($item['f_percentage']); |
173 $percent = floatval($item['f_percentage']); |
157 |
174 |
158 if ($item['f_type'] == 1) // Sugar |
175 if ($item['f_type'] == 1) // Sugar |
159 $pSugar += $percent; |
176 $pSugar += $percent; |
160 if ($item['f_graintype'] == 2) // Crystal |
177 if ($item['f_graintype'] == 2) // Crystal |
161 $pCara += $percent; |
178 $pCara += $percent; |
162 |
179 |
163 if ($item['f_type'] == 0) |
180 if ($item['f_type'] == 0) |
1092 class PDF extends PDF_MySQL_Table { |
1109 class PDF extends PDF_MySQL_Table { |
1093 function Header() { |
1110 function Header() { |
1094 global $row; |
1111 global $row; |
1095 global $prdate; |
1112 global $prdate; |
1096 global $stage; |
1113 global $stage; |
|
1114 global $divide_parts; |
|
1115 global $divide_part; |
1097 $this->Image('images/logo.png',10,10,30); |
1116 $this->Image('images/logo.png',10,10,30); |
1098 // Title |
1117 // Title |
1099 $this->SetFont('Helvetica','B',18); |
1118 $this->SetFont('Helvetica','B',18); |
1100 $this->SetX(45); |
1119 $this->SetX(45); |
1101 $this->Cell(0,8,$row['code'].' '.$row['name'],0,1,'L'); |
1120 $this->Cell(0,8,$row['code'].' '.$row['name'],0,1,'L'); |
1108 $this->Cell(17,5,'Stijl:',0,0,'L'); |
1127 $this->Cell(17,5,'Stijl:',0,0,'L'); |
1109 $this->Cell(0,5,$row['st_name'],0,1,'L'); |
1128 $this->Cell(0,5,$row['st_name'],0,1,'L'); |
1110 $this->SetX(45); |
1129 $this->SetX(45); |
1111 $this->Cell(17,5,'Fase:',0,0,'L'); |
1130 $this->Cell(17,5,'Fase:',0,0,'L'); |
1112 $this->Cell(0,5,$stage[$row['stage']],0,1,'L'); |
1131 $this->Cell(0,5,$stage[$row['stage']],0,1,'L'); |
1113 $this->Ln(6); |
1132 $this->SetX(45); |
|
1133 $this->Cell(17,5,'Batch:',0,0,'L'); |
|
1134 if ($divide_parts == 0) |
|
1135 $this->Cell(0,5,"Niet gespitst",0,1,'L'); |
|
1136 else |
|
1137 $this->Cell(0,5,"Split batch ".($divide_part + 1)." van ".($divide_parts + 1),0,1,'L'); |
|
1138 $this->Ln(2); |
1114 // Ensure table header is printed |
1139 // Ensure table header is printed |
1115 parent::Header(); |
1140 parent::Header(); |
1116 } |
1141 } |
1117 } |
1142 } |
1118 |
1143 |