@@ 322-334 (lines=13) @@ | ||
319 | } |
|
320 | ||
321 | ||
322 | function package_patterns_import($edit_id) { |
|
323 | //echo "nick";exit; |
|
324 | $data['page_title'] = 'Import Package Patterns'; |
|
325 | $this->session->set_userdata('import_package_code_csv',""); |
|
326 | $error_data = $this->session->userdata('import_package_code_csv_error'); |
|
327 | $full_path = $this->config->item('rates-file-path'); |
|
328 | if(file_exists($full_path.$error_data) && $error_data != ""){ |
|
329 | unlink($full_path.$error_data); |
|
330 | $this->session->set_userdata('import_package_code_csv_error',""); |
|
331 | } |
|
332 | $data['edit_id'] = $edit_id; |
|
333 | $this->load->view('view_import_package_code', $data); |
|
334 | } |
|
335 | ||
336 | ||
337 | function package_patterns_download_sample_file($file_name){ |
@@ 212-222 (lines=11) @@ | ||
209 | force_download("Termination_rate_error.csv", $data); |
|
210 | ||
211 | } |
|
212 | function origination_rate_import() { |
|
213 | $data['page_title'] = 'Import Origination Rates'; |
|
214 | $this->session->set_userdata('import_origination_rate_csv',""); |
|
215 | $error_data = $this->session->userdata('import_origination_rate_csv_error'); |
|
216 | $full_path = $this->config->item('rates-file-path'); |
|
217 | if(file_exists($full_path.$error_data) && $error_data != ""){ |
|
218 | unlink($full_path.$error_data); |
|
219 | $this->session->set_userdata('import_origination_rate_csv_error',""); |
|
220 | } |
|
221 | $this->load->view('view_import_origination_rate', $data); |
|
222 | } |
|
223 | function origination_rate_preview_file(){ |
|
224 | $invalid_flag= false; |
|
225 | $data=array(); |