Add analytics
[bus.git] / busui / owa / modules / base / templates / report_actionTracking.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
<? include('report_dimensionDetailNoTabs.php');?>
 
 
<table width="100%">
        <TR>
                <TD valign="top" style="width:50%;">
                        <div class="owa_reportSectionContent">
                                <div class="section_header">Actions by Name</div>
                                <div style="min-width:250px;" id="actionsByNameExplorer"></div>
                                <script>
                                
                                var aurl = '<?php echo $this->makeApiLink(array('do' => 'getResultSet', 
                                                                                                                                  'metrics' => 'actions', 
                                                                                                                                  'dimensions' => 'actionGroup,actionName', 
                                                                                                                                  'sort' => 'actions-', 
                                                                                                                                  'resultsPerPage' => 5,
                                                                                                                                  'format' => 'json'), true);?>';
                                                                                                                                  
                                rsh = new OWA.resultSetExplorer('actionsByNameExplorer');
                                var link = '<?php echo $this->makeLink(array('do' => 'base.reportActionDetail', 'actionName' => '%s', 'actionGroup' => '%s'), true);?>';
                                rsh.addLinkToColumn('actionName', link, ['actionName', 'actionGroup']);
                                rsh.asyncQueue.push(['refreshGrid']);
                                rsh.load(aurl, 'grid');
                                </script>
                        </div>
                </TD>
                
                <TD valign="top" style="width:50%;">
                        <div class="owa_reportSectionContent">
                                <div class="section_header">Actions By Group</div>
                                <div style="min-width:300px;" id="actionsByGroupExplorer"></div>
                                <script>
                                var url = '<?php echo $this->makeApiLink(array('do' => 'getResultSet', 
                                                                                                                          'metrics' => 'actions', 
                                                                                                                          'dimensions' => 'actionGroup', 
                                                                                                                          'sort' => 'actions-', 
                                                                                                                          'resultsPerPage' => 5,
                                                                                                                          'format' => 'json'), true);?>';
                                                                                                                          
                                rshre = new OWA.resultSetExplorer('actionsByGroupExplorer');
                                var link = '<?php echo $this->makeLink(array('do' => 'base.reportActionGroup', 'actionGroup' => '%s'), true);?>';
                                rshre.addLinkToColumn('actionGroup', link, ['actionGroup']);
                                rshre.asyncQueue.push(['refreshGrid']);
                                rshre.load(url);
                                </script>
                        </div>
                </TD>
        </TR>
</table>