{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><!--
  var reccal1 = new JKL.Calendar("relcal_s","search","release_date_start");
  var reccal2 = new JKL.Calendar("relcal_e","search","release_date_end");
  var pubcal1 = new JKL.Calendar("pubcal_s","search","publish_date_start");
  var pubcal2 = new JKL.Calendar("pubcal_e","search","publish_date_end");
//--></script>
<!--↑カレンダー -->


<form method="get" action="" id ="search">
<input type="hidden" name="div" value="{$action.div}">

<table border="0" cellspacing="0" cellpadding="0">
 <tr>
   <td align="right">
  <input type="submit" name="dispatch_admin_itemmanage_search_result" value="検索">

  <input type="hidden" name="table" value="v_item_list">
  <input type="submit" name="dispatch_admin_itemmanage_search_export" value="データ出力">
  </td>
 </tr>
</table>
<br />
<table border="0" cellspacing="0" cellpadding="0" class="hyou">
  <tr>
    <th width="20%">JANコード</th>
    <td><input name="jancode" type="text" value="{$action.jancode}"></td>
  </tr>
  <tr>
    <th>品番</th>
    <td><input name="hinban" type="text" value="{$action.hinban}"></td>
  </tr>
  <tr>
    <th>商品名</th>
    <td><input name="itemtitle" type="text" value="{$action.itemtitle}" size="40"></td>
  </tr>
  <tr>
  <th>発売日</th>
    <td>
      <input type="text" name="release_date_start" id="sale-date-start" value="{$action.release_date_start}">
      <img id="calendar-button" src="./images/calendar.png" width="16" height="16" align="middle" onClick="reccal2.hide(); pubcal1.hide(); pubcal2.hide(); reccal1.write();" onChange="reccal1.getFormValue(); reccal1.hide();"><div id="relcal_s" style="display:inline;"></div>
    ～
      <input type="text" name="release_date_end" id="sale-date-end" value="{$action.release_date_end}">
      <img id="calendar-button" src="./images/calendar.png" width="16" height="16" align="middle" onClick="reccal1.hide(); pubcal1.hide(); pubcal2.hide(); reccal2.write();" onChange="reccal2.getFormValue(); reccal2.hide();"><div id="relcal_e" style="display:inline;"></div>
    </td>
  </tr>
  <tr>
    <th>公開日</th>
    <td>
      <input type="text" name="publish_date_start" id="publish-date-start" value="{$action.publish_date_start}">
      <img id="calendar-button" src="./images/calendar.png" width="16" height="16" align="middle" onClick="reccal1.hide(); reccal2.hide(); pubcal2.hide(); pubcal1.write();" onChange="pubcal1.getFormValue(); pubcal1.hide();"><div id="pubcal_s" style="display:inline;"></div>
    ～ 
      <input type="text" name="publish_date_end" id="publish-date-end" value="{$action.publish_date_end}">
      <img id="calendar-button" src="./images/calendar.png" width="16" height="16" align="middle" onClick="reccal1.hide(); reccal2.hide(); pubcal1.hide(); pubcal2.write();" onChange="pubcal2.getFormValue(); pubcal2.hide();"><div id="pubcal_e" style="display:inline;"></div>
    </td>
  </tr>
  

  <tr>
    <th>商品登録状況</th>
  <td>
        <span><label name="situation"><input type="radio" name="situation" id="situation" value="all"{if $action.situation=="" || $action.situation=="all"} checked{/if}>全て</label></span>
<!--
        <span><input type="radio" name="situation" id="situation" value="none"{if $action.situation=="none"} checked{/if}>ウェブ属性無し</span>
-->
        <span><label name="situation"><input type="radio" name="situation" id="situation" value="none_sd"{if $action.situation=="none_sd"} checked{/if}>発売日未設定</label></span>
        <span><label name="situation"><input type="radio" name="situation" id="situation" value="stk"{if $action.situation=="stk"} checked{/if}>在庫有</label></span>
        <span><label name="situation"><input type="radio" name="situation" id="situation" value="nostk"{if $action.situation=="nostk"} checked{/if}>在庫無</label></span>
  </td>
  </tr>
  <tr>
    <th>商品画像、動画登録状況</th>
  <td>
        <span><label name="photo"><input type="radio" name="photo_situation" id="photo-situation" value="all"{if $action.photo_situation=="" || $action.photo_situation=="all"} checked{/if}>全て</label></span>
        <span><label name="photo"><input type="radio" name="photo_situation" id="photo-situation" value="is"{if $action.photo_situation=="is"} checked{/if}>画像有り</label></span>
        <span><label name="photo"><input type="radio" name="photo_situation" id="photo-situation" value="none"{if $action.photo_situation=="none"} checked{/if}>画像無し</label></span>
        <span><label name="photo"><input type="radio" name="photo_situation" id="photo-situation" value="movie_is"{if $action.photo_situation=="movie_is"} checked{/if}>動画有り</label></span>
				<span><label name="photo"><input type="radio" name="photo_situation" id="photo-situation" value="movie_none"{if $action.photo_situation=="movie_none"} checked{/if}>動画無し</label></span>  
  </td>
  </tr>
  <tr>
    <th>商品公開状況</th>
  <td>
        <span><label name="publish"><input type="radio" name="publish_situation" id="publish-situation" value="all"{if $action.publish_situation=="" || $action.publish_situation=="all"} checked{/if}>全て</label></span>
        <span><label name="publish"><input type="radio" name="publish_situation" id="publish-situation" value="none"{if $action.publish_situation=="none"} checked{/if}>未公開　</label></span>
        <span><label name="publish"><input type="radio" name="publish_situation" id="publish-situation" value="is"{if $action.publish_situation=="is"} checked{/if}>公開中</label></span>
  </td>
  </tr>
  
  <tr>
  <th>ジャンル</th>
  <td>
  {action->getGenreSearch assign=genre_search}
<ul style="list-style:none; line-height:1.6;">
 {foreach item=value from=$genre_search key=key}
  <li>
     <label name="genre" onclick="selectParentGenre('childs{$value.genrecd}', '{$value.genrecd}')"><input class="childs{$value.genrecd}" id="{$value.genrecd}" type="checkbox" name="genre_select[]" value="{$value.genrecd}"{if in_array($value.genrecd, $action.genre_select)} checked{/if}><strong>{$value.genrenm}</strong></label>
{if $value.child !=""}
<div class="genrelist clearfix">
  <ul style="list-style:none;">{include file="admin/itemmanage/search_genretree.html" child=$value.child parentcd=$value.genrecd}</ul>
    </div><!-- clearfix  -->
    <br />
{/if}

  </li>
 {/foreach}
</ul>
  <br>
  </td>
  </tr>
  
</table>


<table border="0" cellspacing="0" cellpadding="0">
 <tr>
   <td align="right">
  <input type="submit" name="dispatch_admin_itemmanage_search_result" value="検索">

  <input type="hidden" name="table" value="v_item_list">
  <input type="submit" name="dispatch_admin_itemmanage_search_export" 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"}
