Changeset 3307
- Timestamp:
- 2006/08/30 22:14:47 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/admin/design/template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/admin/design/template.php
r3281 r3307 262 262 } 263 263 264 sfprintr($arrTemplate);265 sfprintr($fileArray=glob( ROOT_DIR. $tpl_path."*.tpl" ));264 $taget_tpl_path = ROOT_DIR . $tpl_path . $arrTemplate[0]['template_code']; 265 $save_tpl_path = ROOT_DIR . $tpl_path; 266 266 267 267 // TOP¤òÊѹ¹¤·¤¿¾ì¹ç¤Ë¤ÏÁ´²èÌÌÊѹ¹ 268 268 if ($objPage->tpl_subno_template == $objPage->arrSubnavi[1]){ 269 269 // ¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë¤ò¥³¥Ô¡¼ 270 copy(ROOT_DIR . $tpl_path . $arrTemplate[0]['template_code'] . "/top.tpl", ROOT_DIR . $tpl_path . "top.tpl"); 271 copy(ROOT_DIR . $tpl_path . $arrTemplate[0]['template_code'] . "/list.tpl", ROOT_DIR . $tpl_path . "list.tpl"); 272 copy(ROOT_DIR . $tpl_path . $arrTemplate[0]['template_code'] . "/detail.tpl", ROOT_DIR . $tpl_path . "detail.tpl"); 273 copy(ROOT_DIR . $tpl_path . $arrTemplate[0]['template_code'] . "/mypage.tpl", ROOT_DIR . $tpl_path . "mypage.tpl"); 270 copy($taget_tpl_path . "/top.tpl", $save_tpl_path . "top.tpl"); 271 copy($taget_tpl_path . "/list.tpl", $save_tpl_path . "list.tpl"); 272 copy($taget_tpl_path . "/detail.tpl", $save_tpl_path . "detail.tpl"); 273 274 // MYPAGE¤Î¥Õ¥¡¥¤¥ë¤ò¼èÆÀ¤¹¤ë 275 $arrMypage = $fileArray=glob($taget_tpl_path ."*.tpl" ); 276 277 // ¥Õ¥©¥ë¥À¤¬¤Ê¤±¤ì¤ÐºîÀ®¤¹¤ë 278 if(!is_dir($save_tpl_path."mypage")){ 279 mkdir($save_tpl_path."mypage"); 280 } 281 282 foreach($arrMypage as $key => $val){ 283 $matches = array(); 284 mb_ereg("^(.*[\/])(.*)",$val, $matches); 285 $data=$matches[2]; 286 287 sfprintr($matches); 288 // copy($val, $save_tpl_path . "detail.tpl"); 289 } 274 290 275 291 // ¥Ö¥í¥Ã¥¯¥Ç¡¼¥¿¤Î¥³¥Ô¡¼ 276 292 }else{ 277 293 // ¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë¤ò¥³¥Ô¡¼ 278 copy( ROOT_DIR . $tpl_path . $arrTemplate[0]['template_code'] . "/" . $tpl_name, ROOT_DIR . $tpl_path . $tpl_name);279 } 280 } 294 copy($tpl_path . "/" . $tpl_name, $save_tpl_path . $tpl_name); 295 } 296 }
Note: See TracChangeset
for help on using the changeset viewer.
