hi guys,
I'm doing weekyl opening hours on a directory site, so have 14 time fields required:
Monday opening time, Monday closing time
Tuesday opening... etc
I wanna add the dropwdown to each field, but cant seem to work out how to do that without repeating LOTS of code?
here's what I have:
Statc $db = array (
'MonStart' => 'Time',
'MonFinish' => 'Time',
'MonClosed' => 'Boolean',
'TueStart' => 'Time',
'TueFinish' => 'Time',
'TueClosed' => 'Boolean',
............
$TimeField = new Timefield('MonStart', 'Monday Opening time');
$TimeField->setConfig('showdropdown', true);
$TimeField->setConfig('timeformat', 'h:m a');
$TimeField->setLocale('en_GB');
new $TimeField
any ideas?
thanks.