Index: temp/trunk/html/admin/design/template.php
===================================================================
--- temp/trunk/html/admin/design/template.php	(revision 3227)
+++ temp/trunk/html/admin/design/template.php	(revision 3232)
@@ -58,5 +58,5 @@
 	
 	// ¥Æ¥ó¥×¥ì¡¼¥È¤Î¾å½ñ¤­
-	//lfChangeTemplate();
+	lfChangeTemplate();
 	
 	sfprintr($_POST);
@@ -144,5 +144,4 @@
 		$arrTemplateImage['check'] = 1;
 	}
-	sfprintr($arrTemplateImage);
 	
 	return $arrTemplateImage;
@@ -160,5 +159,5 @@
 	$arrRet = array();				// ¥Ç¡¼¥¿¼èÆÀÍÑ
 	
-	$sql = "SELECT top_tpl AS top, product_tpl AS product, detail_tpl AS detail FROM dtb_baseinfo";
+	$sql = "SELECT top_tpl AS top, product_tpl AS product, detail_tpl AS detail mypage_tpl AS mypage FROM dtb_baseinfo";
 	$arrRet = $objDBConn->getAll($sql);
 	
@@ -179,5 +178,5 @@
 
 	// ¥Ç¡¼¥¿¼èÆÀ	
-	$sql = "SELECT top_tpl AS top, product_tpl AS product, detail_tpl AS detail FROM dtb_baseinfo";
+	$sql = "SELECT top_tpl AS top, product_tpl AS product, detail_tpl AS detail mypage_tpl AS mypage FROM dtb_baseinfo";
 	$arrRet = $objDBConn->getAll($sql);
 
@@ -223,4 +222,5 @@
 	global $arrTemplate;
 	global $objPage;
+	$tpl_path = "";
 	
 	$tpl_name = "";
@@ -253,4 +253,7 @@
 			$tpl_name = "mypage.tpl";
 			break;
+			
+		default:
+			break;
 	}
 	
@@ -258,8 +261,8 @@
 	if ($objPage->tpl_subno_template == $objPage->arrSubnavi[1]){
 		// ¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë¤ò¥³¥Ô¡¼
-		copy($arrTemplate[$chk_tpl]["TopTemplate"], ROOT_DIR . INCLUDE_DIR . "top.tpl");
-		copy($arrTemplate[$chk_tpl]["ProdTemplate"], ROOT_DIR . INCLUDE_DIR . "product.tpl");
-		copy($arrTemplate[$chk_tpl]["DetailTemplate"], ROOT_DIR . INCLUDE_DIR . "detail.tpl");
-		copy($arrTemplate[$chk_tpl]["MypageTemplate"], ROOT_DIR . INCLUDE_DIR . "mypage.tpl");
+		copy($arrTemplate[$chk_tpl]["TopTemplate"], ROOT_DIR . $tpl_path . "top.tpl");
+		copy($arrTemplate[$chk_tpl]["ProdTemplate"], ROOT_DIR . $tpl_path . "product.tpl");
+		copy($arrTemplate[$chk_tpl]["DetailTemplate"], ROOT_DIR . $tpl_path . "detail.tpl");
+		copy($arrTemplate[$chk_tpl]["MypageTemplate"], ROOT_DIR . $tpl_path . "mypage.tpl");
 	}else{
 		// ¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë¤ò¥³¥Ô¡¼
