39 $a_mod_value = array();
40 $r_mod_value = array();
41 $r_block_value = array();
43 $sysperm_handler =
$xoops->getHandlerGroupperm();
44 $s_cat_value = $sysperm_handler->getItemIds(
'system_admin', $obj->
getVar(
'groupid'));
48 $a_mod_value =
$moduleperm_handler->getItemIds(
'module_admin', $thisgroup->getVar(
'groupid'));
49 $r_mod_value =
$moduleperm_handler->getItemIds(
'module_read', $thisgroup->getVar(
'groupid'));
53 include_once
$xoops->path(
'/modules/system/constants.php');
56 parent::__construct(
$title,
"groupform",
'admin.php',
"post",
true);
57 $this->
setExtra(
'enctype="multipart/form-data"');
66 $s_cat_checkbox_all->setExtra(
" onclick='xoopsCheckGroup(\"groupform\", \"catbox\" , \"system_catids[]\");' ");
67 $s_cat_checkbox_all->setClass(
'xo-checkall');
68 $system_catids->addElement($s_cat_checkbox_all);
75 include \XoopsBaseConfig::get(
'root-path') .
'/modules/system/admin/' . $file .
'/xoops_version.php';
77 if (
$xoops->getModuleConfig(
'active_' . $file,
'system') == 1) {
84 $system_catids->addElement($s_cat_checkbox);
90 $s_admin_checkbox_all->setExtra(
" onclick='xoopsCheckGroup(\"groupform\", \"adminbox\" , \"admin_mids[]\");' ");
91 $s_admin_checkbox_all->setClass(
'xo-checkall');
92 $admin_mids->addElement($s_admin_checkbox_all);
101 $admin_mids->addElement($a_mod_checkbox);
107 $s_mod_checkbox_all->setExtra(
" onclick='xoopsCheckGroup(\"groupform\", \"readbox\" , \"read_mids[]\");' ");
108 $s_mod_checkbox_all->setClass(
'xo-checkall');
109 $read_mids->addElement($s_mod_checkbox_all);
116 $read_mids->addElement($r_mod_checkbox);
124 $block_handler =
$xoops->getHandlerBlock();
125 $blocks_obj = $block_handler->getDistinctObjects(
126 new Criteria(
"mid",
"('" . implode(
"', '", array_keys($module_list)) .
"')",
"IN"),
130 $blocks_module = array();
131 foreach (array_keys($blocks_obj) as $bid) {
132 $title = $blocks_obj[$bid]->getVar(
"title");
133 $blocks_module[$blocks_obj[$bid]->getVar(
'mid')][$blocks_obj[$bid]->getVar(
'bid')] =
134 empty(
$title) ? $blocks_obj[$bid]->getVar(
"name") :
$title;
136 ksort($blocks_module);
141 $s_checkbox_all->setExtra(
" onclick='xoopsCheckGroup(\"groupform\", \"blocksbox\" , \"read_bids[]\");' ");
142 $s_checkbox_all->setClass(
'xo-checkall');
143 $r_block_tray->addElement($s_checkbox_all);
144 foreach (array_keys($blocks_module) as
$mid) {
146 $new_blocks_array = array();
147 foreach ($blocks_module[$mid] as $key => $value) {
149 .
"/modules/system/admin.php?fct=blocksadmin&op=edit&bid={$key}' "
150 .
"title='ID: {$key}' rel='external'>{$value}</a>";
153 '<strong>' . $module_list[$mid] .
'</strong><br />',
158 $r_block_checkbox->addOptionArray($new_blocks_array);
159 $r_block_tray->addElement($r_block_checkbox);
160 unset($r_block_checkbox);
162 if (!$obj->
isNew()) {
const BLOCK_ACCESS_RIGHTS
const SYSTEM_ADMIN_RIGHTS
if($uname== ''||$pass== '') $member_handler
if(!isset($xoops->paths[$path_type])) if($path_type== 'var') $file
getVar($key, $format= 's')
const MODULE_ADMIN_RIGHTS
const MODULE_ACCESS_RIGHTS