| | |
| | | | | |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2005-2011, The Roundcube Dev Team | |
| | | | Licensed under the GNU GPL | |
| | | | | |
| | | | Licensed under the GNU General Public License version 3 or | |
| | | | any later version with exceptions for skins & plugins. | |
| | | | See the README file for a full license statement. | |
| | | | | |
| | | | PURPOSE: | |
| | | | Helper class to create valid XHTML code | |
| | |
| | | $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'))); |
| | | } |
| | | |
| | | /** |
| | |
| | | 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'); |
| | | '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 |