<div class="page-content">
	<div class="page-header position-relative">
		<h1>
			Employee Awards <small> <i class="icon-double-angle-right"></i>
				&nbsp; Lists
			</small>

		</h1>

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

	<div class="span7" id="8">
		<form class="form-horizontal" method="post" action="">
			<div class="control-group">
				<label class="control-label">Date Range:</label>
				<div class="controls">
					<div class="row-fluid input-prepend">

						<input class="span6" type="text" name="date[final]"
							id="id-date-range-picker-1"
							placeholder="<?php echo $awardsdate['final']; ?>" /> <span
							class="add-on"> <i class="icon-calendar big"></i>
						</span> <input type="hidden" name="check" value="date">
						<button class="btn btn-small btn-purple" name="submit">Show</button>

					</div>
					<!-- .row-fluid input-prepend -->


				</div>
				<!-- /controls -->
			</div>
			<!-- /control-group -->
		</form>
	</div>
	<!-- /control-group -->


	<div class="row-fluid">
		<div class="span12">
			<!--PAGE CONTENT BEGINS-->
			<table id="example-table"
				class="table-bhangi table table-striped table-bordered table-hover no-margin-bottom no-border-top">
				<thead>
					<tr>
						<th>S.No.</th>
						<th>Name Of Employee</th>
						<th>No. Of Awards</th>

					</tr>
				</thead>

				<tbody>
											<?php
											$a = '1';
											foreach ( $employee as $ename ) {
												echo '<tr>';
												echo '<td>' . $a . ' </td>';
												echo '<td>' . $ename ['e_name'] . '</td>';
												?>
					                    			<td>
					                    				<?php
												
												$check = $db->exists ( 'earlier_award', array ('e_id' => $ename ['e_id'] ) );
												
												if ($check) {
													$total = $db->get_count ( 'earlier_award', array ('e_id' => $ename ['e_id'] ) );
													?>
					                    							
					                    							<div class="span1">
							<p style='font-size: 26px;'><?php echo $total; ?></p>
						</div>
						<div class="span1">
							<i class='icon-trophy red bigger-200'></i>
						</div>
					                    							
					                    						<?php
												
												} else {
													echo "<span class='label label-inverse arrowed-in'>No Awards Yet</span>";
												}
												
												?>		
					                    			</td>
					                    			
					                    			<?php
												
												echo '</tr>';
												$a ++;
											
											}
											?>
									</tbody>
			</table>

			<!--PAGE CONTENT ENDS-->
		</div>
		<!--/.span-->
	</div>
	<!--/.row-fluid-->
</div>
<!--/.page-content-->


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