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

        <div class="col wp-100 " style="height:30px;">
          <label class="control-label wd-030 in-required">区分</label>
          <select class="col form-control input-sm item wd-select-L cls clear keycd" name="cls">
            {foreach from=$listCls item=select name=select}
              <option value="{$select.cd}" {if $header.cls eq $select.cd}selected{/if} >{$select.nm}</option>
            {/foreach}
          </select>
          <div id="bank" class="col wd-700" style="display:none;">
            <label class="control-label wd-040 in-required"></label>
            <label class="control-label wd-050 in-required">銀行名</label>
            <input name="bknm" type="text" class="form-control input-sm item wd-MM bknm clear" maxlength="30" value="{$header.bknm}"/>
            <label class="control-label wd-020 in-required"></label>
            <label class="control-label wd-050 in-required">支店名</label>
            <input name="bksnm" type="text" class="form-control input-sm item wd-MM bksnm clear" maxlength="30" value="{$header.bksnm}"/>
          </div>
          <div class="col wp-100">
            <input id="pagecnt" name="pagecnt" type="hidden" class="form-control input-sm item wd-SS pagecnt clear number" readonly value="{$header.pagecnt}">
            <input id="lastpage" name="lastpage" type="hidden" class="form-control input-sm item wd-SS lastpage clear number" readonly value="{$header.lastpage}">
          </div>

          <input type="text" class="dummy" />
        </div>
        <div class="right">
          <label class="control-label wd-050 {if $header.smode == "1" || $header.smode == "2" }newLabel{/if}">{if $header.smode == "1"}新規{elseif $header.smode == "2"}修正{/if}</label>
        </div>

        <!-- 1:新規, 2:更新 -->
        <input id="smode" name="smode" type="hidden" class="smode" value="{$header.smode}" />

      </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">
            <label class="control-label wd-300">区分</label>
            <label class="control-label wd-200">数値</label>
            <label class="control-label wd-600">名称</label>
            <label class="control-label wd-040 center">削除</label>
         </div>
        </div>

        <div id="detail" class="col wp-100 x_scroll detailArea">
          <hr>
    {foreach from=$dataList item=data name=detail}
          <!-- ↓↓↓*** rows ***↓↓↓ -->
          <div class="col wp-100 detail">
            <div class="col wd-1150 rowinfo detailMain ">
              <input name="scls1" type="text" class="form-control item input-sm wd-SS scls1  " maxlength="5" data-mstflg="1" value="{$data.scls1}" />
              <input name="scls2" type="text" class="form-control item input-sm wd-040 scls2  " maxlength="3" data-mstflg="1" value="{$data.scls2}" />
              <input name="scls3" type="text" class="form-control item input-sm wd-040 scls3  " maxlength="3" data-mstflg="1" value="{$data.scls3}" />
              <input name="scls4" type="text" class="form-control item input-sm wd-kbn scls4  " maxlength="2" data-mstflg="1" value="{$data.scls4}" />
              <input name="scls5" type="text" class="form-control item input-sm wd-kbn scls5  " maxlength="2" data-mstflg="1" value="{$data.scls5}" />
              <input name="scls6" type="text" class="form-control item input-sm wd-020 scls6  " maxlength="1" data-mstflg="1" value="{$data.scls6}" />
              <input name="scls7" type="text" class="form-control item input-sm wd-020 scls7  " maxlength="1" data-mstflg="1" value="{$data.scls7}" />
              <input name="scls8" type="text" class="form-control item input-sm wd-020 scls8  " maxlength="1" data-mstflg="1" value="{$data.scls8}" />
              <input name="scls9" type="text" class="form-control item input-sm wd-040 scls9  " maxlength="3" data-mstflg="1" value="{$data.scls9}" />
              <input name="snum1" type="text" class="form-control item input-sm wd-060 mnm snum1 number "  maxlength="5" nocomma="1" value="{$data.snum1}" />
              <input name="snum2" type="text" class="form-control item input-sm wd-060 mnm snum2 number "  maxlength="10" nocomma="1" value="{$data.snum2}" />
              <input name="snum3" type="text" class="form-control item input-sm wd-S mnm snum3 number " fixed="2" maxlength="8" nocomma="1" value="{if $data.snum3 != null}{$data.snum3|number_format:2}{/if}" />
              <input name="nm" type="text" class="form-control item input-sm wd-160 mnm nm"  maxlength="40" value="{$data.nm}" />
              <input name="nm2" type="text" class="form-control item input-sm wd-160 mnm nm2"  maxlength="40" value="{$data.nm2}" />
              <input name="nm3" type="text" class="form-control item input-sm wd-140 mnm nm3"  maxlength="20" value="{$data.nm3}" />
              <input name="nm4" type="text" class="form-control item input-sm wd-140 mnm nm4"  maxlength="20" value="{$data.nm4}" />
              <input name="chkLineDel"  type="checkbox" class="form-control item input-sm wd-kbn chkLineDel " value="1" tabindex="-1"/>
              <input name="cls" type="hidden" class="cls" value="{$data.cls1}"/>
              <input name="orgScls1" type="hidden" class="orgScls1 keyItem forDeleteData" value="{$data.scls1}"/>
              <input name="orgScls2" type="hidden" class="orgScls2 keyItem forDeleteData" value="{$data.scls2}"/>
              <input name="orgScls3" type="hidden" class="orgScls3 keyItem forDeleteData" value="{$data.scls3}"/>
              <input name="orgScls4" type="hidden" class="orgScls4 keyItem forDeleteData" value="{$data.scls4}"/>
            </div>
          </div>
    {/foreach}
          <!-- ↑↑↑*** rows ***↑↑↑ -->
        </div>
  {*
        <div class="col wp-100 detailFooter" style="height:400px;">
          <div class="col wp-100" style="heigt:10px;">&nbsp;</div>
            <div class="col wp-100 " style="height:370px;background-color:aliceblue;">
              <label class="control-label wp-100">【項目説明】</label>
    {foreach from=$dataList2 item=data2 name=detail}
              <div class="col wp-100 detail2">
                <div class="col wd-150">{$data2.colnm}</div>
                <div class="col wd-150">{$data2.helph}</div>
                <div class="col wd-600" style="color:blue;">{$data2.helpb}</div>
              </div>
    {/foreach}
            </div>
        </div>
  *}
      </div>
    </form>
    <hr>
  </div>
  <input id="lastDetail" type="text" style="opacity:0;height:0px;"/>

  <!-- footer
  ================================================== -->
  <div class="col wp-100" style="height:50px"></div> {*メニュー分あける*}

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

</div>
