Exemplo n.º 1
0
 function agency_delete($id = '')
 {
     $p = new Deduction_agency();
     $p->get_by_id($id);
     $p->delete();
     return Redirect::to('payroll/deduction/agency', 'refresh');
 }
Exemplo n.º 2
0
    <th width="10%">End</th>
    <th width="12%">Status</th>
    <th width="27%">Actions</th>
  </tr>
  <?php 
foreach ($deductions as $deduction) {
    ?>
  		<?php 
    $bg = $this->Helps->set_line_colors();
    ?>
        <?php 
    $d = new Deduction_information();
    $d->get_by_id($deduction->deduction_information_id);
    // Get agency
    $agency = new Deduction_agency();
    $agency->get_by_id($d->deduction_agency_id);
    //var_dump( $d->deduction_agency_id);
    ?>
      <tr bgcolor="<?php 
    echo $bg;
    ?>
" onmouseover="this.bgColor = '<?php 
    echo $this->config->item('mouseover_linecolor');
    ?>
';" 
    onmouseout ="this.bgColor = '<?php 
    echo $bg;
    ?>
';" style="border-bottom: 1px solid #999999;">
        <td><?php 
    echo $deduction->id;
Exemplo n.º 3
0
    <th>Tax Status</th>
    <th>Description</th>
    <th>Effectivity Date</th>
    <th>Ineffectivity Date</th>
    <th>Exemption</th>
    <th>Actions</th>
  </tr>
  <?php 
foreach ($deductions as $deduction) {
    ?>
  		<?php 
    $bg = $this->Helps->set_line_colors();
    ?>
        <?php 
    $d = new Deduction_agency();
    $d->get_by_id($deduction->agency_id);
    ?>
      <tr bgcolor="<?php 
    echo $bg;
    ?>
" onmouseover="this.bgColor = '<?php 
    echo $this->config->item('mouseover_linecolor');
    ?>
';" 
    onmouseout ="this.bgColor = '<?php 
    echo $bg;
    ?>
';" style="border-bottom: 1px solid #999999;">
        <td><?php 
    echo $deduction->id;
    ?>