<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="ja">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="Content-Style-Type" content="text/css">
  <meta http-equiv="Content-Script-Type" content="text/javascript">

  <title></title>

  <link href="./css/print.css" rel="stylesheet" type="text/css" media="screen,tv,print"/>
</head>
<body onLoad="print()">

<!-- ↓コンテナ -->
<div class="container">

<!-- ラベル -->
<div class="label">
---------------------------------------------------------------<br />
〒{$action.sendpostalcd|default:"&nbsp;"}<br />
{$action.prefnm|default:"&nbsp;"}{$action.sendaddr1|default:"&nbsp;"}<br />{$action.sendaddr2|default:"&nbsp;"}<br />
{if $action.addressee!=""}{$action.addressee}&nbsp;様{else}{$action.lastnm}&nbsp;{$action.firstnm}&nbsp;様{/if}<br />
---------------------------------------------------------------<br />
</div>
<br />

<!-- ↓段組み　メイン側 -->
<div class="main">
<!-- ↓タイトル -->
<div class="header">
<h1>納品書</h1>
</div>
<!-- ↑タイトル -->


<!-- ↓アイテム -->
<div class="item">
<form method="get" action="" id="search">

<table class="regist">

  <tr>
    <th class="name">注文者</th>
    <td class="name">
      {if !empty($action.lastnm) && !empty($action.firstnm)}{$action.lastnm}&nbsp;{$action.firstnm}&nbsp;様
      {else}{$action.nomember_name}&nbsp;様
      {/if}
    </td>
    <td class="printdate" colspan="2">発行日 {$action.printdate}</td>
  </tr>
  <tr>
    <th class="name">E-Mail</th>
    <td class="name">{if empty($action.sell)}{$action.mail|default:"&nbsp;"}1{/if}</td>
    <th class="name2">受注番号</th>
    <td class="name2">{$action.orderno|default:"&nbsp;"}</td>
  </tr>
  <tr>
    <th class="name">郵便番号</th>
    <td class="name">{$action.sendpostalcd|default:"&nbsp;"}
    <th class="name2">受注日時</th>
    <td class="name2">{$action.orderdate|date_format:"%Y/%m/%d %H:%M:%S"|default:"&nbsp;"}</td>
  </tr>
  <tr>
    <th class="name">都道府県</th>
    <td class="name">{$action.prefnm|default:"&nbsp;"}</td>
    <th class="name2">入金状態</th>
    <td class="name2">{$action.deposit_statename|default:"&nbsp;"}</td>
  </tr>
  <tr>
    <th class="name">送付先住所1</th>
    <td class="name">{$action.sendaddr1|default:"&nbsp;"}</td>
    <th class="name2">摘要</th>
    <td class="name2">{$action.brief|default:"&nbsp;"}</td>
  </tr>
  <tr>
    <th class="name">送付先住所2</th>
    <td class="name">{$action.sendaddr2|default:"&nbsp;"}</td>
    <th class="name2">決済方法</th>
    <td class="name2">{$action.depositdivname|default:"&nbsp;"}</td>
  </tr>
  <tr>
    <th class="name">送付先電話番号</th>
    <td class="name">{$action.sendtelno1|default:"&nbsp;"}</td>
    <th class="name2">配送</th>
    <td class="name2">{if $action.depositdiv==3}コレクト{else}宅急便{/if}</td>
  </tr>
  <tr>
    <th class="name">送付宛名</th>
    <td class="name">{if $action.addressee!=""}{$action.addressee}&nbsp;様{else}&nbsp;{/if}</td>
    <th class="name2">取引金額</th>
    <td class="name2">{$action.sumprice|number_format|default:"&nbsp;"}円</td>
  </tr>
  <tr>
    <th class="name">備考</th>
    <td class="name" colspan="3">{$action.note|nl2br}</td>
  </tr>
</table>
</div>
<!-- ↑アイテム -->


<!-- ↓アイテム -->
<div class="resultitem">

<table>
  <tr>
    <th class="mk">棚番</th>
    <th class="mk">品番</th>
    <th class="ti">タイトル</th>
    <th class="cd">数量</th>
    <th class="cd">金額</th>
    </td>
  </tr>

{foreach from=$action.results item="item" name="item" key="key" }
{if $item.forwardstate!=9}
   <tr>
    <td class="mk">{$item.rackid|default:"&nbsp;"}</td>
    <td class="mk">{$item.makeritemcd|default:"&nbsp;"}</td>
    <td class="ti">{if $item.typediv<>1}({$item.orderdetailtypename}){else}{$item.itemnm}&nbsp;{$item.variationnm}{/if}</td>
    <td class="cd">{if $item.typediv == 1}{$item.count|default:"&nbsp;"}{else}&nbsp;{/if}</td>
    <td class="cd">{$item.price|number_format|default:"&nbsp;"}</td>
  </tr>
{/if}
{/foreach}
</table>
</div>
<!-- ↑アイテム -->

{if empty($action.sell)}
<!-- 備考 -->
<div class="operation1">
　この度は、OneDepoよりお買い上げいただき、<br />
誠にありがとうございます。<br />
上記の通り、ご注文の商品をお届けいたします。<br />
万が一、ご注文内容と商品が違う場合は、直ちに<br />
<u>xxxx@xxxx.jp</u> までご連絡下さい。<br />
今後ともOneDepoをよろしくお願いいたします。
</div>

<div class="operation2">
　<span class="sitename">OneDepo</span><br />
<table>
<tr><td>〒</td><td>xxx-xxxx</td>
</tr>
<tr><td>住所</td><td>新潟県新潟市0-0-0</td>
</tr>
<tr><td>TEL</td><td>xxx-xxx-xxxx</td>
</tr>
<tr><td>FAX</td><td>xxx-xxx-xxxx</td>
</tr>
<tr><td>Email:</td><td><u>xxxx@xxxx.jp</u></td>
</tr>
</table>
</div>

<br /><br />
{*
<div class="operation3">
お知らせ<br />
ONEDEPOのONEDEPO市場では、お手持ちの商品を簡単に出品することができます！
</div>
<!-- 備考 -->
*}

{else}
<div class="seller_operation">
<table>
  <tr>
    <th>出品/販売</th>
    <td>{$action.sellernm}</td>
  </tr>
</table>
</div>
{/if}

</form>


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

</body>
</html>
