?
Current Path : /home1/savoy/public_html/savoyglobal.net/cocorico/application/views/hr/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyglobal.net/cocorico/application/views/hr/single_employee.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?> <div class="row-fluid"> <div class="tab-pane " id="tab_2"> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Employee Details</div> <?php $employee_sal_id = $this->hrmodel->get_employee_salary_id($viewinfo->employee_id, date('d-m-Y')) ?> <div class="tools" style="float:right;"> <a class="btn green" href="#" onclick="displayformdata('hr','single_page','<?= $viewinfo->employee_id; ?>','employee','employee_id','single_employee')">Personal</a> <?php if ($employee_sal_id == "") { ?> <a class="btn yellow" href="#" onclick="alert('Salary not Set')">Salary</a> <?php } else { ?> <a class="btn red" href="#" onclick="gotopage('hr','single_salary_setting','<?= $employee_sal_id; ?>','employee_salary','employee_salary_id','single_salary_setting','single_employee')">Salary</a> <?php } ?> <a href="#" class="btn purple" onclick="displayformdata('hr','single_leave_page','<?= $viewinfo->employee_id; ?>','employee','employee_id','single_leave_page')">Leave</a> <a href="#" onclick="viewdata('hr','viewinhrsearch','search_employee','view_employee','<?= $_SESSION['pagenum']; ?>')" class="remove"></a> </div> </div> <div class="portlet-body form"> <div class="form-horizontal form-view form-bordered"> <!-- BEGIN FORM--> <?php $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate'); $department = $this->hrmodel->search_department(); $designation =$this->hrmodel->search_designation(); $grade = $this->hrmodel->search_grade(); $status = $this->hrmodel->search_status(); echo form_open('', $attributes); ?> <h3 class="form-section">Personal Details </h3> <input type="hidden" name="employee_id" id="employee_id" class="required" value="<?= $viewinfo->employee_id ?>"> <input type="hidden" name="employee_no" id="employee_no" class="required" value="<?= $viewinfo->employee_no ?>"> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Employee No</label> <div class="controls"> <span class="text bold"> <?= $viewinfo->employee_no ?></span> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Employee Name</label> <div class="controls"> <span class="text bold"><?= $viewinfo->employee_name ?></span> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Gender </label> <div class="controls"> <span class="text bold"><?= $viewinfo->employee_gender?></span> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Employee Joining Date</label> <div class="controls"> <span class="text bold"><?= $this->mastermodel->convertdatenormalformat($viewinfo->employee_joining_date) ?></span> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Date of Birth </label> <div class="controls"> <span class="text bold"><?= $this->mastermodel->convertdatenormalformat($viewinfo->employee_dob); ?></span> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Nationality </label> <div class="controls"> <?php $name= $this->mastermodel->get_single_field_value('nationality', 'nationality_name', 'nationality_id ', $viewinfo->employee_nationality_id); ?> <span class="text bold"><?= $name; ?></span> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Labor Card No</label> <div class="controls"> <span class="text bold"><?= $viewinfo->employee_labour_card_no ?></span> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Labor Card Expiry Date</label> <div class="controls"> <span class="text bold"><?= $this->mastermodel->convertdatenormalformat($viewinfo->employee_labour_card_expiry_date); ?></span> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Visa Type</label> <div class="controls"> <span class="text bold"><?= $viewinfo->employee_visa_type ?></span> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Visa Expiry Date</label> <div class="controls"> <span class="text bold"><?= $this->mastermodel->convertdatenormalformat($viewinfo->employee_visa_expiry_date); ?></span> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Passport No</label> <div class="controls"> <span class="text bold"><?= $viewinfo->employee_passport_no ?></span> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Passport Expiry Date</label> <div class="controls"> <span class="text bold"><?= $this->mastermodel->convertdatenormalformat($viewinfo->employee_passport_expiry_date) ?></span> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Qatar ID No</label> <div class="controls"> <span class="text bold"><?= $viewinfo->employee_qatar_id_no ?></span> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Police Certificate</label> <div class="controls"> <span class="text bold"><?=$viewinfo->employee_police_certificate;?></span> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Employee Device No</label> <div class="controls"> <span class="text bold"><?= $viewinfo->employee_device_no?></span> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Medical test expiry date</label> <div class="controls"> <span class="text bold"><?= $this->mastermodel->convertdatenormalformat($viewinfo->employee_medical_test_expiry_date); ?></span> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Teacher </label> <div class="controls"> <input disabled id="employee_teacher"<?php if ($viewinfo->employee_teacher == "1") { echo "checked"; } ?> type="checkbox" class="" name="employee_teacher"> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Employee Relieving Date</label> <div class="controls"> <span class="text bold"><?=$this->mastermodel->convertdatenormalformat($viewinfo->employee_relieving_date);?></span> </div> </div> </div> </div> <h3 class="form-section">Employee Details </h3> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Designation</label> <div class="controls"><span class="text bold"> <?php foreach ($designation['results']->result_array() as $list) { if ($list['designation_id'] == $viewinfo->employee_designation_id) { echo $list['designation_name']; } } ?> </span></div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Department </label> <div class="controls"><span class="text bold"> <?php foreach ($department['results']->result_array() as $list) { if ($list['department_id'] == $viewinfo->employee_department_id) { echo $list['department_name']; } } ?> </span></div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Grade </label> <div class="controls"><span class="text bold"> <?php foreach ($grade['results']->result_array() as $list) { if ($list['grade_id'] == $viewinfo->employee_grade_id) { echo $list['grade_name']; } } ?> </span></div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Status </label> <div class="controls"><span class="text bold"> <?php foreach ($status['results']->result_array() as $list) { if ($list['status_id'] == $viewinfo->employee_status_id) { echo $list['status_name']; } } ?> </span></div> </div> </div> </div> <h3 class="form-section">Address Details</h3> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Contact No</label> <div class="controls"> <span class="text bold"><?= $viewinfo->employee_contact_no ?></span> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Mobile No</label> <div class="controls"> <span class="text bold"><?= $viewinfo->employee_mobile_no ?></span> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Email ID </label> <div class="controls"> <span class="text bold"><?= $viewinfo->employee_email ?></span> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Local Address </label> <div class="controls"> <span class="text bold"><?= $viewinfo->employee_local_address ?></span> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Permanent Address </label> <div class="controls"> <span class="text bold"><?= $viewinfo->employee_permanent_address ?></span> </div> </div> </div> </div> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-check"></i> Professional Experience</div> </div> <div class="portlet-body"> <div class="row-fluid"> <div class="control-group"> <table class="table table-striped table-hover table-bordered" id="sample_5" style="background-color: white;"> <tr> <th>Employer</th> <th>Designation</th> <th>Period</th> </tr> <?php $professional = $this->mastermodel->get_data('employee_professional_experience', $viewinfo->employee_id, 'employee_id'); foreach ($professional as $list) { ?> <tr> <td><?= $list['employer']; ?></td> <td><?= $list['designation']; ?></td> <td><?= $list['period']; ?></td> </tr> <?php } ?> </table> </div> </div> </div> </div> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-check"></i> Educational Qualification</div> </div> <div class="portlet-body"> <div class="row-fluid"> <div class="control-group"> <table class="table table-striped table-hover table-bordered" id="sample_5" style="background-color: white;"> <tr> <th>Course</th> <th>University</th> <th>Year of Passing</th> </tr> <?php $professional = $this->mastermodel->get_data('employee_educational_qualification', $viewinfo->employee_id, 'employee_id'); foreach ($professional as $list) { ?> <tr> <td><?= $list['course']; ?></td> <td><?= $list['university']; ?></td> <td><?= $list['yearofpassing']; ?></td> </tr> <?php } ?> </table> </div> </div> </div> </div> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-check"></i> Additional Certification</div> </div> <div class="portlet-body"> <div class="row-fluid"> <div class="control-group"> <table class="table table-striped table-hover table-bordered" id="sample_5" style="background-color: white;"> <tr> <th>Course</th> <th>Institute</th> <th>Year of Passing</th> </tr> <?php $i = 1; $professional = $this->mastermodel->get_data('employee_additional_certification', $viewinfo->employee_id, 'employee_id'); foreach ($professional as $list) { ?> <tr> <td><?= $list['course']; ?></td> <td><?= $list['institute']; ?></td> <td><?= $list['yearofpassing']; ?></td> </tr> <?php } ?> </table> </div> </div> </div> </div> <?php echo form_close(); ?> <?php $data['master_id'] = $viewinfo->employee_id; $data['controller'] = 'hr'; $data['controller_function'] = 'viewinhrsearch'; $data['page'] = 'view_employee'; $data['model_function'] = 'search_employee'; $this->load->view('master/uploaded_files', $data); echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div> </div> <script type="text/javascript"> function gotopage(controller,controllerfunction,id,table,field,page,returnpage) { $("#inner_content").empty().html('<CENTER><img src="<?= base_url() ?>assets/img/loading.gif" class="loading"/></CENTER>'); $("#inner_content").load("<?= site_url() ?>/"+controller+'/'+controllerfunction+'/'+id+'/'+table+'/'+field+'/'+page+'/'+returnpage); } </script>