<?php
$d_value = $db->get_all ( 'departments' );
?>
<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 Employees Account</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=""
												enctype="multipart/form-data">
												<div class="control-group">
													<label class="control-label">Employee Code:</label>

													<div class="controls">
														<div class="span12">
															<input type="text" class="span8" id="e_code"
																name="employee[e_code]" required="required">
														</div>
													</div>
													<!-- controls -->
												</div>
												<!-- control-group -->


												<div class="control-group">
													<label class="control-label" for="form-field-select-1">Department:</label>
													<div class="controls">
														<select name="employee[department]">
															<option value="" selected="selected">Department</option>
																		<?php
																		
																		foreach ( $d_value as $row ) {
																			?>
																			<option value="<?php echo $row['id'];?>"><?php echo $row['name'];?></option>
																			<?php }?> 
																		</select>
													</div>
													<!-- /controls -->
												</div>
												<!-- control-group -->

												<div class="control-group">
													<label class="control-label">Name Of Employee:</label>

													<div class="controls">
														<div class="span12">
															<input type="text" class="span6" id="e_name"
																name="employee[e_name]" required="required">
														</div>
													</div>
													<!-- controls -->
												</div>
												<!-- control-group -->

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

													<div class="controls">
														<div class="span12">
															<input type="text" class="span6" id="f_name"
																name="employee[f_name]" required="required">
														</div>
													</div>
													<!-- controls -->
												</div>
												<!-- control-group -->

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

													<div class="controls">
														<div class="span12">
															<input type="file" size="32" name="photo" value=""/>
														</div>
													</div>
													<!-- controls -->
												</div>
												<!-- control-group -->

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

													<div class="controls">
														<div class="span12">
															<input type="text" class="span6" id="f_name"
																name="employee[empmail]" required="required">
														</div>
													</div>
													<!-- controls -->
												</div>
												<!-- control-group -->

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

													<div class="controls">
														<div class="span12">
															<input type="password" class="span6" id="f_name"
																name="employee[password]" required="required">
														</div>
													</div>
													<!-- controls -->
												</div>
												<!-- control-group -->

												<div class="control-group">
													<label class="control-label">Re-type Password:</label>

													<div class="controls">
														<div class="span12">
															<input type="password" class="span6" id="f_name"
																name="employee[retype]" required="required">
														</div>
													</div>
													<!-- controls -->
												</div>
												<!-- control-group -->

												<div class="control-group">
													<label class="control-label">Date Of Birth:</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="employee[dob]" required="required" /> <span
																class="add-on"> <i class="icon-calendar"></i>
															</span>
														</div>
													</div>
												</div>

												<div class="control-group">
													<label class="control-label" for="form-field-11">Address:</label>
													<div class="controls">
														<textarea id="form-field-11"
															class="autosize-transition span6"
															name="employee[address]"></textarea>
													</div>
												</div>
												<!-- control-group -->

												<div class="span11">
													<table id="sample-table-1"
														class="table table-striped table-bordered table-hover">
														<thead>
															<tr style="background: #f2f2f2;">
																<th>Qualification</th>
																<th>Field</th>
																<th>Choose File</th>
															</tr>
														</thead>
														<tbody>
															<tr>
																<td>High School</td>
																<td><input type="text" class="span10"
																	name="employee[highschool]"></td>
																<td><input type="file" size="32" name="my_field[]" 
																	value="" /></td>
															</tr>
															<tr>
																<td>Intermediate</td>
																<td><input type="text" class="span10"
																	name="employee[intermediate]"></td>
																<td><input type="file" size="32" name="my_field[]" 
																	value="" /></td>
															</tr>
															<tr>
																<td>Graduation</td>
																<td><input type="text" class="span10"
																	name="employee[graduation]"></td>
																<td><input type="file" size="32" name="my_field[]" 
																	value="" /></td>
															</tr>
															<tr>
																<td>Post Graduation</td>
																<td><input type="text" class="span10"
																	name="employee[p_graduation]"></td>
																<td><input type="file" size="32" name="my_field[]" 
																	value="" /></td>
															</tr>
															<tr>
																<td>Extraas</td>
																<td><input type="text" class="span10"
																	name="employee[extraas]"></td>
																<td><input type="file" size="32" name="my_field[]" 
																	value="" /></td>
															</tr>

														</tbody>
													</table>

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

												<div class="control-group">
													<label class="control-label">Resume:</label>
													<div class="controls">
														<input type="file" size="32" name="resume_field" value="" />
													</div>
												</div>
												<!-- control-group -->

												<div class="control-group">
													<label class="control-label">Mobile:</label>
													<div class="controls">
														<input type="text" name="employee[mobile]" class="span6"
															required="required">
													</div>
												</div>
												<!-- control-group -->

												<div class="control-group">
													<label class="control-label">Telephone:</label>
													<div class="controls">
														<input type="text" name="employee[telephone]"
															class="span6" required="required">
													</div>
												</div>
												<!-- control-group -->

												<div class="control-group">
													<label class="control-label" for="idproof">ID Proof</label>
													<div class="controls">
														<input type="text" name="employee[idproof]" class="span3">
														<input type="text" name="employee[idproof1]" class="span3">
														<input type="text" name="employee[idproof2]" class="span3"><br>
														<br>


														<div class="span3">
															<input type="file" size="32" name="id_field[]" value="" />
														</div>
														<div class="span3">
															<input type="file" size="32" name="id_field[]" value="" />
														</div>
														<div class="span2">
															<input type="file" size="32" name="id_field[]" value="" />
														</div>

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

												<div class="control-group">
													<label class="control-label" for="j_date">Joining Date:</label>
													<div class="controls">
														<input class="span3 date-picker" id="id-date-picker-1"
															type="text" data-date-format="dd-mm-yyyy"
															name="employee[j_date]" required="required" /> <span
															class="add-on"> <i class="icon-calendar"></i>
														</span>
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->


												<div class="control-group">

													<div class="controls">
														<input type="text" class="span11 disabled" id="username"
															value="Bank Details" disabled style="text-align: center;">
													</div>
												</div>
												<!-- /control-group -->

												<div class="control-group">
													<label class="control-label" for="name">Name</label>
													<div class="controls">
														<input type="text" name="employee[b_name]" class="span6">
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->

												<div class="control-group">
													<label class="control-label" for="a_number">Account Number</label>
													<div class="controls">
														<input type="text" name="employee[a_number]" class="span6">
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->


												<div class="control-group">
													<label class="control-label" for="branch">Branch</label>
													<div class="controls">
														<input type="text" name="employee[branch]" class="span6">
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->

												<div class="control-group">
													<label class="control-label" for="city">City</label>
													<div class="controls">
														<input type="text" name="employee[city]" class="span6">
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->

												<div class="control-group">
													<label class="control-label" for="ifsccode">IFSC Code</label>
													<div class="controls">
														<input type="text" name="employee[ifsccode]" class="span6">
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->

												<div class="control-group">
													<label class="control-label" for="salary">Salary</label>
													<div class="controls">
														<input type="text" name="employee[salary]" class="span6">
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->

												<div class="control-group">
													<label class="control-label" for="remarks">Remarks</label>
													<div class="controls">
														<textarea id="form-field-11"
															class="autosize-transition span6"
															name="employee[remarks]"></textarea>
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->

												<div class="control-group">
													<label class="control-label" for="remarks">Appointment Date</label>
													<div class="controls">
														<input class="span3 date-picker" id="id-date-picker-1"
															type="text" data-date-format="dd-mm-yyyy"
															name="employee[appointment_date]" />
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->

												<div class="control-group">

													<div class="controls">
														<input type="text" class="span11 disabled" id="username"
															value="PRIVELEGES FOR SIDEBAR MENU" disabled
															style="text-align: center;">
													</div>
												</div>
												<!-- /control-group -->


												<!--<div class="control-group">
														<label class="control-label" for="name">Payments:</label>

														<div class="controls">
															<div class="span2">
																<input name="employee[paymentdetails]" value="paymentdetails" class="ace-checkbox-2" type="checkbox"> <span class="lbl"> Payments Details</span>
															</div>
															<div class="span2">
																<input name="employee[newpayments]" value="newpayments" class="ace-checkbox-2" type="checkbox"> <span class="lbl"> New Payments</span>
															</div>
														</div>
													</div> -->
													
												<div class="control-group">
													<label class="control-label" for="name">Attendence:</label>

													<div class="controls">
														<div class="span2">
															<input name="employee[attendence1]"
																value="employee_details" class="ace-checkbox-2"
																type="checkbox"> <span class="lbl"> Attendence</span>
														</div>
														<div class="span3">
															<input name="employee[empattend]" value="new_employee"
																class="ace-checkbox-2" type="checkbox"> <span
																class="lbl">Employees Attendence</span>
														</div>
													</div>
												</div>	

												<div class="control-group">
													<label class="control-label" for="name">Awards:</label>

													<div class="controls">
														<div class="span2">
															<input name="employee[mostawarded]"
																value="employee_awards" class="ace-checkbox-2"
																type="checkbox"> <span class="lbl"> Most Awarded</span>
														</div>
														<div class="span2">
															<input name="employee[earlierawards]"
																value="earlier_awards" class="ace-checkbox-2"
																type="checkbox"> <span class="lbl"> Earlier Awards</span>
														</div>
														<div class="span2">
															<input name="employee[giveanawards]" value="give_away"
																class="ace-checkbox-2" type="checkbox"> <span
																class="lbl"> Give An Awards</span>
														</div>
													</div>
												</div>

												<div class="control-group">
													<label class="control-label" for="name">Employees:</label>

													<div class="controls">
														<div class="span2">
															<input name="employee[employeesdetails]"
																value="employee_details" class="ace-checkbox-2"
																type="checkbox"> <span class="lbl"> Employees Details</span>
														</div>
														<div class="span2">
															<input name="employee[newemployees]" value="new_employee"
																class="ace-checkbox-2" type="checkbox"> <span
																class="lbl"> New Employees</span>
														</div>
													</div>
												</div>

												<!-- -<div class="control-group">
														<label class="control-label" for="name">Clients:</label>

														<div class="controls">
															<div class="span2">
																<input name="employee[client_details]" value="clientdetails" class="ace-checkbox-2" type="checkbox"> <span class="lbl"> Clients Details</span>
															</div>
															<div class="span2">
																<input name="employee[newclient]" value="newclient" class="ace-checkbox-2" type="checkbox"> <span class="lbl"> New Clients</span>
															</div>
														</div>
													</div> -->

												<div class="control-group">
													<label class="control-label" for="name">Departments:</label>

													<div class="controls">
														<div class="span2">
															<input name="employee[departments]" value="departments"
																class="ace-checkbox-2" type="checkbox"> <span
																class="lbl"> Departments</span>
														</div>
														<div class="span2">
															<input name="employee[newdepartments]"
																value="new_departments" class="ace-checkbox-2"
																type="checkbox"> <span class="lbl"> New Departments</span>
														</div>
													</div>
												</div>

												<div class="control-group">
													<label class="control-label" for="name">Pay Roll:</label>

													<div class="controls">
														<div class="span2">
															<input name="employee[singaporetable]"
																value="singaporetable" class="ace-checkbox-2"
																type="checkbox"> <span class="lbl"> Payroll Config</span>
														</div>
														<div class="span2">
															<input name="employee[payslip]" value="payslip"
																class="ace-checkbox-2" type="checkbox"> <span
																class="lbl"> Payslip Generator</span>
														</div>
													</div>
												</div>

												<div class="control-group">
													<label class="control-label" for="name">Incometax Slab:</label>

													<div class="controls">
														<div class="span2">
															<input name="employee[incometax_slab]"
																value="incometax_slab" class="ace-checkbox-2"
																type="checkbox"> <span class="lbl"> Incometax Slab</span>
														</div>
													</div>
												</div>
												
												<div class="control-group">
													<label class="control-label" for="name">Employement Contract &amp; Declaration:</label>

													<div class="controls">
														<div class="span2">
															<input type="file" name="my_field1[]" required>
															<input type="file" name="my_field1[]" required>
														</div>
													</div>
												</div>
												
												<div class="control-group">
													<div class="controls">
														<span class="span12"> <input type="hidden" name="check"
															value="employee"> <input type="hidden" name="action"
															value="simple" /> <input type="hidden" name="action1"
															value="multiple" />
															<button type="submit" name="submit"
																class="btn btn-small btn-primary">Save</button>
														</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-->