public function showCommandManagement($ErrorString = "", $StatusString = "") { if (Controler_Main::getInstance()->getUserLevel() < BACKEND_USERLEVEL) { $ControlerStart = new Controler_Start(); $ControlerStart->start(); return false; } $Request = new Request(); $CommandFinder = new CommandFinder(); $CommandCollection = $CommandFinder->findAll(); $DeviceFinder = new DeviceFinder(); $DeviceCollection = $DeviceFinder->findAll(); $Template = Template::getInstance("tpl_BE_CommandManager.php"); $Template->assign("CommandCollection", $CommandCollection); $Template->assign("DeviceCollection", $DeviceCollection); $Template->assign("ErrorString", $ErrorString); $Template->assign("StatusString", $StatusString); $Template->render(); }
/** * * showEditMenue * * @param String $ErrorString * @param String $StatusString */ public function showEditMenue($ErrorString = "", $StatusString = "") { if (Controler_Main::getInstance()->getUserLevel() < BACKEND_USERLEVEL) { $ControlerStart = new Controler_Start(); $ControlerStart->start(); return false; } $Request = new Request(); $ID = $Request->getAsInt("MenueID"); $Menue = Menue::getEmptyInstance(); $MenueFinder = new MenueFinder(); $Menue = $MenueFinder->findById($ID); $MenueCollection = $MenueFinder->findAll(); $ContentGroupFinder = new ContentGroupFinder(); $ContentGroupCollection = $ContentGroupFinder->findAll(); $ContentFinder = new ContentFinder(); $ContentCollection = $ContentFinder->findAll(); $CommandFinder = new CommandFinder(); $CommandCollection = $CommandFinder->findAll(); $ViewFinder = new ViewFinder(); $ViewCollection = $ViewFinder->findAll(); $Template = Template::getInstance("tpl_BE_MenueEdit.php"); $Template->assign("Menue", $Menue); $Template->assign("MenueCollection", $MenueCollection); $Template->assign("ContentGroupCollection", $ContentGroupCollection); $Template->assign("ContentCollection", $ContentCollection); $Template->assign("CommandCollection", $CommandCollection); $Template->assign("ViewCollection", $ViewCollection); $Template->assign("MenueId", $ID); $Template->assign("ErrorString", $ErrorString); $Template->assign("StatusString", $StatusString); if (isset($StatusString)) { $Template->render(true, true); } else { $Template->render(); } }
/** * * showEditUserGroup * * @param String $ErrorString * @param String $StatusString */ public function showEditUserGroup($ErrorString = "", $StatusString = "") { if (Controler_Main::getInstance()->getUserLevel() < BACKEND_USERLEVEL) { $ControlerStart = new Controler_Start(); $ControlerStart->start(); return false; } $Request = new Request(); $UserGroupID = $Request->getAsInt("UserGroupID"); $UserGroup = UserGroup::getEmptyInstance(); $UserGroupFinder = new UserGroupFinder(); $UserGroup = $UserGroupFinder->findById($UserGroupID); $CommandFinder = new CommandFinder(); $CommandCollection = $CommandFinder->findAll(); $RightFinder = new RightFinder(); $RightCollection = $RightFinder->findByUserGroupId($UserGroupID); $Template = Template::getInstance("tpl_BE_UserGroupEdit.php"); $Template->assign("CommandCollection", $CommandCollection); $Template->assign("RightCollection", $RightCollection); $Template->assign("UserGroup", $UserGroup); $Template->assign("UserGroupId", $UserGroupID); $Template->assign("ErrorString", $ErrorString); $Template->assign("StatusString", $StatusString); $Template->render(); }