<th width="4%">ID</th> <th width="20%">Additional Compensation</th> <th width="9%">Start</th> <th width="10%">End</th> <th width="12%">Amount</th> <th width="27%">Actions</th> </tr> <?php foreach ($deductions as $deduction) { ?> <?php $bg = $this->Helps->set_line_colors(); ?> <?php $d = new Additional_compensation_m(); $d->get_by_id($deduction->additional_compensation_id); ?> <tr bgcolor="<?php echo $bg; ?> " onmouseover="this.bgColor = '<?php echo $this->config->item('mouseover_linecolor'); ?> ';" onmouseout ="this.bgColor = '<?php echo $bg; ?> ';"> <td><?php echo $deduction->id; ?>
function delete($id = '') { $p = new Additional_compensation_m(); $p->get_by_id($id); $p->delete(); return Redirect::to('payroll/adcom', 'refresh'); }