178 $outstr .= ' };'.PHP_EOL; |
178 $outstr .= ' };'.PHP_EOL; |
179 $outstr .= ' $("#fermentor_chart").jqxChart(settings);'.PHP_EOL; |
179 $outstr .= ' $("#fermentor_chart").jqxChart(settings);'.PHP_EOL; |
180 |
180 |
181 $outstr .= ' $("#print").click(function () {'.PHP_EOL; |
181 $outstr .= ' $("#print").click(function () {'.PHP_EOL; |
182 $outstr .= ' var content = $("#fermentor_chart")[0].outerHTML;'.PHP_EOL; |
182 $outstr .= ' var content = $("#fermentor_chart")[0].outerHTML;'.PHP_EOL; |
183 $outstr .= ' var newWindow = window.open("", "", "width=750, height=400"),'.PHP_EOL; |
183 $outstr .= ' var newWindow = window.open("", "", "width=865, height=425"),'.PHP_EOL; |
184 $outstr .= ' document = newWindow.document.open(),'.PHP_EOL; |
184 $outstr .= ' document = newWindow.document.open(),'.PHP_EOL; |
185 $outstr .= ' pageContent ='.PHP_EOL; |
185 $outstr .= ' pageContent ='.PHP_EOL; |
186 $outstr .= ' \'<!DOCTYPE html>\' +'.PHP_EOL; |
186 $outstr .= ' \'<!DOCTYPE html>\' +'.PHP_EOL; |
187 $outstr .= ' \'<html>\' +'.PHP_EOL; |
187 $outstr .= ' \'<html>\' +'.PHP_EOL; |
188 $outstr .= ' \'<head>\' +'.PHP_EOL; |
188 $outstr .= ' \'<head>\' +'.PHP_EOL; |
207 $outstr .= ' $("#pdfButton").jqxButton({ width: 100, height: 25, theme: "ui-redmond" });'.PHP_EOL; |
207 $outstr .= ' $("#pdfButton").jqxButton({ width: 100, height: 25, theme: "ui-redmond" });'.PHP_EOL; |
208 |
208 |
209 $outstr .= ' });'.PHP_EOL; |
209 $outstr .= ' });'.PHP_EOL; |
210 $outstr .= ' </script>'.PHP_EOL; |
210 $outstr .= ' </script>'.PHP_EOL; |
211 $outstr .= ' <div id="fermentor">'.PHP_EOL; |
211 $outstr .= ' <div id="fermentor">'.PHP_EOL; |
212 $outstr .= ' <div id="fermentor_chart" style="width:720px; height:377px; float:left"></div>'.PHP_EOL; |
212 $outstr .= ' <div id="fermentor_chart" style="width:850px; height:410px; float:left"></div>'.PHP_EOL; |
213 $outstr .= ' <div style="margin-top: 2px; margin-left: 10px;">'.PHP_EOL; |
213 $outstr .= ' <div style="margin-top: 2px; margin-left: 10px;">'.PHP_EOL; |
214 $outstr .= ' <input style="float: left; margin-left: 15px;" id="print" type="button" value="Print Graph" />'.PHP_EOL; |
214 $outstr .= ' <input style="float: left; margin-left: 10px;" id="print" type="button" value="Print Graph" />'.PHP_EOL; |
215 $outstr .= ' <input style="float: left; margin-left: 15px;" id="pngButton" type="button" value="Save as PNG" />'.PHP_EOL; |
215 $outstr .= ' <input style="float: left; margin-left: 10px; margin-top: 10px;" id="pngButton" type="button" value="Save as PNG" />'.PHP_EOL; |
216 $outstr .= ' <input style="float: left; margin-left: 15px;" id="pdfButton" type="button" value="Save as PDF" />'.PHP_EOL; |
216 $outstr .= ' <input style="float: left; margin-left: 10px; margin-top: 10px;" id="pdfButton" type="button" value="Save as PDF" />'.PHP_EOL; |
217 $outstr .= ' </div>'.PHP_EOL; |
217 $outstr .= ' </div>'.PHP_EOL; |
218 $outstr .= ' </div> <!-- fermentor -->'.PHP_EOL; |
218 $outstr .= ' </div> <!-- fermentor -->'.PHP_EOL; |
219 |
219 |
220 $outstr .= ' <script type="text/javascript">'.PHP_EOL; |
220 $outstr .= ' <script type="text/javascript">'.PHP_EOL; |
221 $outstr .= ' $(document).ready(function () {'.PHP_EOL; |
221 $outstr .= ' $(document).ready(function () {'.PHP_EOL; |