Changeset 20618 for branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_Bloc.php
- Timestamp:
- 2011/03/13 19:34:53 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_Bloc.php
r20560 r20618 117 117 118 118 switch($this->getMode()) { 119 case 'preview':120 // プレビューファイル作成121 $prev_path = USER_INC_REALDIR . 'preview/bloc_preview.tpl';122 // ディレクトリの作成123 SC_Utils_Ex::sfMakeDir($prev_path);124 $res = file_put_contents($prev_path, $_POST['bloc_html']);125 if ($res === false) {126 SC_Utils_Ex::sfDispException();127 }128 129 // プレビューデータ表示130 $this->preview = 'on';131 $this->arrBlocData['tpl_data'] = $_POST['bloc_html'];132 $this->arrBlocData['tpl_path'] = $prev_path;133 $this->arrBlocData['bloc_name'] = $_POST['bloc_name'];134 $this->arrBlocData['filename'] = $_POST['filename'];135 $this->text_row = $_POST['html_area_row'];136 break;137 119 case 'confirm': 138 $this->preview = 'off';139 120 // エラーチェック 140 121 $this->arrErr = $this->lfErrorCheck($_POST); … … 176 157 break; 177 158 case 'delete': 178 $this->preview = 'off';179 159 // DBへデータを更新する 180 160 $objQuery = new SC_Query_Ex(); // DB操作オブジェクト
Note: See TracChangeset
for help on using the changeset viewer.