| 1 | <!--{* |
---|
| 2 | * This file is part of EC-CUBE |
---|
| 3 | * |
---|
| 4 | * Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved. |
---|
| 5 | * |
---|
| 6 | * http://www.lockon.co.jp/ |
---|
| 7 | * |
---|
| 8 | * This program is free software; you can redistribute it and/or |
---|
| 9 | * modify it under the terms of the GNU General Public License |
---|
| 10 | * as published by the Free Software Foundation; either version 2 |
---|
| 11 | * of the License, or (at your option) any later version. |
---|
| 12 | * |
---|
| 13 | * This program is distributed in the hope that it will be useful, |
---|
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 16 | * GNU General Public License for more details. |
---|
| 17 | * |
---|
| 18 | * You should have received a copy of the GNU General Public License |
---|
| 19 | * along with this program; if not, write to the Free Software |
---|
| 20 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
| 21 | *}--> |
---|
| 22 | <!--▼CONTENTS--> |
---|
| 23 | <script type="text/javascript">//<![CDATA[ |
---|
| 24 | $(function() { |
---|
| 25 | $('input[id^=deliv_]').click(function() { |
---|
| 26 | var data = {}; |
---|
| 27 | data.mode = 'select_deliv'; |
---|
| 28 | data.deliv_id = $(this).val(); |
---|
| 29 | $.ajax({ |
---|
| 30 | type : 'POST', |
---|
| 31 | url : location.pathname, |
---|
| 32 | data: data, |
---|
| 33 | cache : false, |
---|
| 34 | dataType : 'json', |
---|
| 35 | error : remoteException, |
---|
| 36 | success : function(data, dataType) { |
---|
| 37 | if (data.error) { |
---|
| 38 | remoteException(); |
---|
| 39 | } else { |
---|
| 40 | // 支払い方法の行を生成 |
---|
| 41 | var payment_tbody = $('#payment tbody'); |
---|
| 42 | payment_tbody.empty(); |
---|
| 43 | for (var i in data.arrPayment) { |
---|
| 44 | // ラジオボタン |
---|
| 45 | var radio = $('<input type="radio" />') |
---|
| 46 | .attr('name', 'payment_id') |
---|
| 47 | .attr('id', 'pay_' + i) |
---|
| 48 | .val(data.arrPayment[i].payment_id); |
---|
| 49 | // ラベル |
---|
| 50 | var label = $('<label />') |
---|
| 51 | .attr('for', 'pay_' + i) |
---|
| 52 | .text(data.arrPayment[i].payment_method); |
---|
| 53 | // 行 |
---|
| 54 | var tr = $('<tr />') |
---|
| 55 | .append($('<td />') |
---|
| 56 | .addClass('centertd') |
---|
| 57 | .append(radio)) |
---|
| 58 | .append($('<td />').append(label)); |
---|
| 59 | |
---|
| 60 | // 支払方法の画像が登録されている場合は表示 |
---|
| 61 | if (data.img_show) { |
---|
| 62 | var payment_image = data.arrPayment[i].payment_image; |
---|
| 63 | $('th#payment_method').attr('colspan', 3); |
---|
| 64 | if (payment_image) { |
---|
| 65 | var img = $('<img />').attr('src', '<!--{$smarty.const.IMAGE_SAVE_URLPATH}-->' + payment_image); |
---|
| 66 | tr.append($('<td />').append(img)); |
---|
| 67 | } else { |
---|
| 68 | tr.append($('<td />')); |
---|
| 69 | } |
---|
| 70 | } else { |
---|
| 71 | $('th#payment_method').attr('colspan', 2); |
---|
| 72 | } |
---|
| 73 | |
---|
| 74 | tr.appendTo(payment_tbody); |
---|
| 75 | } |
---|
| 76 | // お届け時間を生成 |
---|
| 77 | var deliv_time_id_select = $('select[id^=deliv_time_id]'); |
---|
| 78 | deliv_time_id_select.empty(); |
---|
| 79 | deliv_time_id_select.append($('<option />').text('指定なし').val('')); |
---|
| 80 | for (var i in data.arrDelivTime) { |
---|
| 81 | var option = $('<option />') |
---|
| 82 | .val(i) |
---|
| 83 | .text(data.arrDelivTime[i]) |
---|
| 84 | .appendTo(deliv_time_id_select); |
---|
| 85 | } |
---|
| 86 | } |
---|
| 87 | } |
---|
| 88 | }); |
---|
| 89 | }); |
---|
| 90 | |
---|
| 91 | /** |
---|
| 92 | * 通信エラー表示. |
---|
| 93 | */ |
---|
| 94 | function remoteException(XMLHttpRequest, textStatus, errorThrown) { |
---|
| 95 | alert('通信中にエラーが発生しました。カート画面に移動します。'); |
---|
| 96 | location.href = '<!--{$smarty.const.CART_URLPATH}-->'; |
---|
| 97 | } |
---|
| 98 | }); |
---|
| 99 | //]]> |
---|
| 100 | </script> |
---|
| 101 | <div id="under02column"> |
---|
| 102 | <div id="under02column_shopping"> |
---|
| 103 | <p class="flowarea"> |
---|
| 104 | <img src="<!--{$TPL_URLPATH}-->img/picture/img_flow_02.gif" width="700" height="36" alt="購入手続きの流れ" /> |
---|
| 105 | </p> |
---|
| 106 | <h2 class="title"><!--{$tpl_title|h}--></h2> |
---|
| 107 | |
---|
| 108 | <form name="form1" id="form1" method="post" action="?"> |
---|
| 109 | <input type="hidden" name="mode" value="confirm" /> |
---|
| 110 | <input type="hidden" name="uniqid" value="<!--{$tpl_uniqid}-->" /> |
---|
| 111 | |
---|
| 112 | <!--{assign var=key value="deliv_id"}--> |
---|
| 113 | <!--{if $is_single_deliv}--> |
---|
| 114 | <input type="hidden" name="<!--{$key}-->" value="<!--{$arrForm[$key].value}-->" /> |
---|
| 115 | <!--{else}--> |
---|
| 116 | <div class="payarea"> |
---|
| 117 | <h3>配送方法の指定</h3> |
---|
| 118 | <p>配送方法をご選択ください。</p> |
---|
| 119 | |
---|
| 120 | <!--{if $arrErr[$key] != ""}--> |
---|
| 121 | <p class="attention"><!--{$arrErr[$key]}--></p> |
---|
| 122 | <!--{/if}--> |
---|
| 123 | <table summary="配送方法選択"> |
---|
| 124 | <tr> |
---|
| 125 | <th>選択</th> |
---|
| 126 | <th colspan="2">配送方法</th> |
---|
| 127 | </tr> |
---|
| 128 | <!--{section name=cnt loop=$arrDeliv}--> |
---|
| 129 | <tr> |
---|
| 130 | <td class="centertd"><input type="radio" id="deliv_<!--{$smarty.section.cnt.iteration}-->" name="<!--{$key}-->" value="<!--{$arrDeliv[cnt].deliv_id}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" <!--{$arrDeliv[cnt].deliv_id|sfGetChecked:$arrForm[$key].value}--> /> |
---|
| 131 | </td> |
---|
| 132 | <td> |
---|
| 133 | <label for="deliv_<!--{$smarty.section.cnt.iteration}-->"><!--{$arrDeliv[cnt].name|h}--><!--{if $arrDeliv[cnt].remark != ""}--><p><!--{$arrDeliv[cnt].remark|h}--></p><!--{/if}--></label> |
---|
| 134 | </td> |
---|
| 135 | </tr> |
---|
| 136 | <!--{/section}--> |
---|
| 137 | </table> |
---|
| 138 | </div> |
---|
| 139 | <!--{/if}--> |
---|
| 140 | |
---|
| 141 | <div class="payarea"> |
---|
| 142 | <h3>お支払方法の指定</h3> |
---|
| 143 | <p>お支払方法をご選択ください。</p> |
---|
| 144 | |
---|
| 145 | <!--{assign var=key value="payment_id"}--> |
---|
| 146 | <!--{if $arrErr[$key] != ""}--> |
---|
| 147 | <p class="attention"><!--{$arrErr[$key]}--></p> |
---|
| 148 | <!--{/if}--> |
---|
| 149 | <table summary="お支払方法選択" id="payment"> |
---|
| 150 | <thead> |
---|
| 151 | <tr> |
---|
| 152 | <th>選択</th> |
---|
| 153 | <th colspan="<!--{if !$img_show}-->2<!--{else}-->3<!--{/if}-->" id="payment_method">お支払方法</th> |
---|
| 154 | </tr> |
---|
| 155 | </thead> |
---|
| 156 | <tbody> |
---|
| 157 | <!--{section name=cnt loop=$arrPayment}--> |
---|
| 158 | <tr> |
---|
| 159 | <td class="centertd"><input type="radio" id="pay_<!--{$smarty.section.cnt.iteration}-->" name="<!--{$key}-->" value="<!--{$arrPayment[cnt].payment_id}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" <!--{$arrPayment[cnt].payment_id|sfGetChecked:$arrForm[$key].value}--> /></td> |
---|
| 160 | <td> |
---|
| 161 | <label for="pay_<!--{$smarty.section.cnt.iteration}-->"><!--{$arrPayment[cnt].payment_method|h}--><!--{if $arrPayment[cnt].note != ""}--><!--{/if}--></label> |
---|
| 162 | </td> |
---|
| 163 | <!--{if $img_show}--> |
---|
| 164 | <td> |
---|
| 165 | <!--{if $arrPayment[cnt].payment_image != ""}--> |
---|
| 166 | <img src="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrPayment[cnt].payment_image}-->" /> |
---|
| 167 | <!--{/if}--> |
---|
| 168 | </td> |
---|
| 169 | <!--{/if}--> |
---|
| 170 | </tr> |
---|
| 171 | <!--{/section}--> |
---|
| 172 | </tbody> |
---|
| 173 | </table> |
---|
| 174 | </div> |
---|
| 175 | |
---|
| 176 | <!--{if $cartKey != $smarty.const.PRODUCT_TYPE_DOWNLOAD}--> |
---|
| 177 | <div class="payarea02"> |
---|
| 178 | <h3>お届け時間の指定</h3> |
---|
| 179 | <p>ご希望の方は、お届け時間を選択してください。</p> |
---|
| 180 | <!--{foreach item=shippingItem name=shippingItem from=$arrShipping}--> |
---|
| 181 | <!--{assign var=index value=$smarty.foreach.shippingItem.index}--> |
---|
| 182 | <div> |
---|
| 183 | <!--★お届け日★--> |
---|
| 184 | <!--{assign var=key value="deliv_date`$index`"}--> |
---|
| 185 | <span class="attention"><!--{$arrErr[$key]}--></span> |
---|
| 186 | <em>お届け日:</em> |
---|
| 187 | <!--{if !$arrDelivDate}--> |
---|
| 188 | ご指定頂けません。 |
---|
| 189 | <!--{else}--> |
---|
| 190 | <select name="<!--{$key}-->" id="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"> |
---|
| 191 | <option value="" selected="">指定なし</option> |
---|
| 192 | <!--{html_options options=$arrDelivDate selected=$arrForm[$key].value}--> |
---|
| 193 | </select> |
---|
| 194 | <!--{/if}--> |
---|
| 195 | <!--★お届け時間★--> |
---|
| 196 | <!--{assign var=key value="deliv_time_id`$index`"}--> |
---|
| 197 | <span class="attention"><!--{$arrErr[$key]}--></span> |
---|
| 198 | <em>お届け時間:</em> |
---|
| 199 | <select name="<!--{$key}-->" id="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"> |
---|
| 200 | <option value="" selected="">指定なし</option> |
---|
| 201 | <!--{html_options options=$arrDelivTime selected=$arrForm[$key].value}--> |
---|
| 202 | </select> |
---|
| 203 | <!--{if $is_multiple}--> |
---|
| 204 | <!--{$shippingItem.shipping_name01}--><!--{$shippingItem.shipping_name02}--> |
---|
| 205 | <!--{$arrPref[$shippingItem.shipping_pref]}--><!--{$shippingItem.shipping_addr01}--><!--{$shippingItem.shipping_addr02}--> |
---|
| 206 | <!--{/if}--> |
---|
| 207 | </div> |
---|
| 208 | <!--{/foreach}--> |
---|
| 209 | </div> |
---|
| 210 | <!--{/if}--> |
---|
| 211 | |
---|
| 212 | <div class="payarea02"> |
---|
| 213 | <h3>その他お問い合わせ</h3> |
---|
| 214 | <p>その他お問い合わせ事項がございましたら、こちらにご入力ください。</p> |
---|
| 215 | <div> |
---|
| 216 | <!--★その他お問い合わせ事項★--> |
---|
| 217 | <!--{assign var=key value="message"}--> |
---|
| 218 | <span class="attention"><!--{$arrErr[$key]}--></span> |
---|
| 219 | <textarea name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" cols="80" rows="8" class="area660" wrap="hard"><!--{$arrForm[$key].value|h}--></textarea> |
---|
| 220 | <span class="attention"> (<!--{$smarty.const.LTEXT_LEN}-->文字まで)</span> |
---|
| 221 | </div> |
---|
| 222 | </div> |
---|
| 223 | |
---|
| 224 | <!-- ▼ポイント使用 ここから --> |
---|
| 225 | <!--{if $tpl_login == 1 && $smarty.const.USE_POINT !== false}--> |
---|
| 226 | <div class="pointarea"> |
---|
| 227 | <h3>ポイント使用の指定</h3> |
---|
| 228 | |
---|
| 229 | <p><span class="attention">1ポイントを1円</span>として使用する事ができます。<br /> |
---|
| 230 | 使用する場合は、「ポイントを使用する」にチェックを入れた後、使用するポイントをご記入ください。</p> |
---|
| 231 | <div> |
---|
| 232 | <p><!--{$objCustomer->getValue('name01')|h}--> <!--{$objCustomer->getValue('name02')|h}-->様の、現在の所持ポイントは「<em><!--{$tpl_user_point|default:0}-->Pt</em>」です。</p> |
---|
| 233 | <p>今回ご購入合計金額:<span class="price"><!--{$arrData.subtotal|number_format}-->円</span> <span class="attention">(送料、手数料を含みません。)</span></p> |
---|
| 234 | <ul> |
---|
| 235 | <li><input type="radio" id="point_on" name="point_check" value="1" <!--{$arrForm.point_check.value|sfGetChecked:1}--> onclick="fnCheckInputPoint();" /><label for="point_on">ポイントを使用する</label></li> |
---|
| 236 | <!--{assign var=key value="use_point"}--> |
---|
| 237 | |
---|
| 238 | <li class="underline">今回のお買い物で、<input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|default:$tpl_user_point}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="6" class="box60" /> ポイントを使用する。<span class="attention"><!--{$arrErr[$key]}--></span></li> |
---|
| 239 | <li><input type="radio" id="point_off" name="point_check" value="2" <!--{$arrForm.point_check.value|sfGetChecked:2}--> onclick="fnCheckInputPoint();" /><label for="point_off">ポイントを使用しない</label></li> |
---|
| 240 | </ul> |
---|
| 241 | </div> |
---|
| 242 | </div> |
---|
| 243 | <!--{/if}--> |
---|
| 244 | <!-- ▲ポイント使用 ここまで --> |
---|
| 245 | |
---|
| 246 | <div class="tblareabtn"> |
---|
| 247 | <a href="<!--{$tpl_back_url|h}-->" onmouseover="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_back_on.gif','back03')" onmouseout="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_back.gif','back03')"> |
---|
| 248 | <img src="<!--{$TPL_URLPATH}-->img/button/btn_back.gif" width="150" height="30" alt="戻る" border="0" name="back03" id="back03" /></a> |
---|
| 249 | <input type="image" onmouseover="chgImgImageSubmit('<!--{$TPL_URLPATH}-->img/button/btn_next_on.gif',this)" onmouseout="chgImgImageSubmit('<!--{$TPL_URLPATH}-->img/button/btn_next.gif',this)" src="<!--{$TPL_URLPATH}-->img/button/btn_next.gif" class="box150" alt="次へ" name="next" id="next" /> |
---|
| 250 | </div> |
---|
| 251 | </form> |
---|
| 252 | </div> |
---|
| 253 | </div> |
---|
| 254 | <!--▲CONTENTS--> |
---|