Changeset 11902
- Timestamp:
- 2007/03/16 16:21:16 (17 years ago)
- Location:
- branches/dev/html/mobile
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/html/mobile/entry/index.php
r11894 r11902 100 100 $objPage->arrForm = lfConvertParam($objPage->arrForm, $arrRegistColumn); 101 101 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 102 117 //--¡¡ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯ 103 118 if ($_POST["mode"] == "set1") { … … 115 130 } 116 131 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"])) { // ÆþÎÏ¥¨¥é¡¼¤Î¥Á¥§¥Ã¥¯ 121 137 122 138 //-- ¥Ç¡¼¥¿¤ÎÀßÄê 123 139 if ($_POST["mode"] == "set1") { 124 140 $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 129 141 } elseif ($_POST["mode"] == "set2") { 130 142 $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 }134 143 } 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 140 152 141 153 … … 150 162 $objPage->tpl_title = '²ñ°÷ÅÐÏ¿(3/3)'; 151 163 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 } 155 169 } elseif ($_POST["mode"] == "confirm") { 156 170 //¥Ñ¥¹¥ï¡¼¥Éɽ¼¨ … … 172 186 //-- ¥Ç¡¼¥¿ÀßÄê 173 187 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 174 196 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 } 176 200 } 177 201 -
branches/dev/html/mobile/mypage/change.php
r11894 r11902 85 85 $objPage->arrForm = lfConvertParam($objPage->arrForm, $arrRegistColumn); 86 86 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 87 102 //--¡¡ÆþÎÏ¥¨¥é¡¼¥Á¥§¥Ã¥¯ 88 103 if ($_POST["mode"] == "set1") { … … 100 115 } 101 116 102 if ($objPage->arrErr || $_POST["mode"] == "return") { // ÆþÎÏ¥¨¥é¡¼¤Î¥Á¥§¥Ã¥¯117 if ($objPage->arrErr || !empty($_POST["return"])) { // ÆþÎÏ¥¨¥é¡¼¤Î¥Á¥§¥Ã¥¯ 103 118 foreach($objPage->arrForm as $key => $val) { 104 119 $objPage->$key = $val; … … 108 123 if ($_POST["mode"] == "set1") { 109 124 $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 114 125 } elseif ($_POST["mode"] == "set2") { 115 126 $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 }119 127 } 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 } 126 136 127 137 } else { … … 153 163 //-- ¥Ç¡¼¥¿ÀßÄê 154 164 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 155 173 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 } 157 177 } 158 178 … … 193 213 } 194 214 } 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'); 218 foreach ($arrPrivateVariables as $key) { 219 unset($objPage->list_data[$key]); 195 220 } 196 221 -
branches/dev/html/mobile/shopping/deliv_addr.php
r11894 r11902 34 34 //-- ¥Ç¡¼¥¿ÀßÄê 35 35 foreach($_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 } 39 40 // ¥æ¡¼¥¶¥æ¥Ë¡¼¥¯ID¤Î¼èÆÀ¤È¹ØÆþ¾õÂÖ¤ÎÀµÅöÀ¤ò¥Á¥§¥Ã¥¯ 40 41 $uniqid = sfCheckNormalAccess($objSiteSess, $objCartSess); … … 56 57 ); 57 58 59 // Ìá¤ë¥Ü¥¿¥óÍѽèÍý 60 if (!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 58 74 switch ($_POST['mode']){ 59 75 case 'set1': 60 76 $objPage->arrErr = lfErrorCheck1($objPage->arrForm); 61 if (count($objPage->arrErr) == 0 ) {77 if (count($objPage->arrErr) == 0 && empty($_POST["return"])) { 62 78 $objPage->tpl_mainpage = 'shopping/set1.tpl'; 63 79 80 $checkVal = array("pref", "addr01", "addr02", "addr03", "tel01", "tel02", "tel03"); 81 foreach($checkVal as $key) { 82 unset($objPage->list_data[$key]); 83 } 84 64 85 // ͹ÊØÈֹ椫¤é½»½ê¤Î¼èÆÀ 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 } 69 97 } 70 98 break; 71 99 case 'set2': 72 100 $objPage->arrErr = lfErrorCheck2($objPage->arrForm); 73 if (count($objPage->arrErr) == 0 ) {101 if (count($objPage->arrErr) == 0 && empty($_POST["return"])) { 74 102 $objPage->tpl_mainpage = 'shopping/set2.tpl'; 75 103 } else { … … 77 105 78 106 $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]); 83 109 } 84 110 } -
branches/dev/html/mobile/shopping/payment.php
r11851 r11902 59 59 // ¥«¡¼ÅÔÆâ¤Î¾¦ÉʤÎÇä¤êÀÚ¤ì¥Á¥§¥Ã¥¯ 60 60 $objCartSess->chkSoldOut($objCartSess->getCartList()); 61 62 // Ìá¤ë¥Ü¥¿¥ó¤Î½èÍý 63 if (!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 } 61 75 62 76 switch($_POST['mode']) {
Note: See TracChangeset
for help on using the changeset viewer.