heavy code cleanup in the webui

This commit is contained in:
SJ
2013-02-11 20:24:19 +01:00
parent 5286bc7d1c
commit 5535a64de4
76 changed files with 1914 additions and 3744 deletions

View File

@ -16,24 +16,12 @@ class ControllerSearchSave extends Controller {
$this->load->model('search/search');
//print_r($this->request->post); exit;
if(isset($this->request->post['save'])) {
$a = preg_replace("/\&save=1$/", "", http_build_query($this->request->post));
$this->model_search_search->add_search_term($a);
}
$this->data['searchterms'] = $this->model_search_search->get_search_terms();
//print_r($this->data['searchterms']); exit;
$this->data['n'] = count($this->data['searchterms']);
$this->data['select_size'] = $this->data['n'] + 1;
if($this->data['select_size'] > 7) { $this->data['select_size'] = 7; }
$this->render();
}
}

View File

@ -7,7 +7,7 @@ class ControllerSearchSearch extends Controller {
$this->id = "content";
$this->template = "search/search.tpl";
$this->layout = "common/layout-new";
$this->layout = "common/layout-search";
$request = Registry::get('request');
$db = Registry::get('db');