<form method="post" action="" id="form_filter_cari">
  <table id="tb_cari" style="width:100%;" cellpadding="3px;" style="background-color: #717b85;">
    <tr>
      <th><h4 style="color:#fff;"><i>Search</i></h4></th>
    </tr>
    <tr>
      <td><label>Golongan Sampel</label></td>
      <td>:</td>
      <td>
        <select class="form-control default-select2" name="gol_jenis_sampel" style="width:100%;">
          <option></option>
          <?php foreach ($golongan_sampel as $r) { ?>
            <option <?php echo !empty($filter) ? ($filter['gol_jenis_sampel'] == $r['id_jenis'] ? 'selected' : '') : ''; ?> value="<?php echo $r['id_jenis']; ?>"><?php echo $r['nama_jenis']; ?></option>
          <?php } ?>
        </select>
      </td>

      <td width="50px"></td>

      <td><label>Tanggal Mulai Uji</label></td>
      <td>:</td>
      <td><input class="form-control" type="date" value="<?php echo !empty($filter) ? $filter['mulai_uji'] : ''; ?>" name="mulai_uji" placeholder="Masukkan tanggal"></td>
    </tr>
    <tr>
      <td><label>Nomor Sampel</label></td>
      <td>:</td>
      <td>
        <input class="form-control" value="<?php echo !empty($filter) ? $filter['id_sampel'] : ''; ?>" name="id_sampel" placeholder="Masukkan Nomor Sampel">
      </td>

      <td width="50px"></td>

      <td><label>Persetujuan</label></td>
      <td>:</td>
      <td><input class="form-control" type="date" value="<?php echo !empty($filter) ? $filter['persetujuan'] : ''; ?>" name="persetujuan" placeholder="Masukkan tanggal"></td>
    </tr>
    <tr>
      <td></td>
      <td></td>
      <td>
        <button class="btn btn-primary btn-sm" type="button" onclick="onfilter_cari();">Cari</button>
        <a href="<?php echo site_url('sampel/analis/form_uji/').$jenis_uji; ?>" class="btn btn-danger btn-sm">Reset</a>
      </td>
    </tr>
    <tr>
      <td colspan="7"></td>
    </tr>
  </table>

  <input class="form-control" type="hidden" name="filter_cari" value="1">
</form>
