How to disable nav-tabs bootstrap with php

0

I'm trying to disable some nav-tabs that I have with an action in php , but I'm having a hard time performing this action completely, until I was able to disable nav-tabs with this class='disabled' code when hovering over The first two% of the% disabled icon appears, but if I click on it it shows me the content. I am doing tabs to search for some mandatory phases that the contract must have, if the result is greater than zero the first two tabs must be enabled and show the select that they exist in them, otherwise, if the value is zero the the first two forms must be disabled because the contract can only be completed if the Required Phases are registered.

What I have is this:

<div class="tabbable well" id="tabs-648642">

  <ul class="nav nav-tabs">
    <li <?php if ( $totalRows_FaseObrigatoriaTab > 0 ) { echo "class='enable'"; } else { echo "class='disabled'"; } ?> > <a href="#panel-1" data-toggle="tab">Fases</a> </li>
    <li <?php if ( $totalRows_FaseObrigatoriaTab > 0 ) { echo "class='enable'"; } else { echo "class='disabled'"; } ?> > <a href="#panel-2" data-toggle="tab">Doctos</a> </li>
<li> <a href="#panel-3" data-toggle="tab">Fases Obrigatórias</a> </li>
  </ul>

  <div class="tab-content"> 

    <div class="tab-pane active" id="panel-1"></div>

    <div class="tab-pane" id="panel-2"></div>

    <div class="tab-pane" id="panel-3"></div>

</div>

</div>

I'm deleting the tabs codes for easy viewing.

    
asked by anonymous 12.02.2016 / 10:36

0 answers