@@ 54-65 (lines=12) @@ | ||
51 | return $query->result_array(); |
|
52 | } |
|
53 | ||
54 | public function approve($id) { |
|
55 | ||
56 | $this->db->where('id', $id); |
|
57 | $this->db->from('ownership'); |
|
58 | $data = array( |
|
59 | 'status' => '3', |
|
60 | 'transfer' => date("Y-m-d H:i:s", time()), |
|
61 | 'transfer_by' => $_SESSION['ldap']['full_name'], |
|
62 | ); |
|
63 | return $this->db->update('ownership', $data); |
|
64 | ||
65 | } |
|
66 | ||
67 | public function reject($id) { |
|
68 | ||
@@ 67-78 (lines=12) @@ | ||
64 | ||
65 | } |
|
66 | ||
67 | public function reject($id) { |
|
68 | ||
69 | $this->db->where('id', $id); |
|
70 | $this->db->from('ownership'); |
|
71 | $data = array( |
|
72 | 'status' => '2', |
|
73 | 'transfer' => date("Y-m-d H:i:s", time()), |
|
74 | 'transfer_by' => $_SESSION['ldap']['full_name'], |
|
75 | ); |
|
76 | return $this->db->update('ownership', $data); |
|
77 | ||
78 | } |
|
79 | ||
80 | public function cancel($id) { |
|
81 |
@@ 70-80 (lines=11) @@ | ||
67 | return $this->db->get()->row('email'); |
|
68 | } |
|
69 | ||
70 | public function cancel($id) { |
|
71 | ||
72 | $this->db->where('id', $id); |
|
73 | $this->db->from('private_drive'); |
|
74 | $data = array( |
|
75 | 'status' => '5', |
|
76 | 'canceled_by' => $_SESSION['ldap']['full_name'], |
|
77 | 'canceled_at' => date("Y-m-d H:i:s", time()), |
|
78 | ); |
|
79 | return $this->db->update('private_drive', $data); |
|
80 | } |
|
81 | ||
82 | public function fh_reject($id) { |
|
83 | ||
@@ 105-115 (lines=11) @@ | ||
102 | return $this->db->update('private_drive', $data); |
|
103 | } |
|
104 | ||
105 | public function cs_reject($id) { |
|
106 | ||
107 | $this->db->where('id', $id); |
|
108 | $this->db->from('private_drive'); |
|
109 | $data = array( |
|
110 | 'status' => '4', |
|
111 | 'actioned_at' => date("Y-m-d H:i:s", time()), |
|
112 | 'actioned_by' => $_SESSION['ldap']['full_name'], |
|
113 | ); |
|
114 | return $this->db->update('private_drive', $data); |
|
115 | } |
|
116 | ||
117 | public function cs_approve($id) { |
|
118 | ||
@@ 117-128 (lines=12) @@ | ||
114 | return $this->db->update('private_drive', $data); |
|
115 | } |
|
116 | ||
117 | public function cs_approve($id) { |
|
118 | ||
119 | $this->db->where('id', $id); |
|
120 | $this->db->from('private_drive'); |
|
121 | $data = array( |
|
122 | 'status' => '2', |
|
123 | 'actioned_at' => date("Y-m-d H:i:s", time()), |
|
124 | 'actioned_by' => $_SESSION['ldap']['full_name'], |
|
125 | ); |
|
126 | ||
127 | return $this->db->update('private_drive', $data); |
|
128 | } |
|
129 | } |
@@ 130-140 (lines=11) @@ | ||
127 | return $query->result_array(); |
|
128 | } |
|
129 | ||
130 | public function cancel($id) { |
|
131 | ||
132 | $this->db->where('id', $id); |
|
133 | $this->db->from('room_move'); |
|
134 | $data = array( |
|
135 | 'status' => '4', |
|
136 | 'canceled_by' => $_SESSION['ldap']['full_name'], |
|
137 | 'canceled_at' => date("Y-m-d H:i:s", time()), |
|
138 | ); |
|
139 | return $this->db->update('room_move', $data); |
|
140 | } |
|
141 | ||
142 | public function eh_reject($id) { |
|
143 | ||
@@ 142-152 (lines=11) @@ | ||
139 | return $this->db->update('room_move', $data); |
|
140 | } |
|
141 | ||
142 | public function eh_reject($id) { |
|
143 | ||
144 | $this->db->where('id', $id); |
|
145 | $this->db->from('room_move'); |
|
146 | $data = array( |
|
147 | 'status' => '2', |
|
148 | 'estates_at' => date("Y-m-d H:i:s", time()), |
|
149 | 'estates_by' => $_SESSION['ldap']['full_name'], |
|
150 | ); |
|
151 | return $this->db->update('room_move', $data); |
|
152 | } |
|
153 | ||
154 | public function eh_approve($id) { |
|
155 | ||
@@ 154-165 (lines=12) @@ | ||
151 | return $this->db->update('room_move', $data); |
|
152 | } |
|
153 | ||
154 | public function eh_approve($id) { |
|
155 | ||
156 | $this->db->where('id', $id); |
|
157 | $this->db->from('room_move'); |
|
158 | $data = array( |
|
159 | 'status' => '1', |
|
160 | 'estates_at' => date("Y-m-d H:i:s", time()), |
|
161 | 'estates_by' => $_SESSION['ldap']['full_name'], |
|
162 | ); |
|
163 | ||
164 | return $this->db->update('room_move', $data); |
|
165 | } |
|
166 | ||
167 | public function cs_reject($id) { |
|
168 | ||
@@ 167-177 (lines=11) @@ | ||
164 | return $this->db->update('room_move', $data); |
|
165 | } |
|
166 | ||
167 | public function cs_reject($id) { |
|
168 | ||
169 | $this->db->where('id', $id); |
|
170 | $this->db->from('room_move'); |
|
171 | $data = array( |
|
172 | 'status' => '3', |
|
173 | 'cs_at' => date("Y-m-d H:i:s", time()), |
|
174 | 'cs_by' => $_SESSION['ldap']['full_name'], |
|
175 | ); |
|
176 | return $this->db->update('room_move', $data); |
|
177 | } |
|
178 | ||
179 | public function cs_approve($id) { |
|
180 | ||
@@ 179-190 (lines=12) @@ | ||
176 | return $this->db->update('room_move', $data); |
|
177 | } |
|
178 | ||
179 | public function cs_approve($id) { |
|
180 | ||
181 | $this->db->where('id', $id); |
|
182 | $this->db->from('room_move'); |
|
183 | $data = array( |
|
184 | 'status' => '5', |
|
185 | 'cs_at' => date("Y-m-d H:i:s", time()), |
|
186 | 'cs_by' => $_SESSION['ldap']['full_name'], |
|
187 | ); |
|
188 | ||
189 | return $this->db->update('room_move', $data); |
|
190 | } |
|
191 | ||
192 | public function cs_complete($id) { |
|
193 | ||
@@ 192-203 (lines=12) @@ | ||
189 | return $this->db->update('room_move', $data); |
|
190 | } |
|
191 | ||
192 | public function cs_complete($id) { |
|
193 | ||
194 | $this->db->where('id', $id); |
|
195 | $this->db->from('room_move'); |
|
196 | $data = array( |
|
197 | 'status' => '6', |
|
198 | 'completed_at' => date("Y-m-d H:i:s", time()), |
|
199 | 'completed_by' => $_SESSION['ldap']['full_name'], |
|
200 | ); |
|
201 | ||
202 | return $this->db->update('room_move', $data); |
|
203 | } |
|
204 | } |
@@ 156-166 (lines=11) @@ | ||
153 | return $this->db->update('temporary_account', $data); |
|
154 | } |
|
155 | ||
156 | public function reject($id) { |
|
157 | ||
158 | $this->db->where('id', $id); |
|
159 | $this->db->from('temporary_account'); |
|
160 | $data = array( |
|
161 | 'status' => '2', |
|
162 | 'status_at' => date("Y-m-d H:i:s", time()), |
|
163 | 'status_by' => $_SESSION['ldap']['full_name'], |
|
164 | ); |
|
165 | return $this->db->update('temporary_account', $data); |
|
166 | } |
|
167 | ||
168 | public function approve($id) { |
|
169 | ||
@@ 168-179 (lines=12) @@ | ||
165 | return $this->db->update('temporary_account', $data); |
|
166 | } |
|
167 | ||
168 | public function approve($id) { |
|
169 | ||
170 | $this->db->where('id', $id); |
|
171 | $this->db->from('temporary_account'); |
|
172 | $data = array( |
|
173 | 'status' => '1', |
|
174 | 'status_at' => date("Y-m-d H:i:s", time()), |
|
175 | 'status_by' => $_SESSION['ldap']['full_name'], |
|
176 | ); |
|
177 | ||
178 | return $this->db->update('temporary_account', $data); |
|
179 | } |
|
180 | ||
181 | public function created_account($id) { |
|
182 |