Response Table for dashboard

 


    <style>
    table{
        width:100%;
        margin:20px auto;
        table-layout:auto;
    }

    th{
        padding:10px;
        border:solid 1px;
        text-align:center;

    }

    .w{
        width:140px;
    }
    </style>


<table>
    <thead>
        <?php
        $start=strtotime('10:00');
        $end=strtotime('20:00');

        if ($start <$end) {
        while ($start < $end){
            $time = date('g:i A',$start);
        ?>
            <tr>
                <th class="w"><?php  echo $time; ?></th>
                <?php if ($time == '12:45 PM') {
                   echo '<th rowspan="3" style="background:gray">Booking Details</th>';
                }
                ?>
            </tr>

        <?php
            $start = $start + 15*60;
            }
        }
        ?>
    </thead>
</table>

Post a Comment

0 Comments