Index: calendar/event_new.html =================================================================== RCS file: /home/cvs_repositories/globalcvs/ou-moodle/calendar/event_new.html,v retrieving revision 1.5 diff -u -r1.5 event_new.html --- calendar/event_new.html 22 Jun 2007 13:21:05 -0000 1.5 +++ calendar/event_new.html 20 Jan 2009 16:11:14 -0000 @@ -5,18 +5,18 @@
- + - + @@ -77,8 +78,8 @@ - - + + Index: lib/weblib.php =================================================================== RCS file: /home/cvs_repositories/globalcvs/ou-moodle/lib/weblib.php,v retrieving revision 1.185 diff -u -r1.185 weblib.php --- lib/weblib.php 10 Dec 2008 10:54:15 -0000 1.185 +++ lib/weblib.php 20 Jan 2009 16:11:14 -0000 @@ -6225,10 +6225,24 @@ for ($i=1970; $i<=2020; $i++) { $years[$i] = $i; } - return choose_from_menu($days, $day, $currentdate['mday'], '', '', '0', $return) - .choose_from_menu($months, $month, $currentdate['mon'], '', '', '0', $return) - .choose_from_menu($years, $year, $currentdate['year'], '', '', '0', $return); + // Build or print result + $result=''; + // Note: There should probably be a fieldset around these fields as they are + // clearly grouped. However this causes problems with display. See Mozilla + // bug 474415 + $result.=''; + $result.=choose_from_menu($days, $day, $currentdate['mday'], '', '', '0', true); + $result.=''; + $result.=choose_from_menu($months, $month, $currentdate['mon'], '', '', '0', true); + $result.=''; + $result.=choose_from_menu($years, $year, $currentdate['year'], '', '', '0', true); + + if ($return) { + return $result; + } else { + echo $result; + } } /** @@ -6256,8 +6270,21 @@ $minutes[$i] = sprintf("%02d",$i); } - return choose_from_menu($hours, $hour, $currentdate['hours'], '','','0',$return) - .choose_from_menu($minutes, $minute, $currentdate['minutes'], '','','0',$return); + // Build or print result + $result=''; + // Note: There should probably be a fieldset around these fields as they are + // clearly grouped. However this causes problems with display. See Mozilla + // bug 474415 + $result.=''; + $result.=choose_from_menu($hours, $hour, $currentdate['hours'], '','','0',true); + $result.=''; + $result.=choose_from_menu($minutes, $minute, $currentdate['minutes'], '','','0',true); + + if ($return) { + return $result; + } else { + echo $result; + } } /**
+ - +
+ description); @@ -55,8 +55,9 @@
duration == 2) echo 'checked="checked"'; ?>/> - + +