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 | <script src="rGraph/libraries/RGraph.rose.js"></script> |
---|
25 | |
---|
26 | <script> |
---|
27 | myGraph.Set('chart.contextmenu', [ |
---|
28 | ['Get PNG', RGraph.showPNG], |
---|
29 | null, |
---|
30 | ['Cancel', function () {}] |
---|
31 | ]); |
---|
32 | </script> |
---|
33 | |
---|
34 | <script> |
---|
35 | window.onload = function () |
---|
36 | { |
---|
37 | debugger; |
---|
38 | var dataIn = ge("inputDataField").value; |
---|
39 | var inputData = JSON.parse(dataIn); |
---|
40 | |
---|
41 | |
---|
42 | for (var n = 0; n < inputData.count; n++) { |
---|
43 | drawGraph(inputData.graphs[n][0], inputData.graphs[n][1], inputData.graphs[n][2], inputData.graphs[n][3], inputData.graphs[n][4]) |
---|
44 | } |
---|
45 | } |
---|
46 | </script> |
---|
47 | <title>Dashboard Overview</title> |
---|
48 | <?php new Stylesheet("visualEditors"); ?> |
---|
49 | </head> |
---|
50 | <body> |
---|
51 | |
---|
52 | <div id="header"> |
---|
53 | <?php new Logo(); ?> |
---|
54 | </div> |
---|
55 | |
---|
56 | <div id="content"> |
---|
57 | <div id="wrapper"> |
---|
58 | |
---|
59 | <div id="breadcrumbs" class="largeFrame" style="width: 900px;"> |
---|
60 | <a href="#" onclick="checkBack('index.php');">Login</a> > |
---|
61 | <a href="#" onclick="checkBack('dashboardDataSelection.php');">Select data</a> > |
---|
62 | <a href="#" onclick="checkBack('dashboardDataSelection.php');">Select graphtype</a> |
---|
63 | <a href="#" class="selected">Dashboard Overview</a> |
---|
64 | </div> |
---|
65 | |
---|
66 | <div id="leftColumn"> |
---|
67 | |
---|
68 | <div class="largeFrame C" id="dbDataSelector"> |
---|
69 | |
---|
70 | <div class="largeTitle">Dashboard Overview</div> |
---|
71 | <div class="content" id="graphDisplay"> |
---|
72 | |
---|
73 | <input type="hidden" id="inputDataField" value='<?php echo $dataIn; ?>' |
---|
74 | |
---|
75 | |
---|
76 | </div> |
---|
77 | |
---|
78 | </div> |
---|
79 | </div> |
---|
80 | |
---|
81 | |
---|
82 | </div> |
---|
83 | |
---|
84 | |
---|
85 | </div> |
---|
86 | </div> |
---|
87 | <a href="dashboardDataSelection.php">Naar dataselection</a>" |
---|
88 | |
---|
89 | </body> |
---|
90 | |
---|
91 | </html> |
---|