Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/236.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
如何使用今日日历创建表格?jquery与php_Php_Jquery_Codeigniter_Calendar - Fatal编程技术网

如何使用今日日历创建表格?jquery与php

如何使用今日日历创建表格?jquery与php,php,jquery,codeigniter,calendar,Php,Jquery,Codeigniter,Calendar,HTML 这是我所知道的最简单的方法: etc ? 即使您硬编码了它,我想不出一天少于24小时,所有需要动态的就是日期输入,当然,只需使用JQuery UI即可。他们已经发明了那个轮子。 etc ? <table> <?php foreach (range(0, 23) as $i) : ?> <tr> <td><?php echo date('ha', mktime($i, 0)); ?></

HTML


这是我所知道的最简单的方法:

etc ?

即使您硬编码了它,我想不出一天少于24小时,所有需要动态的就是日期输入,当然,只需使用JQuery UI即可。他们已经发明了那个轮子。
etc ?
<table>
    <?php foreach (range(0, 23) as $i) : ?>
    <tr>
        <td><?php echo date('ha', mktime($i, 0)); ?></td>
        <td>What ever you want here</td>
    </tr>   
    <?php endforeach; ?>
</table>
<table class="" id="schedule">
    <thead>
        <tr>
            <th><input value="Time" type="text"></th>
            <th><input value="Monday" type="text"></th>
            <th><input value="Tuesday" type="text"></th>
            <th><input value="Wednesday" type="text"></th>
            <th><input value="Thursday" type="text"></th>
            <th><input value="Friday" type="text"></th>
        </tr>
    </thead>
    <tbody>
        <?php foreach (range(0, 23) as $i) : ?>
        <tr>
            <th><input value="<?php echo date('ha', mktime($i, 0)); ?>" type="text" /></th>
            <td class=""></td>
            <td class=""></td>
            <td class=""></td>
            <td class=""></td>
            <td class=""></td>
        </tr>
        <?php endforeach; ?>
    </tbody>
</table>