- Timestamp:
- 2013/05/02 18:11:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/shopping/LC_Page_Shopping.php
r22567 r22796 32 32 * @version $Id$ 33 33 */ 34 class LC_Page_Shopping extends LC_Page_Ex 35 { 34 class LC_Page_Shopping extends LC_Page_Ex { 36 35 37 36 // }}} … … 43 42 * @return void 44 43 */ 45 function init() 46 { 44 function init() { 47 45 parent::init(); 48 46 $this->tpl_title = 'ログイン'; … … 66 64 * @return void 67 65 */ 68 function process() 69 { 66 function process() { 70 67 parent::process(); 71 68 $this->action(); … … 78 75 * @return void 79 76 */ 80 function action() 81 { 77 function action() { 82 78 83 79 $objSiteSess = new SC_SiteSession_Ex(); … … 276 272 * @return void 277 273 */ 278 function destroy() 279 { 274 function destroy() { 280 275 parent::destroy(); 281 276 } … … 287 282 * @return void 288 283 */ 289 function lfInitParam(&$objFormParam) 290 { 284 function lfInitParam(&$objFormParam) { 291 285 292 286 $objFormParam->addParam('お名前(姓)', 'order_name01', STEXT_LEN, 'KVa', array('EXIST_CHECK', 'SPTAB_CHECK', 'MAX_LENGTH_CHECK')); … … 325 319 $objFormParam->addParam('電話番号2', 'shipping_tel02', TEL_ITEM_LEN, 'n', array('MAX_LENGTH_CHECK' ,'NUM_CHECK')); 326 320 $objFormParam->addParam('電話番号3', 'shipping_tel03', TEL_ITEM_LEN, 'n', array('MAX_LENGTH_CHECK' ,'NUM_CHECK')); 321 $objFormParam->addParam('メールマガジン', 'mail_flag', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK'), 1); 327 322 } 328 323 … … 333 328 * @return void 334 329 */ 335 function lfInitLoginFormParam(&$objFormParam) 336 { 330 function lfInitLoginFormParam(&$objFormParam) { 337 331 $objFormParam->addParam('記憶する', 'login_memory', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); 338 332 $objFormParam->addParam('メールアドレス', 'login_email', STEXT_LEN, 'a', array('EXIST_CHECK', 'MAX_LENGTH_CHECK')); … … 354 348 * @return string 遷移先のパス 355 349 */ 356 function getNextLocation($product_type_id, $uniqid, &$objCustomer, &$objPurchase, &$objSiteSess) 357 { 350 function getNextLocation($product_type_id, $uniqid, &$objCustomer, &$objPurchase, &$objSiteSess) { 358 351 switch ($product_type_id) { 359 352 case PRODUCT_TYPE_DOWNLOAD: 360 $objPurchase->unsetAllShippingTemp(true);361 353 $objPurchase->saveOrderTemp($uniqid, array(), $objCustomer); 362 354 $objSiteSess->setRegistFlag(); … … 379 371 * @param boolean $isMultiple 複数配送の場合 true 380 372 */ 381 function lfRegistData($uniqid, &$objPurchase, &$objCustomer, &$objFormParam, $isMultiple = false) 382 { 373 function lfRegistData($uniqid, &$objPurchase, &$objCustomer, &$objFormParam, $isMultiple = false) { 383 374 $arrParams = $objFormParam->getHashArray(); 384 375 … … 423 414 * @return array エラー情報の配 424 415 */ 425 function lfCheckError(&$objFormParam) 426 { 416 function lfCheckError(&$objFormParam) { 427 417 // 入力値の変換 428 418 $objFormParam->convParam(); … … 473 463 * @return void 474 464 */ 475 function setFormParams(&$objFormParam, &$objPurchase, $uniqid) 476 { 465 function setFormParams(&$objFormParam, &$objPurchase, $uniqid) { 477 466 $arrOrderTemp = $objPurchase->getOrderTemp($uniqid); 478 467 if (SC_Utils_Ex::isBlank($arrOrderTemp)) { … … 492 481 $objFormParam->setParam($arrShippingTemp[1]); 493 482 } else { 494 if ($arrOrderTemp['deliv_check'] == 1) { 495 $objFormParam->setParam($arrShippingTemp[1]); 496 } else { 497 $objFormParam->setParam($arrShippingTemp[0]); 498 } 483 $objFormParam->setParam($arrShippingTemp[0]); 499 484 } 500 485 $objFormParam->setValue('order_email02', $arrOrderTemp['order_email']); … … 512 497 * @see LC_PageError 513 498 */ 514 function lfGetErrorMessage($error) 515 { 499 function lfGetErrorMessage($error) { 516 500 switch ($error) { 517 501 case TEMP_LOGIN_ERROR:
Note: See TracChangeset
for help on using the changeset viewer.