Changeset 11896 for branches/mobile/html
- Timestamp:
- 2007/03/16 09:36:36 (20 years ago)
- Location:
- branches/mobile/html/mobile
- Files:
-
- 4 edited
-
entry/index.php (modified) (4 diffs)
-
mypage/change.php (modified) (5 diffs)
-
shopping/deliv_addr.php (modified) (3 diffs)
-
shopping/payment.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/mobile/html/mobile/entry/index.php
r11684 r11896 99 99 $objPage->arrForm = lfConvertParam($objPage->arrForm, $arrRegistColumn); 100 100 101 // Ìá¤ë¥Ü¥¿¥óÍѽèÍý 102 if (!empty($_POST["return"])) { 103 switch ($_POST["mode"]) { 104 case "complete": 105 $_POST["mode"] = "set3"; 106 break; 107 case "confirm": 108 $_POST["mode"] = "set2"; 109 break; 110 default: 111 $_POST["mode"] = "set1"; 112 break; 113 } 114 } 115 101 116 //--¡¡ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯ 102 117 if ($_POST["mode"] == "set1") { … … 114 129 } 115 130 116 if ($objPage->arrErr || $_POST["mode"] == "return") { // ÆþÎÏ¥¨¥é¡¼¤Î¥Á¥§¥Ã¥¯ 117 foreach($objPage->arrForm as $key => $val) { 118 $objPage->$key = $val; 119 } 131 foreach($objPage->arrForm as $key => $val) { 132 $objPage->$key = $val; 133 } 134 135 if ($objPage->arrErr || !empty($_POST["return"])) { // ÆþÎÏ¥¨¥é¡¼¤Î¥Á¥§¥Ã¥¯ 120 136 121 137 //-- ¥Ç¡¼¥¿¤ÎÀßÄê 122 138 if ($_POST["mode"] == "set1") { 123 139 $checkVal = array("email", "password", "reminder", "reminder_answer", "name01", "name02", "kana01", "kana02"); 124 foreach($objPage->arrForm as $key => $val) {125 if ($key != "mode" && $key != "subm" & !in_array($key, $checkVal)) $objPage->list_data[ $key ] = $val;126 }127 128 140 } elseif ($_POST["mode"] == "set2") { 129 141 $checkVal = array("sex", "year", "month", "day", "zip01", "zip02"); 130 foreach($objPage->arrForm as $key => $val) {131 if ($key != "mode" && $key != "subm" & !in_array($key, $checkVal)) $objPage->list_data[ $key ] = $val;132 }133 142 } else { 134 $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03"); 135 foreach($objPage->arrForm as $key => $val) { 136 if ($key != "mode" && $key != "subm" & !in_array($key, $checkVal)) $objPage->list_data[ $key ] = $val; 137 } 138 } 143 $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mail_flag"); 144 } 145 146 foreach($objPage->arrForm as $key => $val) { 147 if ($key != "mode" && $key != "submit" && $key != "return" && $key != session_name() && !in_array($key, $checkVal)) 148 $objPage->list_data[ $key ] = $val; 149 } 150 139 151 140 152 … … 149 161 $objPage->tpl_title = '²ñ°÷ÅÐÏ¿(3/3)'; 150 162 151 $address = lfGetAddress($_REQUEST['zip01'].$_REQUEST['zip02']); 152 $objView->assign("pref", @$address[0]['state']); 153 $objView->assign("addr01", @$address[0]['city'] . @$address[0]['town']); 163 if (@$objPage->arrForm['pref'] == "" && @$objPage->arrForm['addr01'] == "" && @$objPage->arrForm['addr02'] == "") { 164 $address = lfGetAddress($_REQUEST['zip01'].$_REQUEST['zip02']); 165 $objPage->pref = @$address[0]['state']; 166 $objPage->addr01 = @$address[0]['city'] . @$address[0]['town']; 167 } 154 168 } elseif ($_POST["mode"] == "confirm") { 155 169 //¥Ñ¥¹¥ï¡¼¥Éɽ¼¨ … … 171 185 //-- ¥Ç¡¼¥¿ÀßÄê 172 186 unset($objPage->list_data); 187 if ($_POST["mode"] == "set1") { 188 $checkVal = array("sex", "year", "month", "day", "zip01", "zip02"); 189 } elseif ($_POST["mode"] == "set2") { 190 $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mail_flag"); 191 } 192 173 193 foreach($objPage->arrForm as $key => $val) { 174 if ($key != "mode" && $key != "subm") $objPage->list_data[ $key ] = $val; 194 if ($key != "mode" && $key != "submit" && $key != "confirm" && $key != "return" && $key != session_name() && !in_array($key, $checkVal)) { 195 $objPage->list_data[ $key ] = $val; 196 } 175 197 } 176 198 -
branches/mobile/html/mobile/mypage/change.php
r11674 r11896 78 78 $objPage->arrForm = lfConvertParam($objPage->arrForm, $arrRegistColumn); 79 79 80 // Ìá¤ë¥Ü¥¿¥óÍѽèÍý 81 if (!empty($_POST["return"])) { 82 switch ($_POST["mode"]) { 83 case "complete": 84 $_POST["mode"] = "set3"; 85 break; 86 case "confirm": 87 $_POST["mode"] = "set2"; 88 break; 89 default: 90 $_POST["mode"] = "set1"; 91 break; 92 } 93 } 94 80 95 //--¡¡ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯ 81 96 if ($_POST["mode"] == "set1") { … … 93 108 } 94 109 95 if ($objPage->arrErr || $_POST["mode"] == "return") { // ÆþÎÏ¥¨¥é¡¼¤Î¥Á¥§¥Ã¥¯110 if ($objPage->arrErr || !empty($_POST["return"])) { // ÆþÎÏ¥¨¥é¡¼¤Î¥Á¥§¥Ã¥¯ 96 111 foreach($objPage->arrForm as $key => $val) { 97 112 $objPage->$key = $val; … … 101 116 if ($_POST["mode"] == "set1") { 102 117 $checkVal = array("email", "password", "reminder", "reminder_answer", "name01", "name02", "kana01", "kana02"); 103 foreach($objPage->arrForm as $key => $val) {104 if ($key != "mode" && $key != "subm" & !in_array($key, $checkVal)) $objPage->list_data[ $key ] = $val;105 }106 107 118 } elseif ($_POST["mode"] == "set2") { 108 119 $checkVal = array("sex", "year", "month", "day", "zip01", "zip02"); 109 foreach($objPage->arrForm as $key => $val) {110 if ($key != "mode" && $key != "subm" & !in_array($key, $checkVal)) $objPage->list_data[ $key ] = $val;111 }112 120 } else { 113 $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03"); 114 foreach($objPage->arrForm as $key => $val) { 115 if ($key != "mode" && $key != "subm" & !in_array($key, $checkVal)) $objPage->list_data[ $key ] = $val; 116 } 117 } 118 121 $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mail_flag"); 122 } 123 124 foreach($objPage->arrForm as $key => $val) { 125 if ($key != "return" && $key != "mode" && $key != "confirm" && $key != session_name() && !in_array($key, $checkVal)) { 126 $objPage->list_data[ $key ] = $val; 127 } 128 } 119 129 120 130 } else { … … 146 156 //-- ¥Ç¡¼¥¿ÀßÄê 147 157 unset($objPage->list_data); 158 if ($_POST["mode"] == "set1") { 159 $checkVal = array("sex", "year", "month", "day", "zip01", "zip02"); 160 } elseif ($_POST["mode"] == "set2") { 161 $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mail_flag"); 162 } 163 148 164 foreach($_POST as $key => $val) { 149 if ($key != "mode" && $key != "subm") $objPage->list_data[ $key ] = $val; 165 if ($key != "return" && $key != "mode" && $key != "confirm" && $key != session_name() && !in_array($key, $checkVal)) { 166 $objPage->list_data[ $key ] = $val; 167 } 150 168 } 151 169 … … 186 204 } 187 205 } 206 } 207 208 $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'); 209 foreach ($arrPrivateVariables as $key) { 210 unset($objPage->list_data[$key]); 188 211 } 189 212 -
branches/mobile/html/mobile/shopping/deliv_addr.php
r11569 r11896 29 29 //-- ¥Ç¡¼¥¿ÀßÄê 30 30 foreach($_POST as $key => $val) { 31 if ($key != "mode") $objPage->list_data[ $key ] = $val; 32 } 33 31 if ($key != "mode" && $key != "return" && $key != "submit" && $key != session_name()) { 32 $objPage->list_data[ $key ] = $val; 33 } 34 } 34 35 // ¥æ¡¼¥¶¥æ¥Ë¡¼¥¯ID¤Î¼èÆÀ¤È¹ØÆþ¾õÂÖ¤ÎÀµÅöÀ¤ò¥Á¥§¥Ã¥¯ 35 36 $uniqid = sfCheckNormalAccess($objSiteSess, $objCartSess); … … 51 52 ); 52 53 54 // Ìá¤ë¥Ü¥¿¥óÍѽèÍý 55 if (!empty($_POST["return"])) { 56 switch ($_POST["mode"]) { 57 case 'complete': 58 $_POST["mode"] = "set2"; 59 break; 60 case 'set2': 61 $_POST["mode"] = "set1"; 62 break; 63 default: 64 header("Location: " . gfAddSessionId('deliv.php')); 65 exit; 66 } 67 } 68 53 69 switch ($_POST['mode']){ 54 70 case 'set1': 55 71 $objPage->arrErr = lfErrorCheck1($objPage->arrForm); 56 if (count($objPage->arrErr) == 0 ) {72 if (count($objPage->arrErr) == 0 && empty($_POST["return"])) { 57 73 $objPage->tpl_mainpage = 'shopping/set1.tpl'; 58 74 75 $checkVal = array("pref", "addr01", "addr02", "addr03", "tel01", "tel02", "tel03"); 76 foreach($checkVal as $key) { 77 unset($objPage->list_data[$key]); 78 } 79 59 80 // Í¹ÊØÈֹ椫¤é½»½ê¤Î¼èÆÀ 60 $address = lfGetAddress($_REQUEST['zip01'].$_REQUEST['zip02']); 61 62 $objPage->arrForm['pref'] = @$address[0]['state']; 63 $objPage->arrForm['addr01'] = @$address[0]['city'] . @$address[0]['town']; 81 if (@$objPage->arrForm['pref'] == "" && @$objPage->arrForm['addr01'] == "" && @$objPage->arrForm['addr02'] == "") { 82 $address = lfGetAddress($_REQUEST['zip01'].$_REQUEST['zip02']); 83 84 $objPage->arrForm['pref'] = @$address[0]['state']; 85 $objPage->arrForm['addr01'] = @$address[0]['city'] . @$address[0]['town']; 86 } 87 } else { 88 $checkVal = array("name01", "name02", "kana01", "kana02", "zip01", "zip02"); 89 foreach($checkVal as $key) { 90 unset($objPage->list_data[$key]); 91 } 64 92 } 65 93 break; 66 94 case 'set2': 67 95 $objPage->arrErr = lfErrorCheck2($objPage->arrForm); 68 if (count($objPage->arrErr) == 0 ) {96 if (count($objPage->arrErr) == 0 && empty($_POST["return"])) { 69 97 $objPage->tpl_mainpage = 'shopping/set2.tpl'; 70 98 } else { … … 72 100 73 101 $checkVal = array("pref", "addr01", "addr02", "addr03", "tel01", "tel02", "tel03"); 74 //-- ¥Ç¡¼¥¿ÀßÄê 75 unset($objPage->list_data); 76 foreach($_POST as $key => $val) { 77 if ($key != "mode" && !in_array($key, $checkVal)) $objPage->list_data[ $key ] = $val; 102 foreach($checkVal as $key) { 103 unset($objPage->list_data[$key]); 78 104 } 79 105 } -
branches/mobile/html/mobile/shopping/payment.php
r11683 r11896 57 57 // ¥«¡¼ÅÔÆâ¤Î¾¦ÉʤÎÇä¤êÀÚ¤ì¥Á¥§¥Ã¥¯ 58 58 $objCartSess->chkSoldOut($objCartSess->getCartList()); 59 60 // Ìá¤ë¥Ü¥¿¥ó¤Î½èÍý 61 if (!empty($_POST['return'])) { 62 switch ($_POST['mode']) { 63 case 'confirm': 64 $_POST['mode'] = 'payment'; 65 break; 66 default: 67 // Àµ¾ï¤Ê¿ä°Ü¤Ç¤¢¤ë¤³¤È¤òµÏ¿¤·¤Æ¤ª¤¯ 68 $objSiteSess->setRegistFlag(); 69 header("Location: " . gfAddSessionId(URL_SHOP_TOP)); 70 exit; 71 } 72 } 59 73 60 74 switch($_POST['mode']) {
Note: See TracChangeset
for help on using the changeset viewer.
