@@ 311-316 (lines=6) @@ | ||
308 | $data['edit_id'] = $edit_id; |
|
309 | $speeddial_res = $this->db->get_where("speed_dial", array("accountid" => $edit_id)); |
|
310 | $speeddial_info = array(); |
|
311 | if ($speeddial_res->num_rows() > 0) { |
|
312 | $speeddial_res = $speeddial_res->result_array(); |
|
313 | foreach ($speeddial_res as $key => $value) { |
|
314 | $speeddial_info[$value['speed_num']] = $value['number']; |
|
315 | } |
|
316 | } |
|
317 | $data['speeddial'] = $speeddial_info; |
|
318 | $data['form'] = $this->form->build_form($this->accounts_form->get_customer_form_fields($accounttype, $edit_id), $account_data); |
|
319 | $this->load->view('view_customer_speed_dial', $data); |
@@ 1934-1939 (lines=6) @@ | ||
1931 | $account_data = (array) $account->first_row(); |
|
1932 | $speeddial_res = $this->db->get_where("speed_dial", array("accountid" => $accountinfo['id'])); |
|
1933 | $speeddial_info = array(); |
|
1934 | if ($speeddial_res->num_rows() > 0) { |
|
1935 | $speeddial_res = $speeddial_res->result_array(); |
|
1936 | foreach ($speeddial_res as $key => $value) { |
|
1937 | $speeddial_info[$value['speed_num']] = $value['number']; |
|
1938 | } |
|
1939 | } |
|
1940 | $data['speeddial'] = $speeddial_info; |
|
1941 | $this->load->view('view_user_speeddial', $data); |
|
1942 | } else{ |