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

{include file="header.html"}

<!--↓コンテンツ-->
<div id="contents">

<div id="pankuzu">
  <ul>
    <li><a href="{$dirName}/index.php">トップ</a></li>
    <li>&nbsp;&gt;&nbsp;<a href="{$smarty.const.SSL_URL_ROOT}{$dirName}/?action=customer_itembuy_cart">カート内容の確認</a></li>
    <li class="last">&nbsp;&gt;&nbsp;お届け先選択</li>
  </ul>
</div>
<!--End of pankuzu-->

<div id="etc">
  <p align="center">
    <img src="img/flow/flow1_b.gif">
  </p>

  <h3>お届け先選択</h3>

  <p>
    該当するお届け先住所を選び、その左側にチェックを入れてください。<br />
  </p>
{if $action.dlflg}
  <p><img src="img/dl/dl_setumei.jpg"></p>
{/if}

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


  <table border="0" cellspacing="0" cellpadding="0" class="entryform">
    <tr>
      <td colspan="2" class="non2"><input name="select_address" type="radio" value="1" {if $address != 2} checked{/if}><label for="select_address">自宅</label></td>
    </tr>

    <tr>
      <th>お名前</th>
      <td>{$home_address.addressee|escape}</td>
    </tr>
    <tr>
      <th>郵便番号</th>
      <td>{$home_address.post|escape}</td>
    </tr>
    <tr>
      <th>都道府県</th>
      <td>{$home_address.pref|escape}</td>
    </tr>
    <tr>
      <th>住所１</th>
      <td>{$home_address.address1|escape}</td>
    </tr>
    <tr>
      <th>住所２</th>
      <td>{$home_address.address2|escape}</td>
    </tr>
    <tr>
      <th>電話番号</th>
      <td>{$home_address.tel|escape}</td>
    </tr>
     
    {if $send_address.send_pref != ""}
    <tr>
      <td colspan="2" class="non2"><input name="select_address" type="radio" value="2" {if $address == 2} checked{/if}><label for="select_address">送付先</label></td>
    </tr>
    <tr>
      <th>お名前</th>
      <td>{$send_address.addressee|escape}</td>
    </tr>
    <tr>
      <th>郵便番号</th>
      <td>{$send_address.send_post|escape}</td>
    </tr>
    <tr>
      <th>都道府県</th>
      <td>{$send_address.send_pref|escape}</td>
    </tr>
    <tr>
      <th>住所１</th>
      <td>{$send_address.send_address1|escape}</td>
    </tr>
    <tr>
      <th>住所２</th>
      <td>{$send_address.send_address2|escape}</td>
    </tr>
    <tr>
      <th>電話番号</th>
      <td>{$send_address.send_tel|escape}</td>
    </tr>
    {else}
    <tr>
      <td colspan="2" class="non2">現在、お届け先はご自宅以外に登録されておりません</td>
    </tr>
    {/if}
    <tr>
      <td rowspan="2" class="non">&nbsp;</td>
      <td class="constatation2"><p>届け先を選択して次の操作へ進みます。</p>
      <input name="next_button" type="image" src="img/next_btn.gif" alt="次に進む" /></td>
    </tr>
    <tr>
      <td class="constatation"><p>ご購入内容確認画面へ戻ります。</p>
      <a href="{$scriptName}?action=customer_itembuy_{action->getBack|escape}&{token->getName}={token->getValue}"><img src="img/back_btn.gif" alt="戻る" width="116" height="24" border="0" /></a></td>
    </tr>
  </table>
  </form>

</div>
<!--End of etc-->

</div>
<!--↑コンテンツ-->

{include file="footer.html"}
