Changeset 861 for trunk/Modules/Search/Search.php
- Timestamp:
- Jan 21, 2016, 3:20:48 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Search/Search.php
r846 r861 20 20 { 21 21 $this->System->RegisterPage('search', 'PageSearch'); 22 $this->System->RegisterPageBarItem('Left', 'Search', array($this, 'ShowSearchBox')); 22 23 } 23 24 … … 32 33 { 33 34 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); 34 51 } 35 52 }
Note:
See TracChangeset
for help on using the changeset viewer.