{action->getSearchKey assign=itemorder}

{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}
<!--↑エラーメッセージ -->

<!--↓エラーメッセージ -->
<!--↑エラーメッセージ -->

<!--↓カレンダー -->
 <script language="JavaScript"><!--
var ocdf;
ocdf = new JKL.Calendar("ocdf","form1","orderclosedatefrom");
ocdt = new JKL.Calendar("ocdt","form1","orderclosedateto");
ssdf = new JKL.Calendar("ssdf","form1","salestartdatefrom");
ssdt = new JKL.Calendar("ssdt","form1","salestartdateto");
 //--></script>
<!--↑カレンダー -->

<!-- ↓商品検索 -->
<form name="form1" id="form1" method="GET">
<input type="hidden" name="div" value="{$action.div}">

<table border="0" cellspacing="0" cellpadding="0" class="hyou">
  <tr>
    <th>発注締切日</th>
    <td>
      <input type="text" name="orderclosedatefrom" id="startdate" value="{$itemorder->orderclosedatefrom}">
      <img id="calendar-button" src="./images/calendar.png" width="16" height="16" align="middle" onclick="ocdf.write();">
      <span id="ocdf"></span>
      ～
      <input type="text" name="orderclosedateto" id="startdate" value="{$itemorder->orderclosedateto}">
      <img id="calendar-button" src="./images/calendar.png" width="16" height="16" align="middle" onclick="ocdt.write();">
      <span id="ocdt"></span>
    </td>
  </tr>
  <tr>
    <th>発売日</th>
    <td>
      <input type="text" name="salestartdatefrom" id="startdate" value="{$itemorder->salestartdatefrom}">
      <img id="calendar-button" src="./images/calendar.png" width="16" height="16" align="middle" onclick="ssdf.write();">
      <span id="ssdf"></span>
      ～
      <input type="text" name="salestartdateto" id="startdate" value="{$itemorder->salestartdateto}">
      <img id="calendar-button" src="./images/calendar.png" width="16" height="16" align="middle" onclick="ssdt.write();">
      <span id="ssdt"></span>
    </td>
  </tr>

<!-- 検索動作用 -->
<input type="hidden" name="maker_all" value="1">
<input type="hidden"name="maker_label" id="maker_label" value="0">


  <!-- ↓itemmanage_searchから一部拝借 -->
  <!--
					  <tr>
					    <th>メーカー</th>
					    <td>
					      <input type="checkbox" name="maker_all" value="1" {if $itemorder->maker_all == 1}checked{/if}>全て
					    <br />
					
					      <select name="maker_capital" id="maker_capital" onChange="changeMakerCapital('maker_capital', 'maker_name', '{$action.div}');">
					        <option value=""{if $itemorder->maker_capital==""} selected{/if}>未選択</option>
					        <option value="a"{if $itemorder->maker_capital=="a"} selected{/if}>あ行</option>
					        <option value="ka"{if $itemorder->maker_capital=="ka"} selected{/if}>か行</option>
					        <option value="sa"{if $itemorder->maker_capital=="sa"} selected{/if}>さ行</option>
					        <option value="ta"{if $itemorder->maker_capital=="ta"} selected{/if}>た行</option>
					        <option value="na"{if $itemorder->maker_capital=="na"} selected{/if}>な行</option>
					        <option value="ha"{if $itemorder->maker_capital=="ha"} selected{/if}>は行</option>
					        <option value="ma"{if $itemorder->maker_capital=="ma"} selected{/if}>ま行</option>
					        <option value="ya"{if $itemorder->maker_capital=="ya"} selected{/if}>や行</option>
					        <option value="ra"{if $itemorder->maker_capital=="ra"} selected{/if}>ら行</option>
					        <option value="wa"{if $itemorder->maker_capital=="wa"} selected{/if}>わ行</option>
					      </select>
					
					      <script>loadMaker('maker_name', '{$itemorder->maker_capital}', '{$itemorder->maker_name}', '{$action.div}');</script>
					{if $action.div!=''}
					      <select name="maker_name" id="maker_name" onChange="changeLabel('maker_name', 'maker_label');">
					        <option value="0">メーカー名</option>
					      </select>
					{else}
					      <select name="maker_name" id="maker_name">
					        <option value="0">メーカー名</option>
					      </select>
					{/if}
					    </td>
					  </tr>				 
  -->	
  					<!-- ↑itemmanage_searchから一部拝借 -->
 <!-- 
					{if $action.div!=''}
					  <tr>
					    <th>レーベル</th>
					    <td>
					      <script>loadLabel('maker_label', '{$itemorder->maker_name}', '{$itemorder->maker_label}');</script>
					      <select name="maker_label" id="maker_label">
					        <option value="0">レーベル名</option>
					      </select>
					    </td>
					  </tr>
					{/if}
