1 | <?php |
---|
2 | //Insert login check, dbi creation, etc... |
---|
3 | /* |
---|
4 | * TODO getInfo JSON conversie ipv HTML echo. |
---|
5 | * >> Formatting of data |
---|
6 | * Formatting (delete icons, aligning, button size/style, Margins/Padding, etc... |
---|
7 | */ |
---|
8 | require "classes/master.php"; |
---|
9 | |
---|
10 | $dbDataSelectionWidget = new dbDataSelectionWidget(); |
---|
11 | ?> |
---|
12 | |
---|
13 | |
---|
14 | |
---|
15 | <!DOCTYPE html> |
---|
16 | <html> |
---|
17 | <head> |
---|
18 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
---|
19 | <title></title> |
---|
20 | <?php new Stylesheet("visualEditors"); ?> |
---|
21 | |
---|
22 | |
---|
23 | <?php $dbDataSelectionWidget->Javascript(); ?> |
---|
24 | </head> |
---|
25 | <body> |
---|
26 | |
---|
27 | <div id="breadcrumbs"> |
---|
28 | <?php |
---|
29 | $pagetitle = "Dashboard Data Selection"; |
---|
30 | include("breadcrumbs.php"); |
---|
31 | ?> |
---|
32 | </div> |
---|
33 | |
---|
34 | <div id="header"> |
---|
35 | |
---|
36 | </div> |
---|
37 | |
---|
38 | <div id="content"> |
---|
39 | <div id="wrapper"> |
---|
40 | |
---|
41 | <div id="leftColumn"> |
---|
42 | |
---|
43 | <div class="largeFrame C" id="dbDataSelector"> |
---|
44 | <div class="content"> |
---|
45 | |
---|
46 | <div style="float: left; clear: none;"> |
---|
47 | <div class="largeTitle">Instance data</div> |
---|
48 | <select id="dbSessionInstancesList" multiple class="dbDataList" size="15" onchange="infoPanelTimeout(event);"> |
---|
49 | |
---|
50 | <?php |
---|
51 | //Changed sessions into questions |
---|
52 | // foreach ($dbDataSelectionWidget->survey as $question) { |
---|
53 | foreach ($dbDataSelectionWidget->sessions as $session) { |
---|
54 | // Fill list |
---|
55 | // First checkbox, then descriptor |
---|
56 | echo "<option value='$session->uid'>$session->title</option>"; |
---|
57 | } |
---|
58 | ?> |
---|
59 | </select> |
---|
60 | </div> |
---|
61 | |
---|
62 | <div style="float: left; clear:none;"> |
---|
63 | <div class="largeTitle">Game data</div> |
---|
64 | <select id="dbGamedataList" multiple class="dbDataList" size="15" onChange="infoPanelTimeout(event);"> |
---|
65 | <?php |
---|
66 | foreach ($dbDataSelectionWidget->gamedata as $gamedata) { |
---|
67 | // Fill list |
---|
68 | // First checkbox, then descriptor |
---|
69 | echo "<option value='$gamedata->uid'>$gamedata->title</option>"; |
---|
70 | } |
---|
71 | ?> |
---|
72 | </select> |
---|
73 | </div> |
---|
74 | </div> |
---|
75 | </div> |
---|
76 | |
---|
77 | |
---|
78 | <div class="largeFrame Cu" id="dbInfoPanel"> |
---|
79 | <div class='largeTitle'>Info panel</div> |
---|
80 | <div class="content" id="dbInfoPanelContent" style="height: 100px;"> |
---|
81 | |
---|
82 | </div> |
---|
83 | |
---|
84 | <div class="controls"> |
---|
85 | <input type="button" class="smallButton" id="btnAddToCart" value="Add to list" onClick="addDataToList();" /> |
---|
86 | </div> |
---|
87 | </div> |
---|
88 | </div> |
---|
89 | |
---|
90 | <div id="rightColumn"> |
---|
91 | <div class="largeFrame Cv" id="dbShoppingCart"> |
---|
92 | <div class="largeTitle">Selected data</div> |
---|
93 | <div class="content" id="shoppingCartContent"> |
---|
94 | |
---|
95 | </div> |
---|
96 | <div class="controls"> |
---|
97 | <input type="button" class="smallButton" id="btnAddToCart" value="Configure Dashboard" onClick="configureDashboard();" /> |
---|
98 | </div> |
---|
99 | </div> |
---|
100 | </div> |
---|
101 | </div> |
---|
102 | </div> |
---|
103 | </body> |
---|
104 | </html> |
---|