Changeset b190970 in github for program/steps/mail/func.inc


Ignore:
Timestamp:
Dec 1, 2006 1:06:16 PM (6 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
53ed1e3
Parents:
740e9ec
Message:

Introducing preview pane and conditional skin tags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/steps/mail/func.inc

    r31c1718 rb190970  
    559559 
    560560 
     561// return an HTML iframe for loading mail content 
     562function rcmail_messagecontent_frame($attrib) 
     563  { 
     564  global $OUTPUT, $JS_OBJECT_NAME; 
     565   
     566  if (empty($attrib['id'])) 
     567    $attrib['id'] = 'rcmailcontentwindow'; 
     568 
     569  // allow the following attributes to be added to the <iframe> tag 
     570  $attrib_str = create_attrib_string($attrib, array('id', 'class', 'style', 'src', 'width', 'height', 'frameborder')); 
     571  $framename = $attrib['id']; 
     572 
     573  $out = sprintf('<iframe name="%s"%s></iframe>'."\n", 
     574         $framename, 
     575         $attrib_str); 
     576 
     577  $OUTPUT->add_script("$JS_OBJECT_NAME.set_env('contentframe', '$framename');"); 
     578 
     579  return $out; 
     580  } 
     581 
    561582// return code for search function 
    562583function rcmail_search_form($attrib) 
Note: See TracChangeset for help on using the changeset viewer.