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();
 }
 /**
  * 
  * insertMenueCommand
  * 
  * @param String $ErrorString
  * @param String $StatusString
  */
 public function insertMenueCommand($ErrorString = "", $StatusString = "")
 {
     if (Controler_Main::getInstance()->getUserLevel() < BACKEND_USERLEVEL) {
         $ControlerStart = new Controler_Start();
         $ControlerStart->start();
         return false;
     }
     $Request = new Request();
     $ErrorString = "";
     $StatusString = "";
     $MenueFinder = new MenueFinder();
     $ContentFinder = new ContentFinder();
     $ContentManager = new ContentManager();
     $CommandFinder = new CommandFinder();
     $LinkName = $Request->getAsString("tb_LinkName");
     $MenueID = $Request->getAsString("MenueID");
     $InsertCommandID = $Request->getAsString("InsertCommandID");
     $InsertViewID = $Request->getAsString("InsertDisplayID");
     $InsertCommandGroupID = $Request->getAsString("InsertContentGroupID");
     $ContentCollection = $ContentFinder->findByMenueIdAndCommandId($MenueID, $InsertCommandID, $InsertViewID);
     $Content = $ContentCollection->getByIndex(0);
     $ID = $Content->getId();
     if ($ID != 0) {
         $ErrorString .= ":T_MENUE_ERROR2:";
     }
     if (strlen($ErrorString) != 0) {
         $this->showEditMenue($ErrorString, $StatusString);
         return false;
     }
     $Command = $CommandFinder->findById($InsertCommandID);
     $Position = 1;
     $Checker = $ContentManager->insertMenueCommandByMenueIdAndCommandId($MenueID, $InsertCommandID, $Command->getName(), $InsertViewID, $InsertCommandGroupID, $Position);
     if (false == $Checker) {
         $ErrorString .= ":T_MENUE_ERROR3:";
         $this->showEditMenue($ErrorString, $StatusString);
         return false;
     }
     $this->showEditMenue("", ":T_MENUE_INSERT_COMMAND_STATUS:");
 }
 /**
  * 
  * 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();
 }