
<table id="dg" singleSelect="true"></table>              

<div id="toolbar">  
    <?php if ($this->session->userdata('t1') == 1 && $this->session->userdata('t6') == 1 ){ ?>
    <a href="javascript:void(0)" id="btnTbh" class="easyui-linkbutton" iconCls="icon-add" plain="true" title="Tambah">Tambah</a>  
    <?php }?>
    <?php if ($this->session->userdata('u1') == 1 && $this->session->userdata('u6') == 1 ){ ?>
    <a href="javascript:void(0)" id="btnUbh" class="easyui-linkbutton" iconCls="icon-edit" plain="true" title="Ubah">Ubah</a> 
    <?php }?>
    <?php if ($this->session->userdata('h1') == 1 && $this->session->userdata('h6') == 1 ){ ?>
    <a href="javascript:void(0)" id="btnHps" class="easyui-linkbutton" iconCls="icon-remove" plain="true" title="Hapus">Hapus</a>  
    <?php }?>  
	<a href="javascript:void(0)" id="btnPrint" 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;
    <div style="display:inline-block">
      <label class="control-label">Jenis Barang</label>
      <input class="form-control" id="TpBarang2" style="width:90%">
    </div>
    &nbsp; &nbsp;
    <input id="q">
    </span>
</div>

<div id="dlg" class="easyui-dialog" style="width:500px;padding:10px" closed="true" buttons="#dlg-buttons">
	<form id="fm" method="post" onSubmit="return false">
    <input type="hidden" id="id" name="id">
 	<table cellpadding="2" cellspacing="2">
    <tr>
      <td width="114">Item Code</td>
      <td width="254">
      <input name="KdBarang" id="KdBarang" class="easyui-textbox" style="width:100px"></td>
    </tr>
    <!-- <tr>
      <td width="114">WIP1 Code</td>
      <td width="254">
      <input name="WIP1" id="WIP1" class="easyui-textbox" style="width:100px"></td>
    </tr>
    <tr>
      <td width="114">WIP2 Code</td>
      <td width="254">
      <input name="WIP2" id="WIP2" class="easyui-textbox" style="width:100px"></td>
    </tr>
    <tr>
      <td width="114">WIP3 Code</td>
      <td width="254">
      <input name="WIP3" id="WIP3" class="easyui-textbox" style="width:100px"></td>
    </tr>
    <tr>
      <td width="114">WIP Subcont</td>
      <td width="254">
      <input name="SUB-P" id="SUB-P" class="easyui-textbox" style="width:100px"></td>
    </tr>
    <tr>
      <td width="114">WIP Plating</td>
      <td width="254">
      <input name="WIP-P" id="WIP-P" class="easyui-textbox" style="width:100px"></td>
    </tr>
    <tr>
      <td width="114">FG-P</td>
      <td width="254">
      <input name="FG-P" id="FG-P" class="easyui-textbox" style="width:100px"></td>
    </tr>
    <tr>
      <td width="114">CF</td>
      <td width="254">
      <input name="CF" id="CF" class="easyui-textbox" style="width:100px"></td>
    </tr> -->
    <tr>
      <td valign="top">Size</td>
      <td>
      <input name="PartNo" id="PartNo" cols="25" rows="3" class="easyui-textbox" ></td>
    </tr>
    <tr>
      <td valign="top">Item Description</td>
      <td><input name="NmBarang" cols="25" rows="3" class="easyui-textbox" data-options="required:true,novalidate:true" id="NmBarang"></td>
    </tr>
    <tr>
      <td valign="top">Part No Customer</td>
      <td><input name="custPartNo" cols="25" rows="3" class="easyui-textbox" data-options="novalidate:true" id="NmBarang"></td>
    </tr>
    <!-- <tr>
      <td width="114">Item Group</td>
      <td width="254">
      <input name="MatGroup" id="MatGroup" data-options="required:true,novalidate:true">
      </td>
    </tr> -->
    <!-- <tr>
      <td width="114">Jenis Barang</td>
      <td width="254">
      <input name="TpBarang" id="TpBarang" data-options="required:true,novalidate:true">
      </td>
    </tr> -->
    <tr>
      <td width="114">UOM</td>
      <td width="254">
      <input name="Sat" id="Sat" data-options="required:true,novalidate:true">
      </td>
    </tr>
    </table>
    <input type="submit" id="btnSubmit" name="btnSubmit" style="display:none">
    </form>            
</div>
<div id="dlg-buttons">
    <a href="#" id="btnSim" class="easyui-linkbutton" iconCls="icon-ok">Simpan</a>
    <a href="javascript:void(0)" id="btnReset" class="easyui-linkbutton" iconCls="icon-cancel">Kosongkan</a>
</div>            