398 lines
23 KiB
PHP
398 lines
23 KiB
PHP
<div class="col-md-12 col-sm-12">
|
|
<div class="x_panel">
|
|
<div class="x_title">
|
|
<ul class="nav navbar-right panel_toolbox">
|
|
<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
|
|
</li>
|
|
</ul>
|
|
<h2>Add Employee</h2>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
<div class="x_content">
|
|
|
|
<div class="col-xs-3">
|
|
<!-- Nav tabs -->
|
|
<div class="nav nav-tabs flex-column bar_tabs" id="v-pills-tab" role="tablist" aria-orientation="vertical">
|
|
<a class="nav-link active" id="personal_detail-tab" data-toggle="pill" href="#personal_detail" role="tab" aria-controls="personal_detail" aria-selected="true">Personal Details</a>
|
|
<a class="nav-link" id="contact_detail-tab" data-toggle="pill" href="#contact_detail" role="tab" aria-controls="contact_detail" aria-selected="false">Contact Detail</a>
|
|
<a class="nav-link" id="qualification-tab" data-toggle="pill" href="#qualification" role="tab" aria-controls="qualification" aria-selected="false">Qualification</a>
|
|
<a class="nav-link" id="employee_history-tab" data-toggle="pill" href="#employee_history" role="tab" aria-controls="employee_history" aria-selected="false">Employee History</a>
|
|
<a class="nav-link" id="additional_info-tab" data-toggle="pill" href="#additional_info" role="tab" aria-controls="additional_info" aria-selected="false">Additional Information</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-xs-12">
|
|
<!-- Tab panes -->
|
|
<div class="tab-content" id="v-pills-tabContent">
|
|
|
|
<!-- ---------------------------------------------------personal_detail----------------------------------------------------- -->
|
|
|
|
<div class="tab-pane fade show active" id="personal_detail" role="tabpanel" aria-labelledby="personal_detail-tab">
|
|
|
|
<h6>Personal Details</h6>
|
|
<div class="clearfix"></div>
|
|
<div class="x_content">
|
|
<form id="" data-parsley-validate class="form-horizontal form-label-left" method="post" action="<?php echo base_url();?>Employee/createEmp" enctype="multipart/form-data">
|
|
|
|
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name();?>" value="<?php echo $this->security->get_csrf_hash();?>">
|
|
|
|
<div class="item form-group">
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="first-name"> Name<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input type="text" id="name" name="name" value="<?php if(isset($editData)) { echo $editData->name; } ?>" required="required" class="form-control ">
|
|
</div>
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="email"> Email<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="email" name="email" value="<?php if(isset($editData)) { echo $editData->email; } ?>" required="required" class="form-control" type="email" >
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="item form-group">
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="email"> Mobile<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="mobile" name="mobile" value="<?php if(isset($editData)) { echo $editData->mobile; } ?>" required="required" class="form-control" type="text">
|
|
</div>
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="first-name">Department<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<select id="department" name="department" required="required" class="form-control" >
|
|
<option value="<?php if(isset($editData)) { echo $editData->department; } ?>"><?php if(isset($assetData)) { echo $editData->department; } ?></option>
|
|
<?php foreach ($departmentData as $key => $value) { ?>
|
|
<option value="<?php echo $value->id; ?>"><?php echo $value->name; ?></option>
|
|
<?php } ?>
|
|
</select>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="item form-group">
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="email"> Gender<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 " style="padding:10px;">
|
|
<input type="radio" name="gender" value="male" />Male
|
|
<input type="radio" name="gender" value="female" />Female
|
|
</div>
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="first-name">Marital Status<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<select id="marital_status" name="marital_status" required="required" class="form-control" >
|
|
<option value="">--Select--</option>
|
|
<option value="single">Single</option>
|
|
<option value="married">Married</option>
|
|
<option value="others">Others</option>
|
|
</select>
|
|
</div>
|
|
|
|
</div>
|
|
<br /> <h6>Emergency Contact</h6> <div class="x_title"> </div> <br />
|
|
|
|
<div class="item form-group">
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="first-name"> Name<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input type="text" id="relation_name" name="relation_name" value="<?php if(isset($editData)) { echo $editData->name; } ?>" required="required" class="form-control ">
|
|
</div>
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="email"> Relationship<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="Relationship" name="Relationship" value="<?php if(isset($editData)) { echo $editData->email; } ?>" required="required" class="form-control" type="text" >
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="item form-group">
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="first-name"> Mobile<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input type="text" id="relation_mobile" name="relation_mobile" value="<?php if(isset($editData)) { echo $editData->name; } ?>" required="required" class="form-control ">
|
|
</div>
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="email"> Home Tel<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="relation_tel" name="relation_tel" value="<?php if(isset($editData)) { echo $editData->email; } ?>" required="required" class="form-control" type="text" >
|
|
</div>
|
|
|
|
</div>
|
|
</form>
|
|
<div class="ln_solid"></div>
|
|
<div class="item form-group">
|
|
<div class="offset-md-8">
|
|
<button class="btn btn-secondary" onclick="history.back()">Cancel</button>
|
|
<button type="submit" class="btn btn-success">Save</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- ---------------------------------------------------contact_detail----------------------------------------------------- -->
|
|
|
|
<div class="tab-pane fade" id="contact_detail" role="tabpanel" aria-labelledby="contact_detail-tab">
|
|
<h6>Contact Details</h6>
|
|
<div class="clearfix"></div>
|
|
<div class="x_content">
|
|
<form id="" data-parsley-validate class="form-horizontal form-label-left" method="post" action="<?php echo base_url();?>Employee/createEmp" enctype="multipart/form-data">
|
|
|
|
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name();?>" value="<?php echo $this->security->get_csrf_hash();?>">
|
|
|
|
<div class="item form-group">
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="first-name"> Address<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input type="text" id="address" name="address" value="<?php if(isset($editData)) { echo $editData->name; } ?>" required="required" class="form-control ">
|
|
</div>
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="email"> City<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="city" name="city" value="<?php if(isset($editData)) { echo $editData->email; } ?>" required="required" class="form-control" type="text" >
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="item form-group">
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="email"> State<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="state" name="state" value="<?php if(isset($editData)) { echo $editData->mobile; } ?>" required="required" class="form-control" type="text">
|
|
</div>
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="first-name">Postal Code<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="pincode" name="pincode" value="<?php if(isset($editData)) { echo $editData->mobile; } ?>" required="required" class="form-control" type="text">
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="item form-group">
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="email"> Country<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="country" name="country" value="<?php if(isset($editData)) { echo $editData->mobile; } ?>" required="required" class="form-control" type="text">
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</form>
|
|
<div class="ln_solid"></div>
|
|
<div class="item form-group">
|
|
<div class="offset-md-8">
|
|
<button class="btn btn-secondary" onclick="history.back()">Cancel</button>
|
|
<button type="submit" class="btn btn-success">Save</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- ---------------------------------------------------qualification----------------------------------------------------- -->
|
|
|
|
<div class="tab-pane fade" id="qualification" role="tabpanel" aria-labelledby="qualification-tab">
|
|
<h6>Add Education</h6>
|
|
<div class="clearfix"></div>
|
|
<div class="x_content">
|
|
<form id="" data-parsley-validate class="form-horizontal form-label-left" method="post" action="<?php echo base_url();?>Employee/createEmp" enctype="multipart/form-data">
|
|
|
|
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name();?>" value="<?php echo $this->security->get_csrf_hash();?>">
|
|
|
|
<!-- <div class="item form-group">
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="first-name"> Company<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input type="text" id="company" name="company" value="<?php if(isset($editData)) { echo $editData->name; } ?>" required="required" class="form-control ">
|
|
</div>
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="email"> Job Title<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="job_title" name="job_title" value="<?php if(isset($editData)) { echo $editData->email; } ?>" required="required" class="form-control" type="text" >
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="item form-group">
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="email"> From<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="from" name="from" value="<?php if(isset($editData)) { echo $editData->mobile; } ?>" required="required" class="form-control" type="text">
|
|
</div>
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="first-name"> To<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="to" name="to" value="<?php if(isset($editData)) { echo $editData->mobile; } ?>" required="required" class="form-control" type="text">
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="item form-group">
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="email"> Comment<a style="color:red;">*</a> </label>
|
|
<div class="col-md-12 col-sm-12 " >
|
|
<input id="country" name="country" value="<?php if(isset($editData)) { echo $editData->mobile; } ?>" required="required" class="form-control" type="text">
|
|
</div>
|
|
|
|
</div> -->
|
|
|
|
<!-- <br /> <h6>Add Education</h6> <div class="x_title"> </div> <br /> -->
|
|
|
|
<div class="item form-group">
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="first-name"> Level<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input type="text" id="level" name="level" value="<?php if(isset($editData)) { echo $editData->name; } ?>" required="required" class="form-control ">
|
|
</div>
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="email"> Institute<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="institute" name="institute" value="<?php if(isset($editData)) { echo $editData->email; } ?>" required="required" class="form-control" type="text" >
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="item form-group">
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="first-name"> Major<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input type="text" id="major" name="major" value="<?php if(isset($editData)) { echo $editData->name; } ?>" required="required" class="form-control ">
|
|
</div>
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="email"> GPA/Score<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="cgpa" name="cgpa" value="<?php if(isset($editData)) { echo $editData->email; } ?>" required="required" class="form-control" type="text" >
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="item form-group">
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="email"> From<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="q_from" name="q_from" value="<?php if(isset($editData)) { echo $editData->mobile; } ?>" required="required" class="form-control" type="text">
|
|
</div>
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="first-name"> To<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="q_to" name="q_to" value="<?php if(isset($editData)) { echo $editData->mobile; } ?>" required="required" class="form-control" type="text">
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
<div class="ln_solid"></div>
|
|
<div class="item form-group">
|
|
<div class="offset-md-8">
|
|
<button class="btn btn-secondary" onclick="history.back()">Cancel</button>
|
|
<button type="submit" class="btn btn-success">Save</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- ---------------------------------------------------employee_history----------------------------------------------------- -->
|
|
|
|
<div class="tab-pane fade" id="employee_history" role="tabpanel" aria-labelledby="employee_history-tab">
|
|
<h6>Employee History</h6>
|
|
<div class="clearfix"></div>
|
|
<div class="x_content">
|
|
<form id="" data-parsley-validate class="form-horizontal form-label-left" method="post" action="<?php echo base_url();?>Employee/createEmp" enctype="multipart/form-data">
|
|
|
|
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name();?>" value="<?php echo $this->security->get_csrf_hash();?>">
|
|
|
|
<div class="item form-group">
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="first-name"> Company Name<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input type="text" id="c_name" name="c_name" value="<?php if(isset($editData)) { echo $editData->name; } ?>" required="required" class="form-control ">
|
|
</div>
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="email"> Role<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="role" name="role" value="<?php if(isset($editData)) { echo $editData->email; } ?>" required="required" class="form-control" type="text" >
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="item form-group">
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="email"> From<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="h_from" name="from" value="<?php if(isset($editData)) { echo $editData->mobile; } ?>" required="required" class="form-control" type="text">
|
|
</div>
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="first-name"> To<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="h_to" name="to" value="<?php if(isset($editData)) { echo $editData->mobile; } ?>" required="required" class="form-control" type="text">
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</form>
|
|
<div class="ln_solid"></div>
|
|
<div class="item form-group">
|
|
<div class="offset-md-8">
|
|
<button class="btn btn-secondary" onclick="history.back()">Cancel</button>
|
|
<button type="submit" class="btn btn-success">Save</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- ---------------------------------------------------additional_info----------------------------------------------------- -->
|
|
|
|
<div class="tab-pane fade" id="additional_info" role="tabpanel" aria-labelledby="additional_info-tab">
|
|
<h6>Additional Information</h6>
|
|
<div class="clearfix"></div>
|
|
<div class="x_content">
|
|
<form id="" data-parsley-validate class="form-horizontal form-label-left" method="post" action="<?php echo base_url();?>Employee/createEmp" enctype="multipart/form-data">
|
|
|
|
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name();?>" value="<?php echo $this->security->get_csrf_hash();?>">
|
|
|
|
<div class="item form-group">
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="first-name"> Employee Id<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input type="text" id="employee_id" name="employee_id" value="<?php if(isset($editData)) { echo $editData->name; } ?>" required="required" class="form-control ">
|
|
</div>
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="email">Join date<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="j_date" name="j_date" value="<?php if(isset($editData)) { echo $editData->email; } ?>" required="required" class="form-control" type="text" >
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="item form-group">
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="email"> Salary<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="salary" name="salary" value="<?php if(isset($editData)) { echo $editData->mobile; } ?>" required="required" class="form-control" type="text">
|
|
</div>
|
|
|
|
<label class="control-label col-md-2 col-sm-1 " for="first-name"> Comment<a style="color:red;">*</a> </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="comment" name="comment" value="<?php if(isset($editData)) { echo $editData->mobile; } ?>" required="required" class="form-control" type="text">
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</form>
|
|
<div class="ln_solid"></div>
|
|
<div class="item form-group">
|
|
<div class="offset-md-8">
|
|
<button class="btn btn-secondary" onclick="history.back()">Cancel</button>
|
|
<button type="submit" class="btn btn-success">Save</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- ----------------------------------------------------------------------------------------------------------------------- -->
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|