| @@ 217-232 (lines=16) @@ | ||
| 214 | $this->db->where('parent_id',0); |
|
| 215 | $dids_array=$this->db->get('dids')->result_array(); |
|
| 216 | } |
|
| 217 | if(!empty($dids_array)){ |
|
| 218 | foreach ($dids_array as $drp_value) { |
|
| 219 | if (!empty($drp_value['monthlycost']) && $drp_value['monthlycost'] != 0) { |
|
| 220 | $did_cost = $this->common_model->to_calculate_currency($drp_value['monthlycost'], '', '', true, false); |
|
| 221 | } else { |
|
| 222 | $did_cost = 0; |
|
| 223 | } |
|
| 224 | if (!empty($drp_value['setup']) && $drp_value['setup'] != 0) { |
|
| 225 | $did_setup = $this->common_model->to_calculate_currency($drp_value['setup'], '', '', true, false); |
|
| 226 | } else { |
|
| 227 | $did_setup = 0; |
|
| 228 | } |
|
| 229 | $drp_list[$drp_value['id']] = $drp_value['number'] . ' ( Setup : ' . $did_setup . ')' . '( Monthly : ' . $did_cost . ' )'; |
|
| 230 | /* * ********************************************************************************************* */ |
|
| 231 | } |
|
| 232 | } |
|
| 233 | $data['didlist'] = form_dropdown_all(array("name"=>"free_did_list","id"=>"free_did_list","class"=>"did_dropdown"), $drp_list, ''); |
|
| 234 | } |
|
| 235 | if ($this->session->userdata['userlevel_logintype'] == '1') { |
|
| @@ 1101-1115 (lines=15) @@ | ||
| 1098 | } |
|
| 1099 | $dids_array=(array)$this->db->get()->result_array(); |
|
| 1100 | $drp_list=array(); |
|
| 1101 | if(!empty($dids_array)){ |
|
| 1102 | foreach ($dids_array as $drp_value) { |
|
| 1103 | if (!empty($drp_value['monthlycost']) && $drp_value['monthlycost'] != 0) { |
|
| 1104 | $did_cost = $this->common_model->to_calculate_currency($drp_value['monthlycost'],'','',true,true); |
|
| 1105 | } else { |
|
| 1106 | $did_cost = 0; |
|
| 1107 | } |
|
| 1108 | if (!empty($drp_value['setup']) && $drp_value['setup'] != 0) { |
|
| 1109 | $did_setup = $this->common_model->to_calculate_currency($drp_value['setup'],'','',true,true); |
|
| 1110 | } else { |
|
| 1111 | $did_setup = 0; |
|
| 1112 | } |
|
| 1113 | $drp_list[$drp_value['id']] = $drp_value['number'] . ' ( Setup : ' . $did_setup . ')' . '( Monthly : ' . $did_cost . ' )'; |
|
| 1114 | } |
|
| 1115 | } |
|
| 1116 | $data['didlist'] = form_dropdown_all(array("name"=>"free_didlist","id"=>"free_didlist","class"=>"did_dropdown"), $drp_list, ''); |
|
| 1117 | $this->load->view('view_user_did_list', $data); |
|
| 1118 | } |
|