Fix search box on Safari and make pages validate
| | |
| | | { |
| | | protected $tagname = 'input'; |
| | | protected $type = 'text'; |
| | | protected $allowed = array('type','name','value','size','tabindex','autocomplete','checked','onchange','onclick','disabled','readonly','spellcheck'); |
| | | protected $allowed = array('type','name','value','size','tabindex','autocomplete','checked','onchange','onclick','disabled','readonly','spellcheck','results'); |
| | | |
| | | public function __construct($attrib = array()) |
| | | { |
| | |
| | | $this->ns = ($this->ns4 || stristr($HTTP_USER_AGENT, 'netscape')); |
| | | $this->ie = stristr($HTTP_USER_AGENT, 'compatible; msie') && !$this->opera; |
| | | $this->mz = stristr($HTTP_USER_AGENT, 'mozilla/5'); |
| | | $this->safari = stristr($HTTP_USER_AGENT, 'safari'); |
| | | $this->khtml = stristr($HTTP_USER_AGENT, 'khtml'); |
| | | $this->safari = ($this->khtml || stristr($HTTP_USER_AGENT, 'safari')); |
| | | |
| | | if ($this->ns) { |
| | | $test = eregi("mozilla\/([0-9\.]+)", $HTTP_USER_AGENT, $regs); |
| | |
| | | |
| | | $this->app = rcmail::get_instance(); |
| | | $this->config = $this->app->config->all(); |
| | | $this->browser = new rcube_browser(); |
| | | |
| | | //$this->framed = $framed; |
| | | $this->set_env('task', $task); |
| | |
| | | return ''; |
| | | } |
| | | |
| | | $browser = new rcube_browser(); |
| | | |
| | | // try to find out the button type |
| | | if ($attrib['type']) { |
| | | $attrib['type'] = strtolower($attrib['type']); |
| | |
| | | $attrib['alt'] = Q(rcube_label($attrib['alt'])); |
| | | } |
| | | // set title to alt attribute for IE browsers |
| | | if ($browser->ie && $attrib['title'] && !$attrib['alt']) { |
| | | if ($this->browser->ie && $attrib['title'] && !$attrib['alt']) { |
| | | $attrib['alt'] = $attrib['title']; |
| | | unset($attrib['title']); |
| | | } |
| | |
| | | if (empty($attrib['id'])) { |
| | | $attrib['id'] = 'rcmqsearchbox'; |
| | | } |
| | | if ($attrib['type'] == 'search' && !$this->browser->khtml) { |
| | | unset($attrib['type'], $attrib['results']); |
| | | } |
| | | |
| | | $input_q = new html_inputfield($attrib); |
| | | $out = $input_q->show(); |
| | | |
| | |
| | | #messagebody |
| | | { |
| | | position:relative; |
| | | min-height: 300px; |
| | | padding-bottom: 10px; |
| | | background-color: #FFFFFF; |
| | | } |
| | |
| | | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head> |
| | | <title></title> |
| | | </head> |
| | | <body style="background-color:#F2F2F2;"> |
| | | |