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 | </div> |
---|
27 | |
---|
28 | <div id="header"> |
---|
29 | |
---|
30 | </div> |
---|
31 | |
---|
32 | <div id="content"> |
---|
33 | <div id="wrapper"> |
---|
34 | |
---|
35 | <div id="breadcrumbs" class="largeFrame"> |
---|
36 | <a href="index.php">Login</a> > |
---|
37 | <a href="dashboardDataSelection.php" class="selected">Select data</a> |
---|
38 | </div> |
---|
39 | |
---|
40 | <div id="leftColumn"> |
---|
41 | |
---|
42 | <div class="largeFrame C" id="dbDataSelector"> |
---|
43 | <div class="content"> |
---|
44 | |
---|
45 | <div style="float: left; clear: none;"> |
---|
46 | <div class="largeTitle">Instance data</div> |
---|
47 | <select id="dbSessionInstancesList" multiple class="dbDataList" size="15" onchange="infoPanelTimeout(event);"> |
---|
48 | |
---|
49 | <?php |
---|
50 | //Changed sessions into questions |
---|
51 | // foreach ($dbDataSelectionWidget->survey as $question) { |
---|
52 | foreach ($dbDataSelectionWidget->sessions as $session) { |
---|
53 | // Fill list |
---|
54 | // First checkbox, then descriptor |
---|
55 | echo "<option value='$session->uid'>$session->title</option>"; |
---|
56 | } |
---|
57 | ?> |
---|
58 | </select> |
---|
59 | </div> |
---|
60 | |
---|
61 | <div style="float: left; clear:none;"> |
---|
62 | <div class="largeTitle">Game data</div> |
---|
63 | <select id="dbGamedataList" multiple class="dbDataList" size="15" onChange="infoPanelTimeout(event);"> |
---|
64 | <?php |
---|
65 | foreach ($dbDataSelectionWidget->gamedata as $gamedata) { |
---|
66 | // Fill list |
---|
67 | // First checkbox, then descriptor |
---|
68 | echo "<option value='$gamedata->uid'>$gamedata->title</option>"; |
---|
69 | } |
---|
70 | ?> |
---|
71 | </select> |
---|
72 | </div> |
---|
73 | </div> |
---|
74 | </div> |
---|
75 | |
---|
76 | |
---|
77 | <div class="largeFrame Cu" id="dbInfoPanel"> |
---|
78 | <div class='largeTitle'>Info panel</div> |
---|
79 | <div class="content" id="dbInfoPanelContent" style="height: 100px;"> |
---|
80 | |
---|
81 | </div> |
---|
82 | |
---|
83 | <div class="controls"> |
---|
84 | <input type="button" class="smallButton" id="btnAddToCart" value="Add to list" onClick="addDataToList();" /> |
---|
85 | </div> |
---|
86 | </div> |
---|
87 | </div> |
---|
88 | |
---|
89 | <div id="rightColumn"> |
---|
90 | <div class="largeFrame Cv" id="dbShoppingCart"> |
---|
91 | <div class="largeTitle">Selected data</div> |
---|
92 | <div class="content" id="shoppingCartContent"> |
---|
93 | |
---|
94 | </div> |
---|
95 | <div class="controls"> |
---|
96 | <input type="button" class="smallButton" id="btnAddToCart" value="Configure Dashboard" onClick="configureDashboard();" /> |
---|
97 | </div> |
---|
98 | </div> |
---|
99 | </div> |
---|
100 | </div> |
---|
101 | </div> |
---|
102 | </body> |
---|
103 | </html> |
---|