?
Current Path : /home1/savoy/public_html/savoyglobal.net/hr/application/views/Timesheet/ |
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/hr/application/views/Timesheet/load_timesheet_values.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $attendance_days=explode(',', $info['attendance']); $attendance_date=explode(',', $info['attendance_date']); ?> <td style="position:fixed; width: 94px; height:35px;"><?=$info['employee_name'];?></td> <td><?=$info['employee_trade'];?></td> <td><?=$info['employee_no'];?> <input type="hidden" name="employee_id[]" id="<?=$info['trcount'];?>_employee_id" value="<?=$info['employee_id'];?>"/> </td> <td> <?=$info['employee_company'];?> <input type="hidden" name="company_id[]" value="<?=$info['employee_company_id'];?>"/> </td> <td> <input type="text" class="medium" name="trade_code[]" value="<?=$info['trade_code'];?>"/> </td> <?php $i=1; foreach ($attendance_days as $att) { ?> <td> <input type="text" id="<?=$info['trcount'];?>_attendance_day_<?=$i;?>" name="attendance_day<?=$i;?>[]" <?php if(!is_numeric($att) && ($att !='')){ ?>style="color:#ff0000;"<?php } ?> value="<?=$att;?>" class="tiny" onchange="check_hours(this.id);calculate_total_hours_load_timesheet(<?=$info['trcount'];?>)"/> </td> <?php $i++; } ?> <?php $i=1; foreach ($attendance_date as $attend) { ?> <input type="hidden" name="attendance_date<?=$i;?>[]" value="<?=$attend;?>" class="tiny"/> <?php $i++; } ?> <td> <input type='text' id="<?=$info['trcount'];?>_normal_hours" class='tiny' name="normal_hours[]" value="<?=$info['normal_hours'];?>" onchange="calculate_total_amounts_row_load_timesheet(<?=$info['trcount'];?>)" /> </td> <td> <input type='text' id="<?=$info['trcount'];?>_ot_hours" class='tiny' name="ot_hours[]" value="<?=$info['ot_hours'];?>" onchange="calculate_total_amounts_row_load_timesheet(<?=$info['trcount'];?>)" /> </td> <td> <input type='text' id="<?=$info['trcount'];?>_hot_hours" class='tiny' name="hot_hours[]" value="<?=$info['hot_hours'];?>" onchange="calculate_total_amounts_row_load_timesheet(<?=$info['trcount'];?>)" /> </td> <td> <span id="<?=$info['trcount'];?>_total_hours"><?=$info['total_hours'];?></span> </td> <td> <input type='text' class='tiny' id="<?=$info['trcount'];?>_basic_rate" name="basic_rate[]" value="<?=$info['basic_rate'];?>" onchange="calculate_total_amounts_row_load_timesheet(<?=$info['trcount'];?>)" /> </td> <td> <input type='text' class='tiny' id="<?=$info['trcount'];?>_ot_rate" name="ot_rate[]" value="<?=$info['ot_rate'];?>" onchange="calculate_total_amounts_row_load_timesheet(<?=$info['trcount'];?>)" /> </td> <td> <input type='text' class='tiny' id="<?=$info['trcount'];?>_hot_rate" name="hot_rate[]" value="<?=$info['hot_rate'];?>" onchange="calculate_total_amounts_row_load_timesheet(<?=$info['trcount'];?>)" /> </td> <td> <span id="<?=$info['trcount'];?>_normal_amount"><?=$info['normal_amount'];?></span> </td> <td> <span id="<?=$info['trcount'];?>_ot_amount"><?=$info['ot_amount'];?></span> </td> <td> <span id="<?=$info['trcount'];?>_hot_amount"><?=$info['hot_amount'];?></span> </td> <td> <span id="<?=$info['trcount'];?>_total_amount"><?=$info['total_amount'];?></span> </td> <td> <div class="fronticons"> <img src="<?=base_url()?>assets/images/delete-icon.png" title="Delete Row" width="20" height="20" alt="Delete" align = "center" class="clickimage" onclick=" return deletetimesheetrow($($(this).closest('tr')).attr('id'))" alt="" /> </div> </td>