<?php
/**
 * survey_header_view.php - View Page Header.
 *
 * @author $Author: dtong $
 * @version $Id: survey_header_view.php,v 1.6 2011/03/28 04:47:37 dtong Exp $
 * @copyright Copyright (c) ${year}, Tiller Software Co., Ltd.
*/
$url_logout = base_url()."survey/login/logout/".$surveyid;
?>
<table width="100%" cellspacing="0" cellpadding="0" border="0"; style="margin-top: 0px; margin-bottom: 0px;">
	<tr>
		<td colspan="2"
			bgcolor="<?php echo $this->config->item('cms_header_image_bkcolor');?>"><nobr></nobr>
			<?php if ($this->config->item('cms_header_image_left_align')===FALSE) {?>
				<center>
					<img src="<?php echo osa_image_toppath() . $this->config->item('cms_header_image');?>" />
				</center>
			<?php } else { ?>
					<img src="<?php echo osa_image_toppath() .  $this->config->item('cms_header_image');?>" />
			<?php }?>
		</td>
	</tr>
	<tr>
		 <td align="right"><span class="survey_loin_name">
		 	<?php echo lang('survey_login_name') ?></span> <?php echo $current_user_realname?>
		 	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		 	<a href="<?php echo $url_logout;?>">
		 		<span class="survey_logout"><?php echo lang('survey_btn_logout')?></span></a>
		 </td>
	</tr>
</table>
