<style>
	.table th, .table td {
		border-top: none;
	}
</style>
<script>
jQuery('html,body').animate({scrollTop: jQuery('#target').offset()}, 1000);
</script>
<?php
if (!is_object($bee_account)) {
	return false;
}

?>

<div class="row-fluid">
	<div class="span12">
		<div class="span2">
			<img src="<?php echo ($bee_account->photo) ? file_create_url($bee_account->photo) : file_create_url(BEE_ACCOUNT_PHOTO_DEFAULT); ?>"
				 class="img-rounded" style=" display: block; margin-left: auto; margin-right: auto ">

			<ul class="nav nav-list" style="margin-top: 10px;">
				<li class="nav-header">Basic</li>
				<li class="active"><a href="#">My Profile</a></li>
				<li>
					<a href="<?php print base_path() . 'manuka/myaccount/edit/' . $bee_account->uid ?> ">
						<i class="icon-edit"></i> profile edit</a>
				</li>
				<li>
					<a href="<?php print base_path() . 'user/' . $bee_account->uid . '/edit' ?>" >
						<i class="icon-user"></i> account edit</a>
				</li>
				<li class="nav-header">Payroll</li>
				<li>
					<a href="#payroll" >
						<i class="icon-signal"></i> My payroll</a>
				</li>
			</ul>
		</div>
		<div class = "span9">

			<table class = "table table-hover table-condensed" >
				<tr>
					<td><h2><?php print $bee_account->name; ?></h2></td>
				</tr>
				<tr>
					<td><b><?php print (isset($bee_account->position)) ? bee_account_position_map($bee_account->position) : bee_account_position_map(BEE_ACCOUNT_POSITION_STAFF);
?> </b></td>
				</tr>
				<tr>
					<td><b>Bee Id: </b><?php print $bee_account->bid; ?> </td>
				</tr>
				<tr>
					<td><b>birthday: </b> <?php print date('Y-m-d', $bee_account->birthday); ?></td>
					<td><div class="field field-name-field-age field-type-text field-label-inline clearfix">
							<div class="field-label"> <b>Age: </b></div>
							<div class="field-items">
								<div class="field-item even"><?php print (int) floor((time() - $bee_account->birthday) / 31536000); ?></div></div></div></td>
					<td><b>Sex: </b><?php print $bee_account->sex; ?></td>
				</tr>
				<tr>
					<td><b>address: </b><?php print $bee_account->address; ?></td>
					<td><b>no: </b><?php print $bee_account->address_no; ?></td>
				</tr>
				<tr>
					<td>
						<b>mobile: </b><?php print $bee_account->mobile; ?>
					</td>
				</tr>
				<tr>
					<td><b>Email: </b><?php print $bee_account->email_alternative; ?></td>
					<td><b>Email alternative: </b><?php print $bee_account->email_alternative; ?></td>
				</tr>
			</table>
			<hr>
			<table class="table table-hover table-condensed" >
				<tr>
					<td><h3>Bee healthy trading activity</h3></td>
				</tr>
				<tr>
					<td><b>Employed: </b><?php print date('Y-m-d', $bee_account->year_employed) ?></td>
				</tr>
				<tr>
					<td><b>Position: </b><?php print (isset($bee_account->position)) ? bee_account_position_map($bee_account->position) : bee_account_position_map(BEE_ACCOUNT_POSITION_STAFF); ?></td>
				</tr>
				<tr>
					<td><b>Designation: </b><?php print $bee_account->designation ?></td>
				</tr>

				<tr>
					<td><h4>Trainings</h4></td>
				</tr>
				<tr><td><?php echo $trainings ?></td></tr>
				<tr><td><hr></td></tr>
				<tr>
					<td><h3>additional information</h3></td>
				</tr>
				<tr>
					<td><b>High School: </b><?php print $bee_account->school ?></td>
				</tr>
				<tr>
					<td><b>College: </b><?php print $bee_account->college ?></td>
				</tr>
				<tr>
					<td><h3>emergency contact</h3></td>
				</tr>
				<tr>
					<td><b>Name: </b><?php print $bee_account->emergency_name ?></td>
				</tr>
				<tr>
					<td><b>Address: </b><?php print $bee_account->emergency_address ?></td>
				</tr>
				<tr>
					<td><b>Contact: </b><?php print $bee_account->emergency_contact ?></td>
				</tr>
				<tr>
					<td><b>Relation: </b><?php print $bee_account->emergency_relation ?></td>
				</tr>
				<tr>
					<td><h3>notes</h3></td>
				</tr>
				<tr><td><annotation>
						<?php print $bee_account->notes ?>
					</td></tr>
				<tr>
					<td>
						<h3>Payroll</h3>
						<a name="payroll" ></a>
						<?php echo $payroll ?>
					</td>
				</tr>
				<tr>
					<td>
						<h3>Time Spent</h3>
						<a name="payroll" ></a>
						<?php echo $timeSpent ?>
					</td>
				</tr>
			</table>
		</div>
	</div>
</div>