[202] | 1 | <?php |
---|
| 2 | //Insert login check, dbi creation, etc... |
---|
[204] | 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 | */ |
---|
[202] | 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 | |
---|
[239] | 22 | |
---|
[202] | 23 | <?php $dbDataSelectionWidget->Javascript(); ?> |
---|
| 24 | </head> |
---|
| 25 | <body> |
---|
[276] | 26 | </div> |
---|
[202] | 27 | |
---|
[276] | 28 | <div id="header"> |
---|
[202] | 29 | |
---|
[276] | 30 | </div> |
---|
[202] | 31 | |
---|
[276] | 32 | <div id="content"> |
---|
| 33 | <div id="wrapper"> |
---|
[202] | 34 | |
---|
[276] | 35 | <div id="breadcrumbs" class="largeFrame"> |
---|
[277] | 36 | <a href="index.php">Login</a> > |
---|
[276] | 37 | <a href="dashboardDataSelection.php" class="selected">Select data</a> |
---|
| 38 | </div> |
---|
[227] | 39 | |
---|
[276] | 40 | <div id="leftColumn"> |
---|
[202] | 41 | |
---|
[276] | 42 | <div class="largeFrame C" id="dbDataSelector"> |
---|
| 43 | <div class="content"> |
---|
[239] | 44 | |
---|
[276] | 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> |
---|
[202] | 59 | </div> |
---|
| 60 | |
---|
[276] | 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> |
---|
[202] | 75 | |
---|
[204] | 76 | |
---|
[276] | 77 | <div class="largeFrame Cu" id="dbInfoPanel"> |
---|
| 78 | <div class='largeTitle'>Info panel</div> |
---|
| 79 | <div class="content" id="dbInfoPanelContent" style="height: 100px;"> |
---|
[204] | 80 | |
---|
[202] | 81 | </div> |
---|
| 82 | |
---|
[276] | 83 | <div class="controls"> |
---|
| 84 | <input type="button" class="smallButton" id="btnAddToCart" value="Add to list" onClick="addDataToList();" /> |
---|
| 85 | </div> |
---|
| 86 | </div> |
---|
| 87 | </div> |
---|
[204] | 88 | |
---|
[276] | 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 | |
---|
[202] | 94 | </div> |
---|
[276] | 95 | <div class="controls"> |
---|
| 96 | <input type="button" class="smallButton" id="btnAddToCart" value="Configure Dashboard" onClick="configureDashboard();" /> |
---|
| 97 | </div> |
---|
[202] | 98 | </div> |
---|
| 99 | </div> |
---|
[276] | 100 | </div> |
---|
| 101 | </div> |
---|
| 102 | </body> |
---|
[202] | 103 | </html> |
---|