I have a PHP page with a Due Date and Time selection option. What I would like to be able to do is limit the times in the time selection drop down to only show available working hours rather than a 24 hour time list from 00:00 to 24:00. Here is the code as it currently appears, but this is over my head and beyond my basic editing abilities. Any help or suggestions would be greatly appreciate. Thanks in advance,
<tr>
<td align="left" valign="top">Due Date:</td>
<td>
<i>Time is based on your time zone (GM <?=$thisuser->getTZoffset()?>)</i> <font class="error"> <?=$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>
<?php
$min=$hr=null;
if($info['time'])
list($hr,$min)=explode(':',$info['time']);
echo Misc::timeDropdown($hr,$min,'time');
?>
<font class="error"> <?=$errors['duedate']?></font>
</td>
</tr>