function quicksearchfields() { $result = ''; if ( $this->hasSearchFields() ) { if ( $this->pageNav !== null ) { $onchangeJs = $this->pageNav->js_limitstart(0); } else { $onchangeJs = 'cbParentForm(this).submit();'; } $result = '<input type="text" name="' . $this->fieldName( 'search' ) . '" value="' . $this->fieldValue( 'search' ) . '" class="inputbox" ' . 'onchange="' . $onchangeJs . '"' . ' />'; } return $result; }