From: moodler Date: Sat, 13 Jan 2007 04:25:02 +0000 (+0000) Subject: Clean up notice boxes X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ee80b6ec437ef916961e4eca3a586584439fe32b;p=moodle.git Clean up notice boxes --- diff --git a/lib/weblib.php b/lib/weblib.php index 2cfac7ee93..c2520b5596 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -4834,8 +4834,7 @@ function notice ($message, $link='', $course=NULL, $adminroot='') { } } - echo '
'; - print_simple_box($message, 'center', '50%', '', '20', 'generalbox', 'notice'); + print_box($message, 'generalbox', 'notice'); print_continue($link); // xhtml strict fix, need to make sure it's the right footer @@ -4867,14 +4866,13 @@ function notice_yesno ($message, $linkyes, $linkno, $optionsyes=NULL, $optionsno $linkyes = clean_text($linkyes); $linkno = clean_text($linkno); - print_simple_box_start('center', '60%', '', 5, 'generalbox', 'notice'); - echo '

'. $message .'

'; - echo '
'; + print_box_start('generalbox', 'notice'); + echo '

'. $message .'

'; + echo '
'; print_single_button($linkyes, $optionsyes, get_string('yes'), $methodyes, $CFG->framename); - echo '
'; - print_single_button($linkno, $optionsno, get_string('no'), $methodno, $CFG->framename); - echo '
'; - print_simple_box_end(); + print_single_button($linkno, $optionsno, get_string('no'), $methodno, $CFG->framename); + echo ''; + print_box_end(); } /**