Ignore:
Timestamp:
2007/10/02 21:43:36 (19 years ago)
Author:
nanasess
Message:

クラス化に伴う修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/html/mobile/mypage/order.php

    r15532 r16238  
    11<?php 
    22/** 
    3  *  
     3 * 
    44 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. 
    55 * 
    66 * http://www.lockon.co.jp/ 
    7  *  
    87 * 
    9  * 履歴から注文を取得・登録し、カートに遷移する。 
     8 * 
     9 * モバイルサイト/購入履歴からカートへ 
    1010 */ 
     11 
     12// {{{ requires 
    1113require_once("../require.php"); 
     14require_once(CLASS_PATH . "page_extends/mypage/LC_Page_Mypage_Order_Ex.php"); 
    1215 
    13 $objCustomer = new SC_Customer(); 
    14 $objCartSess = new SC_CartSession(); 
     16// }}} 
     17// {{{ generate page 
    1518 
    16 //受注詳細データの取得 
    17 $arrDisp = lfGetOrderDetail($_POST['order_id']); 
    18  
    19 //ログインしていない、またはDBに情報が無い場合 
    20 if (!$objCustomer->isLoginSuccess() or count($arrDisp) == 0){ 
    21     sfDispSiteError(CUSTOMER_ERROR, "", false, "", true); 
    22 } 
    23  
    24 for($num = 0; $num < count($arrDisp); $num++) { 
    25     $product_id = $arrDisp[$num]['product_id']; 
    26     $cate_id1 = $arrDisp[$num]['classcategory_id1']; 
    27     $cate_id2 = $arrDisp[$num]['classcategory_id2']; 
    28     $quantity = $arrDisp[$num]['quantity']; 
    29  
    30     $objCartSess->addProduct(array($product_id, $cate_id1, $cate_id2), $quantity); 
    31 } 
    32  
    33 header("Location: " . gfAddSessionId(MOBILE_URL_CART_TOP)); 
    34  
    35  
    36 //----------------------------------------------------------------------------------------------------------------------------------- 
    37 // 受注詳細データの取得 
    38 function lfGetOrderDetail($order_id) { 
    39     $objQuery = new SC_Query(); 
    40     $col = "product_id, classcategory_id1, classcategory_id2, quantity"; 
    41     $where = "order_id = ?"; 
    42     $objQuery->setorder("classcategory_id1, classcategory_id2"); 
    43     $arrRet = $objQuery->select($col, "dtb_order_detail", $where, array($order_id)); 
    44     return $arrRet; 
    45 } 
    46  
     19$objPage = new LC_Page_Mypage_Order_Ex(); 
     20$objPage->mobileInit(); 
     21$objPage->mobileProcess(); 
     22register_shutdown_function(array($objPage, "destroy")); 
    4723?> 
Note: See TracChangeset for help on using the changeset viewer.