added rc script

This commit is contained in:
SJ
2012-02-14 20:16:05 +01:00
parent cfb7b80120
commit bc60990c22
17 changed files with 154 additions and 27 deletions

View File

@ -14,17 +14,21 @@ class ControllerSearchSearch extends Controller {
$this->load->model('search/search');
$this->document->title = $this->data['text_simple_search'];
$this->data['searchtype'] = 'simple';
if(isset($this->request->get['type'])) {
if($this->request->get['type'] == 'advanced') {
$this->template = "search/advanced.tpl";
$this->data['searchtype'] = 'advanced';
$this->document->title = $this->data['text_advanced_search'];
}
if($this->request->get['type'] == 'expert') {
$this->template = "search/expert.tpl";
$this->data['searchtype'] = 'expert';
$this->document->title = $this->data['text_expert_search'];
}
}