- Timestamp:
- 2007/07/20 15:58:59 (17 years ago)
- Location:
- branches/feature-module-update
- Files:
-
- 1 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update
-
Property
svn:ignore
set to
.cache
.settings
.projectOptions
-
Property
svn:ignore
set to
-
branches/feature-module-update/html/admin/contents/page_edit.php
r12157 r15078 16 16 global $arrPageList; 17 17 $this->arrPageList = $arrPageList; 18 $this->tpl_subtitle = ' ¥Ú¡¼¥¸ÊÔ½¸';18 $this->tpl_subtitle = 'ページ編集'; 19 19 } 20 20 } … … 25 25 $objSess = new SC_Session(); 26 26 27 $objFormParam = new SC_FormParam(); // ¥Õ¥©¡¼¥àÍÑ28 lfInitParam(); // ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½29 $objFormParam->setParam($_POST); // POST ÃͤμèÆÀ27 $objFormParam = new SC_FormParam(); // フォーム用 28 lfInitParam(); // パラメータ情報の初期化 29 $objFormParam->setParam($_POST); // POST値の取得 30 30 31 31 switch($_POST['mode']) { … … 35 35 $page = $_POST['page']; 36 36 if($arrPageTpl[$page] != "") { 37 // °ì»þ¥Õ¥¡¥¤¥ë¤Ë½ñ¤¹þ¤à37 // 一時ファイルに書き込む 38 38 $path = TEMPLATE_FTP_DIR . $arrPageTpl[$page] . ".tmp"; 39 39 $ret = lfWriteFile($path, $objFormParam->getValue('template')); 40 // ËÜÈÖ¥Õ¥¡¥¤¥ë¤ËÈ¿±Ç40 // 本番ファイルに反映 41 41 if($ret > 0) { 42 42 $dst_path = TEMPLATE_FTP_DIR . $arrPageTpl[$page]; 43 43 if(!copy($path, $dst_path)) { 44 print(" ¥Õ¥¡¥¤¥ë¤Î½ñ¹þ¤ß¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£");44 print("ファイルの書込みに失敗しました。"); 45 45 } 46 46 } … … 53 53 $page = $_POST['page']; 54 54 if($arrPageTpl[$page] != "") { 55 // °ì»þ¥Õ¥¡¥¤¥ë¤Ë½ñ¤¹þ¤à55 // 一時ファイルに書き込む 56 56 $path = TEMPLATE_FTP_DIR . $arrPageTpl[$page] . ".tmp"; 57 57 $ret = lfWriteFile($path, $objFormParam->getValue('template')); 58 // ¥×¥ì¥Ó¥å¡¼É½¼¨58 // プレビュー表示 59 59 $url = $arrPageURL[$page] . "tpl=" . $arrPageTpl[$page] . ".tmp"; 60 60 $objPage->tpl_onload ="window.open('$url', 'preview');"; … … 65 65 $page = $_POST['page']; 66 66 if($arrPageTpl[$page] != "") { 67 // ¥Õ¥¡¥¤¥ë¤ÎÃæ¿È¤òÆɤó¤Çʸ»úÎó¤Ë³ÊǼ¤¹¤ë67 // ファイルの中身を読んで文字列に格納する 68 68 $path = TEMPLATE_FTP_DIR . $arrPageTpl[$page]; 69 69 if(file_exists($path)) { … … 84 84 /* 85 85 86 // ¥Õ¥¡¥¤¥ë¤ÎÃæ¿È¤òÆɤó¤Çʸ»úÎó¤Ë³ÊǼ¤¹¤ë86 // ファイルの中身を読んで文字列に格納する 87 87 $path = TEMPLATE_FTP_DIR . "index.tpl"; 88 88 $fp = fopen($path, "r"); … … 95 95 */ 96 96 97 // ÆþÎÏÃͤμèÆÀ97 // 入力値の取得 98 98 $objPage->arrForm = $objFormParam->getFormParamList(); 99 99 … … 101 101 $objView->display(MAIN_FRAME); 102 102 //--------------------------------------------------------- 103 /* ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½*/103 /* パラメータ情報の初期化 */ 104 104 function lfInitParam() { 105 105 global $objFormParam; 106 $objFormParam->addParam(" ¥Ú¡¼¥¸ÁªÂò", "page", INT_LEN, "n", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));107 $objFormParam->addParam(" ¥Æ¥ó¥×¥ì¡¼¥È", "template", LLTEXT_LEN, "KVa", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK"));106 $objFormParam->addParam("ページ選択", "page", INT_LEN, "n", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK")); 107 $objFormParam->addParam("テンプレート", "template", LLTEXT_LEN, "KVa", array("EXIST_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK")); 108 108 } 109 109
Note: See TracChangeset
for help on using the changeset viewer.