<?php
if (isset($tpl['status']))
{
	$status = __('status', true);
	switch ($tpl['status'])
	{
		case 2:
			pjUtil::printNotice(NULL, $status[2]);
			break;
	}
} else {
	$statarr = __('employee_statarr', true);	
	?>
	<div class="ui-tabs ui-widget ui-widget-content ui-corner-all b10">
		<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
			<li class="ui-state-default ui-corner-top"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminEmployees&amp;action=pjActionIndex"><?php __('menuEmployees'); ?></a></li>
			<li class="ui-state-default ui-corner-top ui-tabs-active ui-state-active""><a href="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminEmployees&amp;action=pjActionView&amp;id=<?php echo $_GET['id']?>"><?php __('lblViewEmployee'); ?></a></li>
		</ul>
	</div>
	
	<div class="form pj-form">
		<p>
			<label class="title"><?php __('email'); ?></label>
			<span class="inline_block t4">
				<?php echo pjSanitize::clean($tpl['arr']['email']); ?>
			</span>
		</p>
		<p>
			<label class="title"><?php __('lblFirstName'); ?></label>
			<span class="inline_block t4">
				<?php echo pjSanitize::clean($tpl['arr']['fname']); ?>
			</span>
		</p>
		<p>
			<label class="title"><?php __('lblLastName'); ?></label>
			<span class="inline_block t4">
				<?php echo pjSanitize::clean($tpl['arr']['lname']); ?>
			</span>
		</p>
		<?php
		if(isset($tpl['file_arr']))
		{
			$file = $tpl['file_arr'];
			if(!empty($file['file_path']))
			{
				$file_path = PJ_INSTALL_PATH . $file['file_path'];
				$file_url = PJ_INSTALL_URL . $file['file_path'];
				if(file_exists($file_path))
				{
					?>
					<p id="cv_container">
						<label class="title"><?php __('lblCV');?></label>
						<span class="inline_block">
							<label class="content r10"><?php echo pjSanitize::html($file['file_name']);?></label>
							<a target="_blank" class="icon download-file r10" href="<?php echo PJ_INSTALL_URL;?>index.php?controller=pjAdminEmployees&action=pjActionDownloadFile&id=<?php echo $file['id']; ?>"><?php echo strtolower(__('lnkDownload', true));?></a>
						</span>
					</p>
					<?php
				}
			}
		} 
		?>
		<p>
			<label class="title"><?php __('lblStatus'); ?></label>
			<span class="inline_block t4">
				<?php echo $statarr[$tpl['arr']['status']]; ?>
			</span>
		</p>
	</div>
	<?php
}
?>