1 | <!--{* |
---|
2 | /* |
---|
3 | * This file is part of EC-CUBE |
---|
4 | * |
---|
5 | * Copyright(c) 2000-2011 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 | <!--▼CONTENTS--> |
---|
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>: <!--{$tpl_arrOrderData.order_id}--><br /> |
---|
35 | <em>購入日時</em>: <!--{$tpl_arrOrderData.create_date|sfDispDBDate}--><br /> |
---|
36 | <em>お支払い方法</em>: <!--{$arrPayment[$tpl_arrOrderData.payment_id]|h}--><!--{if $tpl_arrOrderData.deliv_time_id != ""}--><br /> |
---|
37 | <em>お届け時間</em>: </strong><!--{$arrDelivTime[$tpl_arrOrderData.deliv_time_id]|h}--> |
---|
38 | <!--{/if}--> |
---|
39 | <!--{if $tpl_arrOrderData.deliv_date != ""}--><br /> |
---|
40 | <em>お届け日</em>: </strong><!--{$tpl_arrOrderData.deliv_date|h}--> |
---|
41 | <!--{/if}--> |
---|
42 | </p> |
---|
43 | |
---|
44 | <form action="order.php" method="post"> |
---|
45 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
---|
46 | <input type="hidden" name="order_id" value="<!--{$tpl_arrOrderData.order_id}-->"> |
---|
47 | <input class="btn_reorder btn data-role-none" type="submit" name="submit" value="再注文"> |
---|
48 | </form> |
---|
49 | </div> |
---|
50 | <div class="formBox"> |
---|
51 | |
---|
52 | <!--▼カートの中の商品一覧 --> |
---|
53 | <div class="cartinarea clearfix"> |
---|
54 | |
---|
55 | <!--▼商品 --> |
---|
56 | <!--{foreach from=$tpl_arrOrderDetail item=orderDetail}--> |
---|
57 | <div> |
---|
58 | <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$orderDetail.main_list_image|sfNoImageMainList|h}-->&width=80&height=80" alt="<!--{$orderDetail.product_name|h}-->" class="photoL" /> |
---|
59 | <div class="cartinContents"> |
---|
60 | <div> |
---|
61 | <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> |
---|
62 | <p> |
---|
63 | <!--→金額--> |
---|
64 | <!--{assign var=price value=`$orderDetail.price`}--> |
---|
65 | <!--{assign var=quantity value=`$orderDetail.quantity`}--><span class="mini">価格:</span><!--{$price|number_format|h}-->円<!--←金額--> |
---|
66 | </p> |
---|
67 | <!--→商品種別--> |
---|
68 | <!--{if $orderDetail.product_type_id == $smarty.const.PRODUCT_TYPE_DOWNLOAD}--> |
---|
69 | <p id="downloadable"> |
---|
70 | <!--{if $orderDetail.is_downloadable}--> |
---|
71 | <a target="_self" href="<!--{$smarty.const.ROOT_URLPATH}-->mypage/download.php?order_id=<!--{$tpl_arrOrderData.order_id}-->&product_id=<!--{$orderDetail.product_id}-->&product_class_id=<!--{$orderDetail.product_class_id}-->" rel="external">ダウンロード</a><br /> |
---|
72 | <!--{else}--> |
---|
73 | <!--{if $orderDetail.payment_date == "" && $orderDetail.effective == "0"}--> |
---|
74 | <!--{$arrProductType[$orderDetail.product_type_id]}--><br />(入金確認中) |
---|
75 | <!--{else}--> |
---|
76 | <!--{$arrProductType[$orderDetail.product_type_id]}--><br />(期限切れ) |
---|
77 | <!--{/if}--> |
---|
78 | <!--{/if}--> |
---|
79 | </p> |
---|
80 | <!--{/if}--> |
---|
81 | <!--←商品種別--> |
---|
82 | |
---|
83 | </div> |
---|
84 | <ul> |
---|
85 | <li><span class="mini">数量:</span><!--{$quantity|h}--></li> |
---|
86 | <li class="result"><span class="mini">小計:</span><!--{$price|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|sfMultiply:$quantity|number_format}-->円</li> |
---|
87 | </ul> |
---|
88 | </div> |
---|
89 | </div> |
---|
90 | <!--{/foreach}--> |
---|
91 | <!--▲商品 --> |
---|
92 | |
---|
93 | </div> |
---|
94 | <!--▲cartinarea カートの中の商品一覧ここまで --> |
---|
95 | |
---|
96 | <div class="total_area"> |
---|
97 | <div><span class="mini">小計:</span><!--{$tpl_arrOrderData.subtotal|number_format}-->円</div> |
---|
98 | <div><span class="mini">値引き(ポイントご使用時):</span><!--{$tpl_arrOrderData.use_point|number_format}-->円</div> |
---|
99 | <div><span class="mini">送料:</span><!--{$tpl_arrOrderData.deliv_fee|number_format}-->円</div> |
---|
100 | <div><span class="mini">手数料:</span><!--{$tpl_arrOrderData.charge|number_format}-->円</div> |
---|
101 | <div><span class="mini">合計:</span><span class="price fb"><!--{$tpl_arrOrderData.payment_total|number_format}-->円</span></div> |
---|
102 | <div><span class="mini">今回加算ポイント:</span><!--{$tpl_arrOrderData.add_point|number_format|default:0}-->Pt</div> |
---|
103 | </div> |
---|
104 | </div><!--▲formBox --> |
---|
105 | |
---|
106 | <!--▼メール一覧 --> |
---|
107 | <div class="formBox"> |
---|
108 | |
---|
109 | <div class="box_header"> |
---|
110 | メール配信履歴一覧 |
---|
111 | </div> |
---|
112 | <!--{section name=cnt loop=$tpl_arrMailHistory}--> |
---|
113 | <!--▼メール --> |
---|
114 | <div class="arrowBox"> |
---|
115 | <p>配信日:<!--{$tpl_arrMailHistory[cnt].send_date|sfDispDBDate|h}--><br /> |
---|
116 | <!--{assign var=key value="`$tpl_arrMailHistory[cnt].template_id`"}--> |
---|
117 | 通知メール:<!--{$arrMAILTEMPLATE[$key]|h}--></p> |
---|
118 | <p><a href="javascript:;" onclick="getMailDetail(<!--{$tpl_arrMailHistory[cnt].send_id}-->)" rel="external"><!--{$tpl_arrMailHistory[cnt].subject|h}--></a></p> |
---|
119 | </div> |
---|
120 | <!--▲メール --> |
---|
121 | <!--{/section}--> |
---|
122 | <!--▲メール一覧ここまで --> |
---|
123 | |
---|
124 | </div><!--▲formBox --> |
---|
125 | |
---|
126 | <p><a rel="external" class="btn_more" href="./<!--{$smarty.const.DIR_INDEX_PATH}-->">購入履歴一覧に戻る</a></p> |
---|
127 | |
---|
128 | </div><!--▲form_area --> |
---|
129 | |
---|
130 | </section> |
---|
131 | <!--▼検索バー --> |
---|
132 | <section id="search_area"> |
---|
133 | <form method="get" action="<!--{$smarty.const.ROOT_URLPATH}-->products/list.php"> |
---|
134 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
---|
135 | <input type="search" name="name" id="search" value="" placeholder="キーワードを入力" class="searchbox" > |
---|
136 | </form> |
---|
137 | </section> |
---|
138 | <!--▲検索バー --> |
---|
139 | <!--▲CONTENTS --> |
---|
140 | <script> |
---|
141 | function getMailDetail(send_id) { |
---|
142 | $.mobile.pageLoading(); |
---|
143 | $.ajax({ |
---|
144 | type: "GET", |
---|
145 | url: "<!--{$smarty.const.ROOT_URLPATH}-->mypage/mail_view.php", |
---|
146 | data: "mode=getDetail&send_id=" + send_id, |
---|
147 | cache: false, |
---|
148 | dataType: "json", |
---|
149 | error: function(XMLHttpRequest, textStatus, errorThrown){ |
---|
150 | alert(textStatus); |
---|
151 | $.mobile.pageLoading(true); |
---|
152 | }, |
---|
153 | success: function(result){ |
---|
154 | var maxCnt = 0; |
---|
155 | $("#windowcolumn h2").text('メール詳細'); |
---|
156 | $("#windowcolumn a[data-rel=back]").text('購入履歴詳細にもどる'); |
---|
157 | $($("#windowcolumn dl.view_detail dt").get(maxCnt)).text(result[0].subject); |
---|
158 | $($("#windowcolumn dl.view_detail dd").get(maxCnt)).html(result[0].mail_body.replace(/\n/g,"<br />")); |
---|
159 | $("#windowcolumn dl.view_detail dd").css('font-family', 'monospace'); |
---|
160 | $.mobile.changePage('#windowcolumn', 'slideup'); |
---|
161 | //ダイアログが開き終わるまで待機 |
---|
162 | setTimeout( function() { |
---|
163 | loadingState = 0; |
---|
164 | $.mobile.pageLoading(true); |
---|
165 | }, 1000); |
---|
166 | } |
---|
167 | }); |
---|
168 | |
---|
169 | } |
---|
170 | </script> |
---|