Index: temp/trunk/html/admin/design/template.php
===================================================================
--- temp/trunk/html/admin/design/template.php	(revision 3398)
+++ temp/trunk/html/admin/design/template.php	(revision 3399)
@@ -7,8 +7,16 @@
 	var $arrHidden;
 	var $arrSubnavi = array(
-		1 => 'top',
-		2 => 'product',
-		3 => 'detail',
-		4 => 'mypage',
+		title => array(
+			1 => 'top',
+			2 => 'product',
+			3 => 'detail',
+			4 => 'mypage' 
+		),
+		name =>array(
+			1 => 'TOP¥Ú¡¼¥¸',
+			2 => '¾¦ÉÊ°ìÍ÷',
+			3 => '¾¦ÉÊ¾ÜºÙ',
+			4 => 'MY¥Ú¡¼¥¸' 
+		)
 	);
 
@@ -17,5 +25,6 @@
 		$this->tpl_subnavi = 'design/subnavi.tpl';
 		$this->tpl_subno = 'template';
-		$this->tpl_subno_template = $this->arrSubnavi[1];
+		$this->tpl_subno_template = $this->arrSubnavi['title'][1];
+		$this->tpl_TemplateName = $this->arrTemplateName['name'][1];
 		$this->tpl_mainno = "design";
 		$this->tpl_subtitle = '¥Æ¥ó¥×¥ì¡¼¥ÈÀßÄê';
@@ -37,8 +46,8 @@
 if ($get_tpl_subno_template != ""){
 	// Á÷¤é¤ì¤Æ¤­¤¿ÃÍ¤¬ÇÛÎó¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤ÐTOP¤òÉ½¼¨
-	if (in_array($get_tpl_subno_template,$objPage->arrSubnavi)){
+	if (in_array($get_tpl_subno_template,$objPage->arrSubnavi['title'])){
 		$tpl_subno_template = $get_tpl_subno_template;
 	}else{
-		$tpl_subno_template = $objPage->arrSubnavi[1];
+		$tpl_subno_template = $objPage->arrSubnavi['title'][1];
 	}
 } else {
@@ -47,8 +56,10 @@
 		$tpl_subno_template = $_POST['tpl_subno_template'];
 	}else{
-		$tpl_subno_template = $objPage->arrSubnavi[1];
+		$tpl_subno_template = $objPage->arrSubnavi['title'][1];
 	}
 }
 $objPage->tpl_subno_template = $tpl_subno_template;
+$template_name = $objPage->arrSubnavi['name'][array_keys($objPage->arrSubnavi['title'], $tpl_subno_template)];
+$objPage->template_name = $template_name;
 
 // ÅÐÏ¿¤ò²¡¤µ¤ì¤¿¤Ð¤¢¤Ë¤ÏDB¤Ø¥Ç¡¼¥¿¤ò¹¹¿·¤Ë¹Ô¤¯
@@ -104,25 +115,25 @@
 	switch($objPage->tpl_subno_template) {
 		// TOP
-		case $objPage->arrSubnavi[1]:
+		case $objPage->arrSubnavi['title'][1]:
 			$Image = "TopImage.jpg";			// ¥¤¥á¡¼¥¸¤ÎÇÛÎóÍ×ÁÇÌ¾³ÊÇ¼ÍÑ
-			$disp = $objPage->arrSubnavi[1];
+			$disp = $objPage->arrSubnavi['title'][1];
 			break;
 			
 		// ¾¦ÉÊ°ìÍ÷
-		case $objPage->arrSubnavi[2]:
+		case $objPage->arrSubnavi['title'][2]:
 			$Image = "ProdImage.jpg";			// ¥¤¥á¡¼¥¸¤ÎÇÛÎóÍ×ÁÇÌ¾³ÊÇ¼ÍÑ
-			$disp = $objPage->arrSubnavi[2];
+			$disp = $objPage->arrSubnavi['title'][2];
 			break;
 			
 		// ¾¦ÉÊ¾ÜºÙ
-		case $objPage->arrSubnavi[3]:
+		case $objPage->arrSubnavi['title'][3]:
 			$Image = "DetailImage.jpg";			// ¥¤¥á¡¼¥¸¤ÎÇÛÎóÍ×ÁÇÌ¾³ÊÇ¼ÍÑ
-			$disp = $objPage->arrSubnavi[3];
+			$disp = $objPage->arrSubnavi['title'][3];
 			break;
 			
 		// MY¥Ú¡¼¥¸
-		case $objPage->arrSubnavi[4]:
+		case $objPage->arrSubnavi['title'][4]:
 			$Image = "MypageImage.jpg";			//¥¤¥á¡¼¥¸¤ÎÇÛÎóÍ×ÁÇÌ¾³ÊÇ¼ÍÑ
-			$disp = $objPage->arrSubnavi[4];
+			$disp = $objPage->arrSubnavi['title'][4];
 			break;
 	}
