Changeset 3399 for temp/trunk


Ignore:
Timestamp:
2006/08/31 09:21:56 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/admin/design/template.php

    r3398 r3399  
    77    var $arrHidden; 
    88    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        ) 
    1321    ); 
    1422 
     
    1725        $this->tpl_subnavi = 'design/subnavi.tpl'; 
    1826        $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]; 
    2029        $this->tpl_mainno = "design"; 
    2130        $this->tpl_subtitle = '¥Æ¥ó¥×¥ì¡¼¥ÈÀßÄê'; 
     
    3746if ($get_tpl_subno_template != ""){ 
    3847    // Á÷¤é¤ì¤Æ¤­¤¿Ãͤ¬ÇÛÎó¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤ÐTOP¤òɽ¼¨ 
    39     if (in_array($get_tpl_subno_template,$objPage->arrSubnavi)){ 
     48    if (in_array($get_tpl_subno_template,$objPage->arrSubnavi['title'])){ 
    4049        $tpl_subno_template = $get_tpl_subno_template; 
    4150    }else{ 
    42         $tpl_subno_template = $objPage->arrSubnavi[1]; 
     51        $tpl_subno_template = $objPage->arrSubnavi['title'][1]; 
    4352    } 
    4453} else { 
     
    4756        $tpl_subno_template = $_POST['tpl_subno_template']; 
    4857    }else{ 
    49         $tpl_subno_template = $objPage->arrSubnavi[1]; 
     58        $tpl_subno_template = $objPage->arrSubnavi['title'][1]; 
    5059    } 
    5160} 
    5261$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; 
    5364 
    5465// ÅÐÏ¿¤ò²¡¤µ¤ì¤¿¤Ð¤¢¤Ë¤ÏDB¤Ø¥Ç¡¼¥¿¤ò¹¹¿·¤Ë¹Ô¤¯ 
     
    104115    switch($objPage->tpl_subno_template) { 
    105116        // TOP 
    106         case $objPage->arrSubnavi[1]: 
     117        case $objPage->arrSubnavi['title'][1]: 
    107118            $Image = "TopImage.jpg";            // ¥¤¥á¡¼¥¸¤ÎÇÛÎóÍ×ÁÇ̾³ÊǼÍÑ 
    108             $disp = $objPage->arrSubnavi[1]; 
     119            $disp = $objPage->arrSubnavi['title'][1]; 
    109120            break; 
    110121             
    111122        // ¾¦ÉʰìÍ÷ 
    112         case $objPage->arrSubnavi[2]: 
     123        case $objPage->arrSubnavi['title'][2]: 
    113124            $Image = "ProdImage.jpg";           // ¥¤¥á¡¼¥¸¤ÎÇÛÎóÍ×ÁÇ̾³ÊǼÍÑ 
    114             $disp = $objPage->arrSubnavi[2]; 
     125            $disp = $objPage->arrSubnavi['title'][2]; 
    115126            break; 
    116127             
    117128        // ¾¦Éʾܺ٠
    118         case $objPage->arrSubnavi[3]: 
     129        case $objPage->arrSubnavi['title'][3]: 
    119130            $Image = "DetailImage.jpg";         // ¥¤¥á¡¼¥¸¤ÎÇÛÎóÍ×ÁÇ̾³ÊǼÍÑ 
    120             $disp = $objPage->arrSubnavi[3]; 
     131            $disp = $objPage->arrSubnavi['title'][3]; 
    121132            break; 
    122133             
    123134        // MY¥Ú¡¼¥¸ 
    124         case $objPage->arrSubnavi[4]: 
     135        case $objPage->arrSubnavi['title'][4]: 
    125136            $Image = "MypageImage.jpg";         //¥¤¥á¡¼¥¸¤ÎÇÛÎóÍ×ÁÇ̾³ÊǼÍÑ 
    126             $disp = $objPage->arrSubnavi[4]; 
     137            $disp = $objPage->arrSubnavi['title'][4]; 
    127138            break; 
    128139    } 
     
    186197         
    187198        // TOP¤òÊѹ¹¤·¤¿¾ì¹ç¤Ë¤ÏÁ´²èÌÌÊѹ¹ 
    188         if ($objPage->tpl_subno_template == $objPage->arrSubnavi[1]){ 
     199        if ($objPage->tpl_subno_template == $objPage->arrSubnavi['title'][1]){ 
    189200            $arrVal = array($chk_tpl,$chk_tpl,$chk_tpl,$chk_tpl); 
    190201        }else{ 
     
    197208         
    198209        // TOP¤òÊѹ¹¤·¤¿¾ì¹ç¤Ë¤ÏÁ´²èÌÌÊѹ¹ 
    199         if ($objPage->tpl_subno_template == $objPage->arrSubnavi[1]){ 
     210        if ($objPage->tpl_subno_template == $objPage->arrSubnavi['title'][1]){ 
    200211            $arrVal = array($chk_tpl,$chk_tpl,$chk_tpl,$chk_tpl); 
    201212        }else{ 
     
    234245    switch($objPage->tpl_subno_template) { 
    235246        // TOP 
    236         case $objPage->arrSubnavi[1]: 
     247        case $objPage->arrSubnavi['title'][1]: 
    237248            $tpl_element = "TopTemplate";           // ¥¤¥á¡¼¥¸¤ÎÇÛÎóÍ×ÁÇ̾³ÊǼÍÑ 
    238249            $tpl_name = "top.tpl"; 
     
    240251             
    241252        // ¾¦ÉʰìÍ÷ 
    242         case $objPage->arrSubnavi[2]: 
     253        case $objPage->arrSubnavi['title'][2]: 
    243254            $tpl_element = "ProdTemplate";          // ¥¤¥á¡¼¥¸¤ÎÇÛÎóÍ×ÁÇ̾³ÊǼÍÑ 
    244255            $tpl_name = "list.tpl"; 
     
    246257             
    247258        // ¾¦Éʾܺ٠
    248         case $objPage->arrSubnavi[3]: 
     259        case $objPage->arrSubnavi['title'][3]: 
    249260            $tpl_element = "DetailTemplate";            // ¥¤¥á¡¼¥¸¤ÎÇÛÎóÍ×ÁÇ̾³ÊǼÍÑ 
    250261            $tpl_name = "detail.tpl"; 
     
    252263             
    253264        // MY¥Ú¡¼¥¸ 
    254         case $objPage->arrSubnavi[4]: 
     265        case $objPage->arrSubnavi['title'][4]: 
    255266            $tpl_element = "MypageTemplate";            //¥¤¥á¡¼¥¸¤ÎÇÛÎóÍ×ÁÇ̾³ÊǼÍÑ 
    256267            $tpl_name = "mypage.tpl"; 
     
    265276     
    266277    // TOP¤òÊѹ¹¤·¤¿¾ì¹ç¤Ë¤ÏÁ´²èÌÌÊѹ¹ 
    267     if ($objPage->tpl_subno_template == $objPage->arrSubnavi[1]){ 
     278    if ($objPage->tpl_subno_template == $objPage->arrSubnavi['title'][1]){ 
    268279        // ¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë¤ò¥³¥Ô¡¼ 
    269280        copy($taget_tpl_path . "/top.tpl", $save_tpl_path . "top.tpl"); 
     
    282293 
    283294    // mypage¤Î¾ì¹ç¤Ë¤Ï¥Õ¥©¥ë¥À¤´¤È¥³¥Ô¡¼¤¹¤ë 
    284     }elseif($objPage->tpl_subno_template == $objPage->arrSubnavi[4]){ 
     295    }elseif($objPage->tpl_subno_template == $objPage->arrSubnavi['title'][4]){ 
    285296        lfFolderCopy($taget_tpl_path."mypage/", $save_tpl_path."mypage/"); 
    286297    }else{ 
Note: See TracChangeset for help on using the changeset viewer.