Changeset 17616 for branches/version-2
- Timestamp:
- 2008/09/18 18:38:06 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2/data/class/pages/mypage/LC_Page_Mypage_DeliveryAddr.php
r16582 r17616 106 106 107 107 108 switch ($_POST['mode']){109 case 'edit':110 $_POST = $this->lfConvertParam($_POST,$arrRegistColumn);111 $this->arrErr = $this->lfErrorCheck($_POST);112 if ($this->arrErr){113 foreach ($_POST as $key => $val){114 $this->$key = $val;115 }116 }else{117 //別のお届け先登録数の取得118 $deliv_count = $objQuery->count("dtb_other_deliv", "customer_id=?", array($objCustomer->getValue('customer_id')));119 if ($deliv_count < DELIV_ADDR_MAX or isset($_POST['other_deliv_id'])){120 $this->lfRegistData($_POST,$arrRegistColumn, $objCustomer);121 }122 $this->tpl_onload = "fnUpdateParent('". $this->getLocation($_POST['ParentPage']) ."'); window.close();";123 }124 break;125 }126 127 108 if ($_GET['other_deliv_id'] != ""){ 128 109 //別のお届け先情報取得 129 110 $arrOtherDeliv = $objQuery->select("*", "dtb_other_deliv", "other_deliv_id=? ", array($_SESSION['other_deliv_id'])); 130 $this->arrOtherDeliv = $arrOtherDeliv[0]; 111 $this->arrForm = $arrOtherDeliv[0]; 112 } 113 114 switch ($_POST['mode']) { 115 case 'edit': 116 $_POST = $this->lfConvertParam($_POST,$arrRegistColumn); 117 $this->arrErr = $this->lfErrorCheck($_POST); 118 if ($this->arrErr){ 119 foreach ($_POST as $key => $val){ 120 if ($val != "") $this->arrForm[$key] = $val; 121 } 122 } else { 123 //別のお届け先登録数の取得 124 $deliv_count = $objQuery->count("dtb_other_deliv", "customer_id=?", array($objCustomer->getValue('customer_id'))); 125 if ($deliv_count < DELIV_ADDR_MAX or isset($_POST['other_deliv_id'])){ 126 $this->lfRegistData($_POST,$arrRegistColumn, $objCustomer); 127 } 128 $this->tpl_onload = "fnUpdateParent('". $this->getLocation($_POST['ParentPage']) ."'); window.close();"; 129 } 130 break; 131 131 } 132 132
Note: See TracChangeset
for help on using the changeset viewer.