- Timestamp:
- 2007/10/02 21:43:36 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/html/mobile/mypage/order.php
r15532 r16238 1 1 <?php 2 2 /** 3 * 3 * 4 4 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. 5 5 * 6 6 * http://www.lockon.co.jp/ 7 *8 7 * 9 * 履歴から注文を取得・登録し、カートに遷移する。 8 * 9 * モバイルサイト/購入履歴からカートへ 10 10 */ 11 12 // {{{ requires 11 13 require_once("../require.php"); 14 require_once(CLASS_PATH . "page_extends/mypage/LC_Page_Mypage_Order_Ex.php"); 12 15 13 $objCustomer = new SC_Customer(); 14 $objCartSess = new SC_CartSession(); 16 // }}} 17 // {{{ generate page 15 18 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(); 22 register_shutdown_function(array($objPage, "destroy")); 47 23 ?>
Note: See TracChangeset
for help on using the changeset viewer.
