diff --git a/admin/admin_permissions.php b/admin/admin_permissions.php index 0196b1e3..edd1729a 100644 --- a/admin/admin_permissions.php +++ b/admin/admin_permissions.php @@ -119,7 +119,7 @@ public function render() if ('' !== $elements[$i]->getDescription()) { $ret .= '

' . $elements[$i]->getDescription() . ''; } - $ret .= "\n\n" . $elements[$i]->render() . "\n\n"; + $ret .= "\n\n" . $elements[$i]->render() . "\n\n"; } else { $hidden .= $elements[$i]->render(); } @@ -214,7 +214,7 @@ public function _renderOptionTree(&$tree, $option, $prefix, $parentIds = []) xoops_cp_header(); $adminObject->displayNavigation(basename(__FILE__)); echo "" . _AM_NEWBB_PERM_ACTION . ''; - $opform = new XoopsSimpleForm(_AM_NEWBB_PERM_ACTION, 'actionform', 'admin_permissions.php', 'get'); + $opform = new XoopsSimpleForm(_AM_NEWBB_PERM_ACTION_HELP_TEMPLAT, 'actionform', 'admin_permissions.php', 'get'); $op_select = new XoopsFormSelect('', 'action'); $op_select->setExtra('onchange="document.forms.actionform.submit()"'); $op_select->addOptionArray([ @@ -260,16 +260,16 @@ public function _renderOptionTree(&$tree, $option, $prefix, $parentIds = []) $ret = '

' . _AM_NEWBB_PERM_TEMPLATE . '

' . _AM_NEWBB_PERM_TEMPLATE_DESC . '


'; $ret .= "
\n\n"; $ret .= implode("\n", $elements); - $ret .= ''; $ret .= '
'; + $ret .= '
'; $ret .= $tray->render(); $ret .= '
'; echo $ret; include_once __DIR__ . '/admin_footer.php'; break; - + case 'template_save': - // $res = $newbbpermHandler->setTemplate($_POST['perms'], $groupid = 0); + // $res = $newbbpermHandler->setTemplate($_POST['perms'], $groupid = 0); $res = $newbbpermHandler->setTemplate(Request::getArray('perms', '', 'POST'), $groupid = 0); if ($res) { redirect_header('admin_permissions.php', 2, _AM_NEWBB_PERM_TEMPLATE_CREATED); @@ -287,7 +287,7 @@ public function _renderOptionTree(&$tree, $option, $prefix, $parentIds = []) xoops_cp_header(); $adminObject->displayNavigation(basename(__FILE__)); echo "" . _AM_NEWBB_PERM_ACTION . ''; - $opform = new XoopsSimpleForm(_AM_NEWBB_PERM_ACTION, 'actionform', 'admin_permissions.php', 'get'); + $opform = new XoopsSimpleForm(_AM_NEWBB_PERM_ACTION_HELP_APPLY, 'actionform', 'admin_permissions.php', 'get'); $op_select = new XoopsFormSelect('', 'action'); $op_select->setExtra('onchange="document.forms.actionform.submit()"'); $op_select->addOptionArray([ @@ -365,7 +365,7 @@ public function _renderOptionTree(&$tree, $option, $prefix, $parentIds = []) $adminObject->displayNavigation(basename(__FILE__)); echo "" . _AM_NEWBB_PERM_ACTION . ''; - $opform = new XoopsSimpleForm(_AM_NEWBB_PERM_ACTION, 'actionform', 'admin_permissions.php', 'get'); + $opform = new XoopsSimpleForm(_AM_NEWBB_PERM_ACTION_HELP, 'actionform', 'admin_permissions.php', 'get'); $op_select = new XoopsFormSelect('', 'action'); $op_select->setExtra('onchange="document.forms.actionform.submit()"'); $op_select->addOptionArray([ diff --git a/language/english/admin.php b/language/english/admin.php index 168abff0..98f6f809 100644 --- a/language/english/admin.php +++ b/language/english/admin.php @@ -185,6 +185,9 @@ define('_AM_NEWBB_PERM_TEMPLATEAPP', 'Apply default permission'); define('_AM_NEWBB_PERM_TEMPLATE_APPLIED', 'Default permissions have been applied to forums'); define('_AM_NEWBB_PERM_ACTION', 'Permission management tools'); +define('_AM_NEWBB_PERM_ACTION_HELP', 'Allows you to set the access rights for each function and group'); +define('_AM_NEWBB_PERM_ACTION_HELP_TEMPLAT', 'Allows you to create an access rights template for automatic installation when creating a forum.'); +define('_AM_NEWBB_PERM_ACTION_HELP_APPLY', 'Allows you to apply a permission template to already created forums.'); define('_AM_NEWBB_PERM_SETBYGROUP', 'Set permissions directly by group'); // admin_forum_prune.php define('_AM_NEWBB_PRUNE_RESULTS_TITLE', 'Prune Results');