diff -u -r roundcubemail-0.1-rc2.org/program/include/rcube_contacts.inc roundcubemail-0.1-rc2/program/include/rcube_contacts.inc
|
old
|
new
|
|
| 34 | 34 | var $result = null; |
| 35 | 35 | var $search_fields; |
| 36 | 36 | var $search_string; |
| 37 | | var $table_cols = array('name', 'email', 'firstname', 'surname'); |
| | 37 | var $table_cols = array('name', 'email', 'firstname', 'surname', 'comments'); |
| 38 | 38 | |
| 39 | 39 | /** public properties */ |
| 40 | 40 | var $primary_key = 'contact_id'; |
diff -u -r roundcubemail-0.1-rc2.org/program/localization/en_GB/labels.inc roundcubemail-0.1-rc2/program/localization/en_GB/labels.inc
|
old
|
new
|
|
| 162 | 162 | $labels['firstname'] = 'First name'; |
| 163 | 163 | $labels['surname'] = 'Last name'; |
| 164 | 164 | $labels['email'] = 'E-Mail'; |
| | 165 | $labels['comments'] = 'Additional info'; |
| 165 | 166 | |
| 166 | 167 | $labels['addcontact'] = 'Add new contact'; |
| 167 | 168 | $labels['editcontact'] = 'Edit contact'; |
diff -u -r roundcubemail-0.1-rc2.org/program/localization/en_US/labels.inc roundcubemail-0.1-rc2/program/localization/en_US/labels.inc
|
old
|
new
|
|
| 166 | 166 | $labels['firstname'] = 'First name'; |
| 167 | 167 | $labels['surname'] = 'Last name'; |
| 168 | 168 | $labels['email'] = 'E-Mail'; |
| | 169 | $labels['comments'] = 'Additional info'; |
| 169 | 170 | |
| 170 | 171 | $labels['addcontact'] = 'Add new contact'; |
| 171 | 172 | $labels['editcontact'] = 'Edit contact'; |
diff -u -r roundcubemail-0.1-rc2.org/program/localization/nl_NL/labels.inc roundcubemail-0.1-rc2/program/localization/nl_NL/labels.inc
|
old
|
new
|
|
| 128 | 128 | $labels['firstname'] = 'Voornaam'; |
| 129 | 129 | $labels['surname'] = 'Achternaam'; |
| 130 | 130 | $labels['email'] = 'E-Mail'; |
| | 131 | $labels['comments'] = 'Extra info'; |
| 131 | 132 | $labels['addcontact'] = 'Voeg geselecteerde contacten toe aan het adresboek'; |
| 132 | 133 | $labels['editcontact'] = 'Contactpersoon wijzigen'; |
| 133 | 134 | $labels['edit'] = 'Wijzig'; |
diff -u -r roundcubemail-0.1-rc2.org/program/steps/addressbook/edit.inc roundcubemail-0.1-rc2/program/steps/addressbook/edit.inc
|
old
|
new
|
|
| 61 | 61 | // return the complete address edit form as table |
| 62 | 62 | $out = "$form_start<table>\n\n"; |
| 63 | 63 | |
| 64 | | $a_show_cols = array('name', 'firstname', 'surname', 'email'); |
| | 64 | $a_show_cols = array('name', 'firstname', 'surname', 'email', 'comments'); |
| 65 | 65 | foreach ($a_show_cols as $col) |
| 66 | 66 | { |
| 67 | 67 | $attrib['id'] = 'rcmfd_'.$col; |
| 68 | | $value = rcmail_get_edit_field($col, $record[$col], $attrib); |
| | 68 | $value = rcmail_get_edit_field($col, $record[$col], $attrib, $col=='comments' ? 'textarea' : 'text'); |
| 69 | 69 | $out .= sprintf("<tr><td class=\"title\"><label for=\"%s\">%s</label></td><td>%s</td></tr>\n", |
| 70 | 70 | $attrib['id'], |
| 71 | 71 | Q(rcube_label($col)), |
diff -u -r roundcubemail-0.1-rc2.org/program/steps/addressbook/save.inc roundcubemail-0.1-rc2/program/steps/addressbook/save.inc
|
old
|
new
|
|
| 37 | 37 | |
| 38 | 38 | |
| 39 | 39 | // setup some vars we need |
| 40 | | $a_save_cols = array('name', 'firstname', 'surname', 'email'); |
| | 40 | $a_save_cols = array('name', 'firstname', 'surname', 'email', 'comments'); |
| 41 | 41 | $a_record = array(); |
| 42 | 42 | $cid = get_input_value('_cid', RCUBE_INPUT_POST); |
| 43 | 43 | |
diff -u -r roundcubemail-0.1-rc2.org/program/steps/addressbook/search.inc roundcubemail-0.1-rc2/program/steps/addressbook/search.inc
|
old
|
new
|
|
| 26 | 26 | $search_request = md5('addr'.$search); |
| 27 | 27 | |
| 28 | 28 | // get contacts for this user |
| 29 | | $result = $CONTACTS->search(array('name','email'), $search); |
| | 29 | $result = $CONTACTS->search(isset($GLOBALS['CONFIG']['address_search_fields']) ? $GLOBALS['CONFIG']['address_search_fields'] : array('name','email'), $search); |
| 30 | 30 | |
| 31 | 31 | if ($result->count > 0) |
| 32 | 32 | { |
diff -u -r roundcubemail-0.1-rc2.org/program/steps/addressbook/show.inc roundcubemail-0.1-rc2/program/steps/addressbook/show.inc
|
old
|
new
|
|
| 43 | 43 | // return the complete address record as table |
| 44 | 44 | $out = "<table>\n\n"; |
| 45 | 45 | |
| 46 | | $a_show_cols = array('name', 'firstname', 'surname', 'email'); |
| | 46 | $a_show_cols = array('name', 'firstname', 'surname', 'email', 'comments'); |
| 47 | 47 | foreach ($a_show_cols as $col) |
| 48 | 48 | { |
| 49 | 49 | if ($col=='email' && !empty($record[$col])) |