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

<div id="container">

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

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

<h3>{$action.title}</h3>


<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center">

  <form method="get" action="{$scriptName}">
    <input type="radio" name="disp_select" value="1" {if $action.disp_select!=""}checked{/if}>
      発売日より<input type="text" name="disp_day" value="{$action.disp_day}" size="3">日前のもの&nbsp;&nbsp;
    <input type="radio" name="disp_select" value="" {if $action.disp_select==""}checked{/if}>
      発売日を過ぎたものだけ&nbsp;&nbsp;<input type="submit" name="dispatch_admin_ordermanage_untrans" value="表示"><br>
    <span style="display: none;"><input type="text" name="dummy"></span>
  </form>
    </td>
  </tr>
</table>


<table border="0" cellspacing="0" cellpadding="0" class="hyou">
  <tr>
    <th>品番</th>
    <th>タイトル</th>
    <th>数量</th>
    <th>発売日</th>
    <th>受注番号</th>
    <th>受注日</th>
    <th>購入者</th>
  </tr>
{foreach from=$action.itemlist item=itm_list}
{foreach from=$action.orderlist[$itm_list.makeritemcd] item=odr_list name="odrlist"}
{if $smarty.foreach.odrlist.first}
  <tr>
    <td rowspan="{$itm_list.count}">{$itm_list.makeritemcd}</td>
    <td rowspan="{$itm_list.count}">{$itm_list.itemnm}&nbsp;{$itm_list.variationnm}</td>
    <td rowspan="{$itm_list.count}">{$itm_list.count}</td>
    <td rowspan="{$itm_list.count}">{$itm_list.salestartdate|date_format:"%Y/%m/%d"}</td>
    <td>
      <a href="{$scriptName}?action=admin_ordermanage_order_detail_form&amp;odno={$odr_list.orderno}&amp;disp_day={$action.disp_day}&amp;disp_select={$action.disp_select}&amp;untrans={$action.untrans}" target="_blank">{$odr_list.orderno}</a></td>
    <td>{$odr_list.orderdate|date_format:"%Y/%m/%d"}</td>
    <td>
      {if !empty($odr_list.ordermember)}
      <a href="{$scriptName}?action=admin_usermanage_customer_detail&amp;membercd={$odr_list.ordermember}" target="_blank">{$odr_list.lastnm}{$odr_list.firstnm}<br />({$odr_list.ordermember})</a>
      {else}
      {$odr_list.sendbuyer}
      {/if}
    </td>
  </tr>
{else}
  <tr>
    <td>
      <a href="{$scriptName}?action=admin_ordermanage_order_detail_form&&amp;odno={$odr_list.orderno}&amp;disp_day={$action.disp_day}&amp;disp_select={$action.disp_select}&amp;untrans={$action.untrans}">{$odr_list.orderno}</a></td>
    <td>{$odr_list.orderdate|date_format:"%Y/%m/%d"}</td>
    <td>
      {if !empty($odr_list.ordermember)}
      <a href="{$scriptName}?action=admin_usermanage_customer_detail&amp;membercd={$odr_list.ordermember}">{$odr_list.lastnm}{$odr_list.firstnm}<br />({$odr_list.ordermember})</a>
      {else}
      {$odr_list.sendbuyer}
      {/if}
    </td>
  </tr>
{/if}
{/foreach}
{foreachelse}
  データがありません<br>
{/foreach}
</table>

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