@@ 52-60 (lines=9) @@ | ||
49 | $where = array('id' => $edit_id); |
|
50 | } |
|
51 | $account = $this->db_model->getSelect("*", "mail_details", $where); |
|
52 | if ($account->num_rows > 0) { |
|
53 | foreach ($account->result_array() as $key => $value) { |
|
54 | $edit_data = $value; |
|
55 | } |
|
56 | $data['form'] = $this->form->build_form($this->email_form->get_form_fields_email(), $edit_data); |
|
57 | $this->load->view('view_email_add_edit', $data); |
|
58 | } else { |
|
59 | redirect(base_url() . 'email/email_history_list/'); |
|
60 | } |
|
61 | redirect(base_url() . 'email/email_history_list/'); |
|
62 | } |
|
63 | ||
@@ 220-228 (lines=9) @@ | ||
217 | $data['page_title'] = 'View Email'; |
|
218 | $where = array('id' => $edit_id); |
|
219 | $account = $this->db_model->getSelect("*", "mail_details", $where); |
|
220 | if ($account->num_rows > 0) { |
|
221 | foreach ($account->result_array() as $key => $value) { |
|
222 | $edit_data = $value; |
|
223 | } |
|
224 | $data['form'] = $this->form->build_form($this->email_form->get_form_fields_email_view_cus(), $edit_data); |
|
225 | $this->load->view('view_email_add_edit', $data); |
|
226 | } else { |
|
227 | redirect(base_url() . 'email/email_history_list/'.$edit_id); |
|
228 | } |
|
229 | } |
|
230 | function email_delete($id) { |
|
231 | $this->email_model->remove_email($id); |