- Timestamp:
- 2008/11/08 08:29:40 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/pages/mypage/LC_Page_Mypage_DeliveryAddr.php
r17519 r17700 65 65 // GETでページを指定されている場合には指定ページに戻す 66 66 if (isset($_GET['page'])) { 67 $ParentPage = $_GET['page'];67 $ParentPage = htmlspecialchars($_GET['page'],ENT_QUOTES); 68 68 } 69 69 $this->ParentPage = $ParentPage; … … 124 124 $deliv_count = $objQuery->count("dtb_other_deliv", "customer_id=?", array($objCustomer->getValue('customer_id'))); 125 125 if ($deliv_count < DELIV_ADDR_MAX or isset($_POST['other_deliv_id'])){ 126 $this->lfRegistData($_POST,$arrRegistColumn, $objCustomer); 126 if(strlen($_POST['other_deliv_id'] != 0)){ 127 $deliv_count = $objQuery->count("dtb_other_deliv","customer_id=? and other_deliv_id = ?" ,array($objCustomer->getValue('customer_id'), $_POST['other_deliv_id'])); 128 if ($deliv_count == 0) { 129 SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR); 130 }else{ 131 $this->lfRegistData($_POST,$arrRegistColumn, $objCustomer); 132 } 133 }else{ 134 $this->lfRegistData($_POST,$arrRegistColumn, $objCustomer); 135 } 127 136 } 128 $this->tpl_onload = "fnUpdateParent('". $this->getLocation($_POST['ParentPage']) ."'); window.close();"; 137 if( $_POST['ParentPage'] == MYPAGE_DELIVADDR_URL || $_POST['ParentPage'] == URL_DELIV_TOP ){ 138 $this->tpl_onload = "fnUpdateParent('". $this->getLocation($_POST['ParentPage']) ."'); window.close();"; 139 }else{ 140 SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR); 141 } 129 142 } 130 143 break;
Note: See TracChangeset
for help on using the changeset viewer.