diff options
author | Simon | 2011-04-11 10:36:42 +0200 |
---|---|---|
committer | Simon | 2011-04-11 10:36:42 +0200 |
commit | 72a98ce3f495968d47b8db6c571acaf5c3ed15af (patch) | |
tree | bfa560d07abbfef5713c736b1f6d1f7202c39b4b /library | |
parent | Bootmenu User/Admin View (diff) | |
download | pbs2-72a98ce3f495968d47b8db6c571acaf5c3ed15af.tar.gz pbs2-72a98ce3f495968d47b8db6c571acaf5c3ed15af.tar.xz pbs2-72a98ce3f495968d47b8db6c571acaf5c3ed15af.zip |
Suche in configs gefixxt
Diffstat (limited to 'library')
-rw-r--r-- | library/Pbs/Search.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/library/Pbs/Search.php b/library/Pbs/Search.php index 9f25d03..a148b08 100644 --- a/library/Pbs/Search.php +++ b/library/Pbs/Search.php @@ -8,9 +8,17 @@ class Pbs_Search{ private $module; private $countall; private $countresult; + private $type; public function searchForm(){ - $str = "<form style='float:left;' action='/user/".$this->module."/search'> + $str = "<form style='float:left;' action='"; + if($this->type == ''){ + $str .= "/user/".$this->module."/search"; + } + else{ + $str .= "/user/".$this->module."/search/type/".$this->type; + } + $str .= "'> <input type='text' id='search' name='search' ".(($this->searchTerm != '')?'value="'.htmlentities($this->searchTerm, ENT_QUOTES).'"':'')."> <button type='submit' class='searchbutton' value='search'> Search</button>"; @@ -67,6 +75,9 @@ class Pbs_Search{ public function setModule($m){ $this->module = $m; } + public function setType($t){ + $this->type = $t; + } public function setSearchTerm($search){ $this->searchTerm = trim($search); |