added folder handling to webui

This commit is contained in:
SJ
2012-09-15 15:30:35 +02:00
parent b2fa1bf3b1
commit b03ca2effb
18 changed files with 340 additions and 19 deletions

View File

@ -14,6 +14,7 @@ class ControllerSearchFolder extends Controller {
$this->load->model('folder/folder');
$this->data['folders'] = $this->model_folder_folder->get_folders_for_user();
$this->data['extra_folders'] = $this->model_folder_folder->get_extra_folders_for_user();
$this->render();
}

View File

@ -17,6 +17,7 @@ class ControllerSearchHelper extends Controller {
'note' => '',
'ref' => '',
'folders' => '',
'extra_folders' => '',
'any' => ''
);
@ -94,6 +95,7 @@ class ControllerSearchHelper extends Controller {
private function fixup_post_request() {
if(isset($this->request->post['ref'])) { $this->a['ref'] = $this->request->post['ref']; }
if(isset($this->request->post['folders'])) { $this->a['folders'] = $this->request->post['folders']; }
if(isset($this->request->post['extra_folders'])) { $this->a['extra_folders'] = $this->request->post['extra_folders']; }
$this->a['sort'] = $this->request->post['sort'];
$this->a['order'] = $this->request->post['order'];