Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 在html中集成折叠_Php_Html_Collapse - Fatal编程技术网

Php 在html中集成折叠

Php 在html中集成折叠,php,html,collapse,Php,Html,Collapse,我有以下代码: 身份证件 资料 使用者 伊特朗 西蒙拉 地位 还有这个 我想集成这两个代码,以便在折叠打开的项时,它们会受到交互表的影响。也就是说,取决于相互作用,崩塌过程中相互作用的结果也是如此 你应该在这个网站上只使用英语。谢谢Mateus,它已经在网站上了English@Bole现在它是用英语写的,但不知为什么我不知道!我完全无法理解你的问题…在这个while($rowInteraction=$P\u interaction->fetch\u assoc()){ <d

我有以下代码:


身份证件
资料
使用者
伊特朗
西蒙拉
地位
还有这个


我想集成这两个代码,以便在折叠打开的项时,它们会受到交互表的影响。也就是说,取决于相互作用,崩塌过程中相互作用的结果也是如此


你应该在这个网站上只使用英语。谢谢Mateus,它已经在网站上了English@Bole现在它是用英语写的,但不知为什么我不知道!我完全无法理解你的问题…在这个while($rowInteraction=$P\u interaction->fetch\u assoc()){
    <div class="box-body table-responsive no-padding">
          <div class="panel-group">
            <table class="table table">
              <tr>
                <th>ID</th>
                <th>Data</th>
                <th>User</th>
                <th>Interação</th>
                <th>Simulação</th>
                <th>Status</th>
              </tr>
              <?php
              if ($P_interaction->num_rows > 0){
                while($rowInteraction = $P_interaction->fetch_assoc()){
                  $test = $rowInteraction['idinteracao'];
              ?>
              <tr>
                <td data-toggle="collapse" href="#collapse1"><?php echo $rowInteraction['idinteracao']?></td>
                <td data-toggle="collapse" href="#collapse1"><?php echo $rowInteraction['data']?></td>
                <td data-toggle="collapse" href="#collapse1"><?php echo $rowInteraction['user']?></td>
                <td data-toggle="collapse" href="#collapse1"><?php echo utf8_encode($rowInteraction['assunto'])?></td>
                <td></td>
                <td data-toggle="collapse" href="#collapse1"><span class="label label-warning"><?php echo $rowInteraction['status']?></span></td>
              </tr>
              <?php
                }
              }?>
            </table>
<div id="collapse1" class="panel-collapse collapse">
                    <?php
                      $movIntercacao = "SELECT * FROM tbl_movinteracao WHERE interacao = '$rowInteraction['idinteracao']'";
                      $P_movIntercacao = $mysqli->query($movIntercacao);
                    ?>
                    <h4 class="box-title">Movimentos da Interação</h4>
                    <table class="table table">
                      <tr>
                        <th>Data</th>
                        <th>Hora</th>
                        <th>User</th>
                        <th>Observações</th>
                        <th>Simulação</th>
                      </tr>
                      <?php
                      if ($P_movIntercacao->num_rows > 0){
                        while($rowMovIntercacao = $P_movIntercacao->fetch_assoc()){ ?>
                        <tr>
                          <td><?php echo $rowMovIntercacao['data']?></td>
                          <td><?php echo $rowMovIntercacao['hora']?></td>
                          <td><?php echo $rowMovIntercacao['user']?></td>
                          <td><?php echo utf8_encode($rowMovIntercacao['obs'])?></td>
                          <td></td>
                        </tr>
                        <?php
                        }
                      }?>
                    </table>
                </div>