-->

  <tr>
    <th>品番</th>
    <td>
      <input type="text" name="makeritemcdfrom" value="{$itemorder->makeritemcdfrom}">
      ～
      <input type="text" name="makeritemcdto" value="{$itemorder->makeritemcdto}">
    </td>
  </tr>
  
  
<!-- 検索動作用 -->
<input type="hidden" name="itemdiv" value="0">
<input type="hidden"name="mediacd" value="0">
    
 <!-- 
				  <tr>
				    <th>作品区分</th>
				    <td>
				{action->getItemdivRadio assign=itemdivradio}
				      <span><input type="radio" name="itemdiv" class="" id="" value="0" {if $itemorder->itemdiv == 0}checked{/if}>全て</span>
				{foreach from=$itemdivradio item=itemdiv}
				      <span><input type="radio" name="itemdiv" class="" id="" value="{$itemdiv.namecd}" {if $itemorder->itemdiv==$itemdiv.namecd}checked{/if}>{$itemdiv.name|escape}</span>
				{/foreach}
				    </td>
				  </tr>
				  <tr>
				    <th>メディア</th>
				    <td>
				{action->getMediaRadio assign=mediaradio}
				      <span><input type="radio" name="mediacd" class="" id="" value="0" {if $itemorder->mediacd == 0}checked{/if}>全て</span>
				{foreach from=$mediaradio item=media}
				      <span><input type="radio" name="mediacd" class="" id="" value="{$media.namecd}" {if $itemorder->mediacd==$media.namecd}checked{/if}>{$media.name|escape}</span>
				{/foreach}
				    </td>
				  </tr>
-->  
  
  
  <tr>
    <th>ステータス</th>
    <td>
      <span><input type="radio" name="status" class="" id="" value="0" {if $itemorder->status == 0}checked{/if}>全て</span>&nbsp;&nbsp;
      <span><input type="radio" name="status" class="" id="" value="1" {if $itemorder->status == 1}checked{/if}>未発注</span>&nbsp;&nbsp;
      <span><input type="radio" name="status" class="" id="" value="2" {if $itemorder->status == 2}checked{/if}>発注済み-未納品</span>&nbsp;&nbsp;
      <span><input type="radio" name="status" class="" id="" value="3" {if $itemorder->status == 3}checked{/if}>発注済み-納品済み</span>
    </td>
  </tr>
  <tr>
    <th>予約数</th>
    <td>
      <input type="text" name="advancenummin" value="{$itemorder->advancenummin}">
      ～
      <input type="text" name="advancenummax" value="{$itemorder->advancenummax}">
    </td>
  </tr>
</table>
<!-- ↑商品検索 -->

   <table border="0" cellspacing="0" cellpadding="0">
   <tr>
     <td align="right">
  <input type="hidden" name="action" value="admin_itemmanage_order_list">
  <input type="submit" name="Submit" value="検索">
  <input type="submit" name="dispatch_admin_itemmanage_order_fileoutput" 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"}
