42 $outstr .= ' <script type="text/javascript" src="jqwidgets/jqxwindow.js"></script>'.PHP_EOL; |
42 $outstr .= ' <script type="text/javascript" src="jqwidgets/jqxwindow.js"></script>'.PHP_EOL; |
43 $outstr .= ' <script type="text/javascript" src="jqwidgets/jqxtabs.js"></script>'.PHP_EOL; |
43 $outstr .= ' <script type="text/javascript" src="jqwidgets/jqxtabs.js"></script>'.PHP_EOL; |
44 $outstr .= ' <script type="text/javascript" src="jqwidgets/jqxcheckbox.js"></script>'.PHP_EOL; |
44 $outstr .= ' <script type="text/javascript" src="jqwidgets/jqxcheckbox.js"></script>'.PHP_EOL; |
45 $outstr .= ' <script type="text/javascript" src="jqwidgets/jqxbuttons.js"></script>'.PHP_EOL; |
45 $outstr .= ' <script type="text/javascript" src="jqwidgets/jqxbuttons.js"></script>'.PHP_EOL; |
46 $outstr .= ' <script type="text/javascript" src="jqwidgets/jqxradiobutton.js"></script>'.PHP_EOL; |
46 $outstr .= ' <script type="text/javascript" src="jqwidgets/jqxradiobutton.js"></script>'.PHP_EOL; |
|
47 $outstr .= ' <script type="text/javascript" src="jqwidgets/jqxchart.core.js"></script>'.PHP_EOL; |
|
48 $outstr .= ' <script type="text/javascript" src="jqwidgets/jqxdraw.js"></script>'.PHP_EOL; |
|
49 $outstr .= ' <script type="text/javascript" src="jqwidgets/jqxdata.js"></script>'.PHP_EOL; |
47 $outstr .= ' <script type="text/javascript">'.PHP_EOL; |
50 $outstr .= ' <script type="text/javascript">'.PHP_EOL; |
48 |
51 |
49 $outstr .= ' function addEventListeners() {'.PHP_EOL; |
52 $outstr .= ' function addEventListeners() {'.PHP_EOL; |
50 $outstr .= ' $("#maintenance").mousedown(function () {'.PHP_EOL; |
53 $outstr .= ' $("#maintenance").mousedown(function () {'.PHP_EOL; |
51 $outstr .= ' $("#maintenance_window").jqxWindow(\'open\');'.PHP_EOL; |
54 $outstr .= ' $("#maintenance_window").jqxWindow(\'open\');'.PHP_EOL; |
52 $outstr .= ' });'.PHP_EOL; |
55 $outstr .= ' });'.PHP_EOL; |
53 |
|
54 $outstr .= ' }'.PHP_EOL; |
56 $outstr .= ' }'.PHP_EOL; |
55 |
57 |
56 $outstr .= ' function createMaintenance() {'.PHP_EOL; |
58 $outstr .= ' function createMaintenance() {'.PHP_EOL; |
57 $outstr .= ' $("#maintenance_window").jqxWindow({'.PHP_EOL; |
59 $outstr .= ' $("#maintenance_window").jqxWindow({'.PHP_EOL; |
58 $outstr .= ' height: 400, width: 800, autoOpen: false, theme: \''.$my_style.'\', '.PHP_EOL; |
60 $outstr .= ' height: 400, width: 800, autoOpen: false, theme: \''.$my_style.'\', '.PHP_EOL; |
59 $outstr .= ' position: { x:100, y:50 }, '.PHP_EOL; |
61 $outstr .= ' position: { x:100, y:50 }, '.PHP_EOL; |
60 $outstr .= ' resizable: false, isModal: true, modalOpacity: 0.5, '.PHP_EOL; |
62 $outstr .= ' resizable: false, isModal: true, modalOpacity: 0.5, '.PHP_EOL; |
61 $outstr .= ' okButton: $("#maintenance_ok"), cancelButton: $("#maintenance_cancel"),'.PHP_EOL; |
63 $outstr .= ' okButton: $("#maintenance_ok"), cancelButton: $("#maintenance_cancel"),'.PHP_EOL; |
62 $outstr .= ' initContent: function () {'.PHP_EOL; |
64 $outstr .= ' initContent: function () {'.PHP_EOL; |
63 $outstr .= ' $("#maintenance_ok").jqxButton({ width: \'65px\', height: \'25\', theme: \''.$my_style.'\' });'.PHP_EOL; |
65 $outstr .= ' $("#maintenance_ok").jqxButton({ width: 65, height: 25, theme: \''.$my_style.'\' });'.PHP_EOL; |
64 $outstr .= ' $("#maintenance_cancel").jqxButton({ width: \'65px\', height: \'25\', theme: \''.$my_style.'\' });'.PHP_EOL; |
66 $outstr .= ' $("#maintenance_cancel").jqxButton({ width: 65, height: 25, theme: \''.$my_style.'\' });'.PHP_EOL; |
65 //$outstr .= ' $("#ok").focus();'.PHP_EOL; |
|
66 $outstr .= ' }'.PHP_EOL; |
67 $outstr .= ' }'.PHP_EOL; |
67 $outstr .= ' });'.PHP_EOL; |
68 $outstr .= ' });'.PHP_EOL; |
68 $outstr .= ' $("#maintenance").jqxButton({ width: \'150\', height: \'25\', theme: \''.$my_style.'\'});'.PHP_EOL; |
69 $outstr .= ' $("#maintenance").jqxButton({ width: 150, height: 25, theme: \''.$my_style.'\'});'.PHP_EOL; |
69 $outstr .= ' }'.PHP_EOL; |
70 $outstr .= ' }'.PHP_EOL; |
70 |
|
71 $outstr .= ' $(document).ready(function () {'.PHP_EOL; |
|
72 $outstr .= ' // Create jqxTabs.'.PHP_EOL; |
|
73 $outstr .= ' $(\'#jqxTabs\').jqxTabs({ width: \'978\', height: 428, position: \'top\', theme: \''.$my_style.'\'});'.PHP_EOL; |
|
74 $outstr .= ' addEventListeners();'.PHP_EOL; |
|
75 $outstr .= ' createMaintenance();'.PHP_EOL; |
|
76 $outstr .= ' });'.PHP_EOL; |
|
77 |
|
78 $outstr .= ' </script>'.PHP_EOL; |
71 $outstr .= ' </script>'.PHP_EOL; |
79 $outstr .= ' </head>'.PHP_EOL; |
72 $outstr .= ' </head>'.PHP_EOL; |
80 $outstr .= ' <body class="default">'.PHP_EOL; |
73 $outstr .= ' <body class="default">'.PHP_EOL; |
81 $outstr .= ' <div id="jqxWidget">'.PHP_EOL; |
74 $outstr .= ' <div id="jqxWidget">'.PHP_EOL; |
82 $outstr .= ' <div id="header">'.PHP_EOL; |
75 $outstr .= ' <div id="header">'.PHP_EOL; |
95 $outstr .= ' <input type="button" id="maintenance_ok" value="OK" style="margin-right: 10px" />'.PHP_EOL; |
88 $outstr .= ' <input type="button" id="maintenance_ok" value="OK" style="margin-right: 10px" />'.PHP_EOL; |
96 $outstr .= ' <input type="button" id="maintenance_cancel" value="Cancel" />'.PHP_EOL; |
89 $outstr .= ' <input type="button" id="maintenance_cancel" value="Cancel" />'.PHP_EOL; |
97 $outstr .= ' </div>'.PHP_EOL; |
90 $outstr .= ' </div>'.PHP_EOL; |
98 $outstr .= ' </div> <!-- maintenance_window -->'.PHP_EOL; |
91 $outstr .= ' </div> <!-- maintenance_window -->'.PHP_EOL; |
99 |
92 |
|
93 /* Create the tabs */ |
|
94 $outstr .= ' <script type="text/javascript">'.PHP_EOL; |
|
95 $outstr .= ' $(document).ready(function () {'.PHP_EOL; |
|
96 $outstr .= ' // Create jqxTabs.'.PHP_EOL; |
|
97 $outstr .= ' $("#jqxTabs").jqxTabs({ width: 978, height: 428, position: \'top\', theme: \''.$my_style.'\'});'.PHP_EOL; |
|
98 $outstr .= ' addEventListeners();'.PHP_EOL; |
|
99 $outstr .= ' createMaintenance();'.PHP_EOL; |
|
100 $outstr .= ' });'.PHP_EOL; |
|
101 $outstr .= ' </script>'.PHP_EOL; |
|
102 |
100 $outstr .= ' </div> <!-- jqxWidget -->'.PHP_EOL; |
103 $outstr .= ' </div> <!-- jqxWidget -->'.PHP_EOL; |
101 $outstr .= ' </body>'.PHP_EOL; |
104 $outstr .= ' </body>'.PHP_EOL; |
102 $outstr .= '</html>'.PHP_EOL; |
105 $outstr .= '</html>'.PHP_EOL; |
103 |
106 |
104 echo $outstr; |
107 echo $outstr; |