| @@ 548-559 (lines=12) @@ | ||
| 545 | return true; |
|
| 546 | } |
|
| 547 | ||
| 548 | function did_download_sample_file($file_name) { |
|
| 549 | $this->load->helper('download'); |
|
| 550 | $full_path = base_url() . "assets/Rates_File/" . $file_name . ".csv"; |
|
| 551 | $arrContextOptions=array( |
|
| 552 | "ssl"=>array( |
|
| 553 | "verify_peer"=>false, |
|
| 554 | "verify_peer_name"=>false, |
|
| 555 | ), |
|
| 556 | ); |
|
| 557 | $file = file_get_contents($full_path, false, stream_context_create($arrContextOptions)); |
|
| 558 | force_download("samplefile.csv", $file); |
|
| 559 | } |
|
| 560 | /* -------Here we write code for controller did functions did_import------ |
|
| 561 | * @Purpose this function check if account number exist or not then remove from database. |
|
| 562 | * @params $account_number: Account Number |
|
| @@ 337-348 (lines=12) @@ | ||
| 334 | } |
|
| 335 | ||
| 336 | ||
| 337 | function package_patterns_download_sample_file($file_name){ |
|
| 338 | $this->load->helper('download'); |
|
| 339 | $full_path = base_url()."assets/Rates_File/".$file_name.".csv"; |
|
| 340 | $arrContextOptions=array( |
|
| 341 | "ssl"=>array( |
|
| 342 | "verify_peer"=>false, |
|
| 343 | "verify_peer_name"=>false, |
|
| 344 | ), |
|
| 345 | ); |
|
| 346 | $file = file_get_contents($full_path, false, stream_context_create($arrContextOptions)); |
|
| 347 | force_download("samplefile.csv", $file); |
|
| 348 | } |
|
| 349 | ||
| 350 | ||
| 351 | function package_patterns_preview_file($edit_id){ |
|
| @@ 869-880 (lines=12) @@ | ||
| 866 | $this->session->set_userdata('account_search', ""); |
|
| 867 | } |
|
| 868 | ||
| 869 | function customer_rates_download_sample_file($file_name) |
|
| 870 | { |
|
| 871 | $this->load->helper('download'); |
|
| 872 | $full_path = base_url() . "assets/Rates_File/" . $file_name . ".csv"; |
|
| 873 | $arrContextOptions = array( |
|
| 874 | "ssl" => array( |
|
| 875 | "verify_peer" => false, |
|
| 876 | "verify_peer_name" => false, |
|
| 877 | ) , |
|
| 878 | ); |
|
| 879 | $file = file_get_contents($full_path, false, stream_context_create($arrContextOptions)); |
|
| 880 | force_download("samplefile.csv", $file); |
|
| 881 | } |
|
| 882 | ||
| 883 | function termination_rate_batch_update() |
|