0

期日と時刻の選択オプションを備えた PHP ページがあります。私ができるようにしたいのは、時間選択ドロップダウンの時間を制限して、00:00 から 24:00 までの 24 時間の時間リストではなく、利用可能な勤務時間のみを表示することです。現在表示されているコードは次のとおりですが、これは私の頭の中にあり、基本的な編集能力を超えています。どんな助けや提案も大歓迎です。前もって感謝します、

<tr>
    <td align="left" valign="top">Due Date:</td>
    <td>
        <i>Time is based on your time zone (GM <?=$thisuser->getTZoffset()?>)</i>&nbsp;<font class="error">&nbsp;<?=$errors['time']?></font><br>
        <input id="duedate" name="duedate" value="<?=Format::htmlchars($info['duedate'])?>"
            onclick="event.cancelBubble=true;calendar(this);" autocomplete=OFF>
        <a href="#" onclick="event.cancelBubble=true;calendar(getObj('duedate')); return false;"><img src='images/cal.png'border=0 alt=""></a>
        &nbsp;&nbsp;
        <?php
         $min=$hr=null;
         if($info['time'])
            list($hr,$min)=explode(':',$info['time']);
            echo Misc::timeDropdown($hr,$min,'time');
        ?>
        &nbsp;<font class="error">&nbsp;<?=$errors['duedate']?></font>
    </td>
</tr>
4

1 に答える 1