From: toyomoyo Date: Fri, 5 Jan 2007 08:01:33 +0000 (+0000) Subject: MDL-7861, xhtml strict issues X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=64888fc1cb36893634809aad7aeaa2557143bc84;p=moodle.git MDL-7861, xhtml strict issues --- diff --git a/lib/weblib.php b/lib/weblib.php index a08668439a..a0adbdf803 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2974,13 +2974,15 @@ function print_simple_box_end($return=false) { function print_single_button($link, $options, $label='OK', $method='get', $target='_self', $return=false) { $output = ''; $output .= '
'; - $output .= '
'; + // taking target out, will need to add later target="'.$target.'" + $output .= ''; + $output .= '
'; if ($options) { foreach ($options as $name => $value) { $output .= ''; } } - $output .= '
'; + $output .= ''; if ($return) { return $output; diff --git a/mod/data/preset.php b/mod/data/preset.php index f6e2d2a0a9..bec4eb1497 100644 --- a/mod/data/preset.php +++ b/mod/data/preset.php @@ -184,7 +184,7 @@ switch ($action) { error("Invalid request"); } - echo '
'; + echo '
'; $file = data_presets_export($course, $cm, $data); echo get_string('exportedtozip', 'data')."
"; $perminantfile = $CFG->dataroot."/$course->id/moddata/data/$data->id/preset.zip"; @@ -210,14 +210,15 @@ switch ($action) { $strwarning = get_string('presetinfo', 'data'); $strname = get_string('shortname'); - echo '
'; + echo '
'; echo '

'.$strwarning.'

'; echo '
'; + echo '
'; echo ' '; echo ''; echo ''; echo ''; - echo '
'; + echo '
'; print_footer($course); exit; break; @@ -236,20 +237,22 @@ switch ($action) { if (is_directory_a_preset("$CFG->dataroot/data/preset/$USER->id/$name")) { notify("Preset already exists: Pick another name or overwrite"); - echo '
'; + echo '
'; echo '
'; + echo '
'; echo ' '; echo ''; echo ''; echo ''; - echo ''; + echo '
'; echo '
'; + echo '
'; echo ''; echo ''; echo ''; echo ''; - echo ''; + echo '
'; echo '
'; print_footer($course); exit; @@ -288,7 +291,7 @@ $strsaveaspreset = get_string('saveaspreset', 'data'); $strsave = get_string('save', 'data'); $strdelete = get_string('delete'); -echo '
'; +echo '
'; echo ''; echo ''; @@ -320,12 +323,13 @@ helpbutton('importfromfile', '', 'data'); echo ''; @@ -334,6 +338,7 @@ helpbutton('usepreset', '', 'data'); echo ''; echo '

'.$strexport.'

'; echo '
'; +echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; -echo ''; +echo '
'; echo '
'; echo '
'; +echo '
'; echo ''; echo ''; echo ''; @@ -364,7 +369,7 @@ foreach ($presets as $id => $preset) { } echo '
'; echo ''; -echo ''; +echo '
'; echo '
'; echo '
'; @@ -585,7 +590,8 @@ class PresetImporter { list($settings, $newfields, $currentfields) = $this->get_settings(); - echo '
'; + echo '
'; + echo '
'; echo ''; echo ''; echo ''; @@ -625,7 +631,7 @@ class PresetImporter { else if (empty($newfields)) { error("New preset has no defined fields!"); } - echo '
'; + echo '
'; }