<ul class="nav nav-tabs">
  <li class="nav-item">
    <a class="nav-link <?php if($tabid==1){echo 'active';}?>" href="index">Lap Inventori</a>
  </li>
  <li class="nav-item">
    <a class="nav-link <?php if($tabid==3){echo 'active';}?>" href="index_2">Lap Product</a>
  </li>
  <li class="nav-item">
    <a class="nav-link <?php if($tabid==2){echo 'active';}?>" href="list-rekap">Lap Rekap</a>
  </li>
</ul>