?
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/view_employee_list_popup.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <table class="sort" cellpadding="0" cellspacing="0"> <caption>Employee Information</caption> <thead> <tr> <th>Sl No</th> <th>Employee Name</th> <th>Employee No</th> <th>Batch Code</th> <th>Trade</th> <th>Nationality</th> <th>Date of Joining</th> <th width="10%">Action</th> </tr> </thead> <tbody> <?php if ($viewinfo->num_rows() > 0) { $table=""; $field=""; $z=1; $id=1; foreach ($viewinfo->result() as $row) { $num = $this->mastermodel->get_num_rows('emp_non_personal','emp_non_id',$row->emp_non_id); if($z%2==0) $alt="alt"; else $alt="alt1"; ?> <tr class="'.$alt.'"> <td><?=$id;?></td> <td> <?php if ($num!=0) { ?> <a href="#" onclick="displayformdata('onboarding','single_page','<?=$row->emp_non_id;?>','emp_non_personal','emp_non_id','single_employee_personal')" ><?=$row->emp_non_full_name;?></a> <?php } else { ?> <?=$row->emp_non_full_name;?> <?php } ?> </td> <td><?=$row->emp_non_no;?></td> <td><?=$row->batch_code;?></td> <td><?=$row->trade_name;?></td> <td><?=$row->nationality_name;?></td> <td><?=$this->mastermodel->convertdatenormalformat($row->emp_non_date_joining);?></td> <td> <div id="console_fronticons"> <?php if ($num==0) { ?> <div class="fronticons"> <img src="<?=base_url()?>assets/images/add-icon.png" title="Add Employee Personal Details" width="20" height="20" alt="Edit" align = "center" class="clickimage" onclick="editformdata('onboarding','edit_page','<?=$row->emp_non_id;?>','employee_non_main','emp_non_id','add_employee_personal')" alt="" /> </div> <?php } else { ?> <div class="fronticons"> <img src="<?=base_url()?>assets/images/edit-icon.gif" title="Edit Employee" width="20" height="20" alt="Edit" align = "center" class="clickimage" onclick="editformdata('onboarding','edit_page','<?=$row->emp_non_id;?>','emp_non_personal','emp_non_id','edit_employee_personal')" alt="" /> </div> <div class="fronticons"> <img src="<?=base_url()?>assets/images/delete-icon.png" title="Delete" width="20" height="20" onclick="deletedata('master',<?=$row->emp_non_id;?>,'master_id','onboarding','viewinonboardingsearch','search_employee_personal','view_employee_personal','<?=$table?>','<?=$field?>')" alt="Delete" align = "center"/> </div> <?php } ?> </div> </td> </tr> <?php $id++; $z++; } } ?> </tbody> </table>