Minahito
minah****@users*****
2006年 9月 25日 (月) 18:41:21 JST
Index: xoops2jp/html/modules/user/admin/actions/UserSearchAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/UserSearchAction.class.php:1.1.2.2 xoops2jp/html/modules/user/admin/actions/UserSearchAction.class.php:1.1.2.3 --- xoops2jp/html/modules/user/admin/actions/UserSearchAction.class.php:1.1.2.2 Thu Jul 13 19:48:04 2006 +++ xoops2jp/html/modules/user/admin/actions/UserSearchAction.class.php Mon Sep 25 18:41:21 2006 @@ -1,7 +1,7 @@ <?php /** * @package user - * @version $Id: UserSearchAction.class.php,v 1.1.2.2 2006/07/13 10:48:04 minahito Exp $ + * @version $Id: UserSearchAction.class.php,v 1.1.2.3 2006/09/25 09:41:21 minahito Exp $ */ if (!defined('XOOPS_ROOT_PATH')) exit(); @@ -29,6 +29,16 @@ { $render->setTemplateName("user_search.html"); $render->setAttribute("actionForm", $this->mActionForm); + + $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); } }