[xoops-cvslog 3535] CVS update: xoops2jp/html/modules/legacyRender/admin/actions

Back to archive index

Minahito minah****@users*****
2006年 7月 11日 (火) 12:06:23 JST


Index: xoops2jp/html/modules/legacyRender/admin/actions/TplsetUploadAction.class.php
diff -u xoops2jp/html/modules/legacyRender/admin/actions/TplsetUploadAction.class.php:1.1.2.2 xoops2jp/html/modules/legacyRender/admin/actions/TplsetUploadAction.class.php:1.1.2.3
--- xoops2jp/html/modules/legacyRender/admin/actions/TplsetUploadAction.class.php:1.1.2.2	Thu May 25 14:17:37 2006
+++ xoops2jp/html/modules/legacyRender/admin/actions/TplsetUploadAction.class.php	Tue Jul 11 12:06:23 2006
@@ -1,8 +1,12 @@
 <?php
+/**
+ * @package legacyRender
+ * @version $Id: TplsetUploadAction.class.php,v 1.1.2.3 2006/07/11 03:06:23 minahito Exp $
+ */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
 
-require_once XOOPS_MODULE_PATH . "/legacyRender/admin/class/AbstractEditAction.class.php";
+require_once XOOPS_MODULE_PATH . "/legacyRender/class/AbstractEditAction.class.php";
 require_once XOOPS_MODULE_PATH . "/legacyRender/admin/forms/TplsetUploadForm.class.php";
 
 class LegacyRender_TplsetUploadAction extends LegacyRender_Action
@@ -28,6 +32,10 @@
 	
 	function execute(&$controller, &$xoopsUser)
 	{
+		if (xoops_getrequest('_form_control_cancel') != null) {
+			return LEGACYRENDER_FRAME_VIEW_CANCEL;
+		}
+
 		$this->mActionForm->fetch();
 		$this->mActionForm->validate();
 		
@@ -169,20 +177,24 @@
 
 	function executeViewSuccess(&$controller, &$xoopsUser, &$render)
 	{
-		header("location: ./index.php?action=TplsetList");
-		exit();
+		$controller->executeForward("./index.php?action=TplsetList");
 	}
 
 	function executeViewError(&$controller, &$xoopsUser, &$render)
 	{
 		if (count($this->mErrorMessages) == 0) {
-			redirect_header("./index.php?action=TplsetList", 1, _AD_LEGACYRENDER_ERROR_DBUPDATE_FAILED);
+			$controller->executeRedirect("./index.php?action=TplsetList", 1, _AD_LEGACYRENDER_ERROR_DBUPDATE_FAILED);
 		}
 		else {
 			$render->setTemplateName("tplset_upload_error.html");
 			$render->setAttribute('errorMessages', $this->mErrorMessages);
 		}
 	}
+	
+	function executeViewCancel(&$controller, &$xoopsUser, &$render)
+	{
+		$controller->executeForward("./index.php?action=TplsetList");
+	}
 }
 
 ?>


xoops-cvslog メーリングリストの案内
Back to archive index