<div class="page-content">
	<div class="page-header position-relative">
		<h1>
			Attendence <small> <i class="icon-double-angle-right"></i> Calendar
			</small>

		</h1>

	</div>
	<!--/.page-header-->

	<div class="row-fluid">
		<div class="span12">
			<!--PAGE CONTENT BEGINS-->
							<?php
							$a = $link->hrefquery ();
							
							if ($a [0] == 'id') {
								$part = explode ( '&', $a [1] );
								
								$id [1] = $part [0];
							}
							
							?>
							
							
							<div class="row-fluid">
				<div class="span9">
					<div class="space"></div>

					<div id="calendar"></div>
				</div>

				<div class="span3">
					<div class="widget-box transparent">
						<div class="widget-header">
							<h4>Employees Name</h4>
						</div>

						<div class="widget-main"
							style="height: 625px; overflow-y: scroll;">
											
												<?php
												
												$employee = $db->get_all ( "employees" );
												
												$arr = array ("label-grey", "label-success", "label-important", "label-purple", "label-yellow", "label-pink", "label-info" );
												
												foreach ( $employee as $row ) {
													if ($id [1] == $row ['e_id']) {
														?>
													<div class="row-fluid">
								<a
									href="<?php echo $link->link('calendar',Admin, '?id='.$row[e_id]);?>">
									<p><?php echo $row['e_name']; ?></p>
								</a>
							</div>
													<?php
													} else {
														?>
													<a
								href="<?php echo $link->link('calendar',Admin, '?id='.$row[e_id]);?>"><div
									class="external-event <?php echo $arr[mt_rand(0,6)];?> label-minier  "
									data-class="<?php echo $arr[mt_rand(0,6)];?>"
									style="position: relative;">
									<i class="icon-move"></i> 
									<?php echo $row['e_name']; ?>
							</div></a>
														
												<?php }}?>
											
											
											
											
										</div>
					</div>
				</div>
			</div>
			<!--PAGE CONTENT ENDS-->
		</div>
		<!--/.span-->
	</div>
	<!--/.row-fluid-->
</div>
<!--/.page-content-->


</div>
<!--/.main-content-->