Index: temp/trunk/html/admin/design/template.php
===================================================================
--- temp/trunk/html/admin/design/template.php	(revision 3247)
+++ temp/trunk/html/admin/design/template.php	(revision 3250)
@@ -26,8 +26,14 @@
 $objView = new SC_AdminView();
 $objSess = new SC_Session();
+$arrTemplate = array();
 
 // Ç§¾Ú²ÄÈÝ¤ÎÈ½Äê
 $objSess = new SC_Session();
 sfIsSuccess($objSess);
+
+// ¥Æ¥ó¥×¥ì¡¼¥È¥Ç¡¼¥¿¤ò¼èÆÀ¤¹¤ë
+$objQuery = new SC_Query();
+$sql = "SELECT template_code,template_name,file_path FROM dtb_template ORDER BY create_date DESC";
+$arrTemplate = $objQuery->getall($sql);
 
 // GET¤ÎÃÍ¤ò¼õ¤±¼è¤ë
@@ -90,4 +96,5 @@
 function lfgetTemplate(){
 	global $objPage;
+	global $arrTemplate
 	$filepath = "/test/kakinaka/";
 	
@@ -98,10 +105,5 @@
 	
 	// DB¤«¤é¸½ºßÁªÂò¤µ¤ì¤Æ¤¤¤ë¥Ç¡¼¥¿¼èÆÀ
-	$arrDefcheck = lfgetTemplaeData();
-	
-	// ¥Æ¥ó¥×¥ì¡¼¥È¥Ç¡¼¥¿¤ò¼èÆÀ¤¹¤ë
-	$objQuery = new SC_Query();
-	$sql = "SELECT template_code,template_name,file_path FROM dtb_template ORDER BY create_date DESC";
-	$arrTemplate = $objQuery->getall($sql);
+	$arrDefcheck = lfgetTemplaeBaseData();
 	
 	switch($objPage->tpl_subno_template) {
@@ -149,10 +151,10 @@
 
 /**************************************************************************************************************
- * ´Ø¿ôÌ¾	¡§lfgetTemplaeData
+ * ´Ø¿ôÌ¾	¡§lfgetTemplaeBaseData
  * ½èÍýÆâÍÆ	¡§DB¤ËÊÝÂ¸¤µ¤ì¤Æ¤¤¤ë¥Æ¥ó¥×¥ì¡¼¥È¥Ç¡¼¥¿¤ò¼èÆÀ¤¹¤ë
  * °ú¿ô		¡§¤Ê¤·
  * Ìá¤êÃÍ	¡§DB¤ËÊÝÂ¸¤µ¤ì¤Æ¤¤¤ë¥Æ¥ó¥×¥ì¡¼¥È¥Ç¡¼¥¿(ÇÛÎó)
  **************************************************************************************************************/
-function lfgetTemplaeData(){
+function lfgetTemplaeBaseData(){
 	$objDBConn = new SC_DbConn;		// DBÁàºî¥ª¥Ö¥¸¥§¥¯¥È
 	$sql = "";						// ¥Ç¡¼¥¿¼èÆÀSQLÀ¸À®ÍÑ
@@ -221,4 +223,5 @@
 function lfChangeTemplate(){
 	global $objPage;
+	global $arrTemplate;
 	$tpl_path = "test/kakinaka/";
 	
@@ -257,5 +260,5 @@
 	}
 	
-	sfprintr($chk_tpl);
+	sfprintr($arrTemplate);
 	
 /*	
