- Timestamp:
- 2013/08/26 15:52:37 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13_0/data/class/pages/admin/basis/LC_Page_Admin_Basis.php
r22999 r23126 38 38 * @return void 39 39 */ 40 function init()40 public function init() 41 41 { 42 42 parent::init(); … … 65 65 * @return void 66 66 */ 67 function process()67 public function process() 68 68 { 69 69 $this->action(); … … 76 76 * @return void 77 77 */ 78 function action()78 public function action() 79 79 { 80 80 $objDb = new SC_Helper_DB_Ex(); … … 87 87 $this->tpl_onload = "fnCheckLimit('downloadable_days', 'downloadable_days_unlimited', '" . DISABLED_RGB . "');"; 88 88 89 switch ($this->getMode()){90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 89 switch ($this->getMode()) { 90 case 'confirm': 91 $this->arrErr = $this->lfCheckError($objFormParam); 92 if (!empty($this->arrErr)) { 93 return; 94 } 95 $this->tpl_subtitle = 'SHOPマスター(確認)'; 96 $this->tpl_mainpage = 'basis/confirm.tpl'; 97 break; 98 99 case 'return': 100 break; 101 102 case 'complete': 103 $arrData = $objFormParam->getDbArray(); 104 SC_Helper_DB_Ex::registerBasisData($arrData); 105 106 // キャッシュファイル更新 107 $objDb->sfCreateBasisDataCache(); 108 $this->tpl_onload .= "window.alert('SHOPマスターの登録が完了しました。');"; 109 // breakはつけない 110 110 default: 111 112 113 114 115 111 $arrRet = $objDb->sfGetBasisData(true); 112 $objFormParam->setParam($arrRet); 113 $this->arrForm = $objFormParam->getHashArray(); 114 $this->arrForm['regular_holiday_ids'] = explode('|', $this->arrForm['regular_holiday_ids']); 115 break; 116 116 } 117 117 } … … 122 122 * @deprecated 2.12.4 123 123 */ 124 function lfUpdateData($arrData)124 public function lfUpdateData($arrData) 125 125 { 126 126 trigger_error('前方互換用メソッドが使用されました。', E_USER_WARNING); … … 133 133 * @deprecated 2.12.4 134 134 */ 135 function lfInsertData($arrData)135 public function lfInsertData($arrData) 136 136 { 137 137 trigger_error('前方互換用メソッドが使用されました。', E_USER_WARNING); … … 139 139 } 140 140 141 function lfInitParam(&$objFormParam, $post)141 public function lfInitParam(&$objFormParam, $post) 142 142 { 143 143 $objFormParam->addParam('会社名', 'company_name', STEXT_LEN, 'KVa', array('MAX_LENGTH_CHECK')); … … 189 189 190 190 // 入力エラーチェック 191 function lfCheckError(&$objFormParam)191 public function lfCheckError(&$objFormParam) 192 192 { 193 193 $arrErr = $objFormParam->checkError(); … … 201 201 $objErr->doFunc(array('FAX', 'fax01', 'fax02', 'fax03'), array('TEL_CHECK')); 202 202 203 return array_merge((array) $arrErr, (array)$objErr->arrErr);203 return array_merge((array) $arrErr, (array) $objErr->arrErr); 204 204 } 205 205 }
Note: See TracChangeset
for help on using the changeset viewer.