Minahito
minah****@users*****
2006年 1月 9日 (月) 02:52:38 JST
Index: xoops2jp/html/modules/user/admin/actions/UserUserEditAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/UserUserEditAction.class.php:1.1.2.2 xoops2jp/html/modules/user/admin/actions/UserUserEditAction.class.php:1.1.2.3 --- xoops2jp/html/modules/user/admin/actions/UserUserEditAction.class.php:1.1.2.2 Sun Jan 8 23:02:10 2006 +++ xoops2jp/html/modules/user/admin/actions/UserUserEditAction.class.php Mon Jan 9 02:52:38 2006 @@ -5,10 +5,6 @@ class UserUserEditAction extends User_AbstractEditAction { - function execute(&$controller,&$xoopsUser) - { - } - function _getId() { return isset($_REQUEST['uid']) ? intval($_REQUEST['uid']) : 0; @@ -40,9 +36,19 @@ $render->setAttribute('timezones', $timezones); $rankHandler =& xoops_getmodulehandler('rank'); - $ranks =& $rankHandler->getObjects(); + $ranks =& $rankHandler->getObjects(new Criteria('rank_special',1)); $render->setAttribute('ranks', $ranks); + + $groupHandler =& xoops_gethandler('group'); + $groups =& $groupHandler->getObjects(null, true); + + $groupOptions = array(); + foreach ($groups as $gid => $group) { + $groupOptions[$gid] = $group->getVar('name'); + } + + $render->setAttribute('groupOptions', $groupOptions); // // umode option @@ -63,7 +69,7 @@ // Because abstract message catalog style is not decided, we load directly. $root =& XCube_Root::getSingleton(); - require_once XOOPS_ROOT_PATH. "/language/" . $root->mController->getConfig('language') . "/notification.php"; + require_once XOOPS_ROOT_PATH . "/language/" . $root->mController->getConfig('language') . "/notification.php"; require_once XOOPS_ROOT_PATH . "/include/notification_constants.php"; $methodOptions = array(XOOPS_NOTIFICATION_METHOD_DISABLE => _NOT_METHOD_DISABLE,