<?php $url = 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];?>

<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">  
          <!-- Material -->
          <?php if($this->url == site_url('matout')){ ?>
          <?php if ($this->session->userdata('t12') == 1 && $this->session->userdata('t25') == 1 && $this->session->userdata('t26') == 1 ){ ?>
          <a href="javascript:void(0)" id="btnTbh" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="addForm()">Add</a>  
          <?php }?>
          <?php if ($this->session->userdata('u12') == 1 && $this->session->userdata('u25') == 1 && $this->session->userdata('u26') == 1 ){ ?>
          <a href="javascript:void(0)" id="btnUbh" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="editForm()">Edit</a> 
          <?php }?>
          <?php if ($this->session->userdata('h12') == 1 && $this->session->userdata('h25') == 1 && $this->session->userdata('h26') == 1 ){ ?>
          <a href="javascript:void(0)" id="btnHps" class="easyui-linkbutton" iconCls="icon-remove" plain="true">Delete</a>  
          <?php }?> 
          <?php if ($this->session->userdata('t12') == 1 && $this->session->userdata('t25') == 1 && $this->session->userdata('t26') == 1 ){ ?>
           <!-- <a href="javascript:void(0)" id="btnJournal" class="easyui-linkbutton" iconCls="icon-ok" plain="true" style="width:120px">Create Journal</a> -->
          <?php } ?>
          <!-- <a href="javascript:void(0)" id="btnExcelCeisa" class="easyui-linkbutton" iconCls="icon-xls" plain="true" title="Print">Excel Ceisa</a> -->
          <?php if ($this->session->userdata('t12') == 1 && $this->session->userdata('t25') == 1 && $this->session->userdata('t26') == 1 ){ ?>
          <a href="javascript:void(0)" id="btnTransferCeisa" class="easyui-linkbutton" iconCls="icon-ok" plain="true" style="width:140px">Transfer to Ceisa</a>
          <?php } ?>
          <?php } ?>
          <!-- Finished Goods-->
          <?php if($this->url == site_url('fgout')){ ?>
          <?php if ($this->session->userdata('t12') == 1 && $this->session->userdata('t25') == 1 && $this->session->userdata('t27') == 1 ){ ?>
          <a href="javascript:void(0)" id="btnTbh" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="addForm()">Add</a>  
          <?php }?>
          <?php if ($this->session->userdata('u12') == 1 && $this->session->userdata('u25') == 1 && $this->session->userdata('u27') == 1 ){ ?>
          <a href="javascript:void(0)" id="btnUbh" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="editForm()">Edit</a> 
          <?php }?>
          <?php if ($this->session->userdata('h12') == 1 && $this->session->userdata('h25') == 1 && $this->session->userdata('h27') == 1 ){ ?>
          <a href="javascript:void(0)" id="btnHps" class="easyui-linkbutton" iconCls="icon-remove" plain="true">Delete</a>  
          <?php }?> 
          <?php if ($this->session->userdata('t12') == 1 && $this->session->userdata('t25') == 1 && $this->session->userdata('t27') == 1 ){ ?>
          <a href="javascript:void(0)" id="btnJournal" class="easyui-linkbutton" iconCls="icon-ok" plain="true" style="width:120px">Create Journal</a>
          <?php } ?>
          <?php if ($this->session->userdata('t12') == 1 && $this->session->userdata('t25') == 1 && $this->session->userdata('t27') == 1 ){ ?>
          <a href="javascript:void(0)" id="btnTransferCeisa" class="easyui-linkbutton" iconCls="icon-ok" plain="true" style="width:140px">Transfer to Ceisa</a>
          <?php } ?>
          <?php } ?>
          <!-- Machine & Equipments-->
          <?php if($this->url == site_url('macout')){ ?>
          <?php if ($this->session->userdata('t12') == 1 && $this->session->userdata('t25') == 1 && $this->session->userdata('t28') == 1 ){ ?>
          <a href="javascript:void(0)" id="btnTbh" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="addForm()">Add</a>  
          <?php }?>
          <?php if ($this->session->userdata('u12') == 1 && $this->session->userdata('u25') == 1 && $this->session->userdata('u28') == 1 ){ ?>
          <a href="javascript:void(0)" id="btnUbh" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="editForm()">Edit</a> 
          <?php }?>
          <?php if ($this->session->userdata('h12') == 1 && $this->session->userdata('h25') == 1 && $this->session->userdata('h28') == 1 ){ ?>
          <a href="javascript:void(0)" id="btnHps" class="easyui-linkbutton" iconCls="icon-remove" plain="true">Delete</a>  
          <?php }?> 
          <?php if ($this->session->userdata('t12') == 1 && $this->session->userdata('t25') == 1 && $this->session->userdata('t28') == 1 ){ ?>
          <a href="javascript:void(0)" id="btnTransferCeisa" class="easyui-linkbutton" iconCls="icon-ok" plain="true" style="width:140px">Transfer to Ceisa</a>
          <?php } ?>
          <?php } ?>
          <!-- Scraps-->
          <?php if($this->url == site_url('scout')){ ?>
          <?php if ($this->session->userdata('t12') == 1 && $this->session->userdata('t25') == 1 && $this->session->userdata('t29') == 1 ){ ?>
          <a href="javascript:void(0)" id="btnTbh" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="addForm()">Add</a>  
          <?php }?>
          <?php if ($this->session->userdata('u12') == 1 && $this->session->userdata('u25') == 1 && $this->session->userdata('u29') == 1 ){ ?>
          <a href="javascript:void(0)" id="btnUbh" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="editForm()">Edit</a> 
          <?php }?>
          <?php if ($this->session->userdata('h12') == 1 && $this->session->userdata('h25') == 1 && $this->session->userdata('h29') == 1 ){ ?>
          <a href="javascript:void(0)" id="btnHps" class="easyui-linkbutton" iconCls="icon-remove" plain="true">Delete</a>  
          <?php }?>
          <?php if ($this->session->userdata('t12') == 1 && $this->session->userdata('t25') == 1 && $this->session->userdata('t29') == 1 ){ ?>
          <a href="javascript:void(0)" id="btnTransferCeisa" class="easyui-linkbutton" iconCls="icon-ok" plain="true" style="width:140px">Transfer to Ceisa</a>
          <?php } ?> 
          <?php } ?>
          <!-- WIP-->
          <?php if($this->url == site_url('wipout')){ ?>
          <?php if ($this->session->userdata('t12') == 1 && $this->session->userdata('t25') == 1 && $this->session->userdata('t30') == 1 ){ ?>
          <a href="javascript:void(0)" id="btnTbh" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="addForm()">Add</a>  
          <?php }?>
          <?php if ($this->session->userdata('u12') == 1 && $this->session->userdata('u25') == 1 && $this->session->userdata('u30') == 1 ){ ?>
          <a href="javascript:void(0)" id="btnUbh" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="editForm()">Edit</a> 
          <?php }?>
          <?php if ($this->session->userdata('h12') == 1 && $this->session->userdata('h25') == 1 && $this->session->userdata('h30') == 1 ){ ?>
          <a href="javascript:void(0)" id="btnHps" class="easyui-linkbutton" iconCls="icon-remove" plain="true">Delete</a>  
          <?php }?> 
          <?php if ($this->session->userdata('t12') == 1 && $this->session->userdata('t25') == 1 && $this->session->userdata('t30') == 1 ){ ?>
          <a href="javascript:void(0)" id="btnTransferCeisa" class="easyui-linkbutton" iconCls="icon-ok" plain="true" style="width:140px">Transfer to Ceisa</a>
          <?php } ?>
          <?php } ?>
          <!-- All In -->
          <a href="javascript:void(0)" id="btnPrint" class="easyui-linkbutton" iconCls="icon-print" plain="true" title="Print">Print DO</a>
          <a href="javascript:void(0)" id="btnPrintinv" class="easyui-linkbutton" iconCls="icon-print" plain="true" title="Print">Print INV & PL</a>
          <span style="display:inline-block;">
          <div style="display:inline-block">
            <label class="control-label">Jenis BC</label>
            <input class="form-control" id="KdJnsDok2" style="width:90%">
          </div>
          &nbsp; &nbsp; &nbsp;
          <input id="q">
          </span>
        </div>
        
        <div id="dlg" class="easyui-dialog" style="width:100%;" inline="false" closed="true" modal="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="matout_id" name="matout_id">
            <table style="table-layout: fixed; width: 100%;">
              <tr>
              <td><label class="control-label">Outgoing No.</label></td>
                <td><input class="form-control easyui-textbox" id="matout_no" name="matout_no" style="width:90%" required></td>
                <td><label class="control-label">Outgoing Type</label></td>
                <td><input class="form-control" name="matout_type" id="matout_type" style="width:90%" required></td>
                <td><label class="control-label">Outgoing Date</label></td>
                <td><input class="form-control easyui-datebox" id="matout_date" name="matout_date" maxlength="10" style="width:90%" required></td>
              </tr>
              <tr>
                <?php if($url == site_url('fgout')){ ?>
                <td><label class="control-label">SO No.</label></td>
                <td>
                  <input class="form-control" name="ref_id" id="ref_id" style="width:90%" required>
                  <input type="hidden" name="ref_no" id="ref_no" style="width:90%">
                </td>
                <?php } else { ?>
                <td><label class="control-label">SO No.</label></td>
                <td>
                  <input input="text" name="ref_id" style="width:90%">
                </td>
                <?php } ?>
                <td><label class="control-label">Receiver</label></td>
                <td><input class="form-control" name="cust" id="cust" style="width:90%"></td>
                <td><label class="control-label">Currency</label></td>
                <td><input class="form-control" name="currency" id="currency" style="width:90%"></td>
              </tr>
              <tr>
                <td><label class="control-label">Kurs</label></td>
                <td><input class="form-control easyui-textbox" id="kurs" name="kurs" style="width:90%"></td>
                <td><label class="control-label">Jenis BC</label></td>
                <td><input class="form-control" id="KdJnsDok" name="KdJnsDok" style="width:90%"></td>
                <td><label class="control-label">No. Aju</label></td>
                <td><input class="form-control easyui-textbox" name="NoAju" id="NoAju" style="width:90%"></td>
              </tr>
              <tr>
                <td><label class="control-label">Tgl. Aju</label></td>
                <td><input class="form-control easyui-datebox" id="TgAju" name="TgAju" maxlength="10" style="width:90%"></td>
                <td><label class="control-label">No. Dok. Pabean</label></td>
                <td><input class="form-control easyui-textbox" name="NoDaf" id="NoDaf" style="width:90%"></td>
                <td><label class="control-label">Tgl. Dok. Pabean</label></td>
                <td><input class="form-control easyui-datebox" id="TgDaf" name="TgDaf" maxlength="10" style="width:90%"></td>
              </tr>
              <tr>
                <td><label class="control-label">Bruto</label></td>
                <td><input class="form-control" id="Bruto" name="Bruto" style="width:90%"></td>
                <td><label class="control-label">Harga Penyerahan</label></td>
                <td><input class="form-control easyui-numberbox" name="HargaSerah" id="HargaSerah" style="width:90%"></td>
                <td><label class="control-label">Jumlah Barang</label></td>
                <td><input class="form-control easyui-numberbox" name="JmlBarang" id="JmlBarang" style="width:90%"></td>
              </tr>
              <tr>
                <td><label class="control-label">CIF</label></td>
                <td><input class="form-control" id="cif" name="cif" style="width:90%"></td>
                <td><label class="control-label">Netto</label></td>
                <td><input class="form-control" id="Netto" name="Netto" style="width:90%"></td>
                <td><label class="control-label col-md-2">Tgl. TTD</label></td>
                <td><input class="form-control easyui-datebox" id="TgTTD" name="TgTTD" maxlength="10" style="width:90%"></td>
              </tr>
              <tr>
                <td><label class="control-label">Jenis Kemasan</label></td>
                <td><input class="form-control" name="packing" id="packing" style="width:90%"></td>
              </tr>
              <?php 
                if($url == site_url('fgout') || $url == site_url('matout')) {
                  if ($url == site_url('fgout')){
                    $idd =  "accountd_id";
                    $idc =  "accountc_id";
                  } else {
                    $idd = "accountd_id2";
                    $idc = "accountc_id2";
                  }
              ?>
              <tr>
                <td><label class="control-label">Debit</label></td> 
                <td><input class="form-control" name="accountd_id" id="<?php echo $idd ?>" style="width:90%"></td>
                <td><input class="form-control easyui-textbox" name="acctnamed" id="acctnamed" style="width:90%" readonly></td>
              </tr>
              <tr>
                <td><label class="control-label">Credit</label></td>
                <td><input class="form-control" name="accountc_id" id="<?php echo $idc ?>" style="width:90%"></td>
                <td><input class="form-control easyui-textbox" name="acctnamec" id="acctnamec" style="width:90%" readonly></td>
              </tr>
              <?php } ?>
            </table>
        </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">  
              <!-- Material -->
              <?php if($this->url == site_url('matout')){ ?>
              <?php if ($this->session->userdata('t12') == 1 && $this->session->userdata('t25') == 1 && $this->session->userdata('t26') == 1 ){ ?>
              <a href="javascript:void(0)" id="btnTbh2" class="easyui-linkbutton" iconCls="icon-add" plain="true">Add</a>  
              <?php } ?>
              <?php if ($this->session->userdata('u12') == 1 && $this->session->userdata('u25') == 1 && $this->session->userdata('u26') == 1 ){ ?>
              <a href="javascript:void(0)" id="btnUbh2" class="easyui-linkbutton" iconCls="icon-edit" plain="true">Edit Qty</a> 
              <a href="javascript:void(0)" id="btnRst2" class="easyui-linkbutton" iconCls="icon-edit" plain="true">Reset Qty</a> 
              <?php } ?>
              <?php if ($this->session->userdata('t12') == 1 && $this->session->userdata('t25') == 1 && $this->session->userdata('t26') == 1 ){ ?>
              <a href="javascript:void(0)" id="btnSpr2" class="easyui-linkbutton" iconCls="icon-edit" plain="true">Input All Qty</a> 
              <?php }?>
              <?php if ($this->session->userdata('h12') == 1 && $this->session->userdata('h17') == 1 && $this->session->userdata('h26') == 1 ){ ?>
              <a href="javascript:void(0)" id="btnHps2" class="easyui-linkbutton" iconCls="icon-remove" plain="true">Delete</a>  
              <?php }?>
              <?php }?>
              <!-- Finished Goods -->
              <?php if($this->url == site_url('fgout')){ ?>
              <?php if ($this->session->userdata('u12') == 1 && $this->session->userdata('u25') == 1 && $this->session->userdata('u27') == 1 ){ ?>
              <a href="javascript:void(0)" id="btnUbh2" class="easyui-linkbutton" iconCls="icon-edit" plain="true">Edit Qty</a> 
              <a href="javascript:void(0)" id="btnRst2" class="easyui-linkbutton" iconCls="icon-edit" plain="true">Reset Qty</a> 
              <?php } ?>
              <?php if ($this->session->userdata('t12') == 1 && $this->session->userdata('t25') == 1 && $this->session->userdata('t27') == 1 ){ ?>
              <a href="javascript:void(0)" id="btnSpr2" class="easyui-linkbutton" iconCls="icon-edit" plain="true">Input All Qty</a> 
              <?php }?>
              <?php }?>
              <!-- Machine and Equipments -->
              <?php if($this->url == site_url('macout')){ ?>
              <?php if ($this->session->userdata('t12') == 1 && $this->session->userdata('t25') == 1 && $this->session->userdata('t28') == 1 ){ ?>
              <a href="javascript:void(0)" id="btnTbh2" class="easyui-linkbutton" iconCls="icon-add" plain="true">Add</a>  
              <?php } ?>
              <?php if ($this->session->userdata('u12') == 1 && $this->session->userdata('u25') == 1 && $this->session->userdata('u28') == 1 ){ ?>
              <a href="javascript:void(0)" id="btnUbh2" class="easyui-linkbutton" iconCls="icon-edit" plain="true">Edit Qty</a> 
              <a href="javascript:void(0)" id="btnRst2" class="easyui-linkbutton" iconCls="icon-edit" plain="true">Reset Qty</a> 
              <?php } ?>
              <?php if ($this->session->userdata('t12') == 1 && $this->session->userdata('t25') == 1 && $this->session->userdata('t28') == 1 ){ ?>
              <a href="javascript:void(0)" id="btnSpr2" class="easyui-linkbutton" iconCls="icon-edit" plain="true">Input All Qty</a> 
              <?php }?>
              <?php if ($this->session->userdata('h12') == 1 && $this->session->userdata('h17') == 1 && $this->session->userdata('h28') == 1 ){ ?>
              <a href="javascript:void(0)" id="btnHps2" class="easyui-linkbutton" iconCls="icon-remove" plain="true">Delete</a>  
              <?php }?>
              <?php }?>
              <!-- Scrap -->
              <?php if($this->url == site_url('scout')){ ?>
              <?php if ($this->session->userdata('t12') == 1 && $this->session->userdata('t25') == 1 && $this->session->userdata('t29') == 1 ){ ?>
              <a href="javascript:void(0)" id="btnTbh2" class="easyui-linkbutton" iconCls="icon-add" plain="true">Add</a>  
              <?php } ?>
              <?php if ($this->session->userdata('u12') == 1 && $this->session->userdata('u25') == 1 && $this->session->userdata('u29') == 1 ){ ?>
              <a href="javascript:void(0)" id="btnUbh2" class="easyui-linkbutton" iconCls="icon-edit" plain="true">Edit Qty</a> 
              <a href="javascript:void(0)" id="btnRst2" class="easyui-linkbutton" iconCls="icon-edit" plain="true">Reset Qty</a> 
              <?php } ?>
              <?php if ($this->session->userdata('t12') == 1 && $this->session->userdata('t25') == 1 && $this->session->userdata('t29') == 1 ){ ?>
              <a href="javascript:void(0)" id="btnSpr2" class="easyui-linkbutton" iconCls="icon-edit" plain="true">Input All Qty</a> 
              <?php }?>
              <?php if ($this->session->userdata('h12') == 1 && $this->session->userdata('h17') == 1 && $this->session->userdata('h29') == 1 ){ ?>
              <a href="javascript:void(0)" id="btnHps2" class="easyui-linkbutton" iconCls="icon-remove" plain="true">Delete</a>  
              <?php }?>
              <?php }?>
              <!-- WIP -->
              <?php if($this->url == site_url('wipout')){ ?>
              <?php if ($this->session->userdata('t12') == 1 && $this->session->userdata('t25') == 1 && $this->session->userdata('t30') == 1 ){ ?>
              <a href="javascript:void(0)" id="btnTbh2" class="easyui-linkbutton" iconCls="icon-add" plain="true">Add</a>  
              <?php } ?>
              <?php if ($this->session->userdata('u12') == 1 && $this->session->userdata('u25') == 1 && $this->session->userdata('u30') == 1 ){ ?>
              <a href="javascript:void(0)" id="btnUbh2" class="easyui-linkbutton" iconCls="icon-edit" plain="true">Edit Qty</a> 
              <a href="javascript:void(0)" id="btnRst2" class="easyui-linkbutton" iconCls="icon-edit" plain="true">Reset Qty</a> 
              <?php } ?>
              <?php if ($this->session->userdata('t12') == 1 && $this->session->userdata('t25') == 1 && $this->session->userdata('t30') == 1 ){ ?>
              <a href="javascript:void(0)" id="btnSpr2" class="easyui-linkbutton" iconCls="icon-edit" plain="true">Input All Qty</a> 
              <?php }?>
              <?php if ($this->session->userdata('h12') == 1 && $this->session->userdata('h17') == 1 && $this->session->userdata('h30') == 1 ){ ?>
              <a href="javascript:void(0)" id="btnHps2" class="easyui-linkbutton" iconCls="icon-remove" plain="true">Delete</a>  
              <?php }?>
              <?php }?>
              <span style="display:inline-block;">
              &nbsp; &nbsp; &nbsp;
              <input id="q_det">
              </span>
            </div>
            <div id="dlg2" class="easyui-dialog" style="width:40%; top:5%;" 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">
                <tr>
                  <td><label class="control-label ">Item Code</label></td><br>
                  <td><input class="form-control" id="mat_id" name="mat_id" style="width:90%" required></td><br>
                  <td><label class="control-label ">Item Description</label></td><br>
                  <td><input class="form-control easyui-textbox" id="NmBarang" name="NmBarang" style="width:100%" readonly></td><br>
                  <td><label class="control-label ">UOM</label></td><br>
                  <td><input class="form-control" id="Sat" name="Sat" style="width:40%" ></td><br>
                  <?php if($url == site_url('fgout')){ ?>
                  <td><label class="control-label ">SO Qty.</label></td><br>
                  <td><input class="form-control" id="poqty" name="poqty" style="width:40%" readonly style="color:brown"></td><br>
                  <td><label class="control-label ">Qty.</label></td><br>
                  <td><input class="form-control" id="qty" name="qty" style="width:40%" style="color:brown"></td><br>
                  <td><label class="control-label ">In Qty.</label></td><br>
                  <td><input class="form-control" id="Dqty2" name="Dqty" style="width:40%" readonly disable></td> before<br>
                  <td><input class="form-control" id="Dqty" name="Dqty" style="width:40%" readonly></td><br>
                  <td><label class="control-label ">Balance.</label></td><br>
                  <td><input class="form-control" id="Bqty" name="balance" style="width:40%" readonly style="color:brown"></td><br>
                  <td><label class="control-label ">Price</label></td><br>
                  <td><input class="form-control" id="price" name="price" style="width:40%"></td><br>
                  <td><label class="control-label ">Amount</label></td><br>
                  <td><input class="form-control" id="amount" name="amount" style="width:40%" readonly></td><b></b>
                  <?php } else { ?>
                  <div style="display:none">
                    <td><input id="poqty" disabled></td><br>
                    <td><input id="qty" disabled></td><br>
                    <td><input id="Dqty2" disable></td><br>
                    <td><input id="Dqty" disabled></td><br>
                    <td><input id="Bqty" disabled></td><br>
                  </div>
                  <td><label class="control-label ">Qty.</label></td><br>
                  <td><input class="form-control" id="qty2" name="qty" style="width:40%"></td><br>
                  <td><label class="control-label ">Price</label></td><br>
                  <td><input class="form-control" id="price2" name="price" style="width:40%"></td><br>
                  <td><label class="control-label ">Amount</label></td><br>
                  <td><input class="form-control" id="amount2" name="amount" style="width:40%" readonly></td><b></b>
                  <?php } ?>
                </tr>
            </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>