?
Current Path : /home1/savoy/www/savoyglobal.net/hr/application/views/Onboarding/ |
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/hr/application/views/Onboarding/single_employee_personal.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $salary_id = $this->mastermodel->get_employee_current_salary_id($viewinfo->emp_non_id); $trade_change = $this->mastermodel->get_data('trade_change',$viewinfo->emp_non_id,'employee_id'); $visa_details = $this->mastermodel->get_data('visa_processing',$viewinfo->emp_non_id,'employee_id'); $passport_details = $this->mastermodel->get_data('passport_processing',$viewinfo->emp_non_id,'employee_id'); $salary_details = $this->administrationmodel->get_employee_salary_info($viewinfo->emp_non_id); $settlement_details = $this->administrationmodel->get_employee_settlement_info($viewinfo->emp_non_id); ?> <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('onboarding','viewinonboardingsearch','search_employee_personal','view_employee_personal','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Employee Personal Details</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('onboarding','edit_page','<?=$id;?>','emp_non_personal','emp_non_id','edit_employee_personal')" alt="" /> </span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('',$attributes); $religion_name=$this->mastermodel->getSingleFieldValue('religion','religion_name','religion_id',$viewinfo->emp_non_personal_religion_id); $emp_non_main=$this->mastermodel->get_data_srow('employee_non_main',$viewinfo->emp_non_id,'emp_non_id'); ?> <ul> <li> <table class="sortnew"> <tr> <th colspan="2" style="text-align: center">Joining Information</th> </tr> <tr> <td>Full name</td><td><?=$emp_non_main->emp_non_full_name;?></td> </tr> <tr> <td>Employee No</td><td><?=$emp_non_main->emp_non_no;?></td> </tr> <tr> <td>Old Employee No</td><td><?=$emp_non_main->emp_non_no_old;?></td> </tr> <tr> <td>Date of Joining</td><td><?=$this->mastermodel->convertdatenormalformat($emp_non_main->emp_non_date_joining);?></td> </tr> <tr> <td>Nationality</td><td><?=$this->mastermodel->getSingleFieldValue('nationality','nationality_name','nationality_id',$emp_non_main->emp_non_nationality_id);?></td> </tr> <tr> <td>Sponsor</td> <td><?php echo $this->mastermodel->getSingleFieldValue('sponsor','sponsor_name','sponsor_id',$emp_non_main->emp_non_sponsor_id); ?></td> </tr> <tr> <td>Recruitment Agency</td> <td><?php echo $this->mastermodel->getSingleFieldValue('agency','agency_name','agency_id',$emp_non_main->emp_non_agency_id);; ?></td> </tr> <tr> <td>Agreement (for business Visa)</td> <td><?php echo $emp_non_main->agreement_name; ?> <?php if($emp_non_main->agreement_doc != "") { ?> <a href="<?=base_url()?>assets/uploads/<?=$emp_non_main->agreement_doc;?>">Download</a> <?php } ?> </td> </tr> <tr> <td>Attestation (for RP along with No)</td> <td><?php echo $emp_non_main->attestment_name; ?> <?php if($emp_non_main->attestment_doc != "") { ?> <a href="<?=base_url()?>assets/uploads/<?=$emp_non_main->attestment_doc;?>">Download</a> <?php } ?> </td> </tr> </table> <table class="sortnew"> <tr> <th colspan="2" style="text-align: center">Personal Information</th> </tr> <tr> <td>Date of Birth</td><td><?=$viewinfo->emp_non_personal_dob;?></td> </tr> <tr> <td>Father's Name</td><td><?=$viewinfo->emp_non_personal_father_name;?></td> </tr> <tr> <td>Religion</td><td><?=$religion_name;?></td> </tr> <tr> <td>Permanent Address</td><td><?=$viewinfo->emp_non_personal_permanent_address;?></td> </tr> <tr> <td>Contact Nos</td><td><?=$viewinfo->emp_non_personal_contact_no;?></td> </tr> <tr> <td>NOK Name</td><td><?=$viewinfo->emp_non_personal_nok_name;?></td> </tr> <tr> <td>NOK Contact No</td><td><?=$viewinfo->emp_non_personal_nok_contact_no;?></td> </tr> <tr> <td>First Vacation Due Date</td><td><?=$this->mastermodel->convertdatenormalformat($viewinfo->emp_non_personal_vacation_date);?></td> </tr> <tr> <td>Other trade Knowledge</td><td><?=$viewinfo->emp_non_personal_other_trade;?></td> </tr> </table> </li> <li> <table class="sort"> <caption>Visa Processing Details</caption> <tr> <th align="center">Visa Type</th> <th align="center">Issue Date</th> <th align="center">Expiry Date</th> <th align="center">Visa No</th> <th align="center">Employee No</th> </tr> <?php $i=1; foreach($visa_details as $visa) { ?> <tr> <td> <?=$this->mastermodel->getSingleFieldValue('visa_type','visa_type_name','visa_type_id',$visa['visa_type_id']);?> </td> <td> <?=$this->mastermodel->convertdatenormalformat($visa['visa_issue_date']);?> </td> <td> <?=$this->mastermodel->convertdatenormalformat($visa['visa_expiry_date']);?> </td> <td> <?=$visa['visa_no'];?> </td> <td> <?=$visa['employee_no'];?> </td> </tr> <?php $i++; } ?> </table> </li> <li> <?php $vacationinfo = $this->onboardingmodel->getemployeevacationdetailsbyemployeeid($viewinfo->emp_non_id); ?> <table class="sort"> <caption>Employee Vacation Details</caption> <thead> <th align="center">s.no</th> <th align="center">Vacation Date</th> <th align="center">Rejoining Date</th> <th align="center">Leave Type</th> <th align="center">No.of Days Taken</th> </thead> <tbody> <?php $slno =1; foreach ($vacationinfo->result_array() as $row) { echo "<tr>"; echo "<td> $slno </td>"; echo "<td>". $this->mastermodel->convertdatenormalformat($row['exit_date']) ."</td>"; $rejoining_date=$this->onboardingmodel->getemployeerejoindatebyemployeeid($viewinfo->emp_non_id,$row['exit_date']); echo "<td> ".$this->mastermodel->convertdatenormalformat($rejoining_date)."</td>"; $diff = abs(strtotime($row['exit_date']) - strtotime($rejoining_date)); $days = floor($diff /(60*60*24)); echo "<td>".$row['leave_type_name']."</td>"; echo "<td>".$days."</td>"; echo "</tr>"; $slno++; } ?> </tbody> </table> </li> <li> <table class="sort"> <caption>Passport Details</caption> <tr> <th align="center">Passport No</th> <th align="center">Issue Date</th> <th align="center">Expiry Date</th> <th align="center">Remind Before (in days)</th> </tr> <?php $i=1; foreach($passport_details as $passport) { ?> <tr> <td> <?php echo $passport['passport_no']; ?> </td> <td> <?php echo $this->mastermodel->convertdatenormalformat($passport['passport_issue_date']); ?> </td> <td> <?php echo $this->mastermodel->convertdatenormalformat($passport['passport_expiry_date']); ?> </td> <td> <?=$passport['passport_remind_before'];?> </td> </tr> <?php } ?> </table> </li> <li> <table class="sort"> <caption>Trade Details</caption> <tr> <th align="center">Trade</th> <th align="center">Alloted Date</th> <th align="center">Remarks</th> </tr> <?php $i=1; foreach($trade_change as $trade) { ?> <tr> <td> <?=$this->mastermodel->getSingleFieldValue('trade','trade_name','trade_id',$trade['trade_id']);?> </td> <td> <?=$this->mastermodel->convertdatenormalformat($trade['trade_change_date']);?> </td> <td> <?=$trade['remarks'];?> </td> </tr> <?php $i++; } ?> </table> </li> <li> <?php $camp_list = $this->onboardingmodel->get_joined_info('camp_allotment',$viewinfo->emp_non_id,'employee_id','camp','camp_id','camp_allotment_date'); ?> <table class="sortnew"> <caption>Camp Allotment Details</caption> <tr> <th>Camp Name</th> <th>Alloted Date</th> </tr> <?php foreach($camp_list as $camp) { ?> <tr> <td><?=$camp['camp_name'];?></td> <td><?=$this->mastermodel->convertdatenormalformat($camp['camp_allotment_date']);?></td> </tr> <?php } ?> </table> <?php $site_list = $this->onboardingmodel->get_joined_info('site_allotment',$viewinfo->emp_non_id,'employee_id','site','site_id','site_allotment_date'); ?> <table class="sortnew"> <caption>Site Allotment Details</caption> <tr> <th>Site Name</th> <th>Alloted Date</th> </tr> <?php foreach($site_list as $site) { ?> <tr> <td><?=$site['site_name'];?></td> <td><?=$this->mastermodel->convertdatenormalformat($site['site_allotment_date']);?></td> </tr> <?php } ?> </table> </li> <li> <?php $item_list = $this->onboardingmodel->get_item_info($viewinfo->emp_non_id); ?> <table class="sortnew"> <caption>Items Allotment Details</caption> <tr> <th colspan="3" style="text-align: center">Items Alloted</th> </tr> <tr> <th>Item Name</th> <th>Alloted Date</th> <th>Replacement Date</th> </tr> <?php foreach($item_list as $tool) { ?> <tr> <td><?=$tool['item_name'];?></td> <td><?=$this->mastermodel->convertdatenormalformat($tool['item_tool_allotment_date']);?></td> <td><?=$this->mastermodel->convertdatenormalformat($tool['item_allotment_expiry']);?></td> </tr> <?php } ?> </table> <?php $tool_list = $this->onboardingmodel->get_tool_info($viewinfo->emp_non_id); ?> <table class="sortnew"> <caption>Tool Allotment Details</caption> <tr> <th colspan="3" style="text-align: center">Tools Alloted</th> </tr> <tr> <th>Tool Name</th> <th>Alloted Date</th> <th>Replacement Date</th> </tr> <?php foreach($tool_list as $tool) { if($tool['returned']==1) { ?> <tr> <td><?=$tool['tool_name'];?></td> <td><?=$this->mastermodel->convertdatenormalformat($tool['item_tool_allotment_date']);?></td> <td><?=$this->mastermodel->convertdatenormalformat($tool['tool_allotment_expiry']);?></td> </tr> <?php } } ?> </table> </li> <li> <table class="sort"> <caption>Employee Salary Details</caption> <tr> <th align="center">WEF Date</th> <th align="center">Basic Salary</th> <th align="center" colspan="2">Allowances</th> <th align="center" colspan="2">Deductions</th> </tr> <?php foreach($salary_details as $salary) { ?> <tr> <td><?=$this->mastermodel->convertdatenormalformat($salary['salary_increment_date']);?></td> <td><?=$salary['salary_increment'];?></td> <?php $allowance = explode('~', $salary['allowance']); $allowance_name= ''; $allowance_amount= ''; for($i=0;$i<sizeof($allowance);$i++) { ?> <?php if($i%2==0) $allowance_name .= $allowance[$i]."<br/>";?> <?php if($i%2==1) $allowance_amount .= $allowance[$i]."<br/>";?> <?php } ?> <td><?=$allowance_name;?></td><td><?=$allowance_amount;?></td> <?php $deduction= explode('~', $salary['deduction']); $deduction_name= ''; $deduction_amount= ''; ?> <?php for($i=0;$i<sizeof($deduction);$i++) { ?> <?php if($i%2==0) $deduction_name .= $deduction[$i]."<br/>";?> <?php if($i%2==1) $deduction_amount .= $deduction[$i]."<br/>";?> <?php } ?> <td><?=$deduction_name;?></td><td><?=$deduction_amount;?></td> </tr> <?php } ?> </table> </li> <li> <table class="sort"> <caption>Employee Settlement Details</caption> <tr> <th align="center">Settlement Date</th> <th align="center">Basic Salary</th> <th align="center" colspan="2">Allowances</th> <th align="center" colspan="2">Deductions</th> <th align="center">Final Amount</th> </tr> <?php foreach($settlement_details as $settlement) { ?> <tr> <td><?=$this->mastermodel->convertdatenormalformat($settlement['date']);?></td> <td><?=$settlement['basic_salary'];?></td> <?php $allowance = explode('~', $settlement['allowance']); $allowance_name= ''; $allowance_amount= ''; for($i=0;$i<sizeof($allowance);$i++) { ?> <?php if($i%2==0) $allowance_name .= $allowance[$i]."<br/>";?> <?php if($i%2==1) $allowance_amount .= $allowance[$i]."<br/>";?> <?php } ?> <td><?=$allowance_name;?></td><td><?=$allowance_amount;?></td> <?php $deduction= explode('~', $settlement['deduction']); $deduction_name= ''; $deduction_amount= ''; ?> <?php for($i=0;$i<sizeof($deduction);$i++) { ?> <?php if($i%2==0) $deduction_name .= $deduction[$i]."<br/>";?> <?php if($i%2==1) $deduction_amount .= $deduction[$i]."<br/>";?> <?php } ?> <td><?=$deduction_name;?></td><td><?=$deduction_amount;?></td> <td><?=$settlement['final_amount'];?></td> </tr> <?php } ?> </table> </li> <li> <label for="data">Photo</label> <div class="record_entry"> <?php echo $viewinfo->photo_name; ?> </div> </li> <li> <label for="data"></label> <?php if($viewinfo->photo_doc != "") { ?> <img src="<?=base_url()?>assets/uploads/<?=$viewinfo->photo_doc;?>" alt="Employee Photo"/> <?php } ?> </li> </ul> <?php echo form_close();?> </fieldset>