【问题标题】:How to add another column beside date `12-06-2022` which is the same row with `02-06-2022`?如何在日期“12-06-2022”旁边添加与“02-06-2022”同一行的另一列?
【发布时间】:2022-06-14 16:39:52
【问题描述】:

日期下的第 4 列也与日期 02-06-2022 相同。因此,此表包含 2 个绩效评估日期。

Interface for table

这是一个html代码示例

<table class="table table-border-black table-hover table-striped table-scrollable" style="color: #000;">
    <thead>
        <tr>
            <th rowspan="3" class="text-center bold">No. </th>
            <th rowspan="3" class="text-center bold">Staff Name</th>
            <th colspan="4" class="text-center bold">
                Performance Assessment<br /><span class="small">( <?php echo $filter['year']; ?> )</span></th>
        </tr>
        <?php
            foreach($ListPerformance as $key2 => $value2) {
                foreach ($value2 as $key => $value) {
                                                                        
        ?>  
                                                                    
        <?php 
            if (!empty($value['assessment_period_start'])) {
                echo '<tr><th colspan="4" class="text-center">'.$value['assessment_period_start'].'</th></tr>';
            }
        ?>
                                                            
        <tr>
            <th class="text-center">Submit</th>
            <th class="text-center">Application Status</th>
            <?php
                if ($_SESSION[AppName]['usergroup'] == 1){
                    echo '<th class="text-center">Admin</th>';
                }
            ?>
                <th class="text-center">Reset By</th>
        </tr>
        <?php 
            } 
        }
    ?>      
    </thead>
<tbody></tbody></table>

【问题讨论】:

  • 请澄清您的具体问题或提供其他详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。

标签: php html mysql


猜你喜欢
  • 1970-01-01
  • 2023-01-24
  • 1970-01-01
  • 2011-04-06
  • 1970-01-01
  • 2022-06-10
  • 1970-01-01
  • 1970-01-01
  • 2022-12-05
相关资源
最近更新 更多