roundcubemail/program/include/rcmail_output_html.php
protected function search_form($attrib)
    {
        // add some labels to client
        $this->add_label('searching');

        $attrib['name'] = '_q';

        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();

        $this->add_gui_object('qsearchbox', $attrib['id']);

        // add form tag around text field
        if (empty($attrib['form'])) {
            $out = $this->form_tag(array(
                    'name'     => "rcmqsearchform",
                    'onsubmit' => self::JS_OBJECT_NAME . ".command('search'); return false",
                    'style'    => "display:inline"
                ), $out);
        }

        return $out;
    }
protected function search_form($attrib)
    {
        // add some labels to client
        $this->add_label('searching');

        $attrib['name'] = '_q';

        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();

        $this->add_gui_object('qsearchbox', $attrib['id']);

        // add form tag around text field
        if (empty($attrib['form'])) {
            $out = $this->form_tag(array(
                    'name'     => "rcmqsearchform",
                    'onsubmit' => self::JS_OBJECT_NAME . ".command('search'); return false",
                    'style'    => "display:inline"
                ), $out);
        }

        return $out;
    }
protected function search_form ( $ attrib ) { // add some labels to client $ this -> add_label ( 'searching' ) ; $ attrib [ 'name' ] = '_q' ; 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 ( ) ; $ this -> add_gui_object ( 'qsearchbox' , $ attrib [ 'id' ] ) ; // add form tag around text field if ( empty ( $ attrib [ 'form' ] ) ) { $ out = $ this -> form_tag ( array ( 'name' => "rcmqsearchform" , 'onsubmit' => self :: JS_OBJECT_NAME . ".command('search'); return false" , 'style' => "display:inline" ) , $ out ) ; } return $ out ; }
GUI object 'searchform'
Returns code for search function

@param array $attrib Named parameters

@return string HTML code for the gui object
GUI object searchform Returns code for search function