public function extracted_contacts_save_columns($cuf_id, $file_path)
 {
     $ObjCUF = new contactsUploadedFileModel();
     $result = FALSE;
     $header_detect = Input::get('header_detect');
     $fieldname_array = array_flip($ObjCUF->fieldname);
     $data = array();
     if (($handle = fopen($file_path, 'r')) !== FALSE) {
         while (($col = fgetcsv($handle, 1000, ',')) !== FALSE) {
             if ($col) {
                 $n = 1;
                 foreach ($col as $value) {
                     $fieldname = '';
                     $convert_to_fieldname = $ObjCUF->convert_to_fieldname($value);
                     if (in_array($convert_to_fieldname, $fieldname_array)) {
                         $fieldname = $convert_to_fieldname;
                     }
                     $edit = $n == 1 ? 'yes' : 'no';
                     if ($header_detect) {
                         $data = array('cuf_id' => $cuf_id, $this->tblpref . 'column' => 'column' . $n, $this->tblpref . 'name' => $value, $this->tblpref . 'fieldname' => $fieldname, $this->tblpref . 'status' => 'open', $this->tblpref . 'edit' => $edit);
                     } else {
                         $data = array('cuf_id' => $cuf_id, $this->tblpref . 'column' => 'column' . $n, $this->tblpref . 'name' => '', $this->tblpref . 'fieldname' => '', $this->tblpref . 'status' => 'open', $this->tblpref . 'edit' => $edit);
                     }
                     $this->insert_data($data);
                     $n++;
                 }
                 $result = TRUE;
                 break;
             }
         }
         fclose($handle);
     }
     return $result;
 }