From 72a98ce3f495968d47b8db6c571acaf5c3ed15af Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 11 Apr 2011 10:36:42 +0200 Subject: Suche in configs gefixxt --- library/Pbs/Search.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'library') 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 = "
+ $str = "module."/search"; + } + else{ + $str .= "/user/".$this->module."/search/type/".$this->type; + } + $str .= "'> searchTerm != '')?'value="'.htmlentities($this->searchTerm, ENT_QUOTES).'"':'')."> "; @@ -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); -- cgit v1.2.3-55-g7522