Changeset 3399 for temp/trunk
- Timestamp:
- 2006/08/31 09:21:56 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/admin/design/template.php (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/admin/design/template.php
r3398 r3399 7 7 var $arrHidden; 8 8 var $arrSubnavi = array( 9 1 => 'top', 10 2 => 'product', 11 3 => 'detail', 12 4 => 'mypage', 9 title => array( 10 1 => 'top', 11 2 => 'product', 12 3 => 'detail', 13 4 => 'mypage' 14 ), 15 name =>array( 16 1 => 'TOP¥Ú¡¼¥¸', 17 2 => '¾¦ÉʰìÍ÷', 18 3 => '¾¦ÉʾܺÙ', 19 4 => 'MY¥Ú¡¼¥¸' 20 ) 13 21 ); 14 22 … … 17 25 $this->tpl_subnavi = 'design/subnavi.tpl'; 18 26 $this->tpl_subno = 'template'; 19 $this->tpl_subno_template = $this->arrSubnavi[1]; 27 $this->tpl_subno_template = $this->arrSubnavi['title'][1]; 28 $this->tpl_TemplateName = $this->arrTemplateName['name'][1]; 20 29 $this->tpl_mainno = "design"; 21 30 $this->tpl_subtitle = '¥Æ¥ó¥×¥ì¡¼¥ÈÀßÄê'; … … 37 46 if ($get_tpl_subno_template != ""){ 38 47 // Á÷¤é¤ì¤Æ¤¤¿Ãͤ¬ÇÛÎó¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤ÐTOP¤òɽ¼¨ 39 if (in_array($get_tpl_subno_template,$objPage->arrSubnavi )){48 if (in_array($get_tpl_subno_template,$objPage->arrSubnavi['title'])){ 40 49 $tpl_subno_template = $get_tpl_subno_template; 41 50 }else{ 42 $tpl_subno_template = $objPage->arrSubnavi[ 1];51 $tpl_subno_template = $objPage->arrSubnavi['title'][1]; 43 52 } 44 53 } else { … … 47 56 $tpl_subno_template = $_POST['tpl_subno_template']; 48 57 }else{ 49 $tpl_subno_template = $objPage->arrSubnavi[ 1];58 $tpl_subno_template = $objPage->arrSubnavi['title'][1]; 50 59 } 51 60 } 52 61 $objPage->tpl_subno_template = $tpl_subno_template; 62 $template_name = $objPage->arrSubnavi['name'][array_keys($objPage->arrSubnavi['title'], $tpl_subno_template)]; 63 $objPage->template_name = $template_name; 53 64 54 65 // ÅÐÏ¿¤ò²¡¤µ¤ì¤¿¤Ð¤¢¤Ë¤ÏDB¤Ø¥Ç¡¼¥¿¤ò¹¹¿·¤Ë¹Ô¤¯ … … 104 115 switch($objPage->tpl_subno_template) { 105 116 // TOP 106 case $objPage->arrSubnavi[ 1]:117 case $objPage->arrSubnavi['title'][1]: 107 118 $Image = "TopImage.jpg"; // ¥¤¥á¡¼¥¸¤ÎÇÛÎóÍ×ÁÇ̾³ÊǼÍÑ 108 $disp = $objPage->arrSubnavi[ 1];119 $disp = $objPage->arrSubnavi['title'][1]; 109 120 break; 110 121 111 122 // ¾¦ÉʰìÍ÷ 112 case $objPage->arrSubnavi[ 2]:123 case $objPage->arrSubnavi['title'][2]: 113 124 $Image = "ProdImage.jpg"; // ¥¤¥á¡¼¥¸¤ÎÇÛÎóÍ×ÁÇ̾³ÊǼÍÑ 114 $disp = $objPage->arrSubnavi[ 2];125 $disp = $objPage->arrSubnavi['title'][2]; 115 126 break; 116 127 117 128 // ¾¦Éʾܺ٠118 case $objPage->arrSubnavi[ 3]:129 case $objPage->arrSubnavi['title'][3]: 119 130 $Image = "DetailImage.jpg"; // ¥¤¥á¡¼¥¸¤ÎÇÛÎóÍ×ÁÇ̾³ÊǼÍÑ 120 $disp = $objPage->arrSubnavi[ 3];131 $disp = $objPage->arrSubnavi['title'][3]; 121 132 break; 122 133 123 134 // MY¥Ú¡¼¥¸ 124 case $objPage->arrSubnavi[ 4]:135 case $objPage->arrSubnavi['title'][4]: 125 136 $Image = "MypageImage.jpg"; //¥¤¥á¡¼¥¸¤ÎÇÛÎóÍ×ÁÇ̾³ÊǼÍÑ 126 $disp = $objPage->arrSubnavi[ 4];137 $disp = $objPage->arrSubnavi['title'][4]; 127 138 break; 128 139 } … … 186 197 187 198 // TOP¤òÊѹ¹¤·¤¿¾ì¹ç¤Ë¤ÏÁ´²èÌÌÊѹ¹ 188 if ($objPage->tpl_subno_template == $objPage->arrSubnavi[ 1]){199 if ($objPage->tpl_subno_template == $objPage->arrSubnavi['title'][1]){ 189 200 $arrVal = array($chk_tpl,$chk_tpl,$chk_tpl,$chk_tpl); 190 201 }else{ … … 197 208 198 209 // TOP¤òÊѹ¹¤·¤¿¾ì¹ç¤Ë¤ÏÁ´²èÌÌÊѹ¹ 199 if ($objPage->tpl_subno_template == $objPage->arrSubnavi[ 1]){210 if ($objPage->tpl_subno_template == $objPage->arrSubnavi['title'][1]){ 200 211 $arrVal = array($chk_tpl,$chk_tpl,$chk_tpl,$chk_tpl); 201 212 }else{ … … 234 245 switch($objPage->tpl_subno_template) { 235 246 // TOP 236 case $objPage->arrSubnavi[ 1]:247 case $objPage->arrSubnavi['title'][1]: 237 248 $tpl_element = "TopTemplate"; // ¥¤¥á¡¼¥¸¤ÎÇÛÎóÍ×ÁÇ̾³ÊǼÍÑ 238 249 $tpl_name = "top.tpl"; … … 240 251 241 252 // ¾¦ÉʰìÍ÷ 242 case $objPage->arrSubnavi[ 2]:253 case $objPage->arrSubnavi['title'][2]: 243 254 $tpl_element = "ProdTemplate"; // ¥¤¥á¡¼¥¸¤ÎÇÛÎóÍ×ÁÇ̾³ÊǼÍÑ 244 255 $tpl_name = "list.tpl"; … … 246 257 247 258 // ¾¦Éʾܺ٠248 case $objPage->arrSubnavi[ 3]:259 case $objPage->arrSubnavi['title'][3]: 249 260 $tpl_element = "DetailTemplate"; // ¥¤¥á¡¼¥¸¤ÎÇÛÎóÍ×ÁÇ̾³ÊǼÍÑ 250 261 $tpl_name = "detail.tpl"; … … 252 263 253 264 // MY¥Ú¡¼¥¸ 254 case $objPage->arrSubnavi[ 4]:265 case $objPage->arrSubnavi['title'][4]: 255 266 $tpl_element = "MypageTemplate"; //¥¤¥á¡¼¥¸¤ÎÇÛÎóÍ×ÁÇ̾³ÊǼÍÑ 256 267 $tpl_name = "mypage.tpl"; … … 265 276 266 277 // TOP¤òÊѹ¹¤·¤¿¾ì¹ç¤Ë¤ÏÁ´²èÌÌÊѹ¹ 267 if ($objPage->tpl_subno_template == $objPage->arrSubnavi[ 1]){278 if ($objPage->tpl_subno_template == $objPage->arrSubnavi['title'][1]){ 268 279 // ¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë¤ò¥³¥Ô¡¼ 269 280 copy($taget_tpl_path . "/top.tpl", $save_tpl_path . "top.tpl"); … … 282 293 283 294 // mypage¤Î¾ì¹ç¤Ë¤Ï¥Õ¥©¥ë¥À¤´¤È¥³¥Ô¡¼¤¹¤ë 284 }elseif($objPage->tpl_subno_template == $objPage->arrSubnavi[ 4]){295 }elseif($objPage->tpl_subno_template == $objPage->arrSubnavi['title'][4]){ 285 296 lfFolderCopy($taget_tpl_path."mypage/", $save_tpl_path."mypage/"); 286 297 }else{
Note: See TracChangeset
for help on using the changeset viewer.
