forked from idea-kmi/LiteMap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
activityanalysis.php
109 lines (98 loc) · 5.7 KB
/
activityanalysis.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?php
/********************************************************************************
* *
* (c) Copyright 2015 The Open University UK *
* *
* This software is freely distributed in accordance with *
* the GNU Lesser General Public (LGPL) license, version 3 or later *
* as published by the Free Software Foundation. *
* For details see LGPL: http://www.fsf.org/licensing/licenses/lgpl.html *
* and GPL: http://www.fsf.org/licensing/licenses/gpl-3.0.html *
* *
* This software is provided by the copyright holders and contributors "as is" *
* and any express or implied warranties, including, but not limited to, the *
* implied warranties of merchantability and fitness for a particular purpose *
* are disclaimed. In no event shall the copyright owner or contributors be *
* liable for any direct, indirect, incidental, special, exemplary, or *
* consequential damages (including, but not limited to, procurement of *
* substitute goods or services; loss of use, data, or profits; or business *
* interruption) however caused and on any theory of liability, whether in *
* contract, strict liability, or tort (including negligence or otherwise) *
* arising in any way out of the use of this software, even if advised of the *
* possibility of such damage. *
* *
********************************************************************************/
/** Author: Michelle Bachler, KMi, The Open University **/
require_once($_SERVER['DOCUMENT_ROOT'].'/config.php');
require_once($HUB_FLM->getCodeDirPath("ui/headerstats.php"));
$nodeset = getNodesByGlobal(0,-1,'date','ASC', 'Map,Challenge,Issue,Solution,Pro,Con,Argument,Idea', 'shortactivity');
$nodes = $nodeset->nodes;
$data = getActivityAnalysisData($nodes);
?>
<script type='text/javascript'>
var NODE_ARGS = new Array();
Event.observe(window, 'load', function() {
NODE_ARGS['data'] = <?php echo json_encode($data); ?>;
$('messagearea').update(getLoadingLine("<?php echo $LNG->LOADING_DATA; ?>"));
var data = NODE_ARGS['data'];
if (data != "") {
displayActivityCrossFilterD3Vis(data, 980);
} else {
$('messagearea').innerHTML="<?php echo $LNG->NETWORKMAPS_NO_RESULTS_MESSAGE; ?>";
}
});
</script>
<div class="vishelpdiv">
<h1 class="vishelpheading"><?php echo $dashboarddata[$pageindex][0]; ?>
<span><img class="vishelparrow" title="<?php echo $LNG->STATS_DASHBOARD_HELP_HINT; ?>" onclick="if($('vishelp').style.display == 'none') { this.src='<?php echo $HUB_FLM->getImagePath('uparrowbig.gif'); ?>'; $('vishelp').style.display='block'; } else {this.src='<?php echo $HUB_FLM->getImagePath('rightarrowbig.gif'); ?>'; $('vishelp').style.display='none'; }" src="<?php echo $HUB_FLM->getImagePath('uparrowbig.gif'); ?>"/></span>
</h1>
<div class="boxshadowsquare" id="vishelp" class="vishelpmessage"><?php echo $dashboarddata[$pageindex][5]; ?></div>
</div>
<div style="clear:both;float:left;padding:5px;">
<div id="messagearea"></div>
<div style="clear:both;float:left;">
<div style="clear:both;float:left;height:250px;" id="date-chart">
<div class="title"><?php echo $LNG->STATS_ACTIVITY_FILTER_DATE_TITLE; ?></div>
</div>
<!-- div style="clear:both;float:left;width:100%;height:60px;" id="date-selector-chart"></div -->
<div style="clear:both;float:left;margin-top:20px;width:100%;">
<!-- div style="clear:both;float:left;height:200px;" id="month-chart">
<div class="title"><?php echo $LNG->STATS_ACTIVITY_FILTER_MONTH_TITLE; ?></div>
</div -->
<div style="float:left;height:200px;width:200px;" id="days-of-week-chart">
<div class="title"><?php echo $LNG->STATS_ACTIVITY_FILTER_DAYS_TITLE; ?></div>
</div>
<div style="float:left;height:200px;width:200px;margin-left:20px;" id="nodetype-chart">
<div class="title"><?php echo $LNG->STATS_ACTIVITY_FILTER_ITEM_TYPES_TITLE; ?></div>
</div>
<div style="float:left;height:200px;width:200px;margin-left:20px;" id="type-chart">
<div class="title"><?php echo $LNG->STATS_ACTIVITY_FILTER_TYPES_TITLE; ?></div>
</div>
<!-- div style="float:left;height:200px;margin-left:20px;" id="nodetype-nut-chart">
<div class="title">Item Types (doughnut)</div>
</div -->
<!--div style="clear:both;float:left;height:200px;margin-left:20px;margin-top:20px;" id="nodetype-pie-chart">
<div class="title">Item Types (pie)</div>
</div -->
</div>
</div>
<div style="clear:both;float:left;margin-top:30px;">
<div id="data-count">
<span class="filter-count"></span> <?php echo $LNG->STATS_ACTIVITY_SELECTED_COUNT_MESSAGE_PART1; ?> <span class="total-count"></span> <?php echo $LNG->STATS_ACTIVITY_SELECTED_COUNT_MESSAGE_PART2; ?> | <a
href="javascript:dc.filterAll(); dc.renderAll();"><?php echo $LNG->STATS_ACTIVITY_RESET_ALL_BUTTON; ?></a>
</div>
<table id="data-table" class="table table-hover dc-data-table" style="clear:both;float:left;width:980px">
<thead>
<tr class="header">
<th width="20%"><?php echo $LNG->STATS_ACTIVITY_COLUMN_DATE; ?></th>
<th width="50%"><?php echo $LNG->STATS_ACTIVITY_COLUMN_TITLE; ?></th>
<th width="15%"><?php echo $LNG->STATS_ACTIVITY_COLUMN_ITEM_TYPE; ?></th>
<th width="15%"><?php echo $LNG->STATS_ACTIVITY_COLUMN_TYPE; ?></th>
</tr>
</thead>
</table>
</div>
</div>
<?php
include_once($HUB_FLM->getCodeDirPath("ui/footerstats.php"));
?>