Minahito
minah****@users*****
2006年 7月 13日 (木) 19:46:33 JST
Index: xoops2jp/html/modules/user/admin/actions/UserEditAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/UserEditAction.class.php:1.1.2.3 xoops2jp/html/modules/user/admin/actions/UserEditAction.class.php:1.1.2.4 --- xoops2jp/html/modules/user/admin/actions/UserEditAction.class.php:1.1.2.3 Tue Mar 28 22:31:14 2006 +++ xoops2jp/html/modules/user/admin/actions/UserEditAction.class.php Thu Jul 13 19:46:32 2006 @@ -1,4 +1,8 @@ <?php +/** + * @package user + * @version $Id: UserEditAction.class.php,v 1.1.2.4 2006/07/13 10:46:32 minahito Exp $ + */ if (!defined('XOOPS_ROOT_PATH')) exit(); @@ -9,7 +13,7 @@ { function _getId() { - return isset($_REQUEST['uid']) ? intval($_REQUEST['uid']) : 0; + return xoops_getrequest('uid'); } function &_getHandler() @@ -24,10 +28,10 @@ $this->mActionForm->prepare(); } - function executeViewInput(&$controller,&$xoopsUser,&$render) + function executeViewInput(&$controller, &$xoopsUser, &$render) { $render->setTemplateName("user_edit.html"); - $render->setAttribute("actionForm",$this->mActionForm); + $render->setAttribute("actionForm", $this->mActionForm); // // Get some objects for input form. @@ -38,7 +42,7 @@ $render->setAttribute('timezones', $timezones); $rankHandler =& xoops_getmodulehandler('ranks'); - $ranks =& $rankHandler->getObjects(new Criteria('rank_special',1)); + $ranks =& $rankHandler->getObjects(new Criteria('rank_special', 1)); $render->setAttribute('ranks', $ranks); @@ -64,12 +68,13 @@ $uorderOptions = array(0 => _OLDESTFIRST, 1 => _NEWESTFIRST); $render->setAttribute('uorderOptions', $uorderOptions); - // // notify option // - // Because abstract message catalog style is not decided, we load directly. + // + // TODO 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 . "/include/notification_constants.php"; @@ -87,14 +92,19 @@ $render->setAttribute('notify_modeOptions', $modeOptions); } - function executeViewSuccess(&$controller,&$xoopsUser,&$renderSystem) + function executeViewSuccess(&$controller, &$xoopsUser, &$render) { $controller->executeForward("./index.php?action=UserList"); } - function executeViewError(&$controller,&$xoopsUser,&$renderSystem) + function executeViewError(&$controller, &$xoopsUser, &$render) { - XCube_Utils::redirectHeader("index.php", 1, "*ERROR*"); + $controller->executeRedirect("index.php", 1, _AD_USER_ERROR_DBUPDATE_FAILED); + } + + function executeViewCancel(&$controller, &$xoopsUser, &$render) + { + $controller->executeForward("./index.php?action=UserList"); } }