| | |
| | | $out = $OUTPUT->button(array('command' => 'list', 'prop' => $target, 'label' => 'done') + $attrib); |
| | | } |
| | | else { |
| | | $out = $OUTPUT->button(array('command' => 'list', 'label' => 'cancel') + $attrib); |
| | | $out .= ' '; |
| | | $cancel = $OUTPUT->button(array('command' => 'list', 'label' => 'cancel') + $attrib); |
| | | $attrib['class'] = trim($attrib['class'] . ' mainaction'); |
| | | $out .= $OUTPUT->button(array('command' => 'import', 'label' => 'import') + $attrib); |
| | | $out = $OUTPUT->button(array('command' => 'import', 'label' => 'import') + $attrib); |
| | | $out .= ' '; |
| | | $out .= $cancel; |
| | | } |
| | | |
| | | return $out; |
| | |
| | | function rcmail_import_group_id($group_name, $CONTACTS, $create, &$import_groups) |
| | | { |
| | | $group_id = 0; |
| | | foreach ($import_groups as $key => $group) { |
| | | foreach ($import_groups as $group) { |
| | | if (strtolower($group['name']) == strtolower($group_name)) { |
| | | $group_id = $group['ID']; |
| | | break; |