- Timestamp:
- 2009/07/15 14:39:49 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/helper/SC_Helper_PageLayout.php
r18189 r18190 53 53 $url = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; 54 54 } 55 55 56 $url2 = preg_replace('|^' . preg_quote(SITE_URL) . '|', '', $url); 56 57 // URLを元にページデザインを取得 … … 61 62 . TEMPLATE_NAME . "/" . $arrPageData[0]['filename'] . ".tpl"; 62 63 } 63 64 64 65 foreach($arrPageData[0] as $key => $val) { 65 66 $debug_message.= "arrPageData[$key]:" . $val . "\n"; … … 124 125 */ 125 126 function lfgetPageData($where = 'page_id <> 0', $where_vals = array()) { 127 126 128 $objQuery = new SC_Query; // DB操作オブジェクト 127 129 $arrRet = array(); // データ取得用 … … 167 169 168 170 // 取得するカラム 169 $col = "target_id, bloc_name, tpl_path, php_path ";171 $col = "target_id, bloc_name, tpl_path, php_path,anywhere"; 170 172 171 173 // 取得するテーブル … … 173 175 174 176 // where文生成 175 $where = " page_id = ?";177 $where = "anywhere = 1 OR page_id = ?"; 176 178 $where_vals[] = $page_id; 177 179 … … 181 183 // SQL実行 182 184 $arrRet = $objQuery->select($col, $table, $where, $where_vals); 183 185 184 186 // 結果を返す 185 187 return $arrRet; … … 198 200 foreach($arrNavi as $key => $val){ 199 201 // 指定された箇所と同じデータだけを取得する 200 if ($target_id == $val['target_id'] ){202 if ($target_id == $val['target_id'] ){ 201 203 if ($val['php_path'] != '') { 202 204 $arrNavi[$key]['php_path'] = HTML_PATH . $val['php_path'];
Note: See TracChangeset
for help on using the changeset viewer.