Ignore:
Timestamp:
Jan 21, 2016, 3:20:48 PM (9 years ago)
Author:
chronos
Message:
  • Removed: Execute flag from PHP files in repo.
  • Modified: BaseView class separated to file View.php.
  • Added: Left and Right bar items are now registered from their modules using callbacks.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Search/Search.php

    r846 r861  
    2020  {
    2121    $this->System->RegisterPage('search', 'PageSearch');
     22    $this->System->RegisterPageBarItem('Left', 'Search', array($this, 'ShowSearchBox'));
    2223  }
    2324
     
    3233  {
    3334    unset($this->SearchItems[$Name]);
     35  }
     36
     37  function ShowSearchBox()
     38  {
     39    $Output = '<strong>'.T('Search').':</strong>'.
     40      '<form action="'.$this->System->Link('/search/').'" method="get"><div>'.
     41      '<table>'.
     42      '<tr>'.
     43      '<td><input type="text" name="text" size="13" /></td>'.
     44      '</tr>'.
     45      '<tr>'.
     46      '<th><input type="submit" value="'.T('Do search').'" /></th>'.
     47      '</tr>'.
     48      '</table></div>'.
     49      '</form>';
     50    return($Output);
    3451  }
    3552}
Note: See TracChangeset for help on using the changeset viewer.