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

	<div class="row-fluid">
		<div class="span12">
			<!--PAGE CONTENT BEGINS-->
			<?php echo $display_loan;?>
			<div class="row-fluid">
				<div class="span12">
					<div class="widget-box">
						<div class="widget-header widget-header-blue widget-header-flat">
							<h4 class="lighter">Loan Module</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="row-fluid">
													<div class="control-group">
														<label class="control-label"> Employee Name</label>
														<div class="controls">
															<select name="emp_name">
															<option value="0">-------- Select Employee --------</option>
															<?php 
															$get_employee = $db->get_all('employees',array(),array('e_id','e_name'));
															if(is_array($get_employee)){
															foreach($get_employee as $employee){
															if($get_loan['e_name']==$employee['e_name']){
																?>
																<option value="<?php echo $employee['e_id'].'___'.$employee['e_name'];?>" selected="selected"><?php echo $employee['e_name'];?></option>
																<?php }else{?>
																	<option value="<?php echo $employee['e_id'].'___'.$employee['e_name'];?>"><?php echo $employee['e_name'];?></option>
															<?php	} } }?>
															</select>
														</div>
														<!-- /controls -->
													</div>
													<div class="control-group">
														<label class="control-label">Advance Amount </label>
														<div class="controls">
															<input type="text" class="span6" name="loan_amount" value="<?php if($edit_id['0']=='edit_id') echo $get_loan['advance_amount']; else echo $loan_amount;?>">
														</div>
														<!-- /controls -->
													</div>
													
														<div class="control-group">
														<div class="controls">
															<span class="span12"> <input type="hidden" name="check"
																value="loanmodule">
																<button type="submit" name="loan_submit"
																	class="btn btn-small btn-primary">Save</button>
															</span>
														</div>
														<!-- controls -->
													</div>
													<!-- control group -->


												</div>
												<!-- row fluid -->

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



								</div>
								<!-- rowfluid -->
							</div>
							<!--/widget-main-->
						</div>
						<!--/widget-body-->
					</div>
					<!-- widget-box -->
				</div>
				<!-- span12 -->
			</div>
			<!-- row fluid -->

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


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

