{include file="admin/header.html"}
{include file="admin/gnavi.html"}

<div id="container">

{include file="admin/menu/submenu_order.html"}

<!-- ↓段組み メイン側 -->
<div id="main">


<h3>出荷詳細情報</h3>



<form method="get" action="" id ="search">

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

  <tr>
  <th>受注番号</th>
    <td colspan="2">{$action.orderno}</td>
  </tr>
  <tr>
    <th>受注日時</th>
    <td colspan="2">{$action.orderdate|date_format:"%Y/%m/%d %H:%M:%S"}</td>
  </tr>
  
  <tr>
    <th>入金状態</th>
    <td colspan="2">{$action.deposit_statename}</td>
  </tr>
  <tr>
    <th>摘要</th>
    <td colspan="2">{$action.brief}</td>
  </tr>
  <tr>
    <th>決済方法</th>
    <td colspan="2">{$action.depositdivname}</td>
  </tr>
  <tr>
    <th>配送</th>
    <td colspan="2">{if $action.depositdiv==3}コレクト{elseif $action.takkyubin==1}宅急便{else}宅急便{/if}</td>
  </tr>
    <tr>
    <th>取引金額</th>
    <td>{$action.sumprice|number_format}円</td>
    <td>
{if $action.depositdiv == 1 AND $action.deposit_state == 1 AND $action.stockstate == 3}
  <input type="submit" name="dispatch_admin_ordermanage_order_detail_reservsales" value="ベリトランス決済">
{elseif $action.deposit_state == 1 AND $action.stockstate == 3}
  <input type="submit" name="dispatch_admin_ordermanage_order_detail_depositdone" value="入金済にする">
{/if}</td>
    
  </tr>
</table>

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

  <tr>
    <th>注文者</th>
    <td colspan="2">{if !empty($action.sendbuyername)}{$action.sendbuyername}{else}{$action.lastnm}&nbsp;{$action.firstnm}{/if}</td>
  </tr>
  <tr>
    <th>E-Mail</th>
    <td colspan="2">{$action.mail}</td>
  </tr>
  <tr>
    <th>郵便番号</th>
    <td colspan="2">{$action.sendpostalcd}
  </tr>
  
   <tr>
    <th>都道府県</th>
    <td colspan="2">{$action.prefnm}</td>

  <tr>
    <th>送付先住所1</th>
    <td colspan="2">{$action.sendaddr1}</td>
    </tr>
  
  <tr>
    <th>送付先住所2</th>
    <td colspan="2">{$action.sendaddr2}</td>
  </tr>
  <tr>
    <th>送付先電話番号</th>
    <td colspan="2">{$action.sendtelno1}</td>
  </tr>
  <tr>
    <th>送付宛名</th>
    <td colspan="2">{$action.addressee}</td>
  </tr>
  <tr>
    <th>問い合わせ番号</th>
    <td><input type="text" name="enquiryno" value="" size="30" onkeypress="enterCancel(event||window.event);"></td>
    <td align="right">
{if $action.forwardstate < 4 and $action.stockstate == 3 and ($action.deposit_state == 2 or $action.deposit_state == 1 and ($action.depositdiv == 3 or $action.depositdiv == 5))}
  <input type="submit" name="dispatch_admin_ordermanage_forwarding_detail_fwdetaildone" value="出荷済にする">
{/if}</td>

<input type="hidden" name="orderno"        value="{$action.forwardstate}">
<input type="hidden" name="orderno"        value="{$action.stockstate}">
<input type="hidden" name="orderno"        value="{$action.deposit_state}">

  <input type="hidden" name="orderno"        value="{$action.orderno}">
  <input type="hidden" name="deposit_updcnt" value="{$action.deposit_updcnt}">
  <input type="hidden" name="deposit_state"  value="{$action.deposit_state}">
  <input type="hidden" name="sumprice"       value="{$action.sumprice}">
  
  <input type="hidden" id="from" name="from" value="{$action.from}">
  </tr>
</table>


<table border="0" cellspacing="0" cellpadding="0" class="hyou">
  <tr>
    <th class="cd">番号</th>
    <th class="ti">タイトル</th>
    <th class="cd">数量</th>
    <th class="cd">金額</th>
    <th class="mk">在庫状態</th>
    <th class="mk">出荷状態</th>
    </td>
  </tr>

{foreach from=$action.results item="item" name="item" key="key" }
<input type="hidden" name="orderrowno[]" value="{$item.orderrowno}-{$item.fwd_detail_updcnt}-{$item.forwardstate}">
   <tr>

    <td class="cd">{$smarty.foreach.item.iteration}</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}{/if}</td>
    <td class="cd">{$item.price|number_format}</td>
    <td class="mk">{$item.syouhinstatename}</td>
    <td class="mk">{$item.fwstate}</td>
  </tr>
{/foreach}
</table>


<table border="0" cellspacing="0" cellpadding="0">
 <tr>
  <td align="right">
  <input type="submit" name="dispatch_admin_ordermanage_forwarding_list_list" value="一覧へ戻る">
  </td>
 </tr>
</table>

</form>

<div class="pagetop" title="ページトップへ"><a href="#top">ページトップへ</a></div>

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

<div class="cr"></div>
</div>
<!--End of container-->

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