怎么办我在html中生成这个表?

这是要生成

This is to be generated

我能够产生什么

What I have been able to generate

我只想要GUI部分的帮助.请不要低调,否则我将无法提问.

<body>

<div class="container-fluid" style="margin-top:5%;">
    <h3><b>PRODUCTION</b></h3>
    <table id="StatusTable">
        <tr>
            <th>Phase</th>
            <th>Error Code</th>
            <th>Error Description</th>
            <th>Turnback</th>
            <th>score</th>
            <th>Start Date</th>
            <th>Incorporation Date</th>
            <th>Completion Date</th>
        </tr>
        <tr>
            <th>Authoring</th>
            <td>---</td>
            <td>---</td>
            <td>---</td>
            <td>---</td>
            <?PHP
            session_start();
            $WO_ID = $_SESSION['SELECTED_WO_ID'];
            $sql="SELECT * FROM `associated_wos` WHERE `ID` = '$WO_ID'";
            //echo $sql;
            $result = MysqLi_query($conn,$sql);
            while ($row = MysqLi_fetch_array($result))
            { ?>
                <td><?PHP echo $row["StartDate"]; ?></td>
                <td>---</td>
                <td><?PHP echo $row["SFCK SubmissionDate"];?></td>
                <?PHP
            }?>
            ?>
        </tr>
        <tr>
            <?PHP
            $value = 'Peer Review';
            $sql="SELECT * FROM `wo_errorinfo` WHERE `WO_NO` = '$WO_ID' AND `Review_Type` = '$value'";
            $result = MysqLi_query($conn,$sql);
            $num_rows = MysqLi_num_rows($result);
            ?>
        <tr>
            <th rowspan = "<?PHP echo $num_rows + 1 ;?>">Peer Review</th>
            <?PHP
            while ($row = MysqLi_fetch_array($result)) {?>
                <tr>
            <td><?PHP echo $row["Error_Code"];?></td>
            <td><?PHP echo $row["Error_Description"];?></td>
            <td><?PHP echo $row["Error_Quantity"];?></td>
        <?PHP
        }?>
            <?PHP
            $select = "SELECT * FROM `wo_reviewerqa` WHERE `WO_ID` = '$WO_ID' and `reviewType` = '$value'";
            $result1 = MysqLi_query($conn,$select);
            $num_rows1 = MysqLi_num_rows($result1);
            while($row1 = MysqLi_fetch_array($result1))
            {?>
                <td rowspan = "<?PHP echo $num_rows + 1 ?>"><?PHP echo $row1["reviewscore"];?></td>
                <td rowspan = "<?PHP echo $num_rows + 1 ?>"><?PHP echo $row1["reviewStartDate"];?></td>
                <td rowspan = "<?PHP echo $num_rows + 1 ?>">---</td>
                <td rowspan = "<?PHP echo $num_rows + 1 ?>"><?PHP echo $row1["reviewCompleteDate"];?></td>
            <?PHP
            }
             ?>

     </tr>
    </tr>
    </table>
</div>
</body>

我应该做些什么来获得所需的表格.我能够生成该表的唯一方法是交换列.我应该使用JOINcommand吗?

解决方法

您需要GUI,以下是表格的HTML结构

<table border="1" cellpadding="5">
  <tr>
    <td colspan="8"><center>PRODUCTION</center></td>
  </tr>
    <tr>
        <td>Phase</td>
        <td>Error Code</td>
        <td>Error Description</td>
        <td>Turnback</td>
        <td>score</td>
        <td>Start Date</td>
        <td>Incorporation Date</td>
        <td>Completion Date</td>
    </tr>
    <tr>
        <td>Authoring</td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
    </tr>
    <tr>
        <td rowspan="2">Peer Review</td>
        <td></td>
        <td></td>
        <td rowspan="2"></td>
        <td rowspan="2"></td>
        <td rowspan="2"></td>
        <td rowspan="2"></td>
        <td rowspan="2"></td>
    </tr>
    <tr>
        <td></td>
        <td></td>
    </tr>
    <tr>
        <td rowspan="2">Internal Review</td>
        <td></td>
        <td></td>
        <td rowspan="2"></td>
        <td rowspan="2"></td>
        <td rowspan="2"></td>
        <td rowspan="2"></td>
        <td rowspan="2"></td>
    </tr>
    <tr>
      <td></td>
      <td></td>
    </tr>
</table>

相关文章

vue阻止冒泡事件 阻止点击事件的执行 &lt;div @click=&a...
尝试过使用网友说的API接口获取 找到的都是失效了 暂时就使用...
后台我拿的数据是这样的格式: [ {id:1 , parentId: 0, name:...
JAVA下载文件防重复点击,防止多次下载请求,Cookie方式快速简...
Mip是什么意思以及作用有哪些