Changeset 18216


Ignore:
Timestamp:
2009/07/20 07:32:15 (11 years ago)
Author:
Seasoft
Message:

#518(ブロックを置ける場所を増やしてみた)

  • 未使用(Unused)の値が頻繁に変更される煩雑さから開放(アップグレードの手間を軽減する意図)
Location:
branches/comu-ver2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/pages/admin/design/LC_Page_Admin_Design.php

    r18213 r18216  
    2525require_once(CLASS_PATH . "pages/LC_Page.php"); 
    2626 
     27/** ターゲットID 未使用 */ 
     28define('TARGET_ID_UNUSED', 0); 
     29 
    2730/** 
    2831 * デザイン管理 のページクラス. 
    2932 * 
     33 * ターゲットID 0:未使用 1:レフトナビ 2:ライトナビ 3:イン画面上部 4:メイン画面下部  5:画面上部 6:画面下部 7:ヘッダより上 8:フッタより下 9:HEADタグ内 
    3034 * @package Page 
    3135 * @author LOCKON CO.,LTD. 
     
    162166            // ブロックの順序を取得し、更新を行う 
    163167            foreach($arrUpdBlocData as $key => $val){ 
     168                if ($arrUpdBlocData[$key]['target_id'] == TARGET_ID_UNUSED) { 
     169                    continue; 
     170                } 
     171 
    164172                // ブロックの順序を取得 
    165173                $bloc_row = $this->lfGetRowID($arrUpdBlocData, $val); 
    166174                $arrUpdBlocData[$key]['bloc_row'] = $bloc_row; 
    167175                $arrUpdBlocData[$key]['page_id']    =  $page_id;    // ページID 
    168  
    169                 /* 
    170                  ターゲットID 1:レフトナビ 2:ライトナビ 3:イン画面上部 4:メイン画面下部  5:画面上部 6:画面下部 7:ヘッダより上 8:フッタより下 9:HEADタグ内 10:欄外 
    171                  */ 
    172                 if ($arrUpdBlocData[$key]['target_id'] == 10) { 
    173                     $arrUpdBlocData[$key]['bloc_row'] = "0"; 
    174                 } 
    175176 
    176177                // insert文生成 
     
    253254        } 
    254255 
    255  
    256256        // 未使用のブロックデータを追加 
    257257        foreach($arrBloc as $key => $val){ 
    258258            if (!$this->lfChkBloc($val, $tpl_arrBloc)) { 
    259                 $val['target_id'] = 10; // 未使用に追加する 
     259                $val['target_id'] = TARGET_ID_UNUSED; // 未使用に追加する 
    260260                $tpl_arrBloc = $this->lfSetBlocData($arrBloc, $val, $tpl_arrBloc, $cnt); 
    261261                $cnt++; 
  • branches/comu-ver2/html/install/sql/insert_data.sql

    r18206 r18216  
    3434INSERT INTO dtb_blocposition (page_id,target_id,bloc_id,bloc_row,filename) VALUES (2,1,2,3,'guide'); 
    3535INSERT INTO dtb_blocposition (page_id,target_id,bloc_id,bloc_row,filename) VALUES (2,1,3,1,'cart'); 
    36 INSERT INTO dtb_blocposition (page_id,target_id,bloc_id,bloc_row,filename) VALUES (2,10,4,0,'search_products'); 
    37 INSERT INTO dtb_blocposition (page_id,target_id,bloc_id,bloc_row,filename) VALUES (2,10,5,0,'news'); 
    38 INSERT INTO dtb_blocposition (page_id,target_id,bloc_id,bloc_row,filename) VALUES (2,10,6,0,'login'); 
    39 INSERT INTO dtb_blocposition (page_id,target_id,bloc_id,bloc_row,filename) VALUES (2,10,7,0,'best5'); 
    4036INSERT INTO dtb_blocposition (page_id,target_id,bloc_id,bloc_row,filename) VALUES (3,1,1,2,'category'); 
    4137INSERT INTO dtb_blocposition (page_id,target_id,bloc_id,bloc_row,filename) VALUES (3,1,2,3,'guide'); 
    4238INSERT INTO dtb_blocposition (page_id,target_id,bloc_id,bloc_row,filename) VALUES (3,1,3,1,'cart'); 
    43 INSERT INTO dtb_blocposition (page_id,target_id,bloc_id,bloc_row,filename) VALUES (3,10,4,0,'search_products'); 
    44 INSERT INTO dtb_blocposition (page_id,target_id,bloc_id,bloc_row,filename) VALUES (3,10,5,0,'news'); 
    45 INSERT INTO dtb_blocposition (page_id,target_id,bloc_id,bloc_row,filename) VALUES (3,10,6,0,'login'); 
    46 INSERT INTO dtb_blocposition (page_id,target_id,bloc_id,bloc_row,filename) VALUES (3,10,7,0,'best5'); 
    4739 
    4840INSERT INTO dtb_csv(csv_id,col,disp_name,rank,create_date,update_date) VALUES (1,'product_id','商品ID',1,now(),now()); 
     
    741733INSERT INTO mtb_db VALUES ('1', 'PostgreSQL',0); 
    742734INSERT INTO mtb_db VALUES ('2', 'MySQL',1); 
    743 INSERT INTO mtb_target VALUES ('1', 'LeftNavi',0); 
    744 INSERT INTO mtb_target VALUES ('2', 'MainHead',1); 
    745 INSERT INTO mtb_target VALUES ('3', 'RightNavi',2); 
    746 INSERT INTO mtb_target VALUES ('4', 'MainFoot',3); 
    747 INSERT INTO mtb_target VALUES ('5', 'TopNavi',4); 
    748 INSERT INTO mtb_target VALUES ('6', 'BottomNavi',5); 
    749 INSERT INTO mtb_target VALUES ('7', 'HeadNavi',6); 
    750 INSERT INTO mtb_target VALUES ('8', 'HeaderTopNavi',7); 
    751 INSERT INTO mtb_target VALUES ('9', 'FooterBottomNavi',8); 
    752 INSERT INTO mtb_target VALUES ('10', 'Unused',9); 
     735INSERT INTO mtb_target VALUES ('0', 'Unused',0); 
     736INSERT INTO mtb_target VALUES ('1', 'LeftNavi',1); 
     737INSERT INTO mtb_target VALUES ('2', 'MainHead',2); 
     738INSERT INTO mtb_target VALUES ('3', 'RightNavi',3); 
     739INSERT INTO mtb_target VALUES ('4', 'MainFoot',4); 
     740INSERT INTO mtb_target VALUES ('5', 'TopNavi',5); 
     741INSERT INTO mtb_target VALUES ('6', 'BottomNavi',6); 
     742INSERT INTO mtb_target VALUES ('7', 'HeadNavi',7); 
     743INSERT INTO mtb_target VALUES ('8', 'HeaderTopNavi',8); 
     744INSERT INTO mtb_target VALUES ('9', 'FooterBottomNavi',9); 
    753745INSERT INTO mtb_review_deny_url VALUES ('0', 'http://',0); 
    754746INSERT INTO mtb_review_deny_url VALUES ('1', 'https://',1); 
Note: See TracChangeset for help on using the changeset viewer.