piler/webui/controller/common/layout-new.php

40 lines
833 B
PHP
Raw Normal View History

2012-02-08 23:14:28 +01:00
<?php
2012-09-06 15:27:20 +02:00
class ControllerCommonLayoutNew extends Controller {
2012-02-08 23:14:28 +01:00
protected function index() {
$this->data['title'] = $this->document->title;
2012-09-06 15:27:20 +02:00
$this->template = "common/layout-new.tpl";
2012-02-08 23:14:28 +01:00
$this->data['search_args'] = '';
$this->data['open_saved_search_box'] = 0;
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(
"common/menu",
2012-09-06 15:27:20 +02:00
"search/folder",
"search/popup",
2012-02-08 23:14:28 +01:00
"common/footer"
);
$this->render();
}
}
?>