{include file="header.html"}

<div id="contents">

<div id="etc">

  <h3>商品ダウンロード</h3>

  <table border="0" cellspacing="0" cellpadding="0" class="entryform">

    <tr>
      <td rowspan="5" width="150"><img src="{$action.img_s}"></td>

      <th>注文番号：</th>
      <td>{$action.data.orderno}</td>
    </tr>
    <tr>
      <th>購入日：</th>
      <td>{$action.data.orderdate|date_format:"%Y年%m月%d日"}</td>
    </tr>
    <tr>
      <th>タイトル：</th>
      <td>{$action.data.itemnm}&nbsp;{$action.data.variationnm}</td>
    </tr>
    <tr>
      <th>ダウンロード回数：</th>
      <td>{if $action.data.maxdlcount >= 0}残り&nbsp;{$action.data.maxdlcount}回{else}無制限{/if}</td>
    </tr>
    <tr>
      <th>ダウンロード期間：</th>
      <td>{$action.data.dlperiodend|date_format:"%Y年%m月%d日"}まで</td>
    </tr>

{if $action.data.maxdlcount != 0}
    <tr>
      <td colspan="3" class="constatation">
        <p><input type="button" onclick="location.href='{$smarty.const.SSL_URL_ROOT}{$dirName}/?action=download&fid={$action.fid}&o={$action.o}&r={$action.r}&did={$action.send_did}&d=true'; this.disabled=true;" value="ダウンロード"></p>
      </td>
    </tr>
{/if}
    <tr>
      <td colspan="3" class="constatation">
        <p><input type="button" onclick="window.close();" value="閉じる"></p>
      </td>
    </tr>

  </table>
  </form>

</div>
</div>

{include file="footer.html"}

