Changeset e2c610e in github


Ignore:
Timestamp:
Sep 21, 2008 3:33:38 AM (5 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
95fcc33
Parents:
f5d3769
Message:
  • use more 'html' class
Location:
program/steps
Files:
4 edited

Legend:

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

    rf89f03c re2c610e  
    153153     
    154154  $attrib['name'] = $attrib['id']; 
    155   $attrib_str = create_attrib_string($attrib, array('name', 'id', 'class', 'style', 'src', 'width', 'height', 'frameborder')); 
    156155 
    157156  $OUTPUT->set_env('contentframe', $attrib['name']); 
    158157  $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); 
    160160  } 
    161161 
     
    170170  $OUTPUT->add_gui_object('countdisplay', $attrib['id']); 
    171171 
    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()); 
    179173  } 
    180174 
     
    204198  } 
    205199 
     200 
    206201$OUTPUT->set_pagetitle(rcube_label('addressbook')); 
    207202   
  • program/steps/mail/compose.inc

    rc17dc6a re2c610e  
    766766function rcmail_compose_attachment_field($attrib) 
    767767{ 
    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(); 
    773772} 
    774773 
  • program/steps/mail/func.inc

    r6d20d01 re2c610e  
    404404    $attrib['id'] = 'rcmailcontentwindow'; 
    405405 
    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']); 
    415409  $OUTPUT->set_env('blankpage', $attrib['src'] ? $OUTPUT->abs_url($attrib['src']) : 'program/blank.gif'); 
    416410 
    417   return $out; 
     411  return html::tag('iframe', $attrib); 
    418412  } 
    419413 
     
    431425  $OUTPUT->add_gui_object('countdisplay', $attrib['id']); 
    432426 
    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()); 
    441428  } 
    442429 
     
    11411128  $attrib['src'] = Q('./?'.str_replace('_frame=', ($ctype_primary=='text' ? '_show=' : '_preload='), $_SERVER['QUERY_STRING'])); 
    11421129 
    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); 
    11471131  } 
    11481132 
  • program/steps/settings/identities.inc

    ra55606b re2c610e  
    3737  $OUTPUT->set_env('contentframe', $attrib['name']); 
    3838 
    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); 
    4340  } 
    4441 
Note: See TracChangeset for help on using the changeset viewer.