1 | <?php |
---|
2 | require "classes/master.php"; |
---|
3 | |
---|
4 | //var_dump(JSON_decode($_POST['doorstuurData'])); |
---|
5 | $dataIn = $_POST['doorstuurData']; |
---|
6 | ?> |
---|
7 | |
---|
8 | <html> |
---|
9 | <head> |
---|
10 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
---|
11 | |
---|
12 | |
---|
13 | <script src="js/generalScripts.js" ></script> |
---|
14 | <script src="js/dashboardScripts.js" ></script> |
---|
15 | <script src="RGraph/libraries/RGraph.common.core.js" ></script> |
---|
16 | <script src="RGraph/libraries/RGraph.common.annotate.js" ></script> |
---|
17 | <script src="RGraph/libraries/RGraph.common.context.js" ></script> |
---|
18 | |
---|
19 | <script src="RGraph/libraries/RGraph.common.tooltips.js" ></script> |
---|
20 | <script src="RGraph/libraries/RGraph.common.resizing.js" ></script> |
---|
21 | <script src="RGraph/libraries/RGraph.bar.js" ></script> |
---|
22 | <script src="RGraph/libraries/RGraph.radar.js" ></script> |
---|
23 | <script src="RGraph/libraries/RGraph.pie.js" ></script> |
---|
24 | |
---|
25 | <script> |
---|
26 | myGraph.Set('chart.contextmenu', [ |
---|
27 | ['Get PNG', RGraph.showPNG], |
---|
28 | null, |
---|
29 | ['Cancel', function () {}] |
---|
30 | ]); |
---|
31 | </script> |
---|
32 | |
---|
33 | <script> |
---|
34 | window.onload = function () |
---|
35 | { |
---|
36 | debugger; |
---|
37 | var dataIn = ge("inputDataField").value; |
---|
38 | var inputData = JSON.parse(dataIn); |
---|
39 | |
---|
40 | |
---|
41 | for (var n = 0; n < inputData.count; n++) { |
---|
42 | drawGraph(inputData.graphs[n][0], inputData.graphs[n][1], inputData.graphs[n][2], inputData.graphs[n][3], inputData.graphs[n][4]) |
---|
43 | } |
---|
44 | } |
---|
45 | </script> |
---|
46 | |
---|
47 | |
---|
48 | |
---|
49 | <title>Dashboard Overview</title> |
---|
50 | <?php new Stylesheet("visualEditors"); ?> |
---|
51 | </head> |
---|
52 | <body> |
---|
53 | |
---|
54 | <div id="header"> |
---|
55 | <?php new Logo(); ?> |
---|
56 | </div> |
---|
57 | |
---|
58 | <div id="content"> |
---|
59 | <div id="wrapper"> |
---|
60 | |
---|
61 | <div id="leftColumn"> |
---|
62 | |
---|
63 | <div class="largeFrame C" id="dbDataSelector"> |
---|
64 | |
---|
65 | <div class="largeTitle">Dashboard Overview</div> |
---|
66 | <div class="content" id="graphDisplay" style="width: auto; height: auto; "> |
---|
67 | <input type="hidden" id="inputDataField" value='<?php echo $dataIn; ?>' /> |
---|
68 | |
---|
69 | |
---|
70 | </div> |
---|
71 | |
---|
72 | </div> |
---|
73 | </div> |
---|
74 | |
---|
75 | |
---|
76 | </div> |
---|
77 | |
---|
78 | |
---|
79 | </div> |
---|
80 | </div> |
---|
81 | <a href="dashboardDataSelection.php">Naar dataselection</a>" |
---|
82 | |
---|
83 | </body> |
---|
84 | |
---|
85 | </html> |
---|