@@ 49-59 (lines=11) @@ | ||
46 | $this->load->view('animap_add_edit', $data); |
|
47 | } |
|
48 | ||
49 | function animap_edit($edit_id = '') { |
|
50 | $data['page_title'] = 'Edit Caller ID '; |
|
51 | $where = array('id' => $edit_id); |
|
52 | $account = $this->db_model->getSelect("*", "ani_map", $where); |
|
53 | foreach ($account->result_array() as $key => $value) { |
|
54 | $edit_data = $value; |
|
55 | } |
|
56 | ||
57 | $data['form'] = $this->form->build_form($this->animap_form->get_animap_form_fields($edit_id), $edit_data); |
|
58 | $this->load->view('animap_add_edit', $data); |
|
59 | } |
|
60 | ||
61 | function animap_save() { |
|
62 | $add_array = $this->input->post(); |
@@ 962-971 (lines=10) @@ | ||
959 | $this->load->view('view_fsserver_add_edit', $data); |
|
960 | } |
|
961 | ||
962 | function fsserver_edit($edit_id = '') { |
|
963 | $data['page_title'] = 'Edit Freeswich Server'; |
|
964 | $where = array('id' => $edit_id); |
|
965 | $account = $this->db_model->getSelect("*", "freeswich_servers", $where); |
|
966 | foreach ($account->result_array() as $key => $value) { |
|
967 | $edit_data = $value; |
|
968 | } |
|
969 | $data['form'] = $this->form->build_form($this->freeswitch_form->get_form_fsserver_fields(), $edit_data); |
|
970 | $this->load->view('view_fsserver_add_edit', $data); |
|
971 | } |
|
972 | ||
973 | function fsserver_save() { |
|
974 | $add_array = $this->input->post(); |
@@ 40-49 (lines=10) @@ | ||
37 | redirect(base_url() . '/astpp/login'); |
|
38 | } |
|
39 | ||
40 | function configuration_edit($edit_id = '') { |
|
41 | $data['page_title'] = 'Edit Settings'; |
|
42 | $where = array('id' => $edit_id); |
|
43 | $account = $this->db_model->getSelect("*", "system", $where); |
|
44 | foreach ($account->result_array() as $key => $value) { |
|
45 | $edit_data = $value; |
|
46 | } |
|
47 | $data['form'] = $this->form->build_form($this->system_form->get_configuration_form_fields(), $edit_data); |
|
48 | $this->load->view('view_configuration_add_edit', $data); |
|
49 | } |
|
50 | ||
51 | function configuration_search() { |
|
52 | $ajax_search = $this->input->post('ajax_search', 0); |
|
@@ 152-161 (lines=10) @@ | ||
149 | echo json_encode($json_data); |
|
150 | } |
|
151 | ||
152 | function template_edit($edit_id = '') { |
|
153 | $data['page_title'] = 'Edit Email template'; |
|
154 | $where = array('id' => $edit_id); |
|
155 | $account = $this->db_model->getSelect("*", "default_templates", $where); |
|
156 | foreach ($account->result_array() as $key => $value) { |
|
157 | $edit_data = $value; |
|
158 | } |
|
159 | $data['form'] = $this->form->build_form($this->system_form->get_template_form_fields(), $edit_data); |
|
160 | $this->load->view('view_template_add_edit', $data); |
|
161 | } |
|
162 | ||
163 | function template_save() { |
|
164 | $add_array = $this->input->post(); |
|
@@ 313-322 (lines=10) @@ | ||
310 | $this->load->view('view_country_add_edit', $data); |
|
311 | } |
|
312 | ||
313 | function country_list_edit($edit_id = '') { |
|
314 | $data['page_title'] = 'Edit Country'; |
|
315 | $where = array('id' => $edit_id); |
|
316 | $account = $this->db_model->getSelect("*", "countrycode", $where); |
|
317 | foreach ($account->result_array() as $key => $value) { |
|
318 | $edit_data = $value; |
|
319 | } |
|
320 | $data['form'] = $this->form->build_form($this->system_form->get_country_form_fields(), $edit_data); |
|
321 | $this->load->view('view_country_add_edit', $data); |
|
322 | } |
|
323 | ||
324 | ||
325 | function country_save() { |
|
@@ 425-434 (lines=10) @@ | ||
422 | $this->load->view('view_currency_add_edit', $data); |
|
423 | } |
|
424 | ||
425 | function currency_list_edit($edit_id = '') { |
|
426 | $data['page_title'] = 'Edit Currency'; |
|
427 | $where = array('id' => $edit_id); |
|
428 | $account = $this->db_model->getSelect("*", "currency", $where); |
|
429 | foreach ($account->result_array() as $key => $value) { |
|
430 | $edit_data = $value; |
|
431 | } |
|
432 | $data['form'] = $this->form->build_form($this->system_form->get_currency_form_fields(), $edit_data); |
|
433 | $this->load->view('view_country_add_edit', $data); |
|
434 | } |
|
435 | ||
436 | ||
437 | function currency_save() { |