@@ 68-91 (lines=24) @@ | ||
65 | } |
|
66 | } |
|
67 | ||
68 | public function history() { |
|
69 | ||
70 | if (in_array('CN=DG06,OU=Distribution Groups,OU=Email Groups,OU=Accounts,DC=cant-col,DC=ac,DC=uk', $_SESSION['ldap']['groups'])) { |
|
71 | ||
72 | $crud = new grocery_CRUD(); |
|
73 | $crud->set_table('disposals'); |
|
74 | $crud->set_subject('disposals', 'Disposals'); |
|
75 | $crud->display_as('sn','Serial Number'); |
|
76 | $crud->unset_columns('id'); |
|
77 | $crud->unset_add(); |
|
78 | $crud->unset_read(); |
|
79 | $crud->unset_delete(); |
|
80 | $output = $crud->render(); |
|
81 | ||
82 | $this->load->view('templates/header.php'); |
|
83 | $this->load->view('computing-support/disposals/history', $output); |
|
84 | $this->load->view('templates/footer.php'); |
|
85 | $this->load->view('templates/table_assets.php', $output); |
|
86 | ||
87 | } else { |
|
88 | redirect('permissions'); |
|
89 | } |
|
90 | ||
91 | } |
|
92 | ||
93 | public function current() { |
|
94 | ||
@@ 93-117 (lines=25) @@ | ||
90 | ||
91 | } |
|
92 | ||
93 | public function current() { |
|
94 | ||
95 | if (in_array('CN=DG06,OU=Distribution Groups,OU=Email Groups,OU=Accounts,DC=cant-col,DC=ac,DC=uk', $_SESSION['ldap']['groups'])) { |
|
96 | ||
97 | $crud = new grocery_CRUD(); |
|
98 | $crud->set_table('disposals_current'); |
|
99 | $crud->set_subject('disposals', 'Disposals'); |
|
100 | $crud->set_primary_key('id'); |
|
101 | $crud->display_as('sn','Serial Number'); |
|
102 | $crud->unset_columns('id'); |
|
103 | $crud->unset_add(); |
|
104 | $crud->unset_read(); |
|
105 | $crud->unset_delete(); |
|
106 | $output = $crud->render(); |
|
107 | ||
108 | $this->load->view('templates/header.php'); |
|
109 | $this->load->view('computing-support/disposals/current', $output); |
|
110 | $this->load->view('templates/footer.php'); |
|
111 | $this->load->view('templates/table_assets.php', $output); |
|
112 | ||
113 | } else { |
|
114 | redirect('permissions'); |
|
115 | } |
|
116 | ||
117 | } |
|
118 | ||
119 | public function complete() { |
|
120 |