<!-- body -->
<div class="container contents af908x" 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-100 chgcdGrp">
          <label class="control-label wd-090 poplabel in-required">社員コード</label>
          <input name="chgcd" type="text" class="form-control input-sm item wd-S chgcd eventchgcd popChgcd required" data-stpflg="2" maxlength="5" value="{$header.chgcd}">
          <input type="button" class="col popbtn cmdChgcd" tabindex="-1" value="?"/>
          <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>
          <input type="text" class="dummy" />
        </div>
        
        <!-- 1:新規, 2:更新 -->
        <input id="smode" name="smode" type="hidden" class="smode" value="{$header.smode}" />
        <input id="pkeflg" name="pkeflg" type="hidden" class="pkeflg" value="{$header.pkeflg}" />
        <input id="pketa" name="pketa" type="hidden" class="pketa" value="{$header.pketa}" />
        <input id="preflg" name="preflg" type="hidden" class="preflg" value="{$header.preflg}" />
        <input id="precycl" name="precycl" type="hidden" class="precycl" value="{$header.precycl}" />
        <input name="chgat0" type="hidden" class="chgat0" value="{$header.chgat0}" />
        <input name="chgat1" type="hidden" class="chgat1" value="{$header.chgat1}" />
        <input name="chgat2" type="hidden" class="chgat2" value="{$header.chgat2}" />
        <input name="chgat3" type="hidden" class="chgat3" value="{$header.chgat3}" />
        <input name="chgat4" type="hidden" class="chgat4" value="{$header.chgat4}" />
        <input name="chgat5" type="hidden" class="chgat5" value="{$header.chgat5}" />
        <input name="chgat6" type="hidden" class="chgat6" value="{$header.chgat6}" />
        <input name="chgat7" type="hidden" class="chgat7" value="{$header.chgat7}" />
        <input name="chgat8" type="hidden" class="chgat8" value="{$header.chgat8}" />
        <input name="chgat9" type="hidden" class="chgat9" value="{$header.chgat9}" />
      </div>
    </form>
  </div>

  <!-- body
  ================================================== -->
  <div class="bs-docs-section">
    <form class="body" >
      <div id="detailTop" class="bs-component col wp-100 {$noeventClassBody}">
        <div id="detail" class="col wp-100 detailArea noSelectRow">
          <!-- ↓↓↓*** rows ***↓↓↓ -->
          <div class="col wp-100 detail ">
            <div class="col wp-100" style="margin-top:2px;">
              <label class="control-label wd-090 in-required">社員名</label>
              <input name="chgnm" type="text" class="form-control input-sm item wd-L chgnm required" maxlength="26" value="{$data.chgnm}"/>
              <label class="control-label wd-020">&nbsp;</label>
              <label class="control-label wd-090 ">略称</label>
              <input name="chgnms" type="text" class="form-control input-sm item wd-M chgnms" maxlength="12" value="{$data.chgnms}"/>
            </div>
            <div class="col wp-100">
              <label class="control-label wd-090 ">カナ(半角)</label>
              <input name="chgknm" type="text" class="form-control input-sm item wd-L chgknm" maxlength="21" value="{$data.chgknm}"/>
              <label class="control-label wd-020">&nbsp;</label>
              <label class="control-label wd-090 ">性別</label>
              <select class="col form-control input-sm wd-select-S chgsex" name="chgsex">
                <option value="" selected></option>
                {foreach from=$listChgsex item=select name=select}
                  <option value="{$select.cd}" {if $data.chgsex eq $select.cd}selected{/if}>{$select.nm}</option>
                {/foreach}
              </select>
            </div>
            
            <div class="col wp-100">
              <label class="control-label wd-020" style="height:10px">&nbsp;</label>
            </div>
            
            <div class="col wp-100">
              <label class="control-label wd-090 ">社員区分</label>
              <select class="col form-control input-sm wd-select-L chgcls" name="chgcls">
                <option value="" selected></option>
                {foreach from=$listChgcls item=select name=select}
                  <option value="{$select.cd}" {if $data.chgcls eq $select.cd}selected{/if}>{$select.nm}</option>
                {/foreach}
              </select>
            </div>
            <div class="col wp-100">
              <label class="control-label wd-090 ">備考</label>
              <input name="chgmem" type="text" class="form-control input-sm item wd-L chgmem " maxlength="30" value="{$data.chgmem}"/>
              <label class="control-label wd-020">&nbsp;</label>
              <label class="control-label wd-090 ">パスワード</label>
              <input name="chgpas" type="{if $header.smode == "1"}text{elseif $header.smode == "2"}password{/if}" class="form-control input-sm item wd-S chgpas" maxlength="10" {if $header.smode == "2"}readonly{/if} value="{$data.chgpas}"/>
            </div>
            
            <div class="col wp-100">
              <label class="control-label wd-020" style="height:10px">&nbsp;</label>
            </div>
            
            <div class="col wp-040">
              <div class="col well2">
                <div class="col wp-100 ">
                  <label class="control-label wp-100">【保有権利】</label>
                </div>
                <div class="col wp-100">
                  <label class="control-label wd-020">&nbsp;</label>
                  <div class="col wd-200"> <div class="col"><input name="chgat0" type="checkbox"  value="-1" tabindex=-1 class=" input-sm wd-020 chgat0" {if $data.chgat0 eq "-1"}checked{/if}></div><div class="col" style="padding-top:3px;">{$header.chgat0}</div> </div>
                  <div class="col wd-200"> <div class="col"><input name="chgat5" type="checkbox"  value="-1" tabindex=-1 class=" input-sm wd-020 chgat5" {if $data.chgat5 eq "-1"}checked{/if}></div><div class="col" style="padding-top:3px;">{$header.chgat5}</div> </div>
                </div>
                <div class="col wp-100">
                  <label class="control-label wd-020">&nbsp;</label>
                  <div class="col wd-200"> <div class="col"><input name="chgat1" type="checkbox"  value="-1" tabindex=-1 class=" input-sm wd-020 chgat1" {if $data.chgat1 eq "-1"}checked{/if}></div><div class="col" style="padding-top:3px;">{$header.chgat1}</div> </div>
                  <div class="col wd-200"> <div class="col"><input name="chgat6" type="checkbox"  value="-1" tabindex=-1 class=" input-sm wd-020 chgat6" {if $data.chgat6 eq "-1"}checked{/if}></div><div class="col" style="padding-top:3px;">{$header.chgat6}</div> </div>
                </div>
                <div class="col wp-100">
                  <label class="control-label wd-020">&nbsp;</label>
                  <div class="col wd-200"> <div class="col"><input name="chgat2" type="checkbox"  value="-1" tabindex=-1 class=" input-sm wd-020 chgat2" {if $data.chgat2 eq "-1"}checked{/if}></div><div class="col" style="padding-top:3px;">{$header.chgat2}</div> </div>
                  <div class="col wd-200"> <div class="col"><input name="chgat7" type="checkbox"  value="-1" tabindex=-1 class=" input-sm wd-020 chgat7" {if $data.chgat7 eq "-1"}checked{/if}></div><div class="col" style="padding-top:3px;">{$header.chgat7}</div> </div>
                </div>
                <div class="col wp-100">
                  <label class="control-label wd-020">&nbsp;</label>
                  <div class="col wd-200"> <div class="col"><input name="chgat3" type="checkbox"  value="-1" tabindex=-1 class=" input-sm wd-020 chgat3" {if $data.chgat3 eq "-1"}checked{/if}></div><div class="col" style="padding-top:3px;">{$header.chgat3}</div> </div>
                  <div class="col wd-200"> <div class="col"><input name="chgat8" type="checkbox"  value="-1" tabindex=-1 class=" input-sm wd-020 chgat8" {if $data.chgat8 eq "-1"}checked{/if}></div><div class="col" style="padding-top:3px;">{$header.chgat8}</div> </div>
                </div>
                <div class="col wp-100">
                  <label class="control-label wd-020">&nbsp;</label>
                  <div class="col wd-200"> <div class="col"><input name="chgat4" type="checkbox"  value="-1" tabindex=-1 class=" input-sm wd-020 chgat4" {if $data.chgat4 eq "-1"}checked{/if}></div><div class="col" style="padding-top:3px;">{$header.chgat4}</div> </div>
                  <div class="col wd-200"> <div class="col"><input name="chgat9" type="checkbox"  value="-1" tabindex=-1 class=" input-sm wd-020 chgat9" {if $data.chgat9 eq "-1"}checked{/if}></div><div class="col" style="padding-top:3px;">{$header.chgat9}</div> </div>
                </div>
              </div>
            </div>
            
            <div class="col wp-100">
              <label class="control-label wd-020" style="height:10px">&nbsp;</label>
            </div>
            <hr>
            <div class="col wp-100 detailFooter">
              <div class="col wp-100" style="height:30px"></div>
              <div class="col wp-100">
                <div id="footerArea" class="col wp-100">
                  <div class="item wd-900"></div>
                  <label class="control-label wd-040">登録日</label>
                  <input name="reg" type="text" class="form-control input-sm item wd-120 chgreg clear " readonly tabindex="-1" value="{$data.reg}" />
                  <label class="control-label wd-020 "></label>
                  <label class="control-label wd-040">更新日</label>
                  <input name="upd" type="text" class="form-control input-sm item wd-120 chgupd clear " readonly tabindex="-1" value="{$data.upd}" />
                  <label class="control-label wd-020 "></label>
                  <label class="control-label wd-040">廃止日</label>
                  <input name="stp" type="text" class="form-control input-sm item wd-120 chgstp stpdat clear "  readonly tabindex="-1" value="{$data.stp}" />
                </div>
              </div>
            </div>

          </div>
        </div>
      </div>        
    </form>
  </div>
  <input id="lastDetail" type="text" style="opacity:0;height:0px;"/>
  <input type="text" class="dummy dummy2"/>

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

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

</div>
