[19713] | 1 | <!--{* |
---|
| 2 | /* |
---|
| 3 | * This file is part of EC-CUBE |
---|
| 4 | * |
---|
[22206] | 5 | * Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved. |
---|
[19713] | 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 | *}--> |
---|
[21537] | 24 | |
---|
[21050] | 25 | <section id="mypagecolumn"> |
---|
[19785] | 26 | <h2 class="title"><!--{$tpl_title|h}--></h2> |
---|
[19713] | 27 | <!--{include file=$tpl_navi}--> |
---|
| 28 | |
---|
[21533] | 29 | <h3 class="title_mypage"><!--{$tpl_subtitle|h}--></h3> |
---|
[19713] | 30 | |
---|
[21533] | 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}--> |
---|
| 37 | <!--{if $tpl_arrOrderData.deliv_time_id != ""}--> |
---|
| 38 | <br /> |
---|
[22598] | 39 | <em>お届け時間</em>: <!--{$arrDelivTime[$tpl_arrOrderData.deliv_time_id]|h}--> |
---|
[21533] | 40 | <!--{/if}--> |
---|
| 41 | <!--{if $tpl_arrOrderData.deliv_date != ""}--> |
---|
| 42 | <br /> |
---|
[22598] | 43 | <em>お届け日</em>: <!--{$tpl_arrOrderData.deliv_date|h}--> |
---|
[21533] | 44 | <!--{/if}--> |
---|
| 45 | </p> |
---|
[20614] | 46 | |
---|
[21533] | 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> |
---|
[22521] | 53 | <!--{foreach item=shippingItem name=shippingItem from=$arrShipping}--> |
---|
| 54 | <h3>お届け先<!--{if $isMultiple}--><!--{$smarty.foreach.shippingItem.iteration}--><!--{/if}--></h3> |
---|
[22574] | 55 | <div class="historyBox"> |
---|
[22521] | 56 | <p> |
---|
| 57 | <!--{if $isMultiple}--> |
---|
| 58 | <!--{foreach item=item from=$shippingItem.shipment_item}--> |
---|
| 59 | <em>商品コード: </em><!--{$item.productsClass.product_code|h}--><br /> |
---|
| 60 | <em>商品名: </em> |
---|
| 61 | <!--{$item.productsClass.name|h}--><br /> |
---|
| 62 | <!--{if $item.productsClass.classcategory_name1 != ""}--> |
---|
| 63 | <!--{$item.productsClass.class_name1}-->:<!--{$item.productsClass.classcategory_name1}--><br /> |
---|
| 64 | <!--{/if}--> |
---|
| 65 | <!--{if $item.productsClass.classcategory_name2 != ""}--> |
---|
| 66 | <!--{$item.productsClass.class_name2}-->:<!--{$item.productsClass.classcategory_name2}--><br /> |
---|
| 67 | <!--{/if}--> |
---|
| 68 | |
---|
| 69 | <em>単価: </em><!--{$item.price|sfCalcIncTax:$tpl_arrOrderData.order_tax_rate:$tpl_arrOrderData.order_tax_rule|number_format}-->円<br /> |
---|
| 70 | <em>数量: </em><!--{$item.quantity}--><br /> |
---|
| 71 | <!--{* XXX 購入小計と誤差が出るためコメントアウト |
---|
| 72 | <em>小計</em><!--{$item.total_inctax|number_format}-->円 |
---|
| 73 | *}--> |
---|
| 74 | <br /> |
---|
| 75 | <!--{/foreach}--> |
---|
| 76 | <!--{/if}--> |
---|
[19713] | 77 | |
---|
[22521] | 78 | <em>お名前</em>: <!--{$shippingItem.shipping_name01|h}--> <!--{$shippingItem.shipping_name02|h}--><br /> |
---|
| 79 | <em>お名前(フリガナ)</em>: <!--{$shippingItem.shipping_kana01|h}--> <!--{$shippingItem.shipping_kana02|h}--><br /> |
---|
| 80 | <em>郵便番号</em>: 〒<!--{$shippingItem.shipping_zip01}-->-<!--{$shippingItem.shipping_zip02}--><br /> |
---|
| 81 | <em>住所</em>: <!--{$arrPref[$shippingItem.shipping_pref]}--><!--{$shippingItem.shipping_addr01|h}--><!--{$shippingItem.shipping_addr02|h}--><br /> |
---|
| 82 | <em>電話番号</em>: <!--{$shippingItem.shipping_tel01}-->-<!--{$shippingItem.shipping_tel02}-->-<!--{$shippingItem.shipping_tel03}--><br /> |
---|
| 83 | <!--{if $shippingItem.shipping_fax01 > 0}--> |
---|
| 84 | <em>FAX番号</em>: <!--{$shippingItem.shipping_fax01}-->-<!--{$shippingItem.shipping_fax02}-->-<!--{$shippingItem.shipping_fax03}--><br /> |
---|
| 85 | <!--{/if}--> |
---|
| 86 | <em>お届け日</em>: <!--{$shippingItem.shipping_date|default:'指定なし'|h}--><br /> |
---|
| 87 | <em>お届け時間</em>: <!--{$shippingItem.shipping_time|default:'指定なし'|h}--><br /> |
---|
| 88 | </p> |
---|
| 89 | </div> |
---|
| 90 | |
---|
| 91 | <!--{/foreach}--> |
---|
| 92 | |
---|
[21533] | 93 | <div class="formBox"> |
---|
| 94 | <!--▼カートの中の商品一覧 --> |
---|
| 95 | <div class="cartinarea clearfix"> |
---|
[21133] | 96 | |
---|
[21533] | 97 | <!--▼商品 --> |
---|
| 98 | <!--{foreach from=$tpl_arrOrderDetail item=orderDetail}--> |
---|
| 99 | <div> |
---|
| 100 | <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" /> |
---|
| 101 | <div class="cartinContents"> |
---|
| 102 | <div> |
---|
| 103 | <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> |
---|
| 104 | <p> |
---|
| 105 | <!--→金額--> |
---|
| 106 | <!--{assign var=price value=`$orderDetail.price`}--> |
---|
| 107 | <!--{assign var=quantity value=`$orderDetail.quantity`}--> |
---|
| 108 | <span class="mini">価格:</span><!--{$price|number_format|h}-->円<!--←金額--> |
---|
| 109 | </p> |
---|
[19713] | 110 | |
---|
[21533] | 111 | <!--→商品種別--> |
---|
| 112 | <!--{if $orderDetail.product_type_id == $smarty.const.PRODUCT_TYPE_DOWNLOAD}--> |
---|
| 113 | <p id="downloadable"> |
---|
| 114 | <!--{if $orderDetail.is_downloadable}--> |
---|
| 115 | <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 /> |
---|
| 116 | <!--{else}--> |
---|
| 117 | <!--{if $orderDetail.payment_date == "" && $orderDetail.effective == "0"}--> |
---|
| 118 | <!--{$arrProductType[$orderDetail.product_type_id]}--><br />(入金確認中) |
---|
| 119 | <!--{else}--> |
---|
| 120 | <!--{$arrProductType[$orderDetail.product_type_id]}--><br />(期限切れ) |
---|
| 121 | <!--{/if}--> |
---|
| 122 | <!--{/if}--> |
---|
| 123 | </p> |
---|
| 124 | <!--{/if}--> |
---|
| 125 | <!--←商品種別--> |
---|
| 126 | </div> |
---|
[22218] | 127 | <!--{assign var=tax_rate value=`$orderDetail.tax_rate`}--> |
---|
| 128 | <!--{assign var=tax_rule value=`$orderDetail.tax_rule`}--> |
---|
[21533] | 129 | <ul> |
---|
| 130 | <li><span class="mini">数量:</span><!--{$quantity|h}--></li> |
---|
[22218] | 131 | <li class="result"><span class="mini">小計:</span><!--{$price|sfCalcIncTax:$tax_rate:$tax_rule|sfMultiply:$quantity|number_format}-->円</li> |
---|
[21533] | 132 | </ul> |
---|
| 133 | </div> |
---|
| 134 | </div> |
---|
| 135 | <!--{/foreach}--> |
---|
| 136 | <!--▲商品 --> |
---|
[19713] | 137 | |
---|
[21584] | 138 | </div><!--{* /.cartinarea *}--> |
---|
[21533] | 139 | <!--▲ カートの中の商品一覧 --> |
---|
[19713] | 140 | |
---|
[21533] | 141 | <div class="total_area"> |
---|
| 142 | <div><span class="mini">小計:</span><!--{$tpl_arrOrderData.subtotal|number_format}-->円</div> |
---|
| 143 | <!--{if $tpl_arrOrderData.use_point > 0}--> |
---|
| 144 | <div><span class="mini">ポイント値引き:</span>−<!--{$tpl_arrOrderData.use_point|number_format}-->円</div> |
---|
| 145 | <!--{/if}--> |
---|
| 146 | <!--{if $tpl_arrOrderData.discount != '' && $tpl_arrOrderData.discount > 0}--> |
---|
| 147 | <div><span class="mini">値引き:</span>−<!--{$tpl_arrOrderData.discount|number_format}-->円</div> |
---|
| 148 | <!--{/if}--> |
---|
| 149 | <div><span class="mini">送料:</span><!--{$tpl_arrOrderData.deliv_fee|number_format}-->円</div> |
---|
| 150 | <div><span class="mini">手数料:</span><!--{$tpl_arrOrderData.charge|number_format}-->円</div> |
---|
| 151 | <div><span class="mini">合計:</span><span class="price fb"><!--{$tpl_arrOrderData.payment_total|number_format}-->円</span></div> |
---|
| 152 | <div><span class="mini">今回加算ポイント:</span><!--{$tpl_arrOrderData.add_point|number_format|default:0}-->Pt</div> |
---|
| 153 | </div> |
---|
| 154 | </div><!-- /.formBox --> |
---|
[21050] | 155 | |
---|
[21533] | 156 | <!--▼メール一覧 --> |
---|
| 157 | <div class="formBox"> |
---|
[21050] | 158 | |
---|
[21533] | 159 | <div class="box_header"> |
---|
| 160 | メール配信履歴一覧 |
---|
| 161 | </div> |
---|
| 162 | <!--{section name=cnt loop=$tpl_arrMailHistory}--> |
---|
| 163 | <!--▼メール --> |
---|
| 164 | <div class="arrowBox"> |
---|
| 165 | <p>配信日:<!--{$tpl_arrMailHistory[cnt].send_date|sfDispDBDate|h}--><br /> |
---|
| 166 | <!--{assign var=key value="`$tpl_arrMailHistory[cnt].template_id`"}--> |
---|
| 167 | 通知メール:<!--{$arrMAILTEMPLATE[$key]|h}--></p> |
---|
[21535] | 168 | <p><a href="javascript:;" onclick="getMailDetail(<!--{$tpl_arrMailHistory[cnt].send_id}-->)" rel="external"><!--{$tpl_arrMailHistory[cnt].subject|h}--></a></p> |
---|
[21533] | 169 | </div> |
---|
| 170 | <!--▲メール --> |
---|
| 171 | <!--{/section}--> |
---|
| 172 | </div><!-- /.formBox --> |
---|
| 173 | <!--▲メール一覧 --> |
---|
[21050] | 174 | |
---|
[21533] | 175 | <p><a rel="external" class="btn_more" href="./<!--{$smarty.const.DIR_INDEX_PATH}-->">購入履歴一覧に戻る</a></p> |
---|
| 176 | |
---|
| 177 | </div><!-- /.form_area --> |
---|
| 178 | |
---|
[21050] | 179 | </section> |
---|
[21533] | 180 | |
---|
[21107] | 181 | <!--▼検索バー --> |
---|
| 182 | <section id="search_area"> |
---|
[21533] | 183 | <form method="get" action="<!--{$smarty.const.ROOT_URLPATH}-->products/list.php"> |
---|
| 184 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
---|
| 185 | <input type="hidden" name="mode" value="search" /> |
---|
| 186 | <input type="search" name="name" id="search" value="" placeholder="キーワードを入力" class="searchbox" > |
---|
| 187 | </form> |
---|
[21107] | 188 | </section> |
---|
| 189 | <!--▲検索バー --> |
---|
[21533] | 190 | |
---|
[21150] | 191 | <script> |
---|
[21533] | 192 | function getMailDetail(send_id) { |
---|
| 193 | $.mobile.showPageLoadingMsg(); |
---|
| 194 | $.ajax({ |
---|
| 195 | type: "GET", |
---|
| 196 | url: "<!--{$smarty.const.ROOT_URLPATH}-->mypage/mail_view.php", |
---|
| 197 | data: "mode=getDetail&send_id=" + send_id, |
---|
| 198 | cache: false, |
---|
| 199 | dataType: "json", |
---|
| 200 | error: function(XMLHttpRequest, textStatus, errorThrown){ |
---|
| 201 | alert(textStatus); |
---|
| 202 | $.mobile.hidePageLoadingMsg(); |
---|
| 203 | }, |
---|
| 204 | success: function(result){ |
---|
| 205 | var maxCnt = 0; |
---|
| 206 | $("#windowcolumn h2").text('メール詳細'); |
---|
| 207 | $("#windowcolumn a[data-rel=back]").text('購入履歴詳細にもどる'); |
---|
| 208 | $($("#windowcolumn dl.view_detail dt").get(maxCnt)).text(result[0].subject); |
---|
| 209 | $($("#windowcolumn dl.view_detail dd").get(maxCnt)).html(result[0].mail_body.replace(/\n/g,"<br />")); |
---|
| 210 | $("#windowcolumn dl.view_detail dd").css('font-family', 'monospace'); |
---|
| 211 | $.mobile.changePage('#windowcolumn', {transition: "slideup"}); |
---|
| 212 | //ダイアログが開き終わるまで待機 |
---|
| 213 | setTimeout( function() { |
---|
| 214 | loadingState = 0; |
---|
| 215 | $.mobile.hidePageLoadingMsg(); |
---|
| 216 | }, 1000); |
---|
| 217 | } |
---|
| 218 | }); |
---|
| 219 | } |
---|
[21150] | 220 | </script> |
---|