@@ -186,5 +197,5 @@
 		
 		// TOP¤òÊÑ¹¹¤·¤¿¾ì¹ç¤Ë¤ÏÁ´²èÌÌÊÑ¹¹
-		if ($objPage->tpl_subno_template == $objPage->arrSubnavi[1]){
+		if ($objPage->tpl_subno_template == $objPage->arrSubnavi['title'][1]){
 			$arrVal = array($chk_tpl,$chk_tpl,$chk_tpl,$chk_tpl);
 		}else{
@@ -197,5 +208,5 @@
 		
 		// TOP¤òÊÑ¹¹¤·¤¿¾ì¹ç¤Ë¤ÏÁ´²èÌÌÊÑ¹¹
-		if ($objPage->tpl_subno_template == $objPage->arrSubnavi[1]){
+		if ($objPage->tpl_subno_template == $objPage->arrSubnavi['title'][1]){
 			$arrVal = array($chk_tpl,$chk_tpl,$chk_tpl,$chk_tpl);
 		}else{
@@ -234,5 +245,5 @@
 	switch($objPage->tpl_subno_template) {
 		// TOP
-		case $objPage->arrSubnavi[1]:
+		case $objPage->arrSubnavi['title'][1]:
 			$tpl_element = "TopTemplate";			// ¥¤¥á¡¼¥¸¤ÎÇÛÎóÍ×ÁÇÌ¾³ÊÇ¼ÍÑ
 			$tpl_name = "top.tpl";
@@ -240,5 +251,5 @@
 			
 		// ¾¦ÉÊ°ìÍ÷
-		case $objPage->arrSubnavi[2]:
+		case $objPage->arrSubnavi['title'][2]:
 			$tpl_element = "ProdTemplate";			// ¥¤¥á¡¼¥¸¤ÎÇÛÎóÍ×ÁÇÌ¾³ÊÇ¼ÍÑ
 			$tpl_name = "list.tpl";
@@ -246,5 +257,5 @@
 			
 		// ¾¦ÉÊ¾ÜºÙ
-		case $objPage->arrSubnavi[3]:
+		case $objPage->arrSubnavi['title'][3]:
 			$tpl_element = "DetailTemplate";			// ¥¤¥á¡¼¥¸¤ÎÇÛÎóÍ×ÁÇÌ¾³ÊÇ¼ÍÑ
 			$tpl_name = "detail.tpl";
@@ -252,5 +263,5 @@
 			
 		// MY¥Ú¡¼¥¸
-		case $objPage->arrSubnavi[4]:
+		case $objPage->arrSubnavi['title'][4]:
 			$tpl_element = "MypageTemplate";			//¥¤¥á¡¼¥¸¤ÎÇÛÎóÍ×ÁÇÌ¾³ÊÇ¼ÍÑ
 			$tpl_name = "mypage.tpl";
@@ -265,5 +276,5 @@
 	
 	// TOP¤òÊÑ¹¹¤·¤¿¾ì¹ç¤Ë¤ÏÁ´²èÌÌÊÑ¹¹
-	if ($objPage->tpl_subno_template == $objPage->arrSubnavi[1]){
+	if ($objPage->tpl_subno_template == $objPage->arrSubnavi['title'][1]){
 		// ¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë¤ò¥³¥Ô¡¼
 		copy($taget_tpl_path . "/top.tpl", $save_tpl_path . "top.tpl");
@@ -282,5 +293,5 @@
 
 	// mypage¤Î¾ì¹ç¤Ë¤Ï¥Õ¥©¥ë¥À¤´¤È¥³¥Ô¡¼¤¹¤ë
-	}elseif($objPage->tpl_subno_template == $objPage->arrSubnavi[4]){
+	}elseif($objPage->tpl_subno_template == $objPage->arrSubnavi['title'][4]){
 		lfFolderCopy($taget_tpl_path."mypage/", $save_tpl_path."mypage/");
 	}else{
