Ignore:
Timestamp:
2007/03/16 16:21:16 (19 years ago)
Author:
uehara
Message:
 
File:
1 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 
Note: See TracChangeset for help on using the changeset viewer.