129 '<!DOCTYPE html>' + |
129 '<!DOCTYPE html>' + |
130 '<html>' + |
130 '<html>' + |
131 '<head>' + |
131 '<head>' + |
132 '<link rel="stylesheet" href="jqwidgets/styles/jqx.base.css" type="text/css" />' + |
132 '<link rel="stylesheet" href="jqwidgets/styles/jqx.base.css" type="text/css" />' + |
133 '<meta charset="utf-8" />' + |
133 '<meta charset="utf-8" />' + |
134 '<title>' + my_code + ' ' + my_name + ' vergisting</title>' + |
134 '<title>' + my_code + ' ' + my_name + ' klimaatkast</title>' + |
135 '</head>' + |
135 '</head>' + |
136 '<body>' + content + '</body></html>'; |
136 '<body>' + content + '</body></html>'; |
137 document.write(pageContent); |
137 document.write(pageContent); |
138 document.close(); |
138 document.close(); |
139 newWindow.print(); |
139 newWindow.print(); |
140 }); |
140 }); |
141 $('#print').jqxButton({ template: 'primary', width: 125, theme: theme }); |
141 $('#print').jqxButton({ template: 'primary', width: 125, theme: theme }); |
142 |
142 |
143 $('#pdfButton').click(function() { |
143 $('#pdfButton').click(function() { |
144 $('#fermenter_chart').jqxChart('saveAsPDF', 'vergisting_' + my_code + '.pdf', getExportServer()); |
144 $('#fermenter_chart').jqxChart('saveAsPDF', 'klimaatkast_' + my_code + '.pdf', getExportServer()); |
145 }); |
145 }); |
146 $('#pdfButton').jqxButton({ template: 'primary', width: 125, theme: theme }); |
146 $('#pdfButton').jqxButton({ template: 'primary', width: 125, theme: theme }); |
147 |
147 |
148 $('#pngButton').click(function() { |
148 $('#pngButton').click(function() { |
149 $('#fermenter_chart').jqxChart('saveAsPNG', 'vergisting_' + my_code + '.png', getExportServer()); |
149 $('#fermenter_chart').jqxChart('saveAsPNG', 'klimaatkast_' + my_code + '.png', getExportServer()); |
150 }); |
150 }); |
151 $('#pngButton').jqxButton({ template: 'primary', width: 125, theme: theme }); |
151 $('#pngButton').jqxButton({ template: 'primary', width: 125, theme: theme }); |
152 |
152 |
153 $('#Close').jqxButton({ template: 'success', width: 125, theme: theme }); |
153 $('#Close').jqxButton({ template: 'success', width: 125, theme: theme }); |
154 $('#Close').click(function() { |
154 $('#Close').click(function() { |