20 |
19 |
21 $preboil_sg = 0; |
20 $preboil_sg = 0; |
22 date_default_timezone_set('Europe/Amsterdam'); |
21 date_default_timezone_set('Europe/Amsterdam'); |
23 $prdate = date(DATE_RFC2822); |
22 $prdate = date(DATE_RFC2822); |
24 |
23 |
25 ?> |
24 |
26 <!DOCTYPE html> |
25 /* |
27 <html lang=nl-NL> |
26 * Generate the output in a string. |
28 <head> |
27 */ |
29 <meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
28 $tabus = '[tabular]'; |
30 <title>BMS v<?php echo $my_version;?> - Export recipe</title> |
29 $tabue = '[/tabular]'; |
31 <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> |
30 $heads = '[head]'; |
32 </head> |
31 $heade = '[/head]'; |
33 <body> |
32 $rows = '[row]'; |
34 <pre> |
33 $rowe = '[/row]'; |
35 <?php |
34 $datas = '[data]'; |
36 |
35 $datae = '[/data]'; |
37 |
36 |
38 function itemline($item, $content) { |
37 $memo = "[u][b]BMS v".$my_version." - Datum export: ".$prdate.'[/b][/u]'.PHP_EOL; |
39 |
38 $memo .= PHP_EOL; |
40 echo $item . " "; |
39 $memo .= PHP_EOL; |
41 for ($i = strlen($item); $i < 40; $i++) |
40 $memo .= '[u][b]Basis[/b][/u]'.PHP_EOL; |
42 echo "."; |
41 $memo .= $tabus.PHP_EOL; |
43 echo ": " . $content . PHP_EOL; |
42 $memo .= $heads.'Omschrijving'.$heade.$heads.'Waarde'.$heade.PHP_EOL; |
44 } |
43 $memo .= $rows.$datas.'Bier naam'.$datae.$datas.$row['code'].' '.$row['name'].$datae.$rowe.PHP_EOL; |
45 |
44 $memo .= $rows.$datas.'Bier stijl'.$datae.$datas.$row['st_name'].$datae.$rowe.PHP_EOL; |
46 |
45 $memo .= $rows.$datas.'Recept type'.$datae.$datas.$recipetype[$row['type']].$datae.$rowe.PHP_EOL; |
47 function formatstr($strin, $len) { |
46 $memo .= $rows.$datas.'Batch grootte'.$datae.$datas.$row['batch_size'].' liter'.$datae.$rowe.PHP_EOL; |
48 |
47 $memo .= $rows.$datas.'Kooktijd'.$datae.$datas.$row['boil_time'].' minuten'.$datae.$rowe.PHP_EOL; |
49 $strout = null; |
48 $memo .= $rows.$datas.'Brouwzaal rendement'.$datae.$datas.$row['efficiency'].' %'.$datae.$rowe.PHP_EOL; |
50 $cnt = 0; |
49 $memo .= $rows.$datas.'Geschatte begin densiteit'.$datae.$datas.sprintf("%.3f",$row['est_og']).' SG/ '.sprintf("%.1f", sg_to_plato($row['est_og'])).'°P'.$datae.$rowe.PHP_EOL; |
51 |
50 $memo .= $rows.$datas.'Geschatte eind densiteit'.$datae.$datas.sprintf("%.3f",$row['est_fg']).' SG/ '.sprintf("%.1f", sg_to_plato($row['est_fg'])).'°P'.$datae.$rowe.PHP_EOL; |
52 for ($i = 0; $i < strlen($strin); $i++) { |
51 $memo .= $rows.$datas.'Geschat alcohol'.$datae.$datas.sprintf("%.1f",$row['est_abv']).'% vol'.$datae.$rowe.PHP_EOL; |
53 $ord = ord($strin[$i]); |
52 $memo .= $rows.$datas.'Kleur ('.$colormethod[$row['color_method']].')'.$datae.$datas.$row['est_color'].' EBC'.$datae.$rowe.PHP_EOL; |
54 if ($ord != 195) |
53 $memo .= $rows.$datas.'Bitterheid ('.$ibumethod[$row['ibu_method']].')'.$datae.$datas.$row['est_ibu'].' IBU'.$datae.$rowe.PHP_EOL; |
55 $cnt++; |
|
56 |
|
57 switch ($strin[$i]) { |
|
58 case '<': |
|
59 $strout .= '<'; |
|
60 break; |
|
61 case '>': |
|
62 $strout .= '>'; |
|
63 break; |
|
64 case '&': |
|
65 $strout .= '&'; |
|
66 break; |
|
67 case '"': |
|
68 $strout .= '"'; |
|
69 break; |
|
70 default: |
|
71 $strout .= $strin[$i]; |
|
72 } |
|
73 |
|
74 if ($cnt >= $len) |
|
75 break; |
|
76 } |
|
77 |
|
78 for ($i = $cnt; $i < $len; $i++) |
|
79 $strout .= " "; |
|
80 return $strout; |
|
81 } |
|
82 |
|
83 |
|
84 echo "BMS v" . $my_version . " - Datum export: " . $prdate . PHP_EOL; |
|
85 echo "----------------------------------------------------------" . PHP_EOL; |
|
86 itemline("Bier naam", $row['code'].' '.$row['name']); |
|
87 itemline("Bier stijl", $row['st_name']); |
|
88 itemline("Recept type", $recipetype[$row['type']]); |
|
89 itemline("Batch grootte", $row['batch_size'].' liter'); |
|
90 itemline("Kooktijd", $row['boil_time'].' minuten'); |
|
91 itemline("Brouwzaal rendement", $row['efficiency'].' %'); |
|
92 itemline("Geschatte begin densiteit", sprintf("%.3f",$row['est_og']).' SG/ '.sprintf("%.1f", sg_to_plato($row['est_og'])).'°P'); |
|
93 itemline("Geschatte eind densiteit", sprintf("%.3f",$row['est_fg']).' SG/ '.sprintf("%.1f", sg_to_plato($row['est_fg'])).'°P'); |
|
94 itemline("Geschat alcohol", sprintf("%.1f",$row['est_abv']).'% vol'); |
|
95 itemline("Kleur (" . $colormethod[$row['color_method']] . ")", $row['est_color'] . ' EBC'); |
|
96 itemline("Bitterheid (" . $ibumethod[$row['ibu_method']] . ")", $row['est_ibu'] . ' IBU'); |
|
97 if ($row['divide_parts']) |
54 if ($row['divide_parts']) |
98 itemline("Split batch (".$splitat[$row['divide_type']].")", ($row['divide_part'] + 1)." van ".($row['divide_parts'] + 1)); |
55 $memo .= $rows.$datas.'Split batch (' .$splitat[$row['divide_type']].')'.$datae.$datas.($row['divide_part'] + 1)." van ".($row['divide_parts'] + 1).$datae.$rowe.PHP_EOL; |
99 echo PHP_EOL . PHP_EOL; |
56 $memo .= $tabue.PHP_EOL; |
|
57 $memo .= PHP_EOL; |
|
58 |
100 |
59 |
101 $sugarsm = 0; |
60 $sugarsm = 0; |
102 $grainabsorbtion = 0; |
61 $grainabsorbtion = 0; |
103 $mashwater = 0; |
62 $mashwater = 0; |
104 |
63 |
|
64 $memo .= '[u][b]Vergistbare ingrediënten[/b][/u]'.PHP_EOL; |
|
65 $memo .= $tabus.PHP_EOL; |
|
66 $memo .= $heads.'Mout, granen en suikers'.$heade.$heads.'EBC'. $heade.$heads.'Gewicht kg'.$heade.$heads.'%'.$heade.$heads.'Gebruik tijdens'.$heade.PHP_EOL; |
|
67 |
105 $arr = json_decode($row['json_fermentables'], true); |
68 $arr = json_decode($row['json_fermentables'], true); |
106 echo "Mout, granen en suikers EBC Gewicht kg % Gebruik tijdens" . PHP_EOL; |
69 foreach($arr as $item) { |
107 echo "---------------------------------------- ---- ---------- ----- ----------------" . PHP_EOL; |
70 $name = $item['f_name']." (".$item['f_supplier'].")"; |
108 foreach($arr as $item) { |
|
109 $name = formatstr($item['f_name'] . " (" . $item['f_supplier'] . ")", 40); |
|
110 $amount = floatval($item['f_amount']); |
71 $amount = floatval($item['f_amount']); |
111 $d = $amount * (floatval($item['f_yield']) / 100) * (1 - floatval($item['f_moisture']) / 100); |
72 $d = $amount * (floatval($item['f_yield']) / 100) * (1 - floatval($item['f_moisture']) / 100); |
112 if ($item['f_added'] == 0) { |
73 if ($item['f_added'] == 0) { |
113 $d = floatval($row['efficiency']) / 100 * $d; |
74 $d = floatval($row['efficiency']) / 100 * $d; |
114 $sugarsm += $d; |
75 $sugarsm += $d; |
115 $grainabsorbtion += $item['f_amount']; |
76 $grainabsorbtion += $item['f_amount']; |
116 } |
77 } |
117 echo sprintf("%s %4.0f %10.3f %5.1f ", $name, floatval($item['f_color']), $amount, floatval($item['f_percentage'])); |
78 $pct = ''; |
118 echo $added[$item['f_added']] . PHP_EOL; |
79 if ($item['f_added'] < 4) |
|
80 $pct = sprintf("%.1f", floatval($item['f_percentage'])); |
|
81 |
|
82 $memo .= $rows.$datas.$name.$datae.$datas.sprintf("%.0f", floatval($item['f_color'])).$datae.$datas; |
|
83 $memo .= sprintf("%.3f", $amount).$datae.$datas.$pct.$datae.$datas; |
|
84 $memo .= $added[$item['f_added']].$datae.$rowe .PHP_EOL; |
119 } |
85 } |
120 $preboil_sg = estimate_sg($sugarsm, floatval($row['boil_size'])); |
86 $preboil_sg = estimate_sg($sugarsm, floatval($row['boil_size'])); |
121 echo PHP_EOL . PHP_EOL; |
87 $memo .= $tabue.PHP_EOL; |
122 |
88 $memo .= PHP_EOL; |
123 |
89 |
124 echo "Hop Vorm α % IBU Gram Toevoegen moment" . PHP_EOL; |
90 |
125 echo "---------------------------------------- -------- ----- ----- ------ --------------------" . PHP_EOL; |
91 $memo .= '[u][b]Hop[/b][/u]'.PHP_EOL; |
|
92 $memo .= $tabus.PHP_EOL; |
|
93 $memo .= $heads.'Hop'.$heade.$heads.'Vorm'.$heade.$heads.'Alpha'.$heade.$heads.'IBU'.$heade.$heads.'Gram'.$heade.$heads.'Toevoegen moment'.$heade.PHP_EOL; |
|
94 |
126 $arr = json_decode($row['json_hops'], true); |
95 $arr = json_decode($row['json_hops'], true); |
127 foreach($arr as $item) { |
96 foreach($arr as $item) { |
128 $name = formatstr($item['h_name'] . " (" . $item['h_origin'] . ")", 40); |
97 $name = $item['h_name']." (".$item['h_origin'].")"; |
129 $amount = floatval($item['h_amount']) * 1000; |
98 $amount = floatval($item['h_amount']) * 1000; |
130 $time = floatval($item['h_time']); |
99 $time = floatval($item['h_time']); |
131 $alpha = floatval($item['h_alpha']); |
100 $alpha = floatval($item['h_alpha']); |
132 $ibu = calc_IBU($item['h_useat'], $item['h_form'], $preboil_sg, floatval($row['batch_size']), $amount, $time, $alpha, |
101 $ibu = calc_IBU($item['h_useat'], $item['h_form'], $preboil_sg, floatval($row['batch_size']), $amount, $time, $alpha, |
133 $row['ibu_method'], $row['brew_whirlpool9'], $row['brew_whirlpool7'], $row['brew_whirlpool6']); |
102 $row['ibu_method'], $row['brew_whirlpool9'], $row['brew_whirlpool7'], $row['brew_whirlpool6']); |
136 $moment = $hopuse[$item['h_useat']].' '.$time." minuten"; |
105 $moment = $hopuse[$item['h_useat']].' '.$time." minuten"; |
137 } else if ($item['h_useat'] == 5) { // Dryhop |
106 } else if ($item['h_useat'] == 5) { // Dryhop |
138 $moment = $hopuse[$item['h_useat']].' '.sprintf("%.0f", $time / 1440).' dagen'; |
107 $moment = $hopuse[$item['h_useat']].' '.sprintf("%.0f", $time / 1440).' dagen'; |
139 } |
108 } |
140 |
109 |
141 echo sprintf("%s %-8s %5.1f %5.1f %6.1f %-20s", $name, $hopform[$item['h_form']], $alpha, $ibu, $amount, $moment); |
110 $memo .= $rows.$datas.$name.$datae.$datas.$hopform[$item['h_form']].$datae.$datas.sprintf("%.1f", $alpha).'%'.$datae.$datas; |
142 echo PHP_EOL; |
111 $memo .= sprintf("%.1f", $ibu).$datae.$datas.sprintf("%.1f", $amount).$datae.$datas.$moment.$datae.$rowe.PHP_EOL; |
143 } |
112 } |
144 echo PHP_EOL . PHP_EOL; |
113 $memo .= $tabue.PHP_EOL; |
145 |
114 $memo .= PHP_EOL; |
146 echo "Specerij, kruid, brouwzout etc Type grondstof Gebruik tijdens Hoeveel" . PHP_EOL; |
115 |
147 echo "------------------------------ --------------- -------------------- -----------" . PHP_EOL; |
116 $memo .= '[u][b]Diversen[/b][/u]'.PHP_EOL; |
|
117 $memo .= $tabus.PHP_EOL; |
|
118 $memo .= $heads.'Specerij, kruid, brouwzout'.$heade.$heads.'Type grondstof'.$heade.$heads.'Gebruik tijdens'.$heade.$heads.'Hoeveel'.$heade.PHP_EOL; |
|
119 |
148 $arr = json_decode($row['json_miscs'], true); |
120 $arr = json_decode($row['json_miscs'], true); |
149 foreach($arr as $item) { |
121 foreach($arr as $item) { |
150 $amount = floatval($item['m_amount']) * 1000; |
122 if ($item['m_use_use'] == 2) // Boil |
151 $aiw = $item['m_amount_is_weight']; |
123 $gebruik = sprintf("%s %d min",$miscuse[$item['m_use_use']],floatval($item['m_time'])); |
152 $use_use = $item['m_use_use']; |
|
153 $time = floatval($item['m_time']); |
|
154 |
|
155 if ($use_use == 2) // Boil |
|
156 $gebruik = sprintf("%s %d min",$miscuse[$use_use],$time); |
|
157 else |
124 else |
158 $gebruik = $miscuse[$use_use]; |
125 $gebruik = $miscuse[$item['m_use_use']]; |
159 $hoeveel = sprintf("%.2f %s",$amount,$aiw ? "gr":"ml"); |
126 $hoeveel = sprintf("%.2f %s",floatval($item['m_amount']) * 1000,$item['m_amount_is_weight'] ? "gr":"ml"); |
160 |
127 |
161 echo sprintf("%s %-15s %-20s %11s", formatstr($item['m_name'], 30), $misctype[$item['m_type']], $gebruik, $hoeveel) . PHP_EOL; |
128 $memo .= $rows.$datas.$item['m_name'].$datae.$datas.$misctype[$item['m_type']].$datae.$datas; |
162 } |
129 $memo .= $gebruik.$datae.$datas.$hoeveel.$datae.$rowe.PHP_EOL; |
163 echo PHP_EOL . PHP_EOL; |
130 } |
164 |
131 $memo .= $tabue.PHP_EOL; |
165 echo "Gistlab en code Omschrijving Gebruik Vorm Hoeveel" . PHP_EOL; |
132 $memo .= PHP_EOL; |
166 echo "-------------------- ------------------------------ ------------ ------------ ----------" . PHP_EOL; |
133 |
|
134 $memo .= '[u][b]Gist[/b][/u]'.PHP_EOL; |
|
135 $memo .= $tabus.PHP_EOL; |
|
136 $memo .= $heads.'Gistlab en code'.$heade.$heads.'Omschrijving'.$heade.$heads.'Gebruik'.$heade.$heads.'Vorm'.$heade.$heads.'Hoeveel'.$heade.PHP_EOL; |
|
137 |
167 $arr = json_decode($row['json_yeasts'], true); |
138 $arr = json_decode($row['json_yeasts'], true); |
168 foreach($arr as $item) { |
139 foreach($arr as $item) { |
169 $name = formatstr($item['y_name'], 30); |
140 $product = $item['y_laboratory']." ".$item['y_product_id']; |
170 $product = formatstr($item['y_laboratory']." ".$item['y_product_id'], 20); |
|
171 |
141 |
172 if ($item['y_form'] == 0) // Liquid |
142 if ($item['y_form'] == 0) // Liquid |
173 $amount = sprintf("%.0f",floatval($item['y_amount']))." pak"; |
143 $amount = sprintf("%.0f",floatval($item['y_amount']))." pak"; |
174 else if ($item['y_form'] == 1 || $item['y_form'] == 6) // Dry |
144 else if ($item['y_form'] == 1 || $item['y_form'] == 6) // Dry |
175 $amount = sprintf("%.1f",floatval($item['y_amount'])*1000)." gr"; |
145 $amount = sprintf("%.1f",floatval($item['y_amount'])*1000)." gr"; |
176 else |
146 else |
177 $amount = sprintf("%.0f",floatval($item['y_amount'])*1000)." ml"; |
147 $amount = sprintf("%.0f",floatval($item['y_amount'])*1000)." ml"; |
178 |
148 |
179 echo sprintf("%s %s %-12s %-12s %10s", $product, $name, $yeastuse[$item['y_use']], $yeastform[$item['y_form']], $amount) . PHP_EOL; |
149 $memo .= $rows.$datas.$product.$datae.$datas.$item['y_name'].$datae.$datas.$yeastuse[$item['y_use']].$datae.$datas; |
180 } |
150 $memo .= $yeastform[$item['y_form']].$datae.$datas.$amount.$datae.$rowe.PHP_EOL; |
|
151 } |
|
152 $memo .= $tabue.PHP_EOL; |
181 if ($row['starter_enable'] && $row['prop1_volume']) { |
153 if ($row['starter_enable'] && $row['prop1_volume']) { |
182 $sv = 0; |
154 $sv = 0; |
183 for ($i = 1; $i < 5; $i++) { |
155 for ($i = 1; $i < 5; $i++) { |
184 $pv = "prop".$i."_volume"; |
156 $pv = "prop".$i."_volume"; |
185 if (floatval($row[$pv]) && (floatval($row[$pv]) > $sv)) { |
157 if (floatval($row[$pv]) && (floatval($row[$pv]) > $sv)) { |
186 $sv = floatval($row[$pv]); |
158 $sv = floatval($row[$pv]); |
187 } |
159 } |
188 } |
160 } |
189 echo PHP_EOL . "Maak een giststarter van " . sprintf("%.1f", $sv) . " liter." . PHP_EOL; |
161 $memo .= "Maak een giststarter van ".sprintf("%.1f", $sv)." liter.".PHP_EOL; |
190 } |
162 } |
191 echo PHP_EOL . PHP_EOL; |
163 $memo .= PHP_EOL; |
|
164 |
192 |
165 |
193 if ($row['w1_name']) |
166 if ($row['w1_name']) |
194 $mashwater += floatval($row['w1_amount']); |
167 $mashwater += floatval($row['w1_amount']); |
195 if ($row['w2_name']) |
168 if ($row['w2_name']) |
196 $mashwater += floatval($row['w2_amount']); |
169 $mashwater += floatval($row['w2_amount']); |
197 |
170 |
198 echo "Maisch stap stap type stap temp rusten opwarmen" . PHP_EOL; |
171 $memo .= '[u][b]Maischschema[/b][/u]'.PHP_EOL; |
199 echo "-------------------- ---------------------- --------- --------- ---------" . PHP_EOL; |
172 $memo .= $tabus.PHP_EOL; |
|
173 $memo .= $heads.'Maisch stap'.$heade.$heads.'Stap type'.$heade.$heads.'Temperatuur'.$heade.$heads.'Rust tijd'.$heade.$heads.'Opwarmen tijd'.$heade.PHP_EOL; |
|
174 |
200 $arr = json_decode($row['json_mashs'], true); |
175 $arr = json_decode($row['json_mashs'], true); |
201 foreach($arr as $item) { |
176 foreach($arr as $item) { |
202 |
177 |
203 if ($item['step_type'] == 1) { |
178 if ($item['step_type'] == 1) { |
204 $stype = formatstr($mashtype[$item['step_type']], 22); |
179 $stype = $mashtype[$item['step_type']]; |
205 } else { |
180 } else { |
206 $stype = formatstr($mashtype[$item['step_type']].' '.sprintf("%.1f", $item['step_infuse_amount']).' liter', 22); |
181 $stype = $mashtype[$item['step_type']].' '.sprintf("%.1f", $item['step_infuse_amount']).' liter'; |
207 } |
182 } |
208 echo sprintf("%s %s %s %s %s", |
183 $memo .= $rows.$datas.$item['step_name'].$datae.$datas.$stype.$datae.$datas.sprintf("%.1f °C", $item['step_temp']); |
209 formatstr($item['step_name'], 20), $stype, sprintf("%6.1f °C", $item['step_temp']), |
184 $memo .= $datae.$datas.sprintf("%.0f min.", $item['step_time']).$datae.$datas.sprintf("%.0f min.", $item['ramp_time']); |
210 sprintf("%4.0f min.", $item['step_time']), sprintf("%4.0f min.", $item['ramp_time'])) . PHP_EOL; |
185 $memo .= $datae.$rowe.PHP_EOL; |
211 } |
186 } |
212 echo PHP_EOL; |
187 $memo .= $tabue.PHP_EOL; |
|
188 $memo .= PHP_EOL; |
|
189 |
|
190 $memo .= '[u][b]Brouwwater[/b][/u]'.PHP_EOL; |
|
191 $memo .= $tabus.PHP_EOL; |
|
192 $memo .= $heads.'Omschrijving'.$heade.$heads.'Waarde'.$heade.PHP_EOL; |
|
193 |
213 if ($row['w1_name'] && $row['w2_name']) { |
194 if ($row['w1_name'] && $row['w2_name']) { |
214 itemline("Maischwater 1", sprintf("%.1f",floatval($row['w1_amount'])).' liter water '.$row['w1_name']); |
195 $memo .= $rows.$datas.'Maischwater 1'.$datae.$datas.sprintf("%.1f",floatval($row['w1_amount'])).' liter water '.$row['w1_name'].$datae.$rowe.PHP_EOL; |
215 itemline("Maischwater 2", sprintf("%.1f",floatval($row['w2_amount'])).' liter water '.$row['w2_name']); |
196 $memo .= $rows.$datas.'Maischwater 2'.$datae.$datas.sprintf("%.1f",floatval($row['w2_amount'])).' liter water '.$row['w2_name'].$datae.$rowe.PHP_EOL; |
216 } else { |
197 } else { |
217 itemline("Maischwater", sprintf("%.1f",floatval($row['w1_amount'])).' liter water '.$row['w1_name']); |
198 $memo .= $rows.$datas.'Maischwater'.$datae.$datas.sprintf("%.1f",floatval($row['w1_amount'])).' liter water '.$row['w1_name'].$datae.$rowe.PHP_EOL; |
218 } |
199 } |
219 itemline("Maischwater aanzuren tot pH", $row['mash_ph'].' pH'); |
200 $memo .= $rows.$datas.'Maischwater aanzuren tot pH'.$datae.$datas.$row['mash_ph'].' pH'.$datae.$rowe.PHP_EOL; |
220 itemline("Spoelwater geschat", sprintf("%.1f", $row['brew_sparge_est'])." liter"); |
201 $memo .= $rows.$datas.'Spoelwater geschat'.$datae.$datas.sprintf("%.1f",$row['brew_sparge_est'])." liter".$datae.$rowe.PHP_EOL; |
221 itemline("Spoelwater temperatuur", $row['sparge_temp'].' °C'); |
202 $memo .= $rows.$datas.'Spoelwater temperatuur'.$datae.$datas.$row['sparge_temp'].' °C'.$datae.$rowe.PHP_EOL; |
222 itemline("Spoelwater aanzuren tot pH", sprintf("%.1f",$row['sparge_ph']).' pH'); |
203 $memo .= $rows.$datas.'Spoelwater aanzuren tot pH'.$datae.$datas.sprintf("%.1f",$row['sparge_ph']).' pH'.$datae.$rowe.PHP_EOL; |
223 echo PHP_EOL . PHP_EOL; |
204 $memo .= $tabue.PHP_EOL; |
224 |
205 |
225 |
206 |
|
207 page_header('Product naar forum', 'prod_forum'); |
226 ?> |
208 ?> |
227 </pre> |
209 <script> |
228 </body> |
210 // json_encode() seems to do the right thing. |
229 </html> |
211 var forumstr = <?= json_encode($memo) ?>; |
|
212 </script> |
|
213 <div id="MainPanel"> |
|
214 <div class="section"> |
|
215 <div style="overflow: hidden; margin: 25px;"><br> |
|
216 <p>Het product met alle gegevens staan gereed.</p> |
|
217 <p>Zodra je de "Klembord" toets gebruikt zullen deze gegevens naar het klembord gekopieerd<br> |
|
218 worden. In het scherm van het forum kun je deze gegevens vervolgens "plakken".</p> |
|
219 <p>Na het drukken van de toets wordt dit scherm gesloten.</p> |
|
220 <p><input type="button" value="Klembord" id="copytoClipboard" /></p> |
|
221 </div> |
|
222 </div> |
|
223 </div> |
|
224 |
|
225 <?php |
|
226 page_footer(); |
|
227 ?> |