Changeset e2c610e in github
- Timestamp:
- Sep 21, 2008 3:33:38 AM (5 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 95fcc33
- Parents:
- f5d3769
- Location:
- program/steps
- Files:
-
- 4 edited
-
addressbook/func.inc (modified) (3 diffs)
-
mail/compose.inc (modified) (1 diff)
-
mail/func.inc (modified) (3 diffs)
-
settings/identities.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
program/steps/addressbook/func.inc
rf89f03c re2c610e 153 153 154 154 $attrib['name'] = $attrib['id']; 155 $attrib_str = create_attrib_string($attrib, array('name', 'id', 'class', 'style', 'src', 'width', 'height', 'frameborder'));156 155 157 156 $OUTPUT->set_env('contentframe', $attrib['name']); 158 157 $OUTPUT->set_env('blankpage', $attrib['src'] ? $OUTPUT->abs_url($attrib['src']) : 'program/blank.gif'); 159 return '<iframe'. $attrib_str . '></iframe>'; 158 159 return html::tag('iframe', $attrib); 160 160 } 161 161 … … 170 170 $OUTPUT->add_gui_object('countdisplay', $attrib['id']); 171 171 172 // allow the following attributes to be added to the <span> tag 173 $attrib_str = create_attrib_string($attrib, array('style', 'class', 'id')); 174 175 $out = '<span' . $attrib_str . '>'; 176 $out .= rcmail_get_rowcount_text(); 177 $out .= '</span>'; 178 return $out; 172 return html::span($attrib, rcmail_get_rowcount_text()); 179 173 } 180 174 … … 204 198 } 205 199 200 206 201 $OUTPUT->set_pagetitle(rcube_label('addressbook')); 207 202 -
program/steps/mail/compose.inc
rc17dc6a re2c610e 766 766 function rcmail_compose_attachment_field($attrib) 767 767 { 768 // allow the following attributes to be added to the <input> tag 769 $attrib_str = create_attrib_string($attrib, array('id', 'class', 'style', 'size')); 770 771 $out = '<input type="file" name="_attachments[]"'. $attrib_str . " />"; 772 return $out; 768 $attrib['type'] = 'file'; 769 $attrib['name'] = '_attachments[]'; 770 $field = new html_inputfield($attrib); 771 return $field->show(); 773 772 } 774 773 -
program/steps/mail/func.inc
r6d20d01 re2c610e 404 404 $attrib['id'] = 'rcmailcontentwindow'; 405 405 406 // allow the following attributes to be added to the <iframe> tag 407 $attrib_str = create_attrib_string($attrib, array('id', 'class', 'style', 'src', 'width', 'height', 'frameborder')); 408 $framename = $attrib['id']; 409 410 $out = sprintf('<iframe name="%s"%s></iframe>'."\n", 411 $framename, 412 $attrib_str); 413 414 $OUTPUT->set_env('contentframe', $framename); 406 $attrib['name'] = $attrib['id']; 407 408 $OUTPUT->set_env('contentframe', $attrib['id']); 415 409 $OUTPUT->set_env('blankpage', $attrib['src'] ? $OUTPUT->abs_url($attrib['src']) : 'program/blank.gif'); 416 410 417 return $out;411 return html::tag('iframe', $attrib); 418 412 } 419 413 … … 431 425 $OUTPUT->add_gui_object('countdisplay', $attrib['id']); 432 426 433 // allow the following attributes to be added to the <span> tag 434 $attrib_str = create_attrib_string($attrib, array('style', 'class', 'id')); 435 436 437 $out = '<span' . $attrib_str . '>'; 438 $out .= rcmail_get_messagecount_text(); 439 $out .= '</span>'; 440 return $out; 427 return html::span($attrib, rcmail_get_messagecount_text()); 441 428 } 442 429 … … 1141 1128 $attrib['src'] = Q('./?'.str_replace('_frame=', ($ctype_primary=='text' ? '_show=' : '_preload='), $_SERVER['QUERY_STRING'])); 1142 1129 1143 $attrib_str = create_attrib_string($attrib, array('id', 'class', 'style', 'src', 'width', 'height')); 1144 $out = '<iframe '. $attrib_str . "></iframe>"; 1145 1146 return $out; 1130 return html::tag('iframe', $attrib); 1147 1131 } 1148 1132 -
program/steps/settings/identities.inc
ra55606b re2c610e 37 37 $OUTPUT->set_env('contentframe', $attrib['name']); 38 38 39 $attrib_str = create_attrib_string($attrib, array('name', 'id', 'class', 'style', 'src', 'width', 'height', 'frameborder')); 40 $out = '<iframe'. $attrib_str . '></iframe>'; 41 42 return $out; 39 return html::tag('iframe', $attrib); 43 40 } 44 41
Note: See TracChangeset
for help on using the changeset viewer.
