<div id="tb">
    <div title="Transaction" data-options="closable:false" style="padding:10px">
        <div style="height:50%;padding-bottom:10px">
        <table id="dg_hdr"></table> 
        
        <div id="toolbar_hdr">  
            <?php if ($this->session->userdata('t1') == 1 && $this->session->userdata('t71') == 1 ){ ?>
            <a href="javascript:void(0)" id="btnTbh" class="easyui-linkbutton" iconCls="icon-add" plain="true">Add</a>  
            <?php }?>
            <?php if ($this->session->userdata('u1') == 1 && $this->session->userdata('u71') == 1 ){ ?>
            <a href="javascript:void(0)" id="btnUbh" class="easyui-linkbutton" iconCls="icon-edit" plain="true">Edit</a> 
            <?php }?>
            <?php if ($this->session->userdata('h1') == 1 && $this->session->userdata('h71') == 1 ){ ?>
            <a href="javascript:void(0)" id="btnHps" class="easyui-linkbutton" iconCls="icon-remove" plain="true">Delete</a>  
            <?php }?> 
            <a href="javascript:void(0)" id="btnPrint" class="easyui-linkbutton" iconCls="icon-print" plain="true" title="Print">Print Slip</a>
            <span style="display:inline-block;">
            &nbsp; &nbsp; &nbsp;
            <input id="q">
            </span>
        </div>
        
        <div id="dlg" class="easyui-dialog" style="width:70%;" inline="true" closed="true" buttons="#dlg-buttons">
        <form id="fm"class="form-horizontal" role="form" method="post" style="padding:10px;">
            <input type="submit" id="btnSubmit" name="btnSubmit" style="display:none">
            <input type="hidden" id="bom_id" name="bom_id">
            <div class="form-group">
              <label class="control-label col-md-1">BOM No.</label>
              <div class="col-md-3">
                <input class="form-control easyui-textbox" id="bom_no" name="bom_no" style="width:90%" required>
              </div>
              <label class="control-label col-md-1">BOM Date</label>            
              <div class="col-md-2">          
                <input class="form-control easyui-datebox" id="bom_date" name="bom_date" maxlength="10" style="width:90%" required>
              </div>
            </div>  
            <div class="form-group">
                    <label class="control-label col-md-1">FG Code</label>
                  <div class="col-md-3">
                    <input class="form-control" id="fg_id" name="fg_id" style="width:90%" required>
                  </div>
                    <label class="control-label col-md-1">FG Name</label>
                  <div class="col-md-3">
                    <input class="form-control easyui-textbox" id="NmBarang0" name="NmBarang0" style="width:100%" readonly>
                  </div>
                    <label class="control-label col-md-1">UOM</label>
                  <div class="col-md-1">
                    <input class="form-control" id="Sat0" name="Sat0" style="width:90%" readonly>
                  </div>
            </div>
        </form>
        </div>
        <div id="dlg-buttons">
            <a href="#" id="btnSim" class="easyui-linkbutton c6" iconCls="icon-ok">Simpan</a>
            <a href="javascript:void(0)" id="btnReset" class="easyui-linkbutton" iconCls="icon-cancel">Kosongkan</a>
        </div>

        </div>
        <div style="height:50%">
            <table id="dg_det"></table>
            <div id="toolbar_det">  
                <?php if ($this->session->userdata('t1') == 1 && $this->session->userdata('t71') == 1 ){ ?>
                <a href="javascript:void(0)" id="btnTbh2" class="easyui-linkbutton" iconCls="icon-add" plain="true">Add</a>  
                <!-- <a href="javascript:void(0)" id="btnTbh3" class="easyui-linkbutton" iconCls="icon-add" plain="true">Add BOM SMT</a>   -->
                <?php }?>
                <?php if ($this->session->userdata('u1') == 1 && $this->session->userdata('u71') == 1 ){ ?>
                <a href="javascript:void(0)" id="btnUbh2" class="easyui-linkbutton" iconCls="icon-edit" plain="true">Edit</a> 
                <?php }?>
                <?php if ($this->session->userdata('h1') == 1 && $this->session->userdata('h71') == 1 ){ ?>
                <a href="javascript:void(0)" id="btnHps2" class="easyui-linkbutton" iconCls="icon-remove" plain="true">Delete</a>  
                <?php }?> 
            </div>
            <div id="dlg2" class="easyui-dialog" style="width:40%;" closed="true" buttons="#dlg2-buttons">
            <form id="fm2"class="form-horizontal" role="form" method="post" style="padding:10px;">
                <input type="submit" id="btnSubmit2" name="btnSubmit2" style="display:none">
                <input type="hidden" id="child_no" name="child_no">
                <div class="form-group">
                    <label class="control-label col-md-3">Item Code</label>
                  <div class="col-md-9">
                    <div id="hide1"><input class="form-control" id="mat_id" name="mat_id" style="width:90%"></div>
                    <div id="hide2"><input class="form-control" id="bom_id2" name="mat_id" style="width:90%"></div>
                    <input type="checkbox" id="getBomSMT" value="Masukkan BOM SMT"/> Pilih BOM SMT
                  </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-md-3">Item Description</label>
                  <div class="col-md-9">
                    <input class="form-control easyui-textbox" id="NmBarang" name="NmBarang" style="width:100%" readonly>
                  </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-md-3">UOM</label>
                  <div class="col-md-2">
                    <input class="form-control" id="Sat" name="Sat" style="width:90%" readonly>
                  </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-md-3">Qty.</label>
                  <div class="col-md-3">
                    <input class="form-control" id="qty" name="qty" style="width:100%">
                  </div>
                </div>                
            </form>
            </div>
            <div id="dlg2-buttons">
                <a href="#" id="btnSim2" class="easyui-linkbutton c6" iconCls="icon-ok">Simpan</a>
                <a href="javascript:void(0)" id="btnReset2" class="easyui-linkbutton" iconCls="icon-cancel">Kosongkan</a>
            </div>
        </div>
    </div>
    <div title="List View" data-options="closable:false" style="padding:10px">
        <table id="dg_hdrdet"></table>
        <div id="toolbar_hdrdet">  
            <a href="javascript:void(0)" id="btnPrint2" class="easyui-linkbutton" iconCls="icon-print" plain="true" title="Print">Print</a> 
            <a href="javascript:void(0)" id="btnExcel" class="easyui-linkbutton" iconCls="icon-xls" plain="true" title="Excel">Excel</a>
            <span style="display:inline-block;">
            &nbsp; &nbsp; &nbsp;
            <input id="q2">
            </span>
        </div> 
    </div>    
</div>