Move busui to seperate repository
[bus.git] / report_document.tpl
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
<?php if ($dimension_properties): ?>
<div class="owa_reportSectionContent">
	<?php echo $this->renderDimension($dimension_template, $dimension_properties);?>
</div>
<?php endif;?>

<?php require('report_trend_section.php');?>
	
<div class="owa_reportSectionContent">
	<table style="width:100%;">
		<TR>
		
			<TD width="50%" valign="top">
			<div class="owa_reportSectionContent">
				<div class="owa_reportSectionHeader">Next Pages Viewed</div>
				<div id="nextpages"></div>
			</div>
			<div class="owa_reportSectionContent">
				<div class="owa_reportSectionHeader">Prior Pages Viewed</div>
				<div id="priorpages"></div>
			</div>
			</TD>
			<TD width="50%" valign="top">
				<div class="owa_reportSectionHeader">Related Reports:</div>
				
				<P>
					<span class="inline_h3"><a href="<?php echo $this->makeLink(array('do' => 'base.overlayLauncher', 'document_id' =>$document->get('id'), 'overlay_params' => urlencode($this->makeParamString(array('action' => 'loadHeatmap', 'api_url' => owa_coreAPI::getSetting('base', 'api_url'), 'document_id' => $document->get('id')), true, 'cookie'))));?>" target="_blank">Heatmap Overlay</a></span> (Firefox 3.5+ required)
				</P>
				
				<P>
					<span class="inline_h3"><a href="<?php echo $this->makeLink(array('do' => 'base.reportDomstreams', 'document_id' => $document->get('id')), true);?>">Domstreams</a></span> - mouse movement recordings.
				</P>
				
				<P>
					<span class="inline_h3"><a href="<?php echo $this->makeLink(array('do' => 'base.reportDomClicks', 'document_id' => $document->get('id')), true);?>">Dom Clicks</a></span> - analysis of dom clicks.
				</P>
				
					
			</TD>
		</TR>
	</table>	
</div>



<script>
		var trurl = '<?php echo $this->makeApiLink(array('do' => 'getResultSet', 
													  'metrics' => 'visits', 
													  'dimensions' => 'pagePath,pageTitle', 
													  'sort' => 'visits-', 
													  'resultsPerPage' => 15,
													  'constraints'			=> 'priorPageUrl=='.urlencode($dimension_properties->get('url')),
													  'format' => 'json'), true);?>';
													  
		var trshre = new OWA.resultSetExplorer('nextpages');
		var link = '<?php echo $this->makeLink(array('do' => 'base.reportDocument', 'pagePath' => '%s'), true);?>';
		trshre.addLinkToColumn('pagePath', link, ['pagePath']);
		trshre.asyncQueue.push(['refreshGrid']);
		trshre.load(trurl);
		
		var prurl = '<?php echo $this->makeApiLink(array('do' => 'getResultSet', 
													  'metrics' => 'visits', 
													  'dimensions' => 'priorPagePath,priorPageTitle', 
													  'sort' => 'visits-', 
													  'resultsPerPage' => 15,
													  'constraints'			=> 'pageUrl=='.urlencode($dimension_properties->get('url')),
													  'format' => 'json'), true);?>';
													  
		var prshre = new OWA.resultSetExplorer('priorpages');
		var link = '<?php echo $this->makeLink(array('do' => 'base.reportDocument', 'pagePath' => '%s'), true);?>';
		prshre.addLinkToColumn('priorPagePath', link, ['priorPagePath']);
		prshre.asyncQueue.push(['refreshGrid']);
		prshre.load(prurl);
</script>

<?php require_once('js_report_templates.php');?>