Changeset 20302
- Timestamp:
- 2011/02/21 18:50:54 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Control.php
r20301 r20302 82 82 83 83 // エラーチェック 84 $this->arrErr = $ this->lfCheckError();84 $this->arrErr = $objFormParam->checkError(); 85 85 if(count($this->arrErr) == 0) { 86 $this->lfSiteControlData($ _POST['control_id'], $objFormParam->getHashArray());86 $this->lfSiteControlData($objFormParam->getHashArray()); 87 87 // javascript実行 88 88 $this->tpl_onload = "alert('更新が完了しました。');"; … … 94 94 } 95 95 96 $this->arrControlList = $arrSiteControlList; 97 } 98 99 function lfGetControlList() { 96 100 // サイト管理情報の取得 97 101 $arrSiteControlList = $this->lfGetControlList(); … … 110 114 } 111 115 } 112 113 $this->arrControlList = $arrSiteControlList; 116 return $arrSiteControlList; 114 117 } 115 118 … … 138 141 } 139 142 140 /* 入力内容のチェック */141 function lfCheckError(&$objFormParam) {142 // 入力データを渡す。143 $arrRet = $objFormParam->getHashArray();144 $objErr = new SC_CheckError($arrRet);145 $objErr->arrErr = $objFormParam->checkError();146 147 return $objErr->arrErr;148 }149 150 143 /* DBへデータを登録する */ 151 function lfSiteControlData($ control_id = "", $post) {144 function lfSiteControlData($post) { 152 145 $objQuery =& SC_Query::getSingletonInstance(); 153 146 $sqlval = $post; … … 163 156 } else { 164 157 $where = "control_id = ?"; 165 $objQuery->update("dtb_site_control", $sqlval, $where, array($ control_id));158 $objQuery->update("dtb_site_control", $sqlval, $where, array($post['control_id'])); 166 159 } 167 160 }
Note: See TracChangeset
for help on using the changeset viewer.
