?
Current Path : /home1/savoy/www/savoyglobal.net/sgms/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/www/savoyglobal.net/sgms/application/views/HR/single_employee.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $employee_salary_id=$this->mastermodel->get_data('employee_salary',$viewinfo->employee_id,'employee_id','wef_date'); $salary_id=''; foreach($employee_salary_id as $list) { $salary_id=$list['employee_salary_id']; } $leave_id=$this->mastermodel->getSingleFieldValueTwo('leave_allocation','leave_allocation_id','employee_id',$viewinfo->employee_id,'leave_allocation_year',date("Y")); ?> <link href="<?=base_url()?>assets/css/tablesortnew.css" rel="stylesheet" type="text/css"> <div class="select-bar"> <label><img src="<?=base_url()?>assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewdata('hr','viewinhrsearch','search_employee','view_employee','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Employee Information</span> <span class="heading-right"> <img src="<?=base_url()?>assets/images/edit-icon.gif" title="Edit" width="20" height="20" alt="Edit" align = "center" class="clickimage" onclick="editformdata('hr','edit_page','<?=$id;?>','employee','employee_id','edit_employee')" alt="" /> </span> </div> <fieldset> <?php if($leave_id!='') { ?> <img src="<?=base_url()?>assets/images/leave.png" title="Leave" class="clickimage" onclick="displayformdata('hr','single_page','<?=$leave_id;?>','leave_allocation','leave_allocation_id','single_employee_leave_allocation_details')" alt="" align = "right"/> <?php } if($salary_id!='') { ?> <img src="<?=base_url()?>assets/images/salary.png" title="Salary" class="clickimage"onclick="displayformdata('hr','single_page','<?=$salary_id;?>','employee_salary','employee_salary_id','single_employee_salary_detail')" alt="" align = "right" /> <?php } ?> <img src="<?=base_url()?>assets/images/employee.png" title="Employee Information" class="clickimage" onclick="displayformdata('hr','single_page','<?=$viewinfo->employee_id;?>','employee','employee_id','single_employee')" alt="" align = "right"/> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('',$attributes); $employee_educational_qualification=$this->mastermodel->get_data('employee_educational_qualification',$viewinfo->employee_id ,'employee_id','employee_id'); $employee_professional_experience=$this->mastermodel->get_data(' employee_professional_experience',$viewinfo->employee_id ,'employee_id','employee_id'); $employee_additional_certification=$this->mastermodel->get_data('employee_additional_certification',$viewinfo->employee_id ,'employee_id','employee_id'); ?> <ul> <li> <table class="sortnew"> <tr> <th colspan="2" style="text-align: center">Employee Information</th> </tr> <tr> <td>Employee No</td><td style="width:65%"><?=$viewinfo->employee_no;?></td> </tr> <tr> <td>Employee Name</td><td style="width:65%"><?=$viewinfo->employee_name;?></td> </tr> <tr> <td>Gender</td><td style="width:65%"><?=$viewinfo->employee_gender;?></td> </tr> <tr> <td>Date of Birth</td><td style="width:65%"><?php echo $this->mastermodel->convertdatenormalformat($viewinfo->employee_dob); ?></td> </tr> <tr> <td>Joining Date</td><td style="width:65%"><?php echo $this->mastermodel->convertdatenormalformat($viewinfo->employee_joining_date); ?> </td> </tr> <tr> <td>Nationality</td><td style="width:65%"> <?php echo $viewinfo->employee_nationality; ?></td> </tr> <tr> <td>Passport No</td><td style="width:65%"> <?php echo $viewinfo->employee_passport_no; ?></td> </tr> <tr> <td>Visa Type</td><td style="width:65%"><?php echo $viewinfo->employee_visa_type; ?></td> </tr> <tr> <td>Visa Expiry Date</td><td style="width:65%"><?php echo $this->mastermodel->convertdatenormalformat($viewinfo->employee_visa_expiry_date); ?></td> </tr> <tr> <td>Labor Card No</td><td style="width:65%"><?php echo $viewinfo->employee_labour_card_no; ?></td> </tr> <tr><td style="width:35%">Labor Card Expiry Date</td><td style="width:65%"> <?php echo $this->mastermodel->convertdatenormalformat($viewinfo->employee_labour_card_expiry_date); ?></td></tr> <tr><td style="width:35%">Employee Device No</td><td style="width:65%"> <?php echo $viewinfo->device_no;?> </table> <table class="sortnew"> <tr> <th colspan="2" style="text-align: center">Professional Information</th> </tr> <tr><td style="width:35%">Branch</td><td style="width:65%"><?=$this->mastermodel->getSingleFieldValue('branch','branch_name','branch_id',$viewinfo->employee_branch_id);?></td></tr> <tr><td style="width:35%">Designation</td><td style="width:65%"><?=$this->mastermodel->getSingleFieldValue('designation','designation_name','designation_id',$viewinfo->employee_designation_id);?></td></tr> <tr><td style="width:35%">Department</td><td style="width:65%"><?=$this->mastermodel->getSingleFieldValue('department','department_name','department_id',$viewinfo->employee_department_id);?></td></tr> <tr><td style="width:35%">Grade</td><td style="width:65%"><?=$this->mastermodel->getSingleFieldValue('grade','grade_name','grade_id',$viewinfo->employee_grade_id);?></td></tr> <tr><td style="width:35%">Status</td><td style="width:65%"><?=$this->mastermodel->getSingleFieldValue('status','status_name','status_id',$viewinfo->employee_status_id);?></td></tr> <tr><td style="width:35%">Local Address</td><td style="width:65%"><?php echo $viewinfo->employee_local_address; ?></td></tr> <tr><td style="width:35%">Permanent Address</td><td style="width:65%"> <?php echo $viewinfo->employee_permanent_address; ?></td></tr> <tr><td style="width:35%">Contact No</td><td style="width:65%"><?php echo $viewinfo->employee_contact_no; ?></td></tr> <tr><td style="width:35%">Email</td><td style="width:65%"><?php echo $viewinfo->employee_email; ?></td></tr> <tr><td style="width:35%">Reporting to</td><td style="width:65%"><?=$this->mastermodel->getSingleFieldValue('employee','employee_name','employee_id',$viewinfo->employee_reporting_to);?></td></tr> </table> </li> <li> <table class="sort" cellpadding="0" cellspacing="0" width="200px;"> <tr> <th colspan="3" style="text-align: center">EMPLOYEE FILES</th> </tr> <tr> <th>S.No</th> <th style="width: 79%">File Name</th> <th style="width: 13%">Operation</th> </tr> <?php $i=1; $employee_file=$this->mastermodel->get_data('employee_file',$viewinfo->employee_id,'employee_id'); foreach ($employee_file as $file) { echo '<tr>'; echo '<td>'. $i .'</td>'; echo '<td>'. $file['file_name'] .'</td>'; echo '<td>'; ?> <div id="console_fronticons"> <div class="fronticons"> <a href="<?=base_url().$file['file_location'];?>"><img src="<?=base_url()?>assets/images/downarrow.png" title="Download" alt="Download" width="20" height="20"/></a> </div> <div class="fronticons"> <img src="<?=base_url()?>assets/images/delete-icon.png" title="Delete" width="20" height="20" onclick="deletedata('employee_file',<?=$file['id'];?>,'id','hr','viewinhrsearch','search_employee','view_employee','','')" alt="Delete" align = "center"/> </div> </div> <?php echo '</td>'; $i++; } ?> </table> </li> <li> <table class="sort"> <tr> <th colspan="3" style="text-align: center">Employee Qualification</th> </tr> <tr> <th width="40%">Course Name</th> <th width="40%">University</th> <th width="20%">Year of Passing</th> </tr> <?php $i=0; foreach($employee_educational_qualification as $empqual) { $i++; ?> <tr> <td><?=$empqual['course'];?></td> <td><?=$empqual['university'];?></td> <td><?=$empqual['yearofpassing'];?></td> </tr> <?php } ?> </table> </li> <li> <table class="sort"> <tr> <th colspan="3" style="text-align: center">Employee Work Experience</th> </tr> <tr> <th width="40%">Employer Name</th> <th width="40%">Designation</th> <th width="20%">Period</th> </tr> <?php $i=0; foreach($employee_professional_experience as $empexp) { $i++; ?> <tr> <td><?=$empexp['employer'];?></td> <td><?=$empexp['designation'];?></td> <td><?=$empexp['period'];?></td> </tr> <?php } ?> </table> </li> <li> <table class="sort"> <tr> <th colspan="3" style="text-align: center">Employee Additional Qualification</th> </tr> <tr> <th width="40%">Course Name</th> <th width="40%">Institute</th> <th width="20%">Year of Passing</th> </tr> <?php $i=0; foreach($employee_additional_certification as $empqualadd) { $i++; ?> <tr> <td><?=$empqualadd['course'];?></td> <td><?=$empqualadd['institute'];?></td> <td><?=$empqualadd['yearofpassing'];?></td> </tr> <?php } ?> </table> </li> <li> </li> </ul> <?php echo form_close();?> </fieldset>