[Svn-src-all:1256] [version-2_5-dev 20145] LC_Page_Mypage_HistoryDetail 使用していないので削除
kimoto
admin @ mail.ec-cube.net
2011年 2月 11日 (金) 18:57:43 JST
Subversion committed to /home/svn/open 20145
http://svn.ec-cube.net/open_trac/changeset/20145
┌────────────────────────────┐
│更新者 : kimoto │
│更新日時: 2011-02-11 18:57:43 +0900 (金, 11 2月 2011)│
└────────────────────────────┘
Log:
--------------------------------------------------------
LC_Page_Mypage_HistoryDetail 使用していないので削除
Changed: [U:修正,A:追加,D:削除]
--------------------------------------------------------
D branches/version-2_5-dev/data/Smarty/templates/mobile/mypage/history_detail.tpl
D branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_HistoryDetail.php
削除: branches/version-2_5-dev/data/Smarty/templates/mobile/mypage/history_detail.tpl
===================================================================
--- branches/version-2_5-dev/data/Smarty/templates/mobile/mypage/history_detail.tpl 2011-02-11 09:57:37 UTC (rev 20144)
+++ branches/version-2_5-dev/data/Smarty/templates/mobile/mypage/history_detail.tpl 2011-02-11 09:57:43 UTC (rev 20145)
@@ -1,70 +0,0 @@
-<!--{*
-/*
- * This file is part of EC-CUBE
- *
- * Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved.
- *
- * http://www.lockon.co.jp/
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-*}-->
-■<!--{$arrDisp.create_date|sfDispDBDate}--><br>
-注文番号:<!--{$arrDisp.order_id}--><br>
-<br>
-【お届け先】<br>
- <!--{assign var=key1 value="deliv_name01"}--><!--{assign var=key2 value="deliv_name02"}-->
- <!--{$arrDisp[$key1]|h}--> <!--{$arrDisp[$key2]|h}--><br>
- <!--{assign var=key1 value="deliv_zip01"}--><!--{assign var=key2 value="deliv_zip02"}-->
- 〒<!--{$arrDisp[$key1]}-->-<!--{$arrDisp[$key2]}--><br>
- <!--{assign var=pref value=`$arrDisp.deliv_pref`}--><!--{$arrPref[$pref]}-->
- <!--{assign var=key value="deliv_addr01"}--><!--{$arrDisp[$key]|h}-->
- <!--{assign var=key value="deliv_addr02"}--><!--{$arrDisp[$key]|h}--><br>
-<br>
-【お届け日時指定】<br>
-<!--{if $arrDisp.deliv_date eq "" and $arrDelivTime[$arrDisp.deliv_time_id] eq ""}-->
- 指定なし<br>
-<!--{else}-->
- <!--{$arrDisp.deliv_date|h}--> <!--{$arrDelivTime[$arrDisp.deliv_time_id]|h}--><br>
-<!--{/if}-->
-<br>
-【お支払い方法】<br>
-<!--{$arrPayment[$arrDisp.payment_id]|h}--><br>
-<br>
-【ご注文内容】<br>
-<!--{section name=cnt loop=$arrDisp.quantity}-->
-<!--{$arrDisp.product_name[cnt]|h}--><br>
-<a href="<!--{$smarty.const.MOBILE_P_DETAIL_URLPATH}--><!--{$arrDisp.product_id[cnt]|u}-->">商品詳細→</a><br>
-<!--{/section}-->
-<br>
-【購入金額】<br>
-商品合計:<!--{$arrDisp.subtotal|number_format}-->円<br>
-送料:<!--{assign var=key value="deliv_fee"}--><!--{$arrDisp[$key]|number_format|h}-->円<br>
-合計:<!--{$arrDisp.payment_total|number_format}-->円<br>
-<br>
-
-<form action="order.php" method="post">
- <input type="hidden" name="order_id" value="<!--{$arrDisp.order_id}-->">
- <div align="center"><input type="submit" name="submit" value="再注文"></div>
-</form>
-
-<br>
-
-<hr>
-
-<a href="<!--{$smarty.const.MOBILE_CART_URLPATH}-->" accesskey="9"><!--{9|numeric_emoji}-->かごを見る</a><br>
-<a href="<!--{$smarty.const.MOBILE_TOP_URLPATH}-->" accesskey="0"><!--{0|numeric_emoji}-->TOPページへ</a><br>
-
-<br>
削除: branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_HistoryDetail.php
===================================================================
--- branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_HistoryDetail.php 2011-02-11 09:57:37 UTC (rev 20144)
+++ branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_HistoryDetail.php 2011-02-11 09:57:43 UTC (rev 20145)
@@ -1,142 +0,0 @@
-<?php
-/*
- * This file is part of EC-CUBE
- *
- * Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved.
- *
- * http://www.lockon.co.jp/
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-// {{{ requires
-require_once(CLASS_REALDIR . "pages/LC_Page.php");
-
-/**
- * 受注履歴 のページクラス.
- *
- * @package Page
- * @author LOCKON CO.,LTD.
- * @version $Id$
- */
-class LC_Page_Mypage_HistoryDetail extends LC_Page {
-
- // }}}
- // {{{ functions
-
- /**
- * Page を初期化する.
- *
- * @return void
- */
- function init() {
- parent::init();
- $this->tpl_mainpage = 'mypage/history_detail.tpl';
- $this->tpl_title = 'MYページ';
- $this->tpl_subtitle = '購入履歴詳細';
- }
-
- /**
- * Page のプロセス.
- *
- * @return void
- */
- function process() {
- parent::process();
- $this->action();
- $this->sendResponse();
- }
-
- /**
- * Page のAction.
- *
- * @return void
- */
- function action() {
- $objQuery = new SC_Query();
- $objCustomer = new SC_Customer();
- $objDb = new SC_Helper_DB_Ex();
-
-
- //不正アクセス判定
- $from = "dtb_order";
- $where = "del_flg = 0 AND customer_id = ? AND order_id = ? ";
- $arrval = array($objCustomer->getValue('customer_id'), $_POST['order_id']);
- //DBに情報があるか判定
- $cnt = $objQuery->count($from, $where, $arrval);
-
- //ログインしていない、またはDBに情報が無い場合
- if (!$objCustomer->isLoginSuccess(true) or $cnt == 0){
- SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR);
- } else {
- //受注詳細データの取得
- $this->arrDisp = $this->lfGetOrderData($_POST['order_id']);
- // 支払い方法の取得
- $this->arrPayment = $objDb->sfGetIDValueList("dtb_payment", "payment_id", "payment_method");
- // お届け時間の取得
- $arrRet = $objDb->sfGetDelivTime($this->arrDisp['payment_id']);
- $this->arrDelivTime = SC_Utils_Ex::sfArrKeyValue($arrRet, 'time_id', 'deliv_time');
-
- //マイページトップ顧客情報表示用
- $this->CustomerName1 = $objCustomer->getvalue('name01');
- $this->CustomerName2 = $objCustomer->getvalue('name02');
- $this->CustomerPoint = $objCustomer->getvalue('point');
- }
- }
-
- /**
- * デストラクタ.
- *
- * @return void
- */
- function destroy() {
- parent::destroy();
- }
-
-
- //受注詳細データの取得
- function lfGetOrderData($order_id) {
- //注文番号が数字であれば
- if(SC_Utils_Ex::sfIsInt($order_id)) {
- // DBから受注情報を読み込む
- $objQuery = new SC_Query();
- /*
- $col = "order_id, create_date, payment_id, subtotal, tax, use_point, add_point, discount, ";
- $col .= "deliv_fee, charge, payment_total, order_name01, order_name02, order_kana01, order_kana02, ";
- $col .= "order_zip01, order_zip02, order_pref, order_addr01, order_addr02, order_tel01, order_tel02, order_tel03, create_date ";
- */
- $from = "dtb_order";
- $where = "order_id = ?";
- $arrRet = $objQuery->select("*", $from, $where, array($order_id));
- $arrOrder = $arrRet[0];
- // 受注詳細データの取得
- $arrRet = $this->lfGetOrderDetail($order_id);
- $arrOrderDetail = SC_Utils_Ex::sfSwapArray($arrRet);
- $arrData = array_merge($arrOrder, $arrOrderDetail);
- }
- return $arrData;
- }
-
- // 受注詳細データの取得
- function lfGetOrderDetail($order_id) {
- $objQuery = new SC_Query();
- $col = "product_id, product_class_id, product_code, product_name, classcategory_name1, classcategory_name2, price, quantity, point_rate";
- $where = "order_id = ?";
- $objQuery->setOrder("product_class_id");
- $arrRet = $objQuery->select($col, "dtb_order_detail", $where, array($order_id));
- return $arrRet;
- }
-}
-?>
Svn-src-all メーリングリストの案内