Changeset 17689


Ignore:
Timestamp:
2008/11/06 16:06:17 (15 years ago)
Author:
takegami
Message:

#392 解決

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-1/html/mypage/delivery_addr.php

    r313 r17689  
    7575            //Ê̤ΤªÆϤ±ÀèÅÐÏ¿¿ô¤Î¼èÆÀ 
    7676            $deliv_count = $objQuery->count("dtb_other_deliv", "customer_id=?", array($objCustomer->getValue('customer_id'))); 
    77             if ($deliv_count < DELIV_ADDR_MAX or isset($_POST['other_deliv_id'])){ 
    78                 lfRegistData($_POST,$arrRegistColumn); 
    79             } 
    80             $objPage->tpl_onload = "fnUpdateParent('".$_POST['ParentPage']."'); window.close();"; 
     77            if ($deliv_count < DELIV_ADDR_MAX or isset($_POST['other_deliv_id'])){ 
     78            // ´û¸¤ªÆϤ±Àè¤ÎÊÔ½¸¤Î¤È¤­¡¢ÉÔÀµ¤Ê other_deliv_id ¤¬»ØÄꤵ¤ì¤¿¤é¥¨¥é¡¼²èÌ̤ء£ 
     79                if(strlen($_POST['other_deliv_id']) != 0) { 
     80                    $deliv_count = $objQuery->count("dtb_other_deliv","customer_id=? and other_deliv_id = ?" ,array($objCustomer->getValue('customer_id'),$_POST['other_deliv_id'])); 
     81                    if($deliv_count != 1) { 
     82                        sfDispSiteError(CUSTOMER_ERROR); 
     83                    } 
     84                } 
     85            lfRegistData($_POST,$arrRegistColumn); 
     86            }  
     87            if($_POST['ParentPage'] == MYPAGE_DELIVADDR_URL || $_POST['ParentPage'] == URL_DELIV_TOP){ 
     88                $objPage->tpl_onload = "fnUpdateParent('".$_POST['ParentPage']."'); window.close();"; 
     89            }else{ 
     90                sfDispSiteError(CUSTOMER_ERROR); 
     91            } 
    8192        } 
    8293        break; 
Note: See TracChangeset for help on using the changeset viewer.