{action->getHome_address assign=home_address}
{action->getSend_address assign=send_address}
{action->getAddress      assign=address}

{include file="mobile/header.html"}

  <hr color="#559fe8">
  <h4>お届け先選択</h4>

  <h5>該当するお届け先住所を選び、その左側にチェックを入れてください。</h5>

  <form action="{$dirName}/" method="POST">
  {$hiddenSID}
  <input type="hidden" name="{token->getName}" value="{token->getValue}">
  <input type="hidden" name="from"             value="destination">
  <input type="hidden" name="action"           value="{action->getNext}">


  <hr color="#559fe8">
  <input name="select_address" type="radio" value="1" {if $address != 2} checked{/if}><label for="select_address">自宅</label><br />

  <h5>お名前：{$home_address.addressee|escape}</h5>
  <h5>郵便番号：{$home_address.post|escape}</h5>
  <h5>都道府県：{$home_address.pref|escape}</h5>
  <h5>住所１：{$home_address.address1|escape}</h5>
  <h5>住所２：{$home_address.address2|escape}</h5>
  <h5>電話番号：{$home_address.tel|escape}</h5>
  <br />

{if $send_address.send_pref != ""}
  <hr color="#559fe8">
  <input name="select_address" type="radio" value="2" {if $address == 2} checked{/if}><label for="select_address">送付先</label><br />
  <h5>お名前：{$send_address.addressee|escape}</h5>
  <h5>郵便番号：{$send_address.send_post|escape}</h5>
  <h5>都道府県：{$send_address.send_pref|escape}</h5>
  <h5>住所１：{$send_address.send_address1|escape}</h5>
  <h5>住所２：{$send_address.send_address2|escape}</h5>
  <h5>電話番号：{$send_address.send_tel|escape}</h5>
{else}
  <hr color="#559fe8">
  <h5>現在、お届け先はご自宅以外に登録されておりません</h5>
{/if}
  <hr color="#559fe8">
  <h6>届け先を選択して次の操作へ進みます。</h6>
  <input type="submit" value="次に進む" />
  <br />
  <h6>ご購入内容確認画面へ戻ります。</h6>
  <a href="{$dirName}/?action=customer_itembuy_{action->getBack|escape}&{token->getName}={token->getValue}&{$querySID}">戻る</a>
  <br />

  </form>

{include file="mobile/footer.html"}
