<!-- body -->
<div class="container contents af265x" 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 header af265x1popup">

        <div class="col wp-100 header1 well" >
          <div class="col wp-100 cucdGrp cuscdGrp">
            <label class="control-label wd-090 poplabel in-required">社内伝票番号</label>
            <input name="vseq" type="text" class="form-control input-sm item wd-M vseq popAf265x1 clear keycd " maxlength="15" value="{$header.vseq}">
            <input type="button" class="col popbtn cmdAf265x1" tabindex="-1" value="?"/>
            <div class="col wd-020">&nbsp;</div>
            <label class="control-label wd-SS poplabel in-required">得意先</label>
            <input name="cucd" type="text" class="form-control input-sm item wd-S cucd eventcucd popCucd clear required" maxlength="8" data-stpflg="1" value="{$header.cucd}">
            <input type="button" class="col popbtn cmdCucd" tabindex="-1" value="?"/>
            <input name="cunm" type="text" class="form-control input-sm item wd-L cunm clear" readonly value="{$header.cunm}"/>
            <div class="col wd-020">&nbsp;</div>
            <label class="control-label wd-030 poplabel">店舗</label>
            <input name="cuscd" type="text" class="form-control input-sm item wd-050 cuscd eventcuscd popCuscd clear" maxlength="5" data-stpflg="1" value="{$header.cuscd}">
            <input type="button" class="col popbtn cmdCuscd" tabindex="-1" value="?"/>
            <input name="spnm" type="text" class="form-control input-sm item wd-L spnm clear" readonly value="{$header.spnm}"/>
            <div class="col in-required msg clear"></div>
            <input type="text" class="dummy">
          </div>
          <div class="col wp-100">
            <div class="col" style="width:500px;">&nbsp;</div>
            <label class="control-label wd-040" >締日</label>
            <input name="cudt1" type="text" class="form-control input-sm item wd-SS cudt1 clear " readonly value="{$header.cudt1}"/>
            <div class="col wd-020">&nbsp;</div>
            <label class="control-label wd-050" >支払日</label>
            <input name="cupdt" type="text" class="form-control input-sm item wd-M cupdt clear " readonly value="{$header.cupdt}"/>
            <div class="col wd-020">&nbsp;</div>
            <label class="control-label wd-050" >サイト</label>
            <input name="cupmn" type="text" class="form-control input-sm item wd-SS cupmn clear " readonly value="{$header.cupmn}"/>
          </div>
        </div>

        <div class="col wp-100 header2" >
          <div class="col wp-100 date" >
            <label class="control-label wd-SS in-required" >計上日</label>
            <input name="adat" type="text" class="form-control input-sm item wd-date adat datepicker clear required" maxlength="10" value="{$header.adat}">
            <input type="button" class="col popbtn cmdDatepicker" tabindex="-1" value="?"/>
            <div class="col wd-300" >&nbsp;</div>
            <label class="control-label wd-070" >前回残高</label>
            <input name="bal" type="text" class="form-control input-sm item wd-M bal number clear" readonly value="{$header.bal}"/>
          </div>
        </div>

        <input type="hidden" class="vseq265 clear" value="">  {*同一伝票番号複数あった時用*}
        <input name="viseq" type="hidden" class="viseq clear" value="{$header.viseq}"> 
        <input name="orgadat" type="hidden" class="orgadat clear" value="{$header.orgadat}"> 

        <hr>

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

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

        <div class="col wp-075">
          <!-- *** header *** -->
          <div id="detailHeader" class="col wp-100 detailHeader">
            <div class="col wp-100">
              <div class="col wd-030">&nbsp;</div>
              <label class="control-label wd-M in-required">伝票区分</label>
              <label class="control-label wd-SS in-required"></label>
              <label class="control-label wd-M text-right in-required">金額</label>
              <label class="control-label wd-SS">備区</label>
              <label class="control-label wd-L">摘要</label>
              <label class="control-label wd-SS">削除</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>
      {/foreach}
            <!-- ↑↑↑*** rows ***↑↑↑ -->
          </div>
          <hr>
        </div>
        <div class="col wp-025">
          <div class="col wp-005">
            &nbsp;
          </div>
          <div class="col wp-095">
            <div class="col wp-100" style="height:30px;">&nbsp;</div>
            <div class="col wp-045">
              <label class="control-label wp-100">【入金区分】</label>
              {foreach from=$listTcls item=tclsdata name=tclsdetail}
                <div class="col wp-100" style="height:18px;">
                  <div class="col wp-010">&nbsp;</div>
                  <label class="control-label ">{$tclsdata.cd}</label>
                  <label class="control-label ">：</label>
                  <label class="control-label ">{$tclsdata.nm}</label>
                </div>
              {/foreach}
            </div>
            <div class="col wp-045">
              <label class="control-label wp-100">【備考区分】</label>
              {foreach from=$listTcls2 item=tcls2data name=tcls2detail}
                <div class="col wp-100" style="height:18px;">
                  <div class="col wp-010">&nbsp;</div>
                  <label class="control-label ">{$tcls2data.cd}</label>
                  <label class="control-label ">：</label>
                  <label class="control-label ">{$tcls2data.nm}</label>
                </div>
              {/foreach}            
            </div>
          </div>
        </div>
        <div id="footer_content" class="col wp-100 footer">
          <div class="col wp-100">
            <div class="col wp-100">
              <div class="col" style="width:145px;">&nbsp;</div>
              <label class="control-label wd-090" >入金額合計</label>
              <input id="sum_amt" name="g_amt" type="text" class="form-control item input-sm wd-M number sum_amt  clear" readonly value="" />
              <div class="col" style="width:145px;">&nbsp;</div>
              <label class="control-label wd-090" >入金後残高</label>
              <input id="diffamt" name="g_diffamt" type="text" class="form-control item input-sm wd-M number diffamt  clear" readonly value="" />
            </div>
            <hr>
            <div class="col wp-100">
              <div class="col wd-450">&nbsp;</div>
              <label class="control-label wd-030" >登録</label>
              <input name="chgcdnm" type="text" class="form-control item input-sm wd-M chgcdnm longnm clear" readonly value="" />
              <input name="idat" type="text" class="form-control item input-sm wd-M idat  clear " readonly value="" />
              <div class="col wd-010">&nbsp;</div>
              <label class="control-label wd-030" >更新</label>
              <input name="upchgnm" type="text" class="form-control item input-sm wd-M upchgnm longnm clear" readonly value="" />
              <input name="udat" type="text" class="form-control item input-sm wd-M udat  clear" readonly value="" />
              <input id="lastDetail" type="text" style="opacity:0;height:0px;width:0px;"/>
              <input type="text" class="dummy" />
            </div>
          </div>
        </div>
      </div>
    </form>
  </div>

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

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

</div>
