Changeset 20166 for branches/version-2_5-dev/data/class
- Timestamp:
- 2011/02/15 14:42:28 (15 years ago)
- Location:
- branches/version-2_5-dev/data/class/pages/admin/basis
- Files:
-
- 4 edited
-
LC_Page_Admin_Basis.php (modified) (1 diff)
-
LC_Page_Admin_Basis_Payment_Input.php (modified) (1 diff)
-
LC_Page_Admin_Basis_Point.php (modified) (2 diffs)
-
LC_Page_Admin_Basis_Tradelaw.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis.php
r20164 r20166 92 92 $this->tpl_mode = "insert"; 93 93 } 94 //TODO 要リファクタリング(MODE if利用) 95 if( $this->getMode()!=null) {94 95 if(!empty($_POST)) { 96 96 // POSTデータの引き継ぎ 97 97 $this->arrForm = $_POST; -
branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Payment_Input.php
r20164 r20166 120 120 $this->objUpFile->deleteFile($_POST['image_key']); 121 121 break; 122 123 case 'pre_edit': 124 if ($_SERVER['REQUEST_METHOD'] == 'GET' && SC_Utils_Ex::sfIsInt($_GET['payment_id'])) { 125 $arrRet = $this->lfGetData($_GET['payment_id']); 126 $this->objFormParam->setParam($arrRet); 127 $this->charge_flg = $arrRet["charge_flg"]; 128 // DBデータから画像ファイル名の読込 129 $this->objUpFile->setDBFileList($arrRet); 130 $this->tpl_payment_id = $_GET['payment_id']; 131 } 132 break; 122 133 default: 123 134 break; 124 135 } 125 136 126 if ($_SERVER['REQUEST_METHOD'] == 'GET') { 127 //TODO: 要リファクタリング(MODE switch 入れ子) 128 switch($this->getMode()) { 129 case 'pre_edit': 130 if(SC_Utils_Ex::sfIsInt($_GET['payment_id'])) { 131 $arrRet = $this->lfGetData($_GET['payment_id']); 132 $this->objFormParam->setParam($arrRet); 133 $this->charge_flg = $arrRet["charge_flg"]; 134 // DBデータから画像ファイル名の読込 135 $this->objUpFile->setDBFileList($arrRet); 136 $this->tpl_payment_id = $_GET['payment_id']; 137 } 138 break; 139 default: 140 break; 141 } 142 } else { 137 if ($_SERVER['REQUEST_METHOD'] === 'POST') { 143 138 $this->tpl_payment_id = $_POST['payment_id']; 144 139 } -
branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Point.php
r20164 r20166 92 92 $this->tpl_mode = "insert"; 93 93 } 94 //TODO 要リファクタリング(MODE if利用) 95 if( $this->getMode()!=null) {94 95 if(!empty($_POST)) { 96 96 // 入力値の変換 97 97 $this->objFormParam->convParam(); … … 115 115 } else { 116 116 $arrCol = $this->objFormParam->getKeyList(); // キー名一覧を取得 117 $col = SC_Utils_Ex::sfGetCommaList($arrCol); 117 $col = SC_Utils_Ex::sfGetCommaList($arrCol); 118 // DB値の取得 118 119 $arrRet = $objQuery->select($col, "dtb_baseinfo"); 119 // POST値の取得120 120 $this->objFormParam->setParam($arrRet[0]); 121 121 } -
branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Tradelaw.php
r20164 r20166 95 95 $this->tpl_mode = "insert"; 96 96 } 97 //TODO 要リファクタリング(MODE if利用) 98 if( $this->getMode()!=null) {97 98 if(!empty($_POST)) { 99 99 // 入力値の変換 100 100 $this->objFormParam->convParam(); … … 118 118 } else { 119 119 $arrCol = $this->objFormParam->getKeyList(); // キー名一覧を取得 120 $col = SC_Utils_Ex::sfGetCommaList($arrCol); 120 $col = SC_Utils_Ex::sfGetCommaList($arrCol); 121 // DB値の取得 121 122 $arrRet = $objQuery->select($col, "dtb_baseinfo"); 122 // DB値の取得123 123 $this->objFormParam->setParam($arrRet[0]); 124 124 }
Note: See TracChangeset
for help on using the changeset viewer.
