<!-- body -->
<div class="container contents af227x" style="width:1260px;">
  <!-- header menu
  ================================================== -->
  <div class="bs-docs-section clearfix">
    <form id="headerTop" class="header form-horizontal  {$noeventClassHeader}">
        <div class="col wp-100" style="height:38px"></div> {*メニュー分あける*}
      <div class="col wp-100 well header">

        {*左*}
        <div class="col wp-030">
          <div class="col wp-100">
            <label class="col checkbox-label" > <input name="rdo_cls1" type="radio"  value="0" tabindex=-1 class=" input-sm wd-020 rdo_cls1" {if $header.rdo_cls1 eq '0'}checked{/if}>全て</label><div class="col wd-010">&nbsp;</div>
          </div>

          <div class="col wp-100">
            <label class="col checkbox-label" > <input name="rdo_cls1" type="radio"  value="1" tabindex=-1 class=" input-sm wd-020 rdo_cls1" {if $header.rdo_cls1 eq '1'}checked{/if}>発売日が</label><div class="col wd-010">&nbsp;</div>
            <select name="cls2" class="col form-control item input-sm wd-100 cls2">
              {foreach from=$listCls2 item=select name=select}
                <option value="{$select.cd}" {if $header.cls2 eq $select.cd}selected{/if}>{$select.nm}</option>
              {/foreach}
            </select>
          </div>

          <div class="col wp-100">
            <label class="col checkbox-label" > <input name="rdo_cls1" type="radio"  value="2" tabindex=-1 class=" input-sm wd-020 rdo_cls1" {if $header.rdo_cls1 eq '2'}checked{/if}>受注ベスト１００</label><div class="col wd-010">&nbsp;</div>
            <select name="cls3" class="col form-control item input-sm wd-100 cls3">
              {foreach from=$listCls3 item=select name=select}
                <option value="{$select.cd}" {if $header.cls3 eq $select.cd}selected{/if}>{$select.nm}</option>
              {/foreach}
            </select>
            <select name="ord" class="col form-control item input-sm wd-080 ord">
              {foreach from=$listOrd item=select name=select}
                <option value="{$select.cd}" {if $header.ord eq $select.cd}selected{/if}>{$select.nm}</option>
              {/foreach}
            </select>
          </div>
        </div>

        {*真ん中*}
        <div class="col wp-040">
          <div class="col wp-100 ktktcdGrp">
            <label class="control-label wd-050 ">倉庫</label>
            <input name="spktcd" type="text" class="form-control input-sm item wd-SS spktcd ktktcd required popKtktcd eventktktcd clear keycd" maxlength="2" value="{$header.spktcd}"/>
            <input type="button" class="col popbtn cmdKtktcd" tabindex="-1" value="?"/>
            <input name="spktnm" type="text" class="form-control input-sm item wd-M spktnm ktktnm clear" readonly value="{$header.spktnm}"/>
          </div>

          <div class="col wp-100 mcdGrp">
            <label class="control-label wd-050 ">仕入先</label>
            <input name="mcd" type="text" class="form-control input-sm item wd-S mcd eventmcd popMcd" maxlength="7" value="{$header.mcd}">
            <input type="button" class="col popbtn cmdMcd" tabindex="-1" value="?"/>
            <input name="mnm" type="text" class="form-control input-sm item wd-L mnm" readonly value="{$header.mnm}"/>
          </div>

          <div class="col wp-100">
            <label class="control-label wd-050 ">JAN</label>
            <div class="col janGrp">
              <input name="jans" type="text" class="form-control input-sm item wd-jan jan jans inpjan eventjan popJan clear" maxlength="13" value="{$header.jans}">
              <input type="button" class="col popbtn cmdJan" tabindex="-1" value="?"/>
              <input name="ijan" type="hidden" class="ijan clear" readonly value="{$header.ijan}"/>
            </div>
            <div class="col wd-020 center">～</div>
            <div class="col janGrp">
              <input name="jane" type="text" class="form-control input-sm item wd-jan jan jane inpjan eventjan popJan clear" maxlength="13" value="{$header.jane}">
              <input type="button" class="col popbtn cmdJan" tabindex="-1" value="?"/>
              <input name="ijan" type="hidden" class="ijan clear" readonly value="{$header.ijan}"/>
            </div>
          </div>
        </div>

        {*右*}
        <div class="col wp-030">
          <div class="col wp-100">
            <label class="control-label wd-060 ">改廃区分</label>
            <select name="gdcls9" class="col form-control item input-sm wd-150 gdcls9">
              <option value=""></option>
              {foreach from=$listGdcls9 item=select name=select}
                <option value="{$select.cd}" {if $header.gdcls9 eq $select.cd}selected{/if}>{$select.nm}</option>
              {/foreach}
            </select>
          </div>
          <div class="col wp-100 scls90Grp">
            <label class="control-label wd-060 ">ブランド</label>
            <input name="brand" type="text" class="form-control input-sm item wd-S brand scls1 eventscls90 popScls90" data-cls90="7" maxlength="5" value="">
            <input type="button" class="col popbtn cmdScls1" tabindex="-1" value="?"/>
            <input name="brandnm" type="text" class="form-control input-sm item wd-M brandnm scls90nm" readonly value=""/>
            <input type="text" class="dummy"/>
          </div>
          <div class="col wp-100">
            <label class="col checkbox-label"> <input name="chk_kbn"  type="checkbox" class="form-control item input-sm wd-check chk_kbn clear" {if $header.chk_kbn eq "1"}checked{/if} value="1" tabindex="-1"/>全て０を表示する</lavel>
          </div>
        </div>

        <input type="hidden" class="wseq" value="{$header.wseq}" />

      </div>
      <div class="col wp-100">
        <div class="col wd-180 right" >
          <label class="control-label wd-060">ページ</label>
          <input id="pagecnt" name="pagecnt" type="text" class="form-control input-sm item wd-SS pagecnt clear number" readonly value="{$header.pagecnt}"><div class="item wd-010">/</div><input id="lastpage" name="lastpage" type="text" class="form-control input-sm item wd-SS lastpage clear number" readonly value="{$header.lastpage}">
        </div>
        <hr>
      </div>
    </form>
  </div>

  <!-- body
  ================================================== -->
  <div class="bs-docs-section">
    <form class="body" >
      <div id="detailTop" class="bs-component col wp-100 {$noeventClassBody}">

        <!-- *** header *** -->
        <div id="detailHeader" class="col wp-100 detailHeader">
          <div class="col wp-100 detailHeader">
            <div class="col wp-100" style="height:18px;">
              <label class="control-label wd-jan">JAN</label>
              <label class="control-label wd-kbn"></label>
              <label class="control-label wd-240 ">品名</label>
              <label class="control-label wd-070 text-right">ケース入数</label>
              <label class="control-label wd-number text-right">在庫</label>
              <label class="control-label wd-S text-right">発注残</label>
              <label class="control-label wd-S text-right">【受注数】</label>
              <label class="control-label wd-S text-right"></label>
              <label class="control-label wd-S text-right"></label>
              <label class="control-label wd-S text-right"></label>
              <label class="control-label wd-S text-right"></label>
              <label class="control-label wd-S text-right">前1-4週</label>
              <label class="control-label wd-S text-right">前5-8週</label>
            </div>
            <div class="col wp-100" style="height:18px;">
              <div class="col" style="width:23px;">&nbsp;</div>
              <label class="control-label wd-date">発売日</label>
              <div class="col" style="width:32px;">&nbsp;</div>
              <label class="control-label wd-240 "></label>
              <label class="control-label wd-070 text-right"></label>
              <label class="control-label wd-number text-right">在庫金額</label>
              <label class="control-label wd-S text-right">単価</label>
              <label class="control-label wd-S text-right">当週</label>
              <label class="control-label wd-S text-right">前１週</label>
              <label class="control-label wd-S text-right">前２週</label>
              <label class="control-label wd-S text-right">前３週</label>
              <label class="control-label wd-S text-right">前４週</label>
              <label class="control-label wd-S text-right">合計</label>
              <label class="control-label wd-S text-right">合計</label>
            </div>
          </div>
        </div>
        <hr>


        <div id="detail" class="col wp-100 x_scroll detailArea" style="width:1245px;">
          <!-- ↑↑↑*** rows ***↑↑↑ -->
        </div>
        <hr>
        <div id="FooterArea" class="col wp-100 footer">
          <div class="col wp-100">
            <div class="col " style="width:246px;">&nbsp;</div>
            <label class="control-label wd-070" > アイテム数</label>
            <input name="titem" type="text" class="form-control item input-sm wd-S number clear " readonly value="{$header.titem|number_format}" />
            <div class="col " style="width:12px;">&nbsp;</div>
            <label class="control-label wd-040" > 合計</label>
            <input name="tpno" type="text" class="form-control item input-sm wd-120 number clear " readonly value="{$header.tpno|number_format}" />
          </div>
          <div class="col wp-100">
            <div class="col " style="width:450px;">&nbsp;</div>
            <input name="tamt" type="text" class="form-control item input-sm wd-120 number clear " readonly value="{$header.tamt|number_format}" />
          </div>
        </div>

      </div>
    </form>
  </div>

  <!-- footer
  ================================================== -->

  {include file="./funcMenu.tpl"} <!-- Function Menu -->

</div>
