Jquery tabs last stopped working

Asked

Viewed 76 times

-1

 <div id="tabs">
 <ul>
            <li><a href="#tabs-1">Informação</a></li>
    <li><a href="#tabs-2">Trabalhadores</a></li>
            <li><a href="#tabs-3">Equipamentos</a></li>

</ul>

Code:

   echo '<div id="tabs-3">
  <p><b> Maquina Electrosoldadura (1)</b></p>
       <p>Maquina Electrosoldadura Numero: '.$exibe["MaquinaNumero1"].'</p>
       <p>Maquina Electrosoldadura Validade:';
            if ($exibe['MaquinaValidade1']) { 
            if (strtotime($exibe['MaquinaValidade1']) < time()) 
            {
            echo '<span style="color:red">'.$exibe['MaquinaValidade1'].'</span>';
            } else {
            echo $exibe['MaquinaValidade1'];
            }
            } else { 
            echo 'N/D';
            }
            echo '</p>
        <p>Maquina Electrosoldadura Modulo: '.$exibe["MaquinaModulo1"].'</p>    
       <p>Maquina Electrosoldadura Anexo: <a href="MostrarMaquina1.php?id=' . $exibe['id'] . '">Ver PDF </a></p>

    <p><b> Maquina Electrosoldadura (2)</b></p>
       <p>Maquina Electrosoldadura Numero: '.$exibe["MaquinaNumero2"].'</p>
       <p>Maquina Electrosoldadura Validade:';
            if ($exibe['MaquinaValidade2']) { 
            if (strtotime($exibe['MaquinaValidade2']) < time()) 
            {
            echo '<span style="color:red">'.$exibe['MaquinaValidade2'].'</span>';
            } else {
            echo $exibe['MaquinaValidade2'];
            }
            } else { 
            echo 'N/D';
            }
            echo '</p>
        <p>Maquina Electrosoldadura Modulo: '.$exibe["MaquinaModulo2"].'</p>    
       <p>Maquina Electrosoldadura Anexo: <a href="MostrarMaquina2.php?id=' . $exibe['id'] . '">Ver PDF </a></p>


       <p><b> Maquina Electrosoldadura (3)</b></p>
       <p>Maquina Electrosoldadura Numero: '.$exibe["MaquinaNumero3"].'</p>
       <p>Maquina Electrosoldadura Validade:';
            if ($exibe['MaquinaValidade3']) { 
            if (strtotime($exibe['MaquinaValidade3']) < time()) 
            {
            echo '<span style="color:red">'.$exibe['MaquinaValidade3'].'</span>';
            } else {
            echo $exibe['MaquinaValidade3'];
            }
            } else { 
            echo 'N/D';
            }
            echo '</p>';
        echo '<p>Maquina Electrosoldadura Modulo: '.$exibe["MaquinaModulo3"].'</p>  
       <p>Maquina Electrosoldadura Anexo: <a href="MostrarMaquina3.php?id=' . $exibe['id'] . '">Ver PDF </a></p>

       <p><b> Maquina Topo-a-Topo:</b></p>
       <p>Maquina Topo-a-Topo Numero: '.$exibe["MaquinaTopoNumero"].'</p>
       <p>Maquina Topo-a-Topo Validade:';
            if ($exibe['MaquinaTopoValidade']) { 
            if (strtotime($exibe['MaquinaTopoValidade']) < time()) 
            {
            echo '<span style="color:red">'.$exibe['MaquinaTopoValidade'].'</span>';
            } else {
            echo $exibe['MaquinaTopoValidade'];
            }
            } else { 
            echo 'N/D';
            }
         echo '</p><p>Maquina Topo-a-Topo Anexo: <a href="MaquinaTopoMaquina.php?id=' . $exibe['id'] . '">Ver PDF </a></p>

 </div>';



  }     

?>

In this code tabs-3 suddenly stopped working. Appears completely blank

  • Some compilers don’t like spaces next to concatenations. Have you tried removing whitespace here: id=' . $exibe['id'] . '" ?

  • Yes I’ve tried it ... and it stopped working all of a sudden

  • I took the spaces and nothing..

  • Is there a bug in PHP? how are you debugging? add this to the PHP page if you don’t already have it: error_reporting(E_ALL ^ E_NOTICE);&#xA;ini_set("display_errors", 1);

  • I could see what the problem was here?

  • I think the problem is the pollution of HTML code and PHP mixed with line breaks, I’ve had this problem, in the manual says that there is some, but I personally have had.

  • 1

    Mixing PHP+HTML as if there were no tomorrow, one of the worst practices in my opinion.

Show 2 more comments

1 answer

-1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.