| | |
| | | { |
| | | var $app; |
| | | var $config; |
| | | var $task = ''; |
| | | var $framed = false; |
| | | var $pagetitle = ''; |
| | | var $env = array(); |
| | |
| | | $this->config = $this->app->config->all(); |
| | | |
| | | //$this->framed = $framed; |
| | | $this->task = $task; |
| | | $this->set_env('task', $task); |
| | | |
| | | // add common javascripts |
| | | $javascript = 'var '.JS_OBJECT_NAME.' = new rcube_webmail();'; |
| | |
| | | return Q($name); |
| | | } |
| | | if ($object=='version') { |
| | | return (string)RCMAIL_VERSION; |
| | | $ver = (string)RCMAIL_VERSION; |
| | | if (is_file(INSTALL_PATH . '.svn/entries')) { |
| | | if (preg_match('/Revision:\s(\d+)/', @shell_exec('svn info'), $regs)) |
| | | $ver .= ' [SVN r'.$regs[1].']'; |
| | | } |
| | | return $ver; |
| | | } |
| | | if ($object=='pagetitle') { |
| | | $task = $this->task; |
| | | $task = $this->env['task']; |
| | | $title = !empty($this->config['product_name']) ? $this->config['product_name'].' :: ' : ''; |
| | | |
| | | if (!empty($this->pagetitle)) { |
| | |
| | | array( |
| | | 'style', 'class', 'id', 'width', |
| | | 'height', 'border', 'hspace', |
| | | 'vspace', 'align', 'alt', |
| | | 'vspace', 'align', 'alt', 'tabindex' |
| | | ) |
| | | ); |
| | | $btn_content = sprintf('<img src="%s"%s />', $this->abs_url($attrib['image']), $attrib_str); |
| | |
| | | } |
| | | else if ($attrib['type']=='link') { |
| | | $btn_content = $attrib['label'] ? $attrib['label'] : $attrib['command']; |
| | | $link_attrib = array('href', 'onclick', 'title', 'id', 'class', 'style'); |
| | | $link_attrib = array('href', 'onclick', 'title', 'id', 'class', 'style', 'tabindex'); |
| | | } |
| | | else if ($attrib['type']=='input') { |
| | | $attrib['type'] = 'button'; |
| | |
| | | $attrib, |
| | | array( |
| | | 'type', 'value', 'onclick', |
| | | 'id', 'class', 'style' |
| | | 'id', 'class', 'style', 'tabindex' |
| | | ) |
| | | ); |
| | | $out = sprintf('<input%s disabled="disabled" />', $attrib_str); |