summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorSimon2011-04-11 10:36:42 +0200
committerSimon2011-04-11 10:36:42 +0200
commit72a98ce3f495968d47b8db6c571acaf5c3ed15af (patch)
treebfa560d07abbfef5713c736b1f6d1f7202c39b4b /library
parentBootmenu User/Admin View (diff)
downloadpbs2-72a98ce3f495968d47b8db6c571acaf5c3ed15af.tar.gz
pbs2-72a98ce3f495968d47b8db6c571acaf5c3ed15af.tar.xz
pbs2-72a98ce3f495968d47b8db6c571acaf5c3ed15af.zip
Suche in configs gefixxt
Diffstat (limited to 'library')
-rw-r--r--library/Pbs/Search.php13
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);