Exemplo n.º 1
0
 if (is_array($mapping_second_row) && sizeof($mapping_second_row) > 0) {
     foreach ($mapping_second_row as $key => $val) {
         if (strlen($val) > 30) {
             $mapping_second_row[$key] = substr($val, 0, 30) . " ...";
         }
     }
 }
 if (is_array($mapping_third_row) && sizeof($mapping_third_row) > 0) {
     foreach ($mapping_third_row as $key => $val) {
         if (strlen($val) > 30) {
             $mapping_third_row[$key] = substr($val, 0, 30) . " ...";
         }
     }
 }
 $do_crmfields = new CRMFields();
 $do_crmfields->get_field_information_by_module($_SESSION["do_import"]->get_import_module_id());
 $module_fields = array();
 while ($do_crmfields->next()) {
     if ($do_crmfields->field_name == 'assigned_to') {
         continue;
     }
     if ($import_module_id == 4) {
         if ($do_crmfields->field_name == 'contact_avatar' || $do_crmfields->field_name == 'portal_user' || $do_crmfields->field_name == 'support_start_date' || $do_crmfields->field_name == 'support_end_date') {
             continue;
         }
     }
     if ($import_module_id == 5) {
         if ($do_crmfields->field_name == 'related_to') {
             $related_to_contact = $do_crmfields->field_label . ' (' . $_SESSION["do_module"]->modules_full_details[4]["name"] . ')';
             $related_to_org = $do_crmfields->field_label . ' (' . $_SESSION["do_module"]->modules_full_details[6]["name"] . ')';
             $data = array("field_name" => "pot_related_to_contact", "field_label" => $related_to_contact, "field_validation" => $do_crmfields->field_validation);