Changeset 19828 for branches/version-2_5-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer_Edit.php
- Timestamp:
- 2011/01/05 19:13:48 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer_Edit.php
r19807 r19828 216 216 } 217 217 218 219 // 編集登録220 function lfRegisDatat($array, $arrRegistColumn) {221 222 foreach ($arrRegistColumn as $data) {223 if($array[$data["column"]] != "") {224 $arrRegist[$data["column"]] = $array[$data["column"]];225 } else {226 $arrRegist[$data["column"]] = NULL;227 }228 }229 if (strlen($array["year"]) > 0) {230 $arrRegist["birth"] = $array["year"] ."/". $array["month"] ."/". $array["day"] ." 00:00:00";231 }232 233 //-- パスワードの更新がある場合は暗号化。(更新がない場合はUPDATE文を構成しない)234 if ($array["password"] != DEFAULT_PASSWORD) {235 $arrRegist["password"] = sha1($array["password"] . ":" . AUTH_MAGIC);236 } else {237 unset($arrRegist['password']);238 }239 240 $arrRegist["update_date"] = "Now()";241 242 //-- 編集登録実行243 $this->objQuery->begin();244 $this->objQuery->Insert("dtb_customer", $arrRegist, "customer_id = '" .addslashes($array["customer_id"]). "'");245 246 $this->objQuery->commit();247 }248 249 250 218 //---- 取得文字列の変換 251 219 function lfConvertParam($array, $arrRegistColumn) {
Note: See TracChangeset
for help on using the changeset viewer.