<td data-title="<?php echo $this->lang->line('action'); ?> "> <?php if ($student->hostel == 0) { $perm = $this->session->userdata("Hostel"); if ($perm == 1) { echo btn_add_disabled('hmember/add/' . $student->studentID . "/" . $set, $this->lang->line('hmember')); } else { echo btn_add('hmember/add/' . $student->studentID . "/" . $set, $this->lang->line('hmember')); } } else { if ($perm == 1) { echo btn_view_disabled('hmember/view/' . $student->studentID . "/" . $set, $this->lang->line("view")) . " "; echo btn_edit_disabled('hmember/edit/' . $student->studentID . "/" . $set, $this->lang->line('edit')) . " "; echo btn_delete_disabled('hmember/delete/' . $student->studentID . "/" . $set, $this->lang->line('delete')); } echo btn_view('hmember/view/' . $student->studentID . "/" . $set, $this->lang->line("view")) . " "; echo btn_edit('hmember/edit/' . $student->studentID . "/" . $set, $this->lang->line('edit')) . " "; echo btn_delete('hmember/delete/' . $student->studentID . "/" . $set, $this->lang->line('delete')); } ?> </td> </tr> <?php $i++; } } ?>
<td data-title="<?php echo $this->lang->line('action'); ?> "> <?php echo btn_view('invoice/view/' . $invoice->invoiceID, $this->lang->line('view')); ?> <?php if ($usertype == "Admin" || $usertype == "Accountant") { ?> <?php $perm = $this->session->userdata('Account'); if ($perm == 1) { echo btn_edit_disabled('invoice/edit/' . $invoice->invoiceID, $this->lang->line('edit')); echo btn_delete_disabled('invoice/delete/' . $invoice->invoiceID, $this->lang->line('delete')); } else { echo btn_edit('invoice/edit/' . $invoice->invoiceID, $this->lang->line('edit')); echo btn_delete('invoice/delete/' . $invoice->invoiceID, $this->lang->line('delete')); } ?> <?php } ?> </td> </tr> <?php $i++; }
<td data-title="<?php echo $this->lang->line('feetype_note'); ?> "> <?php echo $feetype->note; ?> </td> <td data-title="<?php echo $this->lang->line('action'); ?> "> <?php $perm = $this->session->userdata('Account'); if ($perm == 1) { echo btn_edit_disabled('feetype/edit/' . $feetype->feetypeID, $this->lang->line('edit')); echo btn_delete_disabled('feetype/delete/' . $feetype->feetypeID, $this->lang->line('delete')); } else { echo btn_edit('feetype/edit/' . $feetype->feetypeID, $this->lang->line('edit')); echo btn_delete('feetype/delete/' . $feetype->feetypeID, $this->lang->line('delete')); } ?> </td> </tr> <?php $i++; } } ?> </tbody>