| | |
| | | $attr = array('src' => $attr); |
| | | } |
| | | return self::tag('img', $attr + array('alt' => ''), null, array_merge(self::$common_attrib, |
| | | array('src','alt','width','height','border','usemap'))); |
| | | array('src','alt','width','height','border','usemap','onclick'))); |
| | | } |
| | | |
| | | /** |
| | |
| | | $attrib_arr[] = $key . '="' . Q($value, 'strict', false) . '"'; |
| | | } |
| | | else { |
| | | $attrib_arr[] = $key . '="' . Q($value) . '"'; |
| | | $attrib_arr[] = $key . '="' . htmlspecialchars($value, ENT_COMPAT, RCMAIL_CHARSET) . '"'; |
| | | } |
| | | } |
| | | return count($attrib_arr) ? ' '.implode(' ', $attrib_arr) : ''; |
| | |
| | | { |
| | | protected $tagname = 'input'; |
| | | protected $type = 'text'; |
| | | protected $allowed = array('type','name','value','size','tabindex', |
| | | 'autocomplete','checked','onchange','onclick','disabled','readonly', |
| | | 'spellcheck','results','maxlength','src','multiple'); |
| | | protected $allowed = array( |
| | | 'type','name','value','size','tabindex','autocapitalize', |
| | | 'autocomplete','checked','onchange','onclick','disabled','readonly', |
| | | 'spellcheck','results','maxlength','src','multiple','placeholder'); |
| | | |
| | | /** |
| | | * Object constructor |
| | |
| | | |
| | | if ($attrib['type']) { |
| | | $this->type = $attrib['type']; |
| | | } |
| | | |
| | | if ($attrib['newline']) { |
| | | $this->newline = true; |
| | | } |
| | | } |
| | | |
| | |
| | | * @package HTML |
| | | */ |
| | | |
| | | class html_hiddenfield extends html_inputfield |
| | | class html_hiddenfield extends html |
| | | { |
| | | protected $tagname = 'input'; |
| | | protected $type = 'hidden'; |
| | | protected $fields_arr = array(); |
| | | protected $newline = true; |
| | | protected $allowed = array('type','name','value','onchange','disabled','readonly'); |
| | | |
| | | /** |
| | | * Constructor |
| | |
| | | $cell->content = $cont; |
| | | |
| | | $this->rows[$this->rowindex]->cells[$this->colindex] = $cell; |
| | | $this->colindex++; |
| | | $this->colindex += max(1, intval($attr['colspan'])); |
| | | |
| | | if ($this->attrib['cols'] && $this->colindex == $this->attrib['cols']) { |
| | | if ($this->attrib['cols'] && $this->colindex >= $this->attrib['cols']) { |
| | | $this->add_row(); |
| | | } |
| | | } |