| | |
| | | 'onclick' => sprintf("return %s.command('remove-attachment','rcmfile%s', this)", JS_OBJECT_NAME, $id), |
| | | 'class' => 'delete'), |
| | | $button) . Q($a_prop['name'])); |
| | | |
| | | |
| | | $jslist['rcmfile'.$id] = array('name' => $a_prop['name'], 'complete' => true, 'mimetype' => $a_prop['mimetype']); |
| | | } |
| | | } |
| | |
| | | |
| | | $OUTPUT->set_env('attachments', $jslist); |
| | | $OUTPUT->add_gui_object('attachmentlist', $attrib['id']); |
| | | |
| | | |
| | | return html::tag('ul', $attrib, $out, html::$common_attrib); |
| | | } |
| | | |
| | | |
| | | function rcmail_compose_attachment_form($attrib) |
| | | { |
| | | global $RCMAIL, $OUTPUT; |
| | | global $OUTPUT; |
| | | |
| | | // set defaults |
| | | $attrib += array('id' => 'rcmUploadbox', 'buttons' => 'yes'); |
| | |
| | | function rcmail_priority_selector($attrib) |
| | | { |
| | | global $MESSAGE; |
| | | |
| | | |
| | | list($form_start, $form_end) = get_form_tags($attrib); |
| | | unset($attrib['form']); |
| | | |
| | |
| | | unset($attrib['form']); |
| | | |
| | | if (!isset($attrib['id'])) |
| | | $attrib['id'] = 'receipt'; |
| | | $attrib['id'] = 'receipt'; |
| | | |
| | | $attrib['name'] = '_receipt'; |
| | | $attrib['value'] = '1'; |
| | |
| | | |
| | | function rcmail_editor_selector($attrib) |
| | | { |
| | | global $CONFIG, $MESSAGE, $compose_mode; |
| | | |
| | | // determine whether HTML or plain text should be checked |
| | | $useHtml = rcmail_compose_editor_mode(); |
| | | |