Subversion Repositories SmartDukaan

Rev

Rev 14989 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14989 Rev 15503
Line 202... Line 202...
202
			$list = $this->SearchTerm->find('all',$options);
202
			$list = $this->SearchTerm->find('all',$options);
203
			$this->set('searchTerms', $list);
203
			$this->set('searchTerms', $list);
204
			$this->set('userId', $id);
204
			$this->set('userId', $id);
205
 
205
 
206
	}
206
	}
-
 
207
	public function admin_search($id=null){
-
 
208
			$data=$this->request->query('search');
-
 
209
			$options = array('conditions' => array('SearchTerm.search_term LIKE '=> '%'.$data.'%'));
-
 
210
			$list = $this->SearchTerm->find('all',$options);
-
 
211
			$this->set('searchTerms', $list);
-
 
212
			$this->set('search_term', $data);
-
 
213
	}
207
}
214
}