<div class="page-content">
	<div class="page-header position-relative"></div>
	<!--/.page-header-->

	<div class="row-fluid">
		<div class="span12">
			<!--PAGE CONTENT BEGINS-->





			<div class="row-fluid">
				<div class="span12">
					<div class="widget-box">
						<div class="widget-header widget-header-blue widget-header-flat">
							<h4 class="lighter">New Awards</h4>


						</div>

						<div class="widget-body">
							<div class="widget-main">
								<div class="row-fluid">


									<div class="step-content row-fluid position-relative"
										id="step-container">
										<div class="step-pane active">

											<form class="form-horizontal" method="post" action="">
												<div class="control-group">
													<label class="control-label">Name Of Award:</label>

													<div class="controls">
														<div class="span12">
															<input type="text" class="span8" name="give[award_name]"
																value="<?php if ($getid [0] == 'edit') echo $earlier['award_name'];?>">
														</div>
													</div>
													<!-- controls -->
												</div>
												<!-- control-group -->

												<div class="control-group">
													<label class="control-label">Gift Item:</label>

													<div class="controls">
														<div class="span12">
															<input type="text" class="span8" name="give[gift_item]"
																value="<?php if ($getid [0] == 'edit') echo $earlier['gift_item'];?>">
														</div>
													</div>
													<!-- controls -->
												</div>
												<!-- control-group -->


												<div class="control-group">
													<label class="control-label" for="form-field-select-1">Employee
														Name:</label>
													<div class="controls">
														<select name="give[e_id]">
															<option value="" selected="selected" disabled="disabled">Employee
																Name</option>
																		<?php
																		if ($getid [0] == 'edit') {
																			?>
																			<option value="<?php echo $employee['e_id']; ?>"
																selected="selected"><?php echo $employee['e_name'];  ?></option>
																		<?php
																		
																		} else {
																			foreach ( $employee as $row ) {
																				?>
																			<option value="<?php echo $row['e_id']; ?>"><?php echo $row['e_name'];  ?></option>
																			<?php } }?> 
																		</select>
													</div>
													<!-- /controls -->
												</div>
												<!-- control-group -->

												<div class="control-group">
													<label class="control-label">For Month Of</label>
													<div class="controls">
														<select name="give[month]">
															<option value="" selected="selected">Month</option>
															<option value="january"
																<?php if ($getid [0] == 'edit' && $earlier['month'] == 'january') echo 'selected'; ?>>January</option>
															<option value="feburary"
																<?php if ($getid [0] == 'edit' && $earlier['month'] == 'feburary') echo 'selected'; ?>>Feburary</option>
															<option value="march"
																<?php if ($getid [0] == 'edit' && $earlier['month'] == 'march') echo 'selected'; ?>>March</option>
															<option value="april"
																<?php if ($getid [0] == 'edit' && $earlier['month'] == 'april') echo 'selected'; ?>>April</option>
															<option value="may"
																<?php if ($getid [0] == 'edit' && $earlier['month'] == 'may') echo 'selected'; ?>>May</option>
															<option value="june"
																<?php if ($getid [0] == 'edit' && $earlier['month'] == 'june') echo 'selected'; ?>>June</option>
															<option value="july"
																<?php if ($getid [0] == 'edit' && $earlier['month'] == 'july') echo 'selected'; ?>>July</option>
															<option value="august"
																<?php if ($getid [0] == 'edit' && $earlier['month'] == 'august') echo 'selected'; ?>>August</option>
															<option value="september"
																<?php if ($getid [0] == 'edit' && $earlier['month'] == 'september') echo 'selected'; ?>>September</option>
															<option value="october"
																<?php if ($getid [0] == 'edit' && $earlier['month'] == 'october') echo 'selected'; ?>>October</option>
															<option value="november"
																<?php if ($getid [0] == 'edit' && $earlier['month'] == 'november') echo 'selected'; ?>>November</option>
															<option value="december"
																<?php if ($getid [0] == 'edit' && $earlier['month'] == 'december') echo 'selected'; ?>>December</option>
														</select> &nbsp;&nbsp; <select name="give[year]">
															<option value="" selected="selected">Year</option>
															<option value="2014"
																<?php if ($getid [0] == 'edit' && $earlier['year'] == '2014') echo 'selected'; ?>>2014</option>
															<option value="2013"
																<?php if ($getid [0] == 'edit' && $earlier['year'] == '2013') echo 'selected'; ?>>2013</option>
															<option value="2012"
																<?php if ($getid [0] == 'edit' && $earlier['year'] == '2012') echo 'selected'; ?>>2012</option>
															<option value="2011"
																<?php if ($getid [0] == 'edit' && $earlier['year'] == '2011') echo 'selected'; ?>>2011</option>
															<option value="2010"
																<?php if ($getid [0] == 'edit' && $earlier['year'] == '2010') echo 'selected'; ?>>2010</option>
														</select>

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

												<div class="control-group">
													<label class="control-label">Date:</label>

													<div class="controls">
														<div class="span12">
															<input class="span3 date-picker" id="id-date-picker-1"
																type="text" data-date-format="dd-mm-yyyy"
																name="give[date]" required="required"
																value="<?php if ($getid [0] == 'edit') echo $earlier['date'];?>" />
															<span class="add-on"> <i class="icon-calendar"></i>
															</span>
														</div>
													</div>
												</div>

												<div class="control-group">

													<div class="controls">
														<span class="span12"> <input type="hidden" name="check"
															value="give">
															<?php if($getid[0] == 'edit'){?>
															<input type="hidden" name="id"
															value="<?php echo $earlier['id']; ?>">
															<button type="submit" name="update"
																class="btn btn-small btn-primary">Update</button>
																<?php }else{?>
															<button type="submit" name="submit"
																class="btn btn-small btn-primary">Save</button>
																<?php }?>
														</span>
													</div>
												</div>

											</form>
										</div>
									</div>



								</div>
							</div>
							<!--/widget-main-->
						</div>
						<!--/widget-body-->
					</div>
				</div>
			</div>

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


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