changed the gui to use twitter's bootstrap

This commit is contained in:
SJ
2013-03-29 18:05:58 +01:00
parent 8e4dda968a
commit 324ee0c4ce
38 changed files with 9970 additions and 445 deletions

View File

@ -8,18 +8,13 @@ class ControllerCommonMenu extends Controller {
$this->id = "menu";
$this->template = "common/menu.tpl";
$db = Registry::get('db');
$this->data['admin_user'] = Registry::get('admin_user');
$this->data['auditor_user'] = Registry::get('auditor_user');
$this->data['readonly_admin'] = Registry::get('readonly_admin');
if($this->data['admin_user'] == 1) { $this->template = "common/menu-admin.tpl"; }
$this->render();
}

View File

@ -20,16 +20,19 @@ class ControllerPolicyRetention extends Controller {
$this->document->title = $this->data['text_retention_rules'];
$this->data['rules'] = array();
$this->data['error'] = '';
if(Registry::get('admin_user') == 0) {
die("go away");
}
$lang = Registry::get('language');
if($_SERVER['REQUEST_METHOD'] == 'POST') {
if($this->validate() == true) {
$rc = $this->model_policy_retention->add_new_rule($this->request->post);
} else {
$this->data['error'] = $lang->data['text_invalid_data'];
$this->data['error'] = $lang->data['text_missing_data'];
}
}