I continue to give the implementation of Semantic-UI and I am with a problem that I would have to see why it does not work.
It turns out that I have a system of 5 tabs that depend on the certain values I take from the database. One of those tabs is fixed, it is always shown but the other four tabs represent a type of user profile. If the user a type of user, say "A", the tab is displayed and the other 3 are disabled. For this I do the following:
<div class="ui top attached red inverted tabular menu">
<a class="item active" data-tab="1">Datos Básicos</a>
<?php
foreach ($array as $key=> $values) {
if($values == "1") { ?>
<a class="item" data-tab="2">Perfil A</a>
<?php } else{ ?>
<a class="item disabled" data-tab="2">Perfil A</a>
<?php }
if($values == "2") { ?>
<a class="item" data-tab="3">Perfil B</a>
<?php } else{ ?>
<a class="item disabled" data-tab="3">Perfil B</a>
<?php }
if($values == "3") { ?>
<a class="item" data-tab="4">Perfil C</a>
<?php } else{ ?>
<a class="item disabled" data-tab="4">Perfil C</a>
<?php }
if($values == "4") { ?>
<a class="item" data-tab="5">Perfil D</a>
<?php } else{ ?>
<a class="item disabled" data-tab="5">Perfil D</a>
<?php }
} ?>
</div>
What is happening? It's like the tabs are shaded, but if I click on the tab it shows me what's in it. When you really should not let that happen. Implement something already implemented in a multiple select made in Semantic-UI and that is perfect. I do not understand why it does not work here.
For example a little above I do this:
$array = json_decode ($valorDevuelto, true);
var_dump($array);
This returns me:
array (size=3)
0 => string '1' (length=1)
1 => string '2' (length=1)
2 => string '4' (length=1)