Add analytics
[bus.git] / busui / owa / modules / base / templates / header.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
<div id="owa_header">

	<span class="owa_logo"><img src="<?php echo $this->makeImageLink('base/i/owa-logo-100w.png'); ?>" alt="Open Web Analytics"></span>
	 &nbsp
	<span class="owa_navigation">
		<UL>
			<LI><a href="<?php echo $this->makeLink(array('do' => 'base.reportDashboard'), true);?>">Reports</a></LI>
			<LI><a href="<?php echo $this->makeLink(array('do' => 'base.optionsGeneral'));?>">Administration</a></LI>
			<LI><a href="http://wiki.openwebanalytics.com">Help</a></LI>
			<LI><a href="http://trac.openwebanalytics.com">Report a Bug</a></LI>
			
		</UL>
	</span>
	<?php $cu = $this->getCurrentUser(); ?>
	<span class="user-greating" style="">
		Hi, <?php $this->out( $cu->getUserData('user_id') );?> ! &bull;
		<?php if ( ! owa_coreAPI::getSetting( 'base', 'is_embedded' ) ):?>
			
				<?php if (owa_coreAPI::isCurrentUserAuthenticated()):?>
				<a class="login" href="<?php echo $this->makeLink(array('do' => 'base.logout'), false);?>">Logout</a>
				<?php else:?>
				<a class="login" href="<?php echo $this->makeLink(array('do' => 'base.loginForm'), false);?>">Login</a>
				<?php endif;?>
			
			<?php endif;?>	
	</span>
	<div class="post-nav"></div>
	<?php if (!empty($service_msg)): ?>
	<div class="owa_headerServiceMsg"><?php echo $service_msg; ?></div>
	<?php endif;?>
				
	<?php $this->headerActions(); ?>
	
</div>