Ignore:
Timestamp:
2009/07/15 14:39:49 (15 years ago)
Author:
miningbrownie
Message:

ブロックをすべてのページにまたがって表示させるようにしました。(nanasessさまからのご提案です。) チケット:#518

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/helper/SC_Helper_PageLayout.php

    r18189 r18190  
    5353                $url = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; 
    5454            } 
     55             
    5556            $url2 = preg_replace('|^' . preg_quote(SITE_URL) . '|', '', $url); 
    5657            // URLを元にページデザインを取得 
     
    6162                . TEMPLATE_NAME . "/" . $arrPageData[0]['filename'] . ".tpl"; 
    6263        } 
    63          
     64                 
    6465        foreach($arrPageData[0] as $key => $val) { 
    6566            $debug_message.= "arrPageData[$key]:" . $val . "\n"; 
     
    124125     */ 
    125126    function lfgetPageData($where = 'page_id <> 0', $where_vals = array()) { 
     127                 
    126128        $objQuery = new SC_Query;       // DB操作オブジェクト 
    127129        $arrRet = array();              // データ取得用 
     
    167169 
    168170        // 取得するカラム 
    169         $col = "target_id, bloc_name, tpl_path, php_path"; 
     171        $col = "target_id, bloc_name, tpl_path, php_path,anywhere"; 
    170172         
    171173        // 取得するテーブル 
     
    173175         
    174176        // where文生成 
    175         $where = "page_id = ?"; 
     177        $where = "anywhere = 1 OR page_id = ?"; 
    176178        $where_vals[] = $page_id; 
    177179 
     
    181183        // SQL実行 
    182184        $arrRet = $objQuery->select($col, $table, $where, $where_vals); 
    183                                              
     185         
    184186        // 結果を返す 
    185187        return $arrRet; 
     
    198200            foreach($arrNavi as $key => $val){ 
    199201                // 指定された箇所と同じデータだけを取得する 
    200                 if ($target_id == $val['target_id']){ 
     202                if ($target_id == $val['target_id'] ){ 
    201203                    if ($val['php_path'] != '') { 
    202204                        $arrNavi[$key]['php_path'] = HTML_PATH . $val['php_path']; 
Note: See TracChangeset for help on using the changeset viewer.