Minahito
minah****@users*****
2006年 1月 19日 (木) 21:07:02 JST
Index: xoops2jp/html/modules/user/admin/actions/UserMailjobEditAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/UserMailjobEditAction.class.php:1.1.2.1 xoops2jp/html/modules/user/admin/actions/UserMailjobEditAction.class.php:removed --- xoops2jp/html/modules/user/admin/actions/UserMailjobEditAction.class.php:1.1.2.1 Tue Jan 10 08:25:19 2006 +++ xoops2jp/html/modules/user/admin/actions/UserMailjobEditAction.class.php Thu Jan 19 21:07:02 2006 @@ -1,42 +0,0 @@ -<?php - -require_once XOOPS_MODULE_PATH . "/user/class/AbstractEditAction.class.php"; -require_once XOOPS_MODULE_PATH . "/user/admin/forms/MailjobEditForm.class.php"; - -class UserMailjobEditAction extends User_AbstractEditAction -{ - function _getId() - { - return isset($_REQUEST['id']) ? intval($_REQUEST['id']) : 0; - } - - function &_getHandler() - { - $handler =& xoops_getmodulehandler('mailjob'); - return $handler; - } - - function _setupActionForm() - { - $this->mActionForm =& new User_MailjobEditForm(); - $this->mActionForm->prepare(); - } - - function executeViewInput(&$controller,&$xoopsUser,&$render) - { - $render->setTemplateName("mailjob_edit.html"); - $render->setAttribute("actionForm",$this->mActionForm); - } - - function executeViewSuccess(&$controller,&$xoopsUser,&$renderSystem) - { - XCube_Utils::redirectHeader("index.php", 1, "*SUCCESS*"); - } - - function executeViewError(&$controller,&$xoopsUser,&$renderSystem) - { - XCube_Utils::redirectHeader("index.php", 1, "*ERROR*"); - } -} - -?> \ No newline at end of file Index: xoops2jp/html/modules/user/admin/actions/UserUserEditAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/UserUserEditAction.class.php:1.1.2.4 xoops2jp/html/modules/user/admin/actions/UserUserEditAction.class.php:removed --- xoops2jp/html/modules/user/admin/actions/UserUserEditAction.class.php:1.1.2.4 Thu Jan 12 01:47:26 2006 +++ xoops2jp/html/modules/user/admin/actions/UserUserEditAction.class.php Thu Jan 19 21:07:02 2006 @@ -1,99 +0,0 @@ -<?php - -require_once XOOPS_MODULE_PATH . "/user/class/AbstractEditAction.class.php"; -require_once XOOPS_MODULE_PATH . "/user/admin/forms/UserAdminEditForm.class.php"; - -class UserUserEditAction extends User_AbstractEditAction -{ - function _getId() - { - return isset($_REQUEST['uid']) ? intval($_REQUEST['uid']) : 0; - } - - function &_getHandler() - { - $handler =& xoops_getmodulehandler('users'); - return $handler; - } - - function _setupActionForm() - { - $this->mActionForm =& new User_UserAdminEditForm(); - $this->mActionForm->prepare(); - } - - function executeViewInput(&$controller,&$xoopsUser,&$render) - { - $render->setTemplateName("user_edit.html"); - $render->setAttribute("actionForm",$this->mActionForm); - - // - // Get some objects for input form. - // - $tzoneHandler =& xoops_gethandler('timezone'); - $timezones =& $tzoneHandler->getObjects(); - - $render->setAttribute('timezones', $timezones); - - $rankHandler =& xoops_getmodulehandler('rank'); - $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 - // - $umodeOptions = array("nest" => _NESTED, "flat" => _FLAT, "thread" => _THREADED); - $render->setAttribute('umodeOptions', $umodeOptions); - - // - // uorder option - // - $uorderOptions = array(0 => _OLDESTFIRST, 1 => _NEWESTFIRST); - $render->setAttribute('uorderOptions', $uorderOptions); - - - // - // notify option - // - - // 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"; - - $methodOptions = array(XOOPS_NOTIFICATION_METHOD_DISABLE => _NOT_METHOD_DISABLE, - XOOPS_NOTIFICATION_METHOD_PM => _NOT_METHOD_PM, - XOOPS_NOTIFICATION_METHOD_EMAIL => _NOT_METHOD_EMAIL - ); - $render->setAttribute('notify_methodOptions', $methodOptions); - - $modeOptions = array(XOOPS_NOTIFICATION_MODE_SENDALWAYS => _NOT_MODE_SENDALWAYS, - XOOPS_NOTIFICATION_MODE_SENDONCETHENDELETE => _NOT_MODE_SENDONCE, - XOOPS_NOTIFICATION_MODE_SENDONCETHENWAIT => _NOT_MODE_SENDONCEPERLOGIN - ); - $render->setAttribute('notify_modeOptions', $modeOptions); - } - - function executeViewSuccess(&$controller,&$xoopsUser,&$renderSystem) - { - XCube_Utils::redirectHeader("index.php", 1, "*SUCCESS*"); - } - - function executeViewError(&$controller,&$xoopsUser,&$renderSystem) - { - XCube_Utils::redirectHeader("index.php", 1, "*ERROR*"); - } -} - -?> \ No newline at end of file Index: xoops2jp/html/modules/user/admin/actions/UserUserDeleteAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/UserUserDeleteAction.class.php:1.1.2.2 xoops2jp/html/modules/user/admin/actions/UserUserDeleteAction.class.php:removed --- xoops2jp/html/modules/user/admin/actions/UserUserDeleteAction.class.php:1.1.2.2 Sun Dec 25 00:01:29 2005 +++ xoops2jp/html/modules/user/admin/actions/UserUserDeleteAction.class.php Thu Jan 19 21:07:02 2006 @@ -1,50 +0,0 @@ -<?php - -require_once XOOPS_MODULE_PATH . "/user/class/AbstractDeleteAction.class.php"; - -class UserUserDeleteAction extends User_AbstractDeleteAction -{ - function &getHandler() - { - $handler =& xoops_gethandler('user'); - return $handler; - } - - function &getDeleteHandler() - { - $handler =& xoops_gethandler('member'); - return $handler; - } - - function getId() - { - $id = isset($_REQUEST['uid']) ? intval($_REQUEST['uid']) : 0; - - // - // Don't allow to delete super administrator. - // - if ($id == 1) - $id = 0; - - return $id; - } - - function executeViewInput(&$controller, &$xoopsUser, &$renderSystem) - { - $renderSystem->setTemplateName("user_delete_confirm.html"); - $renderSystem->setAttribute("user", $this->mObject); - } - - function executeViewSuccess(&$controller,&$xoopsUser,&$renderSystem) - { - XCube_Utils::redirectHeader("index.php",1,"*SUCCESS*"); - } - - function executeViewError(&$controller, &$xoopsUser, &$renderSystem) - { - XCube_Utils::redirectHeader("index.php", 1, "*DELETE ERROR*"); - } - -} - -?> \ No newline at end of file Index: xoops2jp/html/modules/user/admin/actions/UserMailjobListAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/UserMailjobListAction.class.php:1.1.2.1 xoops2jp/html/modules/user/admin/actions/UserMailjobListAction.class.php:removed --- xoops2jp/html/modules/user/admin/actions/UserMailjobListAction.class.php:1.1.2.1 Wed Jan 11 20:51:28 2006 +++ xoops2jp/html/modules/user/admin/actions/UserMailjobListAction.class.php Thu Jan 19 21:07:02 2006 @@ -1,39 +0,0 @@ -<?php -// $Id: UserMailjobListAction.class.php,v 1.1.2.1 2006/01/11 11:51:28 minahito Exp $ - -require_once XOOPS_ROOT_PATH . "/class/XCube_PageNavigator.class.php"; -require_once XOOPS_MODULE_PATH . "/user/admin/forms/MailjobFilterForm.class.php"; - -class UserMailjobListAction extends UserAction -{ - var $mObjects = array(); - var $mFilter = null; - var $mPageNavi = null; - - function getDefaultView(&$controller, &$xoopsUser) - { - $this->mFilter =& new User_MailjobFilterForm(); - $this->mFilter->fetch(); - - $handler =& xoops_getmodulehandler('mailjob'); - - $total = $handler->getCount($this->mFilter->getCriteria()); - - $this->mPageNavi =& new XCube_PageNavigator("./index.php?action=MailjobList", $total, XCUBE_PAGENAVI_START | XCUBE_PAGENAVI_PERPAGE); - $this->mPageNavi->fetch(); - - $criteria = $this->mFilter->getCriteria($this->mPageNavi->getStart(), $this->mPageNavi->getPerpage()); - $this->mObjects =& $handler->getObjects($criteria); - - return USER_FRAME_VIEW_INDEX; - } - - function executeViewIndex(&$controller, &$xoopsUser, &$render) - { - $render->setTemplateName("mailjob_list.html"); - $render->setAttribute('objects', $this->mObjects); - $render->setAttribute('pageNavi', $this->mPageNavi); - } -} - -?>