Changeset 11902


Ignore:
Timestamp:
2007/03/16 16:21:16 (17 years ago)
Author:
uehara
Message:
 
Location:
branches/dev/html/mobile
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/html/mobile/entry/index.php

    r11894 r11902  
    100100    $objPage->arrForm = lfConvertParam($objPage->arrForm, $arrRegistColumn); 
    101101 
     102    // Ìá¤ë¥Ü¥¿¥óÍѽèÍý 
     103    if (!empty($_POST["return"])) { 
     104        switch ($_POST["mode"]) { 
     105        case "complete": 
     106            $_POST["mode"] = "set3"; 
     107            break; 
     108        case "confirm": 
     109            $_POST["mode"] = "set2"; 
     110            break; 
     111        default: 
     112            $_POST["mode"] = "set1"; 
     113            break; 
     114        } 
     115    } 
     116 
    102117    //--¡¡ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯ 
    103118    if ($_POST["mode"] == "set1") { 
     
    115130    } 
    116131 
    117     if ($objPage->arrErr || $_POST["mode"] == "return") {       // ÆþÎÏ¥¨¥é¡¼¤Î¥Á¥§¥Ã¥¯ 
    118         foreach($objPage->arrForm as $key => $val) { 
    119             $objPage->$key = $val; 
    120         } 
     132    foreach($objPage->arrForm as $key => $val) { 
     133        $objPage->$key = $val; 
     134    } 
     135 
     136    if ($objPage->arrErr || !empty($_POST["return"])) {     // ÆþÎÏ¥¨¥é¡¼¤Î¥Á¥§¥Ã¥¯ 
    121137 
    122138        //-- ¥Ç¡¼¥¿¤ÎÀßÄê 
    123139        if ($_POST["mode"] == "set1") { 
    124140            $checkVal = array("email", "password", "reminder", "reminder_answer", "name01", "name02", "kana01", "kana02"); 
    125             foreach($objPage->arrForm as $key => $val) { 
    126                 if ($key != "mode" && $key != "subm" & !in_array($key, $checkVal)) $objPage->list_data[ $key ] = $val; 
    127             } 
    128  
    129141        } elseif ($_POST["mode"] == "set2") { 
    130142            $checkVal = array("sex", "year", "month", "day", "zip01", "zip02"); 
    131             foreach($objPage->arrForm as $key => $val) { 
    132                 if ($key != "mode" && $key != "subm" & !in_array($key, $checkVal)) $objPage->list_data[ $key ] = $val; 
    133             } 
    134143        } else { 
    135             $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03"); 
    136             foreach($objPage->arrForm as $key => $val) { 
    137                 if ($key != "mode" && $key != "subm" & !in_array($key, $checkVal)) $objPage->list_data[ $key ] = $val; 
    138             } 
    139         } 
     144            $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mail_flag"); 
     145        } 
     146 
     147        foreach($objPage->arrForm as $key => $val) { 
     148            if ($key != "mode" && $key != "submit" && $key != "return" && $key != session_name() && !in_array($key, $checkVal)) 
     149                $objPage->list_data[ $key ] = $val; 
     150        } 
     151 
    140152 
    141153 
     
    150162            $objPage->tpl_title = '²ñ°÷ÅÐÏ¿(3/3)'; 
    151163 
    152             $address = lfGetAddress($_REQUEST['zip01'].$_REQUEST['zip02']); 
    153             $objView->assign("pref", @$address[0]['state']); 
    154             $objView->assign("addr01", @$address[0]['city'] . @$address[0]['town']); 
     164            if (@$objPage->arrForm['pref'] == "" && @$objPage->arrForm['addr01'] == "" && @$objPage->arrForm['addr02'] == "") { 
     165                $address = lfGetAddress($_REQUEST['zip01'].$_REQUEST['zip02']); 
     166                $objPage->pref = @$address[0]['state']; 
     167                $objPage->addr01 = @$address[0]['city'] . @$address[0]['town']; 
     168            } 
    155169        } elseif ($_POST["mode"] == "confirm") { 
    156170            //¥Ñ¥¹¥ï¡¼¥Éɽ¼¨ 
     
    172186        //-- ¥Ç¡¼¥¿ÀßÄê 
    173187        unset($objPage->list_data); 
     188        if ($_POST["mode"] == "set1") { 
     189            $checkVal = array("sex", "year", "month", "day", "zip01", "zip02"); 
     190        } elseif ($_POST["mode"] == "set2") { 
     191            $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mail_flag"); 
     192        } else { 
     193            $checkVal = array(); 
     194        } 
     195 
    174196        foreach($objPage->arrForm as $key => $val) { 
    175             if ($key != "mode" && $key != "subm") $objPage->list_data[ $key ] = $val; 
     197            if ($key != "mode" && $key != "submit" && $key != "confirm" && $key != "return" && $key != session_name() && !in_array($key, $checkVal)) { 
     198                $objPage->list_data[ $key ] = $val; 
     199            } 
    176200        } 
    177201 
  • branches/dev/html/mobile/mypage/change.php

    r11894 r11902  
    8585    $objPage->arrForm = lfConvertParam($objPage->arrForm, $arrRegistColumn); 
    8686 
     87    // Ìá¤ë¥Ü¥¿¥óÍѽèÍý 
     88    if (!empty($_POST["return"])) { 
     89        switch ($_POST["mode"]) { 
     90        case "complete": 
     91            $_POST["mode"] = "set3"; 
     92            break; 
     93        case "confirm": 
     94            $_POST["mode"] = "set2"; 
     95            break; 
     96        default: 
     97            $_POST["mode"] = "set1"; 
     98            break; 
     99        } 
     100    } 
     101 
    87102    //--¡¡ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯ 
    88103    if ($_POST["mode"] == "set1") { 
     
    100115    } 
    101116 
    102     if ($objPage->arrErr || $_POST["mode"] == "return") {       // ÆþÎÏ¥¨¥é¡¼¤Î¥Á¥§¥Ã¥¯ 
     117    if ($objPage->arrErr || !empty($_POST["return"])) {     // ÆþÎÏ¥¨¥é¡¼¤Î¥Á¥§¥Ã¥¯ 
    103118        foreach($objPage->arrForm as $key => $val) { 
    104119            $objPage->$key = $val; 
     
    108123        if ($_POST["mode"] == "set1") { 
    109124            $checkVal = array("email", "password", "reminder", "reminder_answer", "name01", "name02", "kana01", "kana02"); 
    110             foreach($objPage->arrForm as $key => $val) { 
    111                 if ($key != "mode" && $key != "subm" & !in_array($key, $checkVal)) $objPage->list_data[ $key ] = $val; 
    112             } 
    113  
    114125        } elseif ($_POST["mode"] == "set2") { 
    115126            $checkVal = array("sex", "year", "month", "day", "zip01", "zip02"); 
    116             foreach($objPage->arrForm as $key => $val) { 
    117                 if ($key != "mode" && $key != "subm" & !in_array($key, $checkVal)) $objPage->list_data[ $key ] = $val; 
    118             } 
    119127        } else { 
    120             $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03"); 
    121             foreach($objPage->arrForm as $key => $val) { 
    122                 if ($key != "mode" && $key != "subm" & !in_array($key, $checkVal)) $objPage->list_data[ $key ] = $val; 
    123             } 
    124         } 
    125  
     128            $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mail_flag"); 
     129        } 
     130 
     131        foreach($objPage->arrForm as $key => $val) { 
     132            if ($key != "return" && $key != "mode" && $key != "confirm" && $key != session_name() && !in_array($key, $checkVal)) { 
     133                $objPage->list_data[ $key ] = $val; 
     134            } 
     135        } 
    126136 
    127137    } else { 
     
    153163        //-- ¥Ç¡¼¥¿ÀßÄê 
    154164        unset($objPage->list_data); 
     165        if ($_POST["mode"] == "set1") { 
     166            $checkVal = array("sex", "year", "month", "day", "zip01", "zip02"); 
     167        } elseif ($_POST["mode"] == "set2") { 
     168            $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mail_flag"); 
     169        } else { 
     170            $checkVal = array(); 
     171        } 
     172 
    155173        foreach($_POST as $key => $val) { 
    156             if ($key != "mode" && $key != "subm") $objPage->list_data[ $key ] = $val; 
     174            if ($key != "return" && $key != "mode" && $key != "confirm" && $key != session_name() && !in_array($key, $checkVal)) { 
     175                $objPage->list_data[ $key ] = $val; 
     176            } 
    157177        } 
    158178 
     
    193213        } 
    194214    } 
     215} 
     216 
     217$arrPrivateVariables = array('secret_key', 'first_buy_date', 'last_buy_date', 'buy_times', 'buy_total', 'point', 'note', 'status', 'create_date', 'update_date', 'del_flg', 'cell01', 'cell02', 'cell03', 'mobile_phone_id'); 
     218foreach ($arrPrivateVariables as $key) { 
     219    unset($objPage->list_data[$key]); 
    195220} 
    196221 
  • branches/dev/html/mobile/shopping/deliv_addr.php

    r11894 r11902  
    3434//-- ¥Ç¡¼¥¿ÀßÄê 
    3535foreach($_POST as $key => $val) { 
    36     if ($key != "mode") $objPage->list_data[ $key ] = $val; 
    37 } 
    38  
     36    if ($key != "mode" && $key != "return" && $key != "submit" && $key != session_name()) { 
     37        $objPage->list_data[ $key ] = $val; 
     38    } 
     39} 
    3940// ¥æ¡¼¥¶¥æ¥Ë¡¼¥¯ID¤Î¼èÆÀ¤È¹ØÆþ¾õÂÖ¤ÎÀµÅöÀ­¤ò¥Á¥§¥Ã¥¯ 
    4041$uniqid = sfCheckNormalAccess($objSiteSess, $objCartSess); 
     
    5657                        ); 
    5758 
     59// Ìá¤ë¥Ü¥¿¥óÍѽèÍý 
     60if (!empty($_POST["return"])) { 
     61    switch ($_POST["mode"]) { 
     62    case 'complete': 
     63        $_POST["mode"] = "set2"; 
     64        break; 
     65    case 'set2': 
     66        $_POST["mode"] = "set1"; 
     67        break; 
     68    default: 
     69        header("Location: " . gfAddSessionId('deliv.php')); 
     70        exit; 
     71    } 
     72} 
     73 
    5874switch ($_POST['mode']){ 
    5975    case 'set1': 
    6076        $objPage->arrErr = lfErrorCheck1($objPage->arrForm); 
    61         if (count($objPage->arrErr) == 0) { 
     77        if (count($objPage->arrErr) == 0 && empty($_POST["return"])) { 
    6278            $objPage->tpl_mainpage = 'shopping/set1.tpl'; 
    6379 
     80            $checkVal = array("pref", "addr01", "addr02", "addr03", "tel01", "tel02", "tel03"); 
     81            foreach($checkVal as $key) { 
     82                unset($objPage->list_data[$key]); 
     83            } 
     84 
    6485            // ͹ÊØÈֹ椫¤é½»½ê¤Î¼èÆÀ 
    65             $address = lfGetAddress($_REQUEST['zip01'].$_REQUEST['zip02']); 
    66  
    67             $objPage->arrForm['pref'] = @$address[0]['state']; 
    68             $objPage->arrForm['addr01'] = @$address[0]['city'] . @$address[0]['town']; 
     86            if (@$objPage->arrForm['pref'] == "" && @$objPage->arrForm['addr01'] == "" && @$objPage->arrForm['addr02'] == "") { 
     87                $address = lfGetAddress($_REQUEST['zip01'].$_REQUEST['zip02']); 
     88 
     89                $objPage->arrForm['pref'] = @$address[0]['state']; 
     90                $objPage->arrForm['addr01'] = @$address[0]['city'] . @$address[0]['town']; 
     91            } 
     92        } else { 
     93            $checkVal = array("name01", "name02", "kana01", "kana02", "zip01", "zip02"); 
     94            foreach($checkVal as $key) { 
     95                unset($objPage->list_data[$key]); 
     96            } 
    6997        } 
    7098        break; 
    7199    case 'set2': 
    72100        $objPage->arrErr = lfErrorCheck2($objPage->arrForm); 
    73         if (count($objPage->arrErr) == 0) { 
     101        if (count($objPage->arrErr) == 0 && empty($_POST["return"])) { 
    74102            $objPage->tpl_mainpage = 'shopping/set2.tpl'; 
    75103        } else { 
     
    77105 
    78106            $checkVal = array("pref", "addr01", "addr02", "addr03", "tel01", "tel02", "tel03"); 
    79             //-- ¥Ç¡¼¥¿ÀßÄê 
    80             unset($objPage->list_data); 
    81             foreach($_POST as $key => $val) { 
    82                 if ($key != "mode" && !in_array($key, $checkVal)) $objPage->list_data[ $key ] = $val; 
     107            foreach($checkVal as $key) { 
     108                unset($objPage->list_data[$key]); 
    83109            } 
    84110        } 
  • branches/dev/html/mobile/shopping/payment.php

    r11851 r11902  
    5959// ¥«¡¼ÅÔÆâ¤Î¾¦ÉʤÎÇä¤êÀÚ¤ì¥Á¥§¥Ã¥¯ 
    6060$objCartSess->chkSoldOut($objCartSess->getCartList()); 
     61 
     62// Ìá¤ë¥Ü¥¿¥ó¤Î½èÍý 
     63if (!empty($_POST['return'])) { 
     64    switch ($_POST['mode']) { 
     65    case 'confirm': 
     66        $_POST['mode'] = 'payment'; 
     67        break; 
     68    default: 
     69        // Àµ¾ï¤Ê¿ä°Ü¤Ç¤¢¤ë¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯ 
     70        $objSiteSess->setRegistFlag(); 
     71        header("Location: " . gfAddSessionId(URL_SHOP_TOP)); 
     72        exit; 
     73    } 
     74} 
    6175 
    6276switch($_POST['mode']) { 
Note: See TracChangeset for help on using the changeset viewer.