source: branches/version-2_12-dev/data/Smarty/templates/sphone/mypage/history.tpl @ 22218

Revision 22218, 9.7 KB checked in by kim, 11 years ago (diff)

#1730 r22197r22215 で差し戻したものを、逆マージ。

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-smarty-template; charset=UTF-8
Line 
1<!--{*
2/*
3 * This file is part of EC-CUBE
4 *
5 * Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved.
6 *
7 * http://www.lockon.co.jp/
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22 */
23*}-->
24
25<section id="mypagecolumn">
26    <h2 class="title"><!--{$tpl_title|h}--></h2>
27    <!--{include file=$tpl_navi}-->
28
29    <h3 class="title_mypage"><!--{$tpl_subtitle|h}--></h3>
30
31    <div class="form_area">
32        <div id="historyBox">
33            <p>
34                <em>注文番号</em>:&nbsp;<!--{$tpl_arrOrderData.order_id}--><br />
35                <em>購入日時</em>:&nbsp;<!--{$tpl_arrOrderData.create_date|sfDispDBDate}--><br />
36                <em>お支払い方法</em>:&nbsp;<!--{$arrPayment[$tpl_arrOrderData.payment_id]|h}-->
37                <!--{if $tpl_arrOrderData.deliv_time_id != ""}-->
38                    <br />
39                    <em>お届け時間</em>:&nbsp;</strong><!--{$arrDelivTime[$tpl_arrOrderData.deliv_time_id]|h}-->
40                <!--{/if}-->
41                <!--{if $tpl_arrOrderData.deliv_date != ""}-->
42                    <br />
43                    <em>お届け日</em>:&nbsp;</strong><!--{$tpl_arrOrderData.deliv_date|h}-->
44                <!--{/if}-->
45            </p>
46
47            <form action="order.php" method="post">
48                <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
49                <input type="hidden" name="order_id" value="<!--{$tpl_arrOrderData.order_id}-->">
50                <input class="btn_reorder btn data-role-none" type="submit" name="submit" value="再注文">
51            </form>
52        </div>
53
54        <div class="formBox">
55            <!--▼カートの中の商品一覧 -->
56            <div class="cartinarea clearfix">
57
58                <!--▼商品 -->
59                <!--{foreach from=$tpl_arrOrderDetail item=orderDetail}-->
60                    <div>
61                        <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$orderDetail.main_list_image|sfNoImageMainList|h}-->&amp;width=80&amp;height=80" alt="<!--{$orderDetail.product_name|h}-->" class="photoL" />
62                        <div class="cartinContents">
63                            <div>
64                                <p><em><!--→商品名--><a<!--{if $orderDetail.enable}--> href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$orderDetail.product_id|u}-->"<!--{/if}--> rel="external"><!--{$orderDetail.product_name|h}--></a><!--←商品名--></em></p>
65                                <p>
66                                    <!--→金額-->
67                                    <!--{assign var=price value=`$orderDetail.price`}-->
68                                    <!--{assign var=quantity value=`$orderDetail.quantity`}-->
69                                    <span class="mini">価格:</span><!--{$price|number_format|h}-->円<!--←金額-->
70                                </p>
71
72                                <!--→商品種別-->
73                                <!--{if $orderDetail.product_type_id == $smarty.const.PRODUCT_TYPE_DOWNLOAD}-->
74                                    <p id="downloadable">
75                                        <!--{if $orderDetail.is_downloadable}-->
76                                            <a target="_self" href="<!--{$smarty.const.ROOT_URLPATH}-->mypage/download.php?order_id=<!--{$tpl_arrOrderData.order_id}-->&amp;product_id=<!--{$orderDetail.product_id}-->&amp;product_class_id=<!--{$orderDetail.product_class_id}-->" rel="external">ダウンロード</a><br />
77                                        <!--{else}-->
78                                            <!--{if $orderDetail.payment_date == "" && $orderDetail.effective == "0"}-->
79                                                <!--{$arrProductType[$orderDetail.product_type_id]}--><br />(入金確認中)
80                                            <!--{else}-->
81                                                <!--{$arrProductType[$orderDetail.product_type_id]}--><br />(期限切れ)
82                                            <!--{/if}-->
83                                        <!--{/if}-->
84                                    </p>
85                                <!--{/if}-->
86                                <!--←商品種別-->
87                            </div>
88                            <!--{assign var=tax_rate value=`$orderDetail.tax_rate`}-->
89                            <!--{assign var=tax_rule value=`$orderDetail.tax_rule`}-->
90                            <ul>
91                                <li><span class="mini">数量:</span><!--{$quantity|h}--></li>
92                                <li class="result"><span class="mini">小計:</span><!--{$price|sfCalcIncTax:$tax_rate:$tax_rule|sfMultiply:$quantity|number_format}-->円</li>
93                            </ul>
94                        </div>
95                    </div>
96                <!--{/foreach}-->
97                <!--▲商品 -->
98
99            </div><!--{* /.cartinarea *}-->
100            <!--▲ カートの中の商品一覧 -->
101
102            <div class="total_area">
103                <div><span class="mini">小計:</span><!--{$tpl_arrOrderData.subtotal|number_format}-->円</div>
104                <!--{if $tpl_arrOrderData.use_point > 0}-->
105                    <div><span class="mini">ポイント値引き:</span>&minus;<!--{$tpl_arrOrderData.use_point|number_format}-->円</div>
106                <!--{/if}-->
107                <!--{if $tpl_arrOrderData.discount != '' && $tpl_arrOrderData.discount > 0}-->
108                    <div><span class="mini">値引き:</span>&minus;<!--{$tpl_arrOrderData.discount|number_format}-->円</div>
109                <!--{/if}-->
110                <div><span class="mini">送料:</span><!--{$tpl_arrOrderData.deliv_fee|number_format}-->円</div>
111                <div><span class="mini">手数料:</span><!--{$tpl_arrOrderData.charge|number_format}-->円</div>
112                <div><span class="mini">合計:</span><span class="price fb"><!--{$tpl_arrOrderData.payment_total|number_format}-->円</span></div>
113                <div><span class="mini">今回加算ポイント:</span><!--{$tpl_arrOrderData.add_point|number_format|default:0}-->Pt</div>
114            </div>
115        </div><!-- /.formBox -->
116
117        <!--▼メール一覧 -->
118        <div class="formBox">
119
120            <div class="box_header">
121                メール配信履歴一覧
122            </div>
123            <!--{section name=cnt loop=$tpl_arrMailHistory}-->
124                <!--▼メール -->
125                <div class="arrowBox">
126                    <p>配信日:<!--{$tpl_arrMailHistory[cnt].send_date|sfDispDBDate|h}--><br />
127                        <!--{assign var=key value="`$tpl_arrMailHistory[cnt].template_id`"}-->
128                        通知メール:<!--{$arrMAILTEMPLATE[$key]|h}--></p>
129                    <p><a href="javascript:;" onclick="getMailDetail(<!--{$tpl_arrMailHistory[cnt].send_id}-->)" rel="external"><!--{$tpl_arrMailHistory[cnt].subject|h}--></a></p>
130                </div>
131                <!--▲メール -->
132            <!--{/section}-->
133        </div><!-- /.formBox -->
134        <!--▲メール一覧 -->
135
136        <p><a rel="external" class="btn_more" href="./<!--{$smarty.const.DIR_INDEX_PATH}-->">購入履歴一覧に戻る</a></p>
137
138    </div><!-- /.form_area -->
139
140</section>
141
142<!--▼検索バー -->
143<section id="search_area">
144    <form method="get" action="<!--{$smarty.const.ROOT_URLPATH}-->products/list.php">
145        <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
146        <input type="hidden" name="mode" value="search" />
147        <input type="search" name="name" id="search" value="" placeholder="キーワードを入力" class="searchbox" >
148    </form>
149</section>
150<!--▲検索バー -->
151
152<script>
153    function getMailDetail(send_id) {
154        $.mobile.showPageLoadingMsg();
155        $.ajax({
156            type: "GET",
157            url: "<!--{$smarty.const.ROOT_URLPATH}-->mypage/mail_view.php",
158            data: "mode=getDetail&send_id=" + send_id,
159            cache: false,
160            dataType: "json",
161            error: function(XMLHttpRequest, textStatus, errorThrown){
162                alert(textStatus);
163                $.mobile.hidePageLoadingMsg();
164            },
165            success: function(result){
166                var maxCnt = 0;
167                $("#windowcolumn h2").text('メール詳細');
168                $("#windowcolumn a[data-rel=back]").text('購入履歴詳細にもどる');
169                $($("#windowcolumn dl.view_detail dt").get(maxCnt)).text(result[0].subject);
170                $($("#windowcolumn dl.view_detail dd").get(maxCnt)).html(result[0].mail_body.replace(/\n/g,"<br />"));
171                $("#windowcolumn dl.view_detail dd").css('font-family', 'monospace');
172                $.mobile.changePage('#windowcolumn', {transition: "slideup"});
173                //ダイアログが開き終わるまで待機
174                setTimeout( function() {
175                                loadingState = 0;
176                                $.mobile.hidePageLoadingMsg();
177                }, 1000);
178            }
179        });
180    }
181</script>
Note: See TracBrowser for help on using the repository browser.