Minahito
minah****@users*****
2006年 4月 24日 (月) 16:30:10 JST
Index: xoops2jp/html/modules/legacyRender/admin/actions/BannerfinishEditAction.class.php diff -u /dev/null xoops2jp/html/modules/legacyRender/admin/actions/BannerfinishEditAction.class.php:1.1.2.1 --- /dev/null Mon Apr 24 16:30:10 2006 +++ xoops2jp/html/modules/legacyRender/admin/actions/BannerfinishEditAction.class.php Mon Apr 24 16:30:10 2006 @@ -0,0 +1,53 @@ +<?php + +if (!defined('XOOPS_ROOT_PATH')) exit(); + +require_once XOOPS_MODULE_PATH . "/legacyRender/class/AbstractEditAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacyRender/admin/forms/BannerfinishAdminEditForm.class.php"; + +class LegacyRender_BannerfinishEditAction extends LegacyRender_AbstractEditAction +{ + function _getId() + { + return isset($_REQUEST['bid']) ? $_REQUEST['bid'] : 0; + } + + function &_getHandler() + { + $handler =& xoops_getmodulehandler('bannerfinish'); + return $handler; + } + + function _setupActionForm() + { + $this->mActionForm =& new LegacyRender_BannerfinishAdminEditForm(); + $this->mActionForm->prepare(); + } + + function executeViewInput(&$controller, &$xoopsUser, &$render) + { + $render->setTemplateName("bannerfinish_edit.html"); + $render->setAttribute('actionForm', $this->mActionForm); + $this->mObject->loadBannerclient(); + $render->setAttribute('object', $this->mObject); + + $bannerclientHandler =& xoops_getmodulehandler('bannerclient'); + $bannerclientArr =& $bannerclientHandler->getObjects(); + foreach (array_keys($bannerclientArr) as $key) { + $bannerclientArr[$key]->loadBanner(); + } + $render->setAttribute('bannerclientArr', $bannerclientArr); + } + + function executeViewSuccess(&$controller, &$xoopsUser, &$render) + { + $controller->executeForward("./index.php?action=BannerfinishList"); + } + + function executeViewError(&$controller, &$xoopsUser, &$render) + { + redirect_header("./index.php?action=BannerfinishList", 1, _AD_LEGACYRENDER_ERROR_DBUPDATE_FAILED); + } +} + +?> Index: xoops2jp/html/modules/legacyRender/admin/actions/BannerEditAction.class.php diff -u /dev/null xoops2jp/html/modules/legacyRender/admin/actions/BannerEditAction.class.php:1.1.2.1 --- /dev/null Mon Apr 24 16:30:10 2006 +++ xoops2jp/html/modules/legacyRender/admin/actions/BannerEditAction.class.php Mon Apr 24 16:30:10 2006 @@ -0,0 +1,53 @@ +<?php + +if (!defined('XOOPS_ROOT_PATH')) exit(); + +require_once XOOPS_MODULE_PATH . "/legacyRender/class/AbstractEditAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacyRender/admin/forms/BannerAdminEditForm.class.php"; + +class LegacyRender_BannerEditAction extends LegacyRender_AbstractEditAction +{ + function _getId() + { + return isset($_REQUEST['bid']) ? $_REQUEST['bid'] : 0; + } + + function &_getHandler() + { + $handler =& xoops_getmodulehandler('banner'); + return $handler; + } + + function _setupActionForm() + { + $this->mActionForm =& new LegacyRender_BannerAdminEditForm(); + $this->mActionForm->prepare(); + } + + function executeViewInput(&$controller, &$xoopsUser, &$render) + { + $render->setTemplateName("banner_edit.html"); + $render->setAttribute('actionForm', $this->mActionForm); + $this->mObject->loadBannerclient(); + $render->setAttribute('object', $this->mObject); + + $bannerclientHandler =& xoops_getmodulehandler('bannerclient'); + $bannerclientArr =& $bannerclientHandler->getObjects(); + foreach (array_keys($bannerclientArr) as $key) { + $bannerclientArr[$key]->loadBanner(); + } + $render->setAttribute('bannerclientArr', $bannerclientArr); + } + + function executeViewSuccess(&$controller, &$xoopsUser, &$render) + { + $controller->executeForward("./index.php?action=BannerList"); + } + + function executeViewError(&$controller, &$xoopsUser, &$render) + { + redirect_header("./index.php?action=BannerList", 1, _AD_LEGACYRENDER_ERROR_DBUPDATE_FAILED); + } +} + +?> Index: xoops2jp/html/modules/legacyRender/admin/actions/BannerfinishListAction.class.php diff -u /dev/null xoops2jp/html/modules/legacyRender/admin/actions/BannerfinishListAction.class.php:1.1.2.1 --- /dev/null Mon Apr 24 16:30:10 2006 +++ xoops2jp/html/modules/legacyRender/admin/actions/BannerfinishListAction.class.php Mon Apr 24 16:30:10 2006 @@ -0,0 +1,39 @@ +<?php + +if (!defined('XOOPS_ROOT_PATH')) exit(); + +require_once XOOPS_MODULE_PATH . "/legacyRender/class/PageNavigator.class.php"; +require_once XOOPS_MODULE_PATH . "/legacyRender/class/AbstractListAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacyRender/admin/forms/BannerfinishFilterForm.class.php"; + +class LegacyRender_BannerfinishListAction extends LegacyRender_AbstractListAction +{ + function &_getHandler() + { + $handler =& xoops_getmodulehandler('bannerfinish'); + return $handler; + } + + function &_getFilterForm(&$navi) + { + $filter =& new LegacyRender_BannerfinishFilterForm($navi); + return $filter; + } + + function _getBaseUrl() + { + return "./index.php?action=BannerfinishList"; + } + + function executeViewIndex(&$controller, &$xoopsUser, &$render) + { + $render->setTemplateName("bannerfinish_list.html"); + foreach (array_keys($this->mObjects) as $key) { + $this->mObjects[$key]->loadBannerclient(); + } + $render->setAttribute("objects", $this->mObjects); + $render->setAttribute("pageNavi", $this->mNavi); + } +} + +?> Index: xoops2jp/html/modules/legacyRender/admin/actions/BannerclientDeleteAction.class.php diff -u /dev/null xoops2jp/html/modules/legacyRender/admin/actions/BannerclientDeleteAction.class.php:1.1.2.1 --- /dev/null Mon Apr 24 16:30:10 2006 +++ xoops2jp/html/modules/legacyRender/admin/actions/BannerclientDeleteAction.class.php Mon Apr 24 16:30:10 2006 @@ -0,0 +1,47 @@ +<?php + +if (!defined('XOOPS_ROOT_PATH')) exit(); + +require_once XOOPS_MODULE_PATH . "/legacyRender/class/AbstractDeleteAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacyRender/admin/forms/BannerclientAdminDeleteForm.class.php"; + +class LegacyRender_BannerclientDeleteAction extends LegacyRender_AbstractDeleteAction +{ + function _getId() + { + return isset($_REQUEST['cid']) ? $_REQUEST['cid'] : 0; + } + + function &_getHandler() + { + $handler =& xoops_getmodulehandler('bannerclient'); + return $handler; + } + + function _setupActionForm() + { + $this->mActionForm =& new LegacyRender_BannerclientAdminDeleteForm(); + $this->mActionForm->prepare(); + } + + function executeViewInput(&$controller, &$xoopsUser, &$render) + { + $render->setTemplateName("bannerclient_delete.html"); + $render->setAttribute('actionForm', $this->mActionForm); + $this->mObject->loadBanner(); + $this->mObject->loadBannerfinish(); + $render->setAttribute('object', $this->mObject); + } + + function executeViewSuccess(&$controller, &$xoopsUser, &$render) + { + $controller->executeForward("./index.php?action=BannerclientList"); + } + + function executeViewError(&$controller, &$xoopsUser, &$render) + { + redirect_header("./index.php?action=BannerclientList", 1, _AD_LEGACYRENDER_ERROR_DBUPDATE_FAILED); + } +} + +?> Index: xoops2jp/html/modules/legacyRender/admin/actions/BannerfinishDeleteAction.class.php diff -u /dev/null xoops2jp/html/modules/legacyRender/admin/actions/BannerfinishDeleteAction.class.php:1.1.2.1 --- /dev/null Mon Apr 24 16:30:10 2006 +++ xoops2jp/html/modules/legacyRender/admin/actions/BannerfinishDeleteAction.class.php Mon Apr 24 16:30:10 2006 @@ -0,0 +1,46 @@ +<?php + +if (!defined('XOOPS_ROOT_PATH')) exit(); + +require_once XOOPS_MODULE_PATH . "/legacyRender/class/AbstractDeleteAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacyRender/admin/forms/BannerfinishAdminDeleteForm.class.php"; + +class LegacyRender_BannerfinishDeleteAction extends LegacyRender_AbstractDeleteAction +{ + function _getId() + { + return isset($_REQUEST['bid']) ? $_REQUEST['bid'] : 0; + } + + function &_getHandler() + { + $handler =& xoops_getmodulehandler('bannerfinish'); + return $handler; + } + + function _setupActionForm() + { + $this->mActionForm =& new LegacyRender_BannerfinishAdminDeleteForm(); + $this->mActionForm->prepare(); + } + + function executeViewInput(&$controller, &$xoopsUser, &$render) + { + $render->setTemplateName("bannerfinish_delete.html"); + $render->setAttribute('actionForm', $this->mActionForm); + $this->mObject->loadBannerclient(); + $render->setAttribute('object', $this->mObject); + } + + function executeViewSuccess(&$controller, &$xoopsUser, &$render) + { + $controller->executeForward("./index.php?action=BannerfinishList"); + } + + function executeViewError(&$controller, &$xoopsUser, &$render) + { + redirect_header("./index.php?action=BannerfinishList", 1, _AD_LEGACYRENDER_ERROR_DBUPDATE_FAILED); + } +} + +?> Index: xoops2jp/html/modules/legacyRender/admin/actions/BannerclientListAction.class.php diff -u /dev/null xoops2jp/html/modules/legacyRender/admin/actions/BannerclientListAction.class.php:1.1.2.1 --- /dev/null Mon Apr 24 16:30:10 2006 +++ xoops2jp/html/modules/legacyRender/admin/actions/BannerclientListAction.class.php Mon Apr 24 16:30:10 2006 @@ -0,0 +1,40 @@ +<?php + +if (!defined('XOOPS_ROOT_PATH')) exit(); + +require_once XOOPS_MODULE_PATH . "/legacyRender/class/PageNavigator.class.php"; +require_once XOOPS_MODULE_PATH . "/legacyRender/class/AbstractListAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacyRender/admin/forms/BannerclientFilterForm.class.php"; + +class LegacyRender_BannerclientListAction extends LegacyRender_AbstractListAction +{ + function &_getHandler() + { + $handler =& xoops_getmodulehandler('bannerclient'); + return $handler; + } + + function &_getFilterForm(&$navi) + { + $filter =& new LegacyRender_BannerclientFilterForm($navi); + return $filter; + } + + function _getBaseUrl() + { + return "./index.php?action=BannerclientList"; + } + + function executeViewIndex(&$controller, &$xoopsUser, &$render) + { + $render->setTemplateName("bannerclient_list.html"); + foreach (array_keys($this->mObjects) as $key) { + $this->mObjects[$key]->loadBanner(); + $this->mObjects[$key]->loadBannerfinish(); + } + $render->setAttribute("objects", $this->mObjects); + $render->setAttribute("pageNavi", $this->mNavi); + } +} + +?> Index: xoops2jp/html/modules/legacyRender/admin/actions/BannerclientEditAction.class.php diff -u /dev/null xoops2jp/html/modules/legacyRender/admin/actions/BannerclientEditAction.class.php:1.1.2.1 --- /dev/null Mon Apr 24 16:30:10 2006 +++ xoops2jp/html/modules/legacyRender/admin/actions/BannerclientEditAction.class.php Mon Apr 24 16:30:10 2006 @@ -0,0 +1,47 @@ +<?php + +if (!defined('XOOPS_ROOT_PATH')) exit(); + +require_once XOOPS_MODULE_PATH . "/legacyRender/class/AbstractEditAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacyRender/admin/forms/BannerclientAdminEditForm.class.php"; + +class LegacyRender_BannerclientEditAction extends LegacyRender_AbstractEditAction +{ + function _getId() + { + return isset($_REQUEST['cid']) ? $_REQUEST['cid'] : 0; + } + + function &_getHandler() + { + $handler =& xoops_getmodulehandler('bannerclient'); + return $handler; + } + + function _setupActionForm() + { + $this->mActionForm =& new LegacyRender_BannerclientAdminEditForm(); + $this->mActionForm->prepare(); + } + + function executeViewInput(&$controller, &$xoopsUser, &$render) + { + $render->setTemplateName("bannerclient_edit.html"); + $render->setAttribute('actionForm', $this->mActionForm); + $this->mObject->loadBanner(); + $this->mObject->loadBannerfinish(); + $render->setAttribute('object', $this->mObject); + } + + function executeViewSuccess(&$controller, &$xoopsUser, &$render) + { + $controller->executeForward("./index.php?action=BannerclientList"); + } + + function executeViewError(&$controller, &$xoopsUser, &$render) + { + redirect_header("./index.php?action=BannerclientList", 1, _AD_LEGACYRENDER_ERROR_DBUPDATE_FAILED); + } +} + +?> Index: xoops2jp/html/modules/legacyRender/admin/actions/BannerListAction.class.php diff -u /dev/null xoops2jp/html/modules/legacyRender/admin/actions/BannerListAction.class.php:1.1.2.1 --- /dev/null Mon Apr 24 16:30:10 2006 +++ xoops2jp/html/modules/legacyRender/admin/actions/BannerListAction.class.php Mon Apr 24 16:30:10 2006 @@ -0,0 +1,39 @@ +<?php + +if (!defined('XOOPS_ROOT_PATH')) exit(); + +require_once XOOPS_MODULE_PATH . "/legacyRender/class/PageNavigator.class.php"; +require_once XOOPS_MODULE_PATH . "/legacyRender/class/AbstractListAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacyRender/admin/forms/BannerFilterForm.class.php"; + +class LegacyRender_BannerListAction extends LegacyRender_AbstractListAction +{ + function &_getHandler() + { + $handler =& xoops_getmodulehandler('banner'); + return $handler; + } + + function &_getFilterForm(&$navi) + { + $filter =& new LegacyRender_BannerFilterForm($navi); + return $filter; + } + + function _getBaseUrl() + { + return "./index.php?action=BannerList"; + } + + function executeViewIndex(&$controller, &$xoopsUser, &$render) + { + $render->setTemplateName("banner_list.html"); + foreach (array_keys($this->mObjects) as $key) { + $this->mObjects[$key]->loadBannerclient(); + } + $render->setAttribute("objects", $this->mObjects); + $render->setAttribute("pageNavi", $this->mNavi); + } +} + +?> Index: xoops2jp/html/modules/legacyRender/admin/actions/BannerDeleteAction.class.php diff -u /dev/null xoops2jp/html/modules/legacyRender/admin/actions/BannerDeleteAction.class.php:1.1.2.1 --- /dev/null Mon Apr 24 16:30:10 2006 +++ xoops2jp/html/modules/legacyRender/admin/actions/BannerDeleteAction.class.php Mon Apr 24 16:30:10 2006 @@ -0,0 +1,46 @@ +<?php + +if (!defined('XOOPS_ROOT_PATH')) exit(); + +require_once XOOPS_MODULE_PATH . "/legacyRender/class/AbstractDeleteAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacyRender/admin/forms/BannerAdminDeleteForm.class.php"; + +class LegacyRender_BannerDeleteAction extends LegacyRender_AbstractDeleteAction +{ + function _getId() + { + return isset($_REQUEST['bid']) ? $_REQUEST['bid'] : 0; + } + + function &_getHandler() + { + $handler =& xoops_getmodulehandler('banner'); + return $handler; + } + + function _setupActionForm() + { + $this->mActionForm =& new LegacyRender_BannerAdminDeleteForm(); + $this->mActionForm->prepare(); + } + + function executeViewInput(&$controller, &$xoopsUser, &$render) + { + $render->setTemplateName("banner_delete.html"); + $render->setAttribute('actionForm', $this->mActionForm); + $this->mObject->loadBannerclient(); + $render->setAttribute('object', $this->mObject); + } + + function executeViewSuccess(&$controller, &$xoopsUser, &$render) + { + $controller->executeForward("./index.php?action=BannerList"); + } + + function executeViewError(&$controller, &$xoopsUser, &$render) + { + redirect_header("./index.php?action=BannerList", 1, _AD_LEGACYRENDER_ERROR_DBUPDATE_FAILED); + } +} + +?>