Move busui to seperate repository
[bus.git] / row_visitSummary.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
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
110
<TD>
	<div class="owa_visitInfobox" style="width:auto;">
	
		<p class="owa_visitInfoboxTitle"><?php echo date("D M j G:i:s T",$row['session_timestamp']);?> &raquo; <?php echo $row['host_host'];?></p>
		
		<table class="owa_visitInfoboxItemContainer" cellspacing="0" width="100%">
			<TR>
				<TD>
					<table class="owa_userInfobox">
						<TD class="owa_avatar">
							<img src="<?php echo $this->getAvatarImage($row['visitor_user_email']);?>" width="30" height="30">
						</TD>
						<TD class="owa_userLabel" style="width:auto;">
							
							<span class="owa_userNameLabel">
							<a href="<?php echo $this->makeLink(array('do' => 'base.reportVisitor', 'visitor_id' => $row['visitor_id'], 'site_id' => $this->get('site_id')),true);?>">
							<?php
							if (!empty($row['visitor_user_name'])) {
								echo $row['visitor_user_name'];
							} elseif (!empty($row['visitor_user_email'])) {
								echo $row['visitor_user_email'];
							} else {
								echo $row['visitor_id'];
							}?></a></span>
							
							<?php if ($row['session_is_new_visitor'] == true): ?>
							 <img src="<?php echo $this->makeImageLink('base/i/icon_new.png');?>" alt="New Visitor">
							<?php endif;?>
							<BR>
							<?php if ($row['host_city']):?> 
							<span class="owa_userGeoLabel"><?php echo $row['host_city'];?>, <?php echo $row['host_country'];?></span>
							<?php endif;?>
						</TD>
					</table>
				</td>
				<TD class="owa_visitInfoboxItem">
					<?php echo $this->choose_browser_icon($row['ua_browser_type']);?>
				</TD>
				<TD class="owa_visitInfoboxItem">
					<span class="owa_largeNumber">
						<a href="<?php echo $this->makeLink(array('session_id' => $row['session_id'], 'do' => 'base.reportVisit'), true);?>">
							<?php echo $row['session_num_pageviews'];?>
						</a>
					</span>
					<BR>
					<span class="info_text">Pages</span>
					
				</TD>
				<TD class="owa_visitInfoboxItem">
					<span class="">
						<?php echo date("G:i:s",mktime(0,0,($row['session_last_req'] - $row['session_timestamp'])));?>
					</span>
					<BR>
					<span class="info_text">Length</span>
				</TD>
			</TR>
		</table>
		
		<table class="owa_visitInfoboxDocContainer">		
			<TR>					
				<TD class="owa_icon16x16" align="" valign="top"><span class="h_label">
					<img src="<?php echo $this->makeImageLink('base/i/document_icon.gif');?>" alt="Entry Page"></span>
				</TD>
										
				<TD valign="top">
					<span class="">
						<a href="<?php echo $row['document_url'];?>"><?php echo $row['document_page_title'];?></a>
					</span>
					<span class="owa_secondaryText">
						<?php if($row['document_page_type']):?> 
						(<?php echo $row['document_page_type'];?>)
						<?php endif;?>
					</span>
					<BR>
					<span class="owa_secondaryText"><?php echo $this->truncate($row['document_url'],80,'...');?></span>
				</TD>							
			</tr>
			
			<?php if (!empty($row['referer_url'])):?>		
			<TR>
				<TD class="owa_icon16x16" rowspan="2" align="right" valign="top">
				
					<span class="h_label"><img src="<?php echo $this->makeImageLink('base/i/referer_icon.gif');?>" alt="Refering URL"></span>
				</TD>

				<TD valign="top" colspan="2">
					<span class="inline_h4">
						<a href="<?php echo $row['referer_url'];?>">
						<?php if (!empty($row['referer_page_title'])):?><?php echo $this->truncate($row['referer_page_title'], 80, '...');?></span></a><BR><span class="info_text"><?php echo $this->truncate($row['referer_url'], 80, '...');?><?php else:?><?php echo $this->truncate($row['referer_url'], 80, '...');?><?php endif;?></a></span>
				</TD>
																
			</TR>
			<?php endif;?>
						
		<?php if (!empty($row['referer_snippet'])):?>			
			<TR>
				<TD colspan="1">
					<span class="snippet_text"><?php echo $row['referer_snippet'];?></span>
				</TD>
				
			</TR>
		<?php endif;?>

								
			</TR>
						
		</table>
	
</div>
</TD>