{action->getRequestPOST assign=requestPOST}
{action->getSupplier assign=supplier}
{action->getSupplieDivName assign=suppliedivnm}
{action->getSupplierName assign=suppliernm}
{include file="admin/header.html"}
{include file="admin/gnavi.html"}

<div id="container">

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

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

<h3>商品発注入力</h3>

<!--↓エラーメッセージ -->
{errorList->getMessages assign=errmsg}
{if $errmsg}
<div class="error">
  <ul class="alert">
  {foreach from=$errmsg item=msg}
    <li>{$msg|escape}</li>
  {/foreach}
  </ul>
</div>
{/if}
<!--↑エラーメッセージ -->
<div class="search">
仕入先：{$suppliernm}　　仕入れ区分：{$suppliedivnm}
</div>
<form name="form1" id="form1" action="{$scriptName}" method="GET" >
<input type="hidden" name="div" value="{$action.div}">
{$requestPOST}
<input type="hidden" name="suppliercd" value="{$action.suppliercd}">
<input type="hidden" name="suppliediv" value="{$action.suppliediv}">
<input type="hidden" name="ordercd" value="{$action.ordercd}">
<input type="hidden" name="{$token.name}" value="{$token.value}">
<div class="checkmessage">仕入単価及び発注数を確定してもよろしいですか？</div>

<!-- ↓検索結果 -->
<table border="0" cellspacing="0" cellpadding="0" class="hyou">
  <tr>
    <th rowspan=2>品番</th>
    <th rowspan=2>タイトル</th>
    <th class="sell_date">発注締切日</th>
    <th rowspan=2>定価</th>
    <th rowspan=2>仕入単価</th>
    <th rowspan=2>予約数</th>
    <th rowspan=2>発注済み</th>
    <th rowspan=2>発注数</th>
    <th rowspan=2>発注金額</th>
  </tr>
  <tr>
  <th class="closing_date">発売日</th>
  </tr>
  {foreach from=$action.data item=data key=key}
  <tr>
    <input type="hidden" name="ischecked[{$key}]" value="1">
    <input type="hidden" name="itemcd[{$key}]" value="{$data.itemcd}">
    <input type="hidden" name="structcd[{$key}]" value="{$data.structcd}">
    <td rowspan=2>{$data.makeritemcd}</td>
    <td rowspan=2>{$data.itemnm|escape}&nbsp;{$data.variationnm}</td>

    <td class="closing_date">{$data.orderclosedate|date_format:"%Y/%m/%d"}</td>
    <td rowspan=2>{$data.makerprice|number_format}円</td>
    <td rowspan=2>
    <input type="hidden" name="orderunitprice[{$key}]" value="{$data.orderunitprice}">
    {$data.orderunitprice|number_format}円</td>
    <td rowspan=2>{$data.advancenum|default:0 }</td>
    <td rowspan=2>{$data.orderednum|default:0 }</td>
    <td rowspan=2>
    <input type="hidden" name="ordernum[{$key}]" value="{$data.ordernum}">
    {$data.ordernum}</td>
    <td rowspan=2>{$data.orderprice|number_format}円</td>
  </tr>
  <tr>
      <td class="sell_date">{$data.salestartdate|date_format:"%Y/%m/%d"}</td>
  </tr>
  
  {/foreach}

</table>
<!-- ↑検索結果 -->
  
  <input type="submit" name="dispatch_admin_itemmanage_order_complete" value="確定する">
  <input type="submit" name="dispatch_admin_itemmanage_order_list" value="一覧に戻る">

</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"}
