[xoops-cvslog 1907] CVS update: xoops2jp/html/modules/legacyRender/kernel

アーカイブの一覧に戻る

Minahito minah****@users*****
2006年 1月 24日 (火) 23:23:12 JST


Index: xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php
diff -u xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php:1.1.2.7 xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php:1.1.2.8
--- xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php:1.1.2.7	Wed Jan 11 12:33:00 2006
+++ xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php	Tue Jan 24 23:23:12 2006
@@ -1,6 +1,6 @@
 <?php
 /**
- * @version $Id: Legacy_RenderSystem.class.php,v 1.1.2.7 2006/01/11 03:33:00 minahito Exp $
+ * @version $Id: Legacy_RenderSystem.class.php,v 1.1.2.8 2006/01/24 14:23:12 minahito Exp $
  */
 
 require_once XOOPS_ROOT_PATH."/modules/legacyRender/kernel/Legacy_RenderTarget.class.php";
@@ -212,7 +212,7 @@
 			$this->mXoopsTpl->assign($key,$value);
 		}
 
-		foreach($this->mRenderTarget->getAttributes() as $key=>$value) {
+		foreach($target->getAttributes() as $key=>$value) {
 			$this->mXoopsTpl->assign($key,$value);
 		}
 
@@ -295,62 +295,6 @@
 
 		$target->setResult($result);
 	}
-	
-	/**
-	 * @deprecated
-	 */
-	function renderMessageBox(&$messageBox)
-	{
-		$ret="";
-		$class = ($messageBox->getType()==XCUBE_MESSAGEBOX_RESULT) ? "resultMsg" : "errorMsg";
-		$ret ="<div class='$class'>";
-		if($messageBox->getTitle()!=null)
-			$ret.=@sprintf("<h4>%s</h4>",htmlspecialchars($messageBox->getTitle()));
-			
-		if(is_array($messageBox->getMessage())) {
-			foreach($messageBox->getMessage() as $msg) {
-				$ret.=htmlspecialchars($msg)."<br/>";
-			}
-		}
-		else {
-			$ret.=htmlspecialchars($messageBox->getMessage());
-		}
-		
-		$ret.="</div>";
-
-		return $ret;
-	}
-
-	/**
-	 * @deprecated
-	 */
-	function renderConfirmMessageBox(&$messageBox)
-	{
-		$ret=@sprintf("<div class='confirmMsg'><h4>%s</h4>",$messageBox->getTitle());
-		$ret.=@sprintf("<form method='post' action='%s'>",$messageBox->getAction());
-
-		foreach($messageBox->getAttributes() as $key=>$value) {
-			if(is_array($value))
-				foreach($value as $radioName=>$radioValue) {
-				$ret.=@sprintf("<input type='radio' name='%s' value='%s' /> %s<br />",$key,htmlspecialchars($radioValue),htmlspecialchars($radioName));
-			}
-			else {
-				$ret.=@sprintf("<input type='hidden' name='%s' value='%s' />",$key,htmlspecialchars($value));
-			}
-		}
-		
-		$submitText=$messageBox->getSubmitText();
-		if($submitText==null)
-			$submitText=_SUBMIT;
-
-		$ret.=@sprintf("<input type='submit' name='confirm_submit' value='%s' /><input type='button' name='confirm_back' value='%s'  onclick='javascript:history.go(-1);' />",
-		                htmlspecialchars($submitText),_CANCEL);
-
-		$ret.="</form></div>";
-
-		return $ret;
-	}
-
 
 	//
 	// There must not be the following functions here!


xoops-cvslog メーリングリストの案内
アーカイブの一覧に戻る