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

@ -0,0 +1,32 @@
<?php
class ControllerCommonLayoutAudit extends Controller {
protected function index() {
$this->data['title'] = $this->document->title;
$this->template = "common/layout-audit.tpl";
$this->data['search_args'] = '';
$this->data['open_saved_search_box'] = 0;
$this->children = array(
"common/menu",
"search/folder",
"search/popup",
"common/footer"
);
$this->render();
}
}
?>

View File

@ -1,24 +1,24 @@
<?php
class ControllerCommonLayoutNew extends Controller {
class ControllerCommonLayoutSearch extends Controller {
protected function index() {
$this->data['title'] = $this->document->title;
$this->template = "common/layout-new.tpl";
$this->template = "common/layout-search.tpl";
$this->data['search_args'] = '';
$this->data['open_saved_search_box'] = 0;
if(isset($_SERVER['REQUEST_URI'])) {
/*if(isset($_SERVER['REQUEST_URI'])) {
$this->data['search_args'] = preg_replace("/\/([\w]+)\.php\?{0,1}/", "", $_SERVER['REQUEST_URI']);
if(preg_match("/\&a\=1/", $this->data['search_args'])) { $this->data['open_saved_search_box'] = 1; }
}
}*/
$this->children = array(