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++; |
54 if ($row['divide_parts']) |
56 |
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; |
57 switch ($strin[$i]) { |
56 $memo .= $tabue.PHP_EOL; |
58 case '<': |
57 $memo .= PHP_EOL; |
59 $strout .= '<'; |
58 |
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 echo PHP_EOL . PHP_EOL; |
|
98 |
59 |
99 $sugarsm = 0; |
60 $sugarsm = 0; |
100 $grainabsorbtion = 0; |
61 $grainabsorbtion = 0; |
101 $mashwater = 0; |
62 $mashwater = 0; |
102 |
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 |
103 $arr = json_decode($row['json_fermentables'], true); |
68 $arr = json_decode($row['json_fermentables'], true); |
104 echo "Mout, granen en suikers EBC Gewicht kg % Gebruik tijdens" . PHP_EOL; |
69 foreach($arr as $item) { |
105 echo "---------------------------------------- ---- ---------- ----- ----------------" . PHP_EOL; |
70 $name = $item['f_name']." (".$item['f_supplier'].")"; |
106 foreach($arr as $item) { |
|
107 $name = formatstr($item['f_name'] . " (" . $item['f_supplier'] . ")", 40); |
|
108 $amount = floatval($item['f_amount']); |
71 $amount = floatval($item['f_amount']); |
109 $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); |
110 if ($item['f_added'] == 0) { |
73 if ($item['f_added'] == 0) { |
111 $d = floatval($row['efficiency']) / 100 * $d; |
74 $d = floatval($row['efficiency']) / 100 * $d; |
112 $sugarsm += $d; |
75 $sugarsm += $d; |
113 $grainabsorbtion += $item['f_amount']; |
76 $grainabsorbtion += $item['f_amount']; |
114 } |
77 } |
115 echo sprintf("%s %4.0f %10.3f %5.1f ", $name, floatval($item['f_color']), $amount, floatval($item['f_percentage'])); |
78 $pct = ''; |
116 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; |
117 } |
85 } |
118 $preboil_sg = estimate_sg($sugarsm, floatval($row['boil_size'])); |
86 $preboil_sg = estimate_sg($sugarsm, floatval($row['boil_size'])); |
119 echo PHP_EOL . PHP_EOL; |
87 $memo .= $tabue.PHP_EOL; |
120 |
88 $memo .= PHP_EOL; |
121 |
89 |
122 echo "Hop Vorm α % IBU Gram Toevoegen moment" . PHP_EOL; |
90 |
123 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 |
124 $arr = json_decode($row['json_hops'], true); |
95 $arr = json_decode($row['json_hops'], true); |
125 foreach($arr as $item) { |
96 foreach($arr as $item) { |
126 $name = formatstr($item['h_name'] . " (" . $item['h_origin'] . ")", 40); |
97 $name = $item['h_name']." (".$item['h_origin'].")"; |
127 $amount = floatval($item['h_amount']) * 1000; |
98 $amount = floatval($item['h_amount']) * 1000; |
128 $time = floatval($item['h_time']); |
99 $time = floatval($item['h_time']); |
129 $alpha = floatval($item['h_alpha']); |
100 $alpha = floatval($item['h_alpha']); |
130 $ibu = calc_IBU($item['h_useat'], $item['h_form'], $preboil_sg, floatval($row['batch_size']), $amount, $time, $alpha, $row['ibu_method']); |
101 $ibu = calc_IBU($item['h_useat'], $item['h_form'], $preboil_sg, floatval($row['batch_size']), $amount, $time, $alpha, |
|
102 $row['ibu_method'], $row['brew_whirlpool9'], $row['brew_whirlpool7'], $row['brew_whirlpool6']); |
131 $moment = $hopuse[$item['h_useat']]; |
103 $moment = $hopuse[$item['h_useat']]; |
132 if (($item['h_useat'] == 2) || ($item['h_useat'] == 4)) { // Boil or Whirlpool |
104 if (($item['h_useat'] == 2) || ($item['h_useat'] == 4)) { // Boil or Whirlpool |
133 $moment = $hopuse[$item['h_useat']].' '.$time." minuten"; |
105 $moment = $hopuse[$item['h_useat']].' '.$time." minuten"; |
134 } else if ($item['h_useat'] == 5) { // Dryhop |
106 } else if ($item['h_useat'] == 5) { // Dryhop |
135 $moment = $hopuse[$item['h_useat']].' '.sprintf("%.0f", $time / 1440).' dagen'; |
107 $moment = $hopuse[$item['h_useat']].' '.sprintf("%.0f", $time / 1440).' dagen'; |
136 } |
108 } |
137 |
109 |
138 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; |
139 echo PHP_EOL; |
111 $memo .= sprintf("%.1f", $ibu).$datae.$datas.sprintf("%.1f", $amount).$datae.$datas.$moment.$datae.$rowe.PHP_EOL; |
140 } |
112 } |
141 echo PHP_EOL . PHP_EOL; |
113 $memo .= $tabue.PHP_EOL; |
142 |
114 $memo .= PHP_EOL; |
143 echo "Specerij, kruid, brouwzout etc Type grondstof Gebruik tijdens Hoeveel" . PHP_EOL; |
115 |
144 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 |
145 $arr = json_decode($row['json_miscs'], true); |
120 $arr = json_decode($row['json_miscs'], true); |
146 foreach($arr as $item) { |
121 foreach($arr as $item) { |
147 $amount = floatval($item['m_amount']) * 1000; |
122 if ($item['m_use_use'] == 2) // Boil |
148 $aiw = $item['m_amount_is_weight']; |
123 $gebruik = sprintf("%s %d min",$miscuse[$item['m_use_use']],floatval($item['m_time'])); |
149 $use_use = $item['m_use_use']; |
|
150 $time = floatval($item['m_time']); |
|
151 |
|
152 if ($use_use == 2) // Boil |
|
153 $gebruik = sprintf("%s %d min",$miscuse[$use_use],$time); |
|
154 else |
124 else |
155 $gebruik = $miscuse[$use_use]; |
125 $gebruik = $miscuse[$item['m_use_use']]; |
156 $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"); |
157 |
127 |
158 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; |
159 } |
129 $memo .= $gebruik.$datae.$datas.$hoeveel.$datae.$rowe.PHP_EOL; |
160 echo PHP_EOL . PHP_EOL; |
130 } |
161 |
131 $memo .= $tabue.PHP_EOL; |
162 echo "Gistlab en code Omschrijving Gebruik Vorm Hoeveel" . PHP_EOL; |
132 $memo .= PHP_EOL; |
163 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 |
164 $arr = json_decode($row['json_yeasts'], true); |
138 $arr = json_decode($row['json_yeasts'], true); |
165 foreach($arr as $item) { |
139 foreach($arr as $item) { |
166 $name = formatstr($item['y_name'], 30); |
140 $product = $item['y_laboratory']." ".$item['y_product_id']; |
167 $product = formatstr($item['y_laboratory']." ".$item['y_product_id'], 20); |
|
168 |
141 |
169 if ($item['y_form'] == 0) // Liquid |
142 if ($item['y_form'] == 0) // Liquid |
170 $amount = sprintf("%.0f",floatval($item['y_amount']))." pak"; |
143 $amount = sprintf("%.0f",floatval($item['y_amount']))." pak"; |
171 else if ($item['y_form'] == 1 || $item['y_form'] == 6) // Dry |
144 else if ($item['y_form'] == 1 || $item['y_form'] == 6) // Dry |
172 $amount = sprintf("%.1f",floatval($item['y_amount'])*1000)." gr"; |
145 $amount = sprintf("%.1f",floatval($item['y_amount'])*1000)." gr"; |
173 else |
146 else |
174 $amount = sprintf("%.0f",floatval($item['y_amount'])*1000)." ml"; |
147 $amount = sprintf("%.0f",floatval($item['y_amount'])*1000)." ml"; |
175 |
148 |
176 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; |
177 } |
150 $memo .= $yeastform[$item['y_form']].$datae.$datas.$amount.$datae.$rowe.PHP_EOL; |
|
151 } |
|
152 $memo .= $tabue.PHP_EOL; |
178 if ($row['starter_enable'] && $row['prop1_volume']) { |
153 if ($row['starter_enable'] && $row['prop1_volume']) { |
179 $sv = 0; |
154 $sv = 0; |
180 for ($i = 1; $i < 5; $i++) { |
155 for ($i = 1; $i < 5; $i++) { |
181 $pv = "prop".$i."_volume"; |
156 $pv = "prop".$i."_volume"; |
182 if (floatval($row[$pv]) && (floatval($row[$pv]) > $sv)) { |
157 if (floatval($row[$pv]) && (floatval($row[$pv]) > $sv)) { |
183 $sv = floatval($row[$pv]); |
158 $sv = floatval($row[$pv]); |
184 } |
159 } |
185 } |
160 } |
186 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; |
187 } |
162 } |
188 echo PHP_EOL . PHP_EOL; |
163 $memo .= PHP_EOL; |
|
164 |
189 |
165 |
190 if ($row['w1_name']) |
166 if ($row['w1_name']) |
191 $mashwater += floatval($row['w1_amount']); |
167 $mashwater += floatval($row['w1_amount']); |
192 if ($row['w2_name']) |
168 if ($row['w2_name']) |
193 $mashwater += floatval($row['w2_amount']); |
169 $mashwater += floatval($row['w2_amount']); |
194 |
170 |
195 echo "Maisch stap stap type stap temp rusten opwarmen" . PHP_EOL; |
171 $memo .= '[u][b]Maischschema[/b][/u]'.PHP_EOL; |
196 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 |
197 $arr = json_decode($row['json_mashs'], true); |
175 $arr = json_decode($row['json_mashs'], true); |
198 foreach($arr as $item) { |
176 foreach($arr as $item) { |
199 |
177 |
200 if ($item['step_type'] == 1) { |
178 if ($item['step_type'] == 1) { |
201 $stype = formatstr($mashtype[$item['step_type']], 22); |
179 $stype = $mashtype[$item['step_type']]; |
202 } else { |
180 } else { |
203 $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'; |
204 } |
182 } |
205 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']); |
206 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']); |
207 sprintf("%4.0f min.", $item['step_time']), sprintf("%4.0f min.", $item['ramp_time'])) . PHP_EOL; |
185 $memo .= $datae.$rowe.PHP_EOL; |
208 } |
186 } |
209 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 |
210 if ($row['w1_name'] && $row['w2_name']) { |
194 if ($row['w1_name'] && $row['w2_name']) { |
211 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; |
212 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; |
213 } else { |
197 } else { |
214 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; |
215 } |
199 } |
216 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; |
217 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; |
218 itemline("Spoelwater temperatuur", $row['sparge_temp'].' °C'); |
202 $memo .= $rows.$datas.'Spoelwater temperatuur'.$datae.$datas.$row['sparge_temp'].' °C'.$datae.$rowe.PHP_EOL; |
219 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; |
220 echo PHP_EOL . PHP_EOL; |
204 $memo .= $tabue.PHP_EOL; |
221 |
205 |
222 |
206 |
|
207 page_header('Product naar forum', 'prod_forum'); |
223 ?> |
208 ?> |
224 </pre> |
209 <script> |
225 </body> |
210 // json_encode() seems to do the right thing. |
226 </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 ?> |