diff options
author | alecpl <alec@alec.pl> | 2008-09-21 07:33:38 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-09-21 07:33:38 +0000 |
commit | e2c610ebfa9155888ff60f4fb3d77bffbc1f2293 (patch) | |
tree | 20c162848a02e9d49f786e0a58cec8d17969d2df /program/steps/mail | |
parent | f5d3769a807fb6728b8e035fc01b7311664df617 (diff) |
- use more 'html' class
Diffstat (limited to 'program/steps/mail')
-rw-r--r-- | program/steps/mail/compose.inc | 9 | ||||
-rw-r--r-- | program/steps/mail/func.inc | 26 |
2 files changed, 9 insertions, 26 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index 9ff4190ab..830168c24 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -765,11 +765,10 @@ function rcmail_compose_attachment_form($attrib) function rcmail_compose_attachment_field($attrib) { - // allow the following attributes to be added to the <input> tag - $attrib_str = create_attrib_string($attrib, array('id', 'class', 'style', 'size')); - - $out = '<input type="file" name="_attachments[]"'. $attrib_str . " />"; - return $out; + $attrib['type'] = 'file'; + $attrib['name'] = '_attachments[]'; + $field = new html_inputfield($attrib); + return $field->show(); } diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 3f8114801..446984066 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -403,18 +403,12 @@ function rcmail_messagecontent_frame($attrib) if (empty($attrib['id'])) $attrib['id'] = 'rcmailcontentwindow'; - // allow the following attributes to be added to the <iframe> tag - $attrib_str = create_attrib_string($attrib, array('id', 'class', 'style', 'src', 'width', 'height', 'frameborder')); - $framename = $attrib['id']; + $attrib['name'] = $attrib['id']; - $out = sprintf('<iframe name="%s"%s></iframe>'."\n", - $framename, - $attrib_str); - - $OUTPUT->set_env('contentframe', $framename); + $OUTPUT->set_env('contentframe', $attrib['id']); $OUTPUT->set_env('blankpage', $attrib['src'] ? $OUTPUT->abs_url($attrib['src']) : 'program/blank.gif'); - return $out; + return html::tag('iframe', $attrib); } @@ -430,14 +424,7 @@ function rcmail_messagecount_display($attrib) $OUTPUT->add_gui_object('countdisplay', $attrib['id']); - // allow the following attributes to be added to the <span> tag - $attrib_str = create_attrib_string($attrib, array('style', 'class', 'id')); - - - $out = '<span' . $attrib_str . '>'; - $out .= rcmail_get_messagecount_text(); - $out .= '</span>'; - return $out; + return html::span($attrib, rcmail_get_messagecount_text()); } @@ -1140,10 +1127,7 @@ function rcmail_message_part_frame($attrib) $attrib['src'] = Q('./?'.str_replace('_frame=', ($ctype_primary=='text' ? '_show=' : '_preload='), $_SERVER['QUERY_STRING'])); - $attrib_str = create_attrib_string($attrib, array('id', 'class', 'style', 'src', 'width', 'height')); - $out = '<iframe '. $attrib_str . "></iframe>"; - - return $out; + return html::tag('iframe', $attrib); } |