Ignore:
Timestamp:
02/21/12 13:56:17 (13 years ago)
Author:
tjcschipper
Message:

Laatste versie van de 'oude' dashboard interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/Cartis/dashboardGraphSelection.php

    r242 r276  
    2727        <script src="RGraph/libraries/RGraph.pie.js" ></script>
    2828        <script src="RGraph/libraries/RGraph.radar.js" ></script>
     29        <script src="RGraph/libraries/RGraph.rose.js" ></script>
    2930
    3031
     32
     33
     34
     35
     36       
    3137        <script>
    3238            myGraph.Set('chart.contextmenu', [
     
    3642            ]);
    3743        </script>
    38 
    39 
    40         <script>
    41             window.onload = function ()
    42             {
    43  
    44                 var bar1 = new RGraph.Bar('chart1', mockupData.muData3);
    45                 //bar1.Set('chart.background.barcolor1', 'white');
    46                 // bar1.Set('chart.background.barcolor2', 'white');
    47                 bar1.Set('chart.labels', ['1st', '2nd', '3rd', '4th', '5th', '6th']);
    48                 bar1.Set('chart.key', ['John', 'Bob']);
    49                 bar1.Set('chart.key.position.y', 35);
    50                 bar1.Set('chart.key.position', 'gutter');
    51                 bar1.Set('chart.key.background', 'rgb(255,255,255)');
    52                 bar1.Set('chart.colors', ['#77f', '#7f7']);
    53                 bar1.Set('chart.shadow', true);
    54                 bar1.Set('chart.shadow.blur', 15);
    55                 bar1.Set('chart.shadow.offsetx', 0);
    56                 bar1.Set('chart.shadow.offsety', 0);
    57                 bar1.Set('chart.shadow.color', '#aaa');
    58                 bar1.Set('chart.yaxispos', 'right');
    59                 bar1.Set('chart.strokestyle', 'rgba(0,0,0,0)');
    60                 bar1.Set('chart.gutter.left', 5);
    61                 bar1.Set('chart.gutter.right', 45);
    62                 bar1.Draw();
    63  
    64                
    65            
    66                 if (!RGraph.isIE8()) {
    67                     tooltipFunc = function (i)
    68                     {
    69                         var r = i % 4;
    70                    
    71                         if (r == 3) return 'John'
    72                         else if (r == 2) return 'Rich';
    73                         else if (r == 1) return 'Jane';
    74                         else if (r == 0) return 'Quentin';
    75                     }
    76                     bar2.Set('chart.tooltips', tooltipFunc);
    77                 }
    78  
    79                 bar2.Draw();
    80                
    81             }
    82         </script>
    83        
    8444
    8545        <title>
     
    10060                <div id="wrapper">
    10161
     62                    <div id="breadcrumbs" class="largeFrame" style="width: 900px;">
     63                        <a href="#" onclick="checkBack('index.php');">Login</a> >
     64                        <a href="#" onclick="checkBack('dashboardDataSelection.php');">Select data</a> >
     65                        <a href="#" class="selected">Select graphtype</a>
     66                    </div>
     67
    10268                    <div id="leftColumn">
    10369
     
    10672
    10773                                <div class="largeTitle">Selected data</div>                         
    108                                 <div class="content" style="width: 300px; height: 500px; ">               
     74                                <div class="content" style="width: 296px; height: 500px; ">               
     75                                    <select id="dbSelectedData" multiple class="dbDataList" size="15" style="width: 275px;" onchange="infoPanelTimeout(event);">
    10976
    110                                     <?php
    111                                     print_r($data);
    112                                     ?>
     77                                        <?php
     78                                        $objCount = count($data->contents->titles);
    11379
     80                                        for ($i = 0; $i < $objCount; $i++) {
     81                                            echo "<option value='" . $data->contents->uids[$i] . "' name='" . $data->contents->types[$i] . "'>" . $data->contents->titles[$i] . "</option>";
     82                                        }
     83                                        ?>
     84                                    </select>
    11485                                </div>
    11586
     
    12596                                <div id="btnSelectBarType" class="graphSelectionButton" onclick="changeGraphType('bar')">BAR CHART</div>
    12697                                <div id="btnSelectRadarType" class="graphSelectionButton" onclick="changeGraphType('radar')">RADAR CHART</div>
     98                                <div id="btnSelectRose" class="graphSelectionButton" onClick="changeGraphType('rose')">ROSE CHART</div>
     99
    127100                            </div>
    128101                            <div class="content" id="graphDisplay">
    129102
    130103                                <canvas id="chart1" width="450" height="200" onclick="RGraph.showPNG(document.getElementById('radar1'));">[No canvas support] </canvas>
    131                              
     104
    132105                                <!-- Button to gotoDashboard?? -->                                                           
    133106
     
    137110                                <input type="button" class="smallButton" value="Save to dashboard" onClick="addToDashboard()"></input>
    138111                                <input type="button" class="smallButton" value="Go to Dashboard" onClick="gotoDashboard()"></input>
    139                                
     112
    140113
    141114                            </div>
Note: See TracChangeset for help on using the changeset viewer.