| @@ 743-750 (lines=8) @@ | ||
| 740 | Charge History |
|
| 741 | * ****** */ |
|
| 742 | ||
| 743 | function charges_history() { |
|
| 744 | $data['page_title'] = 'Charges History'; |
|
| 745 | $data['search_flag'] = true; |
|
| 746 | $this->session->set_userdata('advance_search', 0); |
|
| 747 | $data['grid_fields'] = $this->reports_form->build_charge_list_for_admin(); |
|
| 748 | $data['form_search'] = $this->form->build_serach_form($this->reports_form->get_charges_search_form()); |
|
| 749 | $this->load->view('view_charges_list', $data); |
|
| 750 | } |
|
| 751 | ||
| 752 | function charges_history_json() { |
|
| 753 | $json_data = array(); |
|
| @@ 783-790 (lines=8) @@ | ||
| 780 | $this->session->set_userdata('user_refill_report_search', ""); |
|
| 781 | } |
|
| 782 | ||
| 783 | function user_invoices_list() { |
|
| 784 | $data['page_title'] = 'Invoices'; |
|
| 785 | $data['search_flag'] = true; |
|
| 786 | $this->session->set_userdata('advance_search', 0); |
|
| 787 | $data['grid_fields'] = $this->user_form->build_user_invoices(); |
|
| 788 | $data['form_search'] = $this->form->build_serach_form($this->user_form->build_user_invoices_search()); |
|
| 789 | $this->load->view('view_user_invoices_list', $data); |
|
| 790 | } |
|
| 791 | function user_invoices_list_json() { |
|
| 792 | $accountinfo = $this->session->userdata('accountinfo'); |
|
| 793 | $where = array("accountid" => $accountinfo['id']); |
|
| @@ 913-919 (lines=7) @@ | ||
| 910 | $this->load->module('invoices/invoices'); |
|
| 911 | $this->invoices->invoice_download($invoiceid); |
|
| 912 | } |
|
| 913 | function user_charges_history() { |
|
| 914 | $data['page_title'] = 'Charges History'; |
|
| 915 | $this->session->set_userdata('advance_search', 0); |
|
| 916 | $data['grid_fields'] = $this->user_form->build_user_charge_history(); |
|
| 917 | $data['form_search'] = $this->form->build_serach_form($this->user_form->build_user_charge_history_search()); |
|
| 918 | $this->load->view('view_user_charges_list', $data); |
|
| 919 | } |
|
| 920 | ||
| 921 | function user_charges_history_json() { |
|
| 922 | $json_data = array(); |
|
| @@ 1019-1025 (lines=7) @@ | ||
| 1016 | $this->session->set_userdata('advance_search', 0); |
|
| 1017 | $this->session->set_userdata('user_charge_history_search', ""); |
|
| 1018 | } |
|
| 1019 | function user_subscriptions() { |
|
| 1020 | $data['page_title'] = 'Subscriptions'; |
|
| 1021 | $this->session->set_userdata('advance_search', 0); |
|
| 1022 | $data['grid_fields'] = $this->user_form->build_user_subscription(); |
|
| 1023 | $data['form_search'] = $this->form->build_serach_form($this->user_form->build_user_subscription_search()); |
|
| 1024 | $this->load->view('view_user_subscriptions_list', $data); |
|
| 1025 | } |
|
| 1026 | ||
| 1027 | function user_subscriptions_json() { |
|
| 1028 | ||
| @@ 1249-1255 (lines=7) @@ | ||
| 1246 | redirect(base_url()."user/user_ipmap/"); |
|
| 1247 | } |
|
| 1248 | ||
| 1249 | function user_sipdevices() { |
|
| 1250 | $data['page_title'] = 'SIP Devices'; |
|
| 1251 | $this->session->set_userdata('advance_search', 0); |
|
| 1252 | $data['grid_fields'] = $this->user_form->build_user_sipdevices(); |
|
| 1253 | $data['form_search'] = $this->form->build_serach_form($this->user_form->build_user_sipdevices_search()); |
|
| 1254 | $this->load->view('view_user_sipdevices_list', $data); |
|
| 1255 | } |
|
| 1256 | ||
| 1257 | function user_sipdevices_json() { |
|
| 1258 | $account_data = $this->session->userdata("accountinfo"); |
|