94 |
94 |
95 xmlwriter_start_element($xw, 'FG'); |
95 xmlwriter_start_element($xw, 'FG'); |
96 xmlwriter_text($xw, sprintf("%.3f",floatval($row['fg']))); |
96 xmlwriter_text($xw, sprintf("%.3f",floatval($row['fg']))); |
97 xmlwriter_end_element($xw); |
97 xmlwriter_end_element($xw); |
98 |
98 |
|
99 if ($row['brew_cooling_to'] > 0) { |
|
100 xmlwriter_start_element($xw, 'BMS_COOLING_TO'); |
|
101 xmlwriter_text($xw, sprintf("%.1f",floatval($row['brew_cooling_to']))); |
|
102 xmlwriter_end_element($xw); |
|
103 } |
|
104 |
|
105 if ($row['brew_whirlpool9'] > 0) { |
|
106 xmlwriter_start_element($xw, 'BMS_WHIRLPOOL9'); |
|
107 xmlwriter_text($xw, sprintf("%.0f",floatval($row['brew_whirlpool9']))); |
|
108 xmlwriter_end_element($xw); |
|
109 } |
|
110 if ($row['brew_whirlpool7'] > 0) { |
|
111 xmlwriter_start_element($xw, 'BMS_WHIRLPOOL7'); |
|
112 xmlwriter_text($xw, sprintf("%.0f",floatval($row['brew_whirlpool7']))); |
|
113 xmlwriter_end_element($xw); |
|
114 } |
|
115 if ($row['brew_whirlpool6'] > 0) { |
|
116 xmlwriter_start_element($xw, 'BMS_WHIRLPOOL6'); |
|
117 xmlwriter_text($xw, sprintf("%.0f",floatval($row['brew_whirlpool6']))); |
|
118 xmlwriter_end_element($xw); |
|
119 } |
|
120 if ($row['brew_whirlpool2'] > 0) { |
|
121 xmlwriter_start_element($xw, 'BMS_WHIRLPOOL2'); |
|
122 xmlwriter_text($xw, sprintf("%.0f",floatval($row['brew_whirlpool2']))); |
|
123 xmlwriter_end_element($xw); |
|
124 } |
|
125 |
|
126 |
99 // Style |
127 // Style |
100 xmlwriter_start_element($xw, 'STYLE'); |
128 xmlwriter_start_element($xw, 'STYLE'); |
101 |
129 |
102 xmlwriter_start_element($xw, 'VERSION'); |
130 xmlwriter_start_element($xw, 'VERSION'); |
103 xmlwriter_text($xw, '1'); |
131 xmlwriter_text($xw, '1'); |