From 43beba82e1cad032919873baa1f2fc0f184cb568 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 19 Oct 2004 07:09:09 +0000 Subject: [PATCH] XHTML and accessibility compatibility --- mod/resource/type/file/file.html | 46 ++++++++++++----------- mod/resource/type/file/resource.class.php | 2 +- 2 files changed, 26 insertions(+), 22 deletions(-) diff --git a/mod/resource/type/file/file.html b/mod/resource/type/file/file.html index 1c4b5d6b50..3745fb3157 100644 --- a/mod/resource/type/file/file.html +++ b/mod/resource/type/file/file.html @@ -1,4 +1,9 @@ - - - - -

:

reference\" />
"; + echo "reference\" alt=\"reference\" />
"; button_to_popup_window ("/mod/resource/coursefiles.php?id=$form->course", "coursefiles", $strchooseafile, 500, 750, $strchooseafile); echo "resource_websearch', 'websearch', 'menubar=1,location=1,directories=1,toolbar=1,scrollbars,resizable,width=800,height=600');\" />\n"; @@ -68,44 +69,44 @@ var frameitem = []; var allitems = []; - + onclick="lockoptions('form', 'windowpopup[0]', frameitem); return lockoptions('form', 'windowpopup[1]', popupitems);" /> "> - + - + onclick="lockoptions('form', 'windowpopup[0]', frameitem); return lockoptions('form', 'windowpopup[1]', popupitems);" /> - + @@ -168,9 +169,10 @@ for ($i=0; $i < $this->maxparameters; $i++) { echo ">{$fieldarr['langstr']}\n"; } } + echo "\n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; } @@ -181,12 +183,14 @@ for ($i=0; $i < $this->maxparameters; $i++) { - - - - + + + + + diff --git a/mod/resource/type/file/resource.class.php b/mod/resource/type/file/resource.class.php index b83c12e86e..06633c9db7 100644 --- a/mod/resource/type/file/resource.class.php +++ b/mod/resource/type/file/resource.class.php @@ -502,7 +502,7 @@ function setup($form) { if ($optionname == "height" or $optionname == "width") { $window->$optionname = $optionvalue; } else if ($optionvalue) { - $window->$optionname = "checked"; + $window->$optionname = "checked=\"checked\""; } } } -- 2.39